interacting with coding brokers resembling Claude Code and Codex. They’ve huge advantages in growing the velocity at which I can get issues completed as an engineer.
There are quite a few bottlenecks that I’ve skilled now that coding has turn out to be commoditized and we are able to write extra code quite a bit sooner with Claude Code and Codex. I’ve lined a few of these bottlenecks earlier than, in earlier articles, with subjects resembling:
- Reviewing code
- Deciding what to work on
Nevertheless, there’s a third one which I’ve positively skilled increasingly points with, and I spent numerous time considering by means of methods to optimize, and that’s methods to align my intent with Claude Code now that I spin up so many periods.

After I say aligning my intent with Claude Code, what I imply is that Claude Code understands precisely what I need to implement and that Claude is thus capable of make numerous assumptions about how the implementation needs to be completed. Primarily, Claude ought to perceive what I need to implement and implement it as precisely as doable in order that once I assessment the work afterward, I decrease the quantity of stuff we’ve to tweak.
Why alignment is so essential
As regular, I wish to cowl why the subject I’m overlaying is so essential. The rationale alignment with Claude Code or coding brokers generally is so essential is that in case your intents are usually not aligned along with your coding agent, the coding agent won’t implement what you anticipate it to implement or what you need it to implement.
A disconnect can, for instance, take form with the mannequin not implementing the design as you need, not having the right logic within the characteristic it’s implementing, and lots of different issues.
Primarily, it boils right down to the truth that it now takes you, the human, extra time to finish the duty. As a result of whenever you spun up the duty, you tried to share with the coding agent what you needed to implement, and if you weren’t aligned, the agent applied the improper factor or applied one thing incorrectly. On this state of affairs, you needed to go in, assessment the agent’s work, give suggestions on what it did incorrectly and methods to do it accurately subsequent time, after which this course of might need to proceed for a number of extra rounds till the agent has truly managed to implement what you needed initially.
Not being aligned along with your coding agent prices numerous time.
And as you realize, time has now turn out to be much more precious, now that we are able to construct much more stuff in a shorter period of time, which is why it’s a must to defend it as a lot as doable. And that is the explanation that it’s best to spend time optimizing how effectively you align along with your coding agent. I’ve tried numerous totally different strategies and assessments to see methods to align greatest with my coding agent to make it full work as successfully as doable, with a minimal quantity of human interference.
Learn how to align along with your coding agent
Now let’s dive into methods to align along with your coding brokers. On this part, I’ll cowl a number of totally different strategies, although I’ll spend more often than not optimizing the only handiest approach that I discovered to align with my coding agent and to grasp its understanding of my duties. First, nevertheless, I’ll cowl some smaller strategies you should use to enhance alignment along with your coding agent.
Plan mode
Plan mode is the very first thing you are able to do. Plan mode is actually the place you’ve gotten the agent do a read-only sweep of the repository and make a plan on methods to implement the characteristic that you simply’re requesting. The benefit of plan mode is that the agent will now spend time asking you inquiries to make it possible for it understands you accurately.
Having the coding agent ask you questions is a superb approach to enhance alignment. As a substitute of you having to ask the agent questions on methods to do issues or the way it understands issues, it’s best to have the agent ask you questions, which is far faster so that you can reply and is general a more practical approach to enhance mannequin alignment.
Nevertheless, generally I don’t use plan mode for smaller duties. I don’t assume it’s essential in numerous circumstances as a result of I consider I could make my preliminary immediate clear sufficient that the mannequin and the agent don’t want planning or question-and-answer, and yeah, I feel it’s largely essential for bigger points or duties that you simply’re engaged on.
Detailed prompts
The second approach I need to cowl is to make the immediate you present your coding agent detailed. It is best to attempt to embody as a lot context as doable. And this may be completed in 2 essential methods. One is that, of, you attempt to keep in mind context your self and clarify it in your immediate. I feel it’s value noting right here that the size of your immediate doesn’t actually matter, you shouldn’t fear about including an excessive amount of textual content, as extra context is often merely higher. The second is that it’s best to add context from totally different sources. So, for instance, a very good supply may be a Slack message, which additionally contains some screenshots which are related for an implementation, or a Notion data base that it’s best to consider, and so forth. It is best to feed as a lot data as doable, for instance, it’s best to be sure that the coding agent has entry to all of those sources and inform it to make use of them actively throughout implementation and analysis.
Typically, for instance, I even make the prompts utilizing a separate coding agent. So I make a separate coding agent current me with an in depth immediate for precisely the duty I need to implement, which is mainly like a pre-work agent and helps me make a lot clearer and extra detailed prompts that embody solutions to numerous the questions a coding agent might need if I didn’t put together the immediate like this beforehand.
The simplest approach for mannequin alignment
Telling the mannequin “is my understanding right:
The rationale this system is so highly effective is that you simply’re placing the questions within the arms of the coding agent so that you don’t need to give you the query your self. This comes again to the purpose I made earlier on this article: you need the coding agent to ask you questions and never the opposite manner round.
I might say that utilizing this system of telling the mannequin: “is my understanding right”, has 2 essential advantages:
- It’s a great way so that you can perceive all the issues the coding agent is engaged on.
- The coding agent will get to learn and perceive your perspective and might inform you in case your understanding is improper in any manner or if it’s absolutely right or partially right. This ensures that you’ve got a whole understanding of all the things that’s being completed, and it makes it tremendous straightforward for the coding agent to level out the place your understanding is inaccurate to be able to right it. In fact, after which you may, in fact, right it with the assistance of a coding agent explaining it to you.
The choice is to let the coding agent clarify all the things it did after which confirm it your self. It presents some work that it’s completed, you may check whether or not the characteristic or bug that it mounted was completed accurately, and also you come again to it. The issue, nevertheless, is that you simply don’t achieve a full understanding of all the things the coding agent did. Sure, you may verify the surface-level implementations by, for instance, clicking across the app and simply making an attempt to breed the bug and see if it’s being reproduced, however you don’t have that full understanding of all the things the coding agent did, or no less than you may’t confirm that you’ve got that full understanding.
Now I need to give an instance from a selected activity that I’ve been engaged on. I used to be implementing an app the place I can have a Vercel web site, which makes it in order that I can entry my coding brokers from any location, for instance, my cellphone or my Mac. And it makes it tremendous straightforward for me to find which coding brokers want enter and which of them can proceed working. And I get a swipe performance in order that I can rapidly undergo all of my coding brokers. That is mainly an app thought I considered to make it more practical to work together with all of my coding brokers as a result of I had a tough time having an outline of all of them once I began having 15+ brokers working at a time.
What I did was begin making a plan for implementing this characteristic the place I defined all the things, for instance:
I need an utility, a Vercel utility, that I can entry from
each my cellphone and Mac, so it must be optimized for cellphone view
and PC view. And it ought to give me a simple overview of all my coding
brokers. It is crucial that I can see all my coding brokers from
that view, whether or not it is Codex or Claude Code. It ought to simply give you the option
to find which coding brokers are working autonomously and thus do
not want any enter, and which coding brokers want enter from me, and it
ought to alert me in the event that they want enter from me. It must also use an LLM
to make the queries for me as simplified as doable in order that I can, in
most circumstances, simply reply with one of many predetermined alternate options
and so forth.
I then let the agent make a plan and look into methods to construct it, and it began explaining the applying and so forth.
Later, I needed to grasp higher how the LLM system in my utility labored as a result of I wasn’t positive how the LLM understood which duties had been excellent, like which threads I needed to work on, and the way it understood the way it constructed the multiple-choice questions from the threads that had excellent work.
I thus prompted one thing like:
I wanna perceive the LLM system within the utility higher. Is my
understanding right? That the system works in order that we've cron
job working each 10 minutes the place we then run a codex agent going
by means of all my threads. It identifies which threads are at present
working and which of them are stopped, after which out of those that
are stopped, it discovers if something is ready for enter from me
and discovers the duties that's ready for enter on and presents
them to me in a a number of alternative format. Is that understanding right?
The agent then defined to me that the system was not primarily based on a cron job, for instance, it was primarily based on a webhook system, and it defined that I used to be utilizing a Codex subscription and the Codex API key, and so forth.
Nevertheless, this was very key as a result of the agent additionally highlighted that a part of my understanding was right. Thus, I had absolutely aligned myself with the coding agent on what I used to be constructing, and we might begin constructing it as a result of I agreed on the implementation particulars.
I feel it’s additionally value including right here that making these explanations — like presenting my understanding of the system — is excellent observe to raised perceive code. It helps you current your understanding of the state of affairs, and the LLM corrects it, which mainly helps you improve the way you work together with code. I might additionally like to notice, although, that to a sure extent it positively requires a minimal stage of code understanding as a result of, in fact, it’s a must to understand how totally different programs work to have the ability to describe them. However I positively assume that is one method to be taught. You attempt to clarify it in addition to you may, and the LLM helps you each perceive it and clarify it higher over time so that you simply’ll turn out to be more adept working with code and thus extra environment friendly as effectively.
Conclusion
On this article, I mentioned methods to successfully align your intents as an engineer with a coding agent. I described some totally different strategies that I exploit to make it possible for my coding brokers and I are aligned, which I discover work very well. The very best approach I offered, nevertheless, which is by far the strategies that work greatest for me to align with my coding brokers, is to inform the mannequin: “Is my understanding right?” after which current my understanding of an implementation or a repair. The LLM will then inform me whether or not I’m right, partially right or incorrect and current me a corrected response. I discover that this helps me be sure that I perceive the code that’s being constructed and likewise helps me perceive what the LLM intends to construct primarily based on my prompts.
👉 My free eBook and Webinar:
🚀 10x Your Engineering with LLMs (Free 3-Day E mail Course)
📚 Get my free Imaginative and prescient Language Fashions e book
💻 My webinar on Imaginative and prescient Language Fashions
👉 Discover me on socials:
💌 Substack
interacting with coding brokers resembling Claude Code and Codex. They’ve huge advantages in growing the velocity at which I can get issues completed as an engineer.
There are quite a few bottlenecks that I’ve skilled now that coding has turn out to be commoditized and we are able to write extra code quite a bit sooner with Claude Code and Codex. I’ve lined a few of these bottlenecks earlier than, in earlier articles, with subjects resembling:
- Reviewing code
- Deciding what to work on
Nevertheless, there’s a third one which I’ve positively skilled increasingly points with, and I spent numerous time considering by means of methods to optimize, and that’s methods to align my intent with Claude Code now that I spin up so many periods.

After I say aligning my intent with Claude Code, what I imply is that Claude Code understands precisely what I need to implement and that Claude is thus capable of make numerous assumptions about how the implementation needs to be completed. Primarily, Claude ought to perceive what I need to implement and implement it as precisely as doable in order that once I assessment the work afterward, I decrease the quantity of stuff we’ve to tweak.
Why alignment is so essential
As regular, I wish to cowl why the subject I’m overlaying is so essential. The rationale alignment with Claude Code or coding brokers generally is so essential is that in case your intents are usually not aligned along with your coding agent, the coding agent won’t implement what you anticipate it to implement or what you need it to implement.
A disconnect can, for instance, take form with the mannequin not implementing the design as you need, not having the right logic within the characteristic it’s implementing, and lots of different issues.
Primarily, it boils right down to the truth that it now takes you, the human, extra time to finish the duty. As a result of whenever you spun up the duty, you tried to share with the coding agent what you needed to implement, and if you weren’t aligned, the agent applied the improper factor or applied one thing incorrectly. On this state of affairs, you needed to go in, assessment the agent’s work, give suggestions on what it did incorrectly and methods to do it accurately subsequent time, after which this course of might need to proceed for a number of extra rounds till the agent has truly managed to implement what you needed initially.
Not being aligned along with your coding agent prices numerous time.
And as you realize, time has now turn out to be much more precious, now that we are able to construct much more stuff in a shorter period of time, which is why it’s a must to defend it as a lot as doable. And that is the explanation that it’s best to spend time optimizing how effectively you align along with your coding agent. I’ve tried numerous totally different strategies and assessments to see methods to align greatest with my coding agent to make it full work as successfully as doable, with a minimal quantity of human interference.
Learn how to align along with your coding agent
Now let’s dive into methods to align along with your coding brokers. On this part, I’ll cowl a number of totally different strategies, although I’ll spend more often than not optimizing the only handiest approach that I discovered to align with my coding agent and to grasp its understanding of my duties. First, nevertheless, I’ll cowl some smaller strategies you should use to enhance alignment along with your coding agent.
Plan mode
Plan mode is the very first thing you are able to do. Plan mode is actually the place you’ve gotten the agent do a read-only sweep of the repository and make a plan on methods to implement the characteristic that you simply’re requesting. The benefit of plan mode is that the agent will now spend time asking you inquiries to make it possible for it understands you accurately.
Having the coding agent ask you questions is a superb approach to enhance alignment. As a substitute of you having to ask the agent questions on methods to do issues or the way it understands issues, it’s best to have the agent ask you questions, which is far faster so that you can reply and is general a more practical approach to enhance mannequin alignment.
Nevertheless, generally I don’t use plan mode for smaller duties. I don’t assume it’s essential in numerous circumstances as a result of I consider I could make my preliminary immediate clear sufficient that the mannequin and the agent don’t want planning or question-and-answer, and yeah, I feel it’s largely essential for bigger points or duties that you simply’re engaged on.
Detailed prompts
The second approach I need to cowl is to make the immediate you present your coding agent detailed. It is best to attempt to embody as a lot context as doable. And this may be completed in 2 essential methods. One is that, of, you attempt to keep in mind context your self and clarify it in your immediate. I feel it’s value noting right here that the size of your immediate doesn’t actually matter, you shouldn’t fear about including an excessive amount of textual content, as extra context is often merely higher. The second is that it’s best to add context from totally different sources. So, for instance, a very good supply may be a Slack message, which additionally contains some screenshots which are related for an implementation, or a Notion data base that it’s best to consider, and so forth. It is best to feed as a lot data as doable, for instance, it’s best to be sure that the coding agent has entry to all of those sources and inform it to make use of them actively throughout implementation and analysis.
Typically, for instance, I even make the prompts utilizing a separate coding agent. So I make a separate coding agent current me with an in depth immediate for precisely the duty I need to implement, which is mainly like a pre-work agent and helps me make a lot clearer and extra detailed prompts that embody solutions to numerous the questions a coding agent might need if I didn’t put together the immediate like this beforehand.
The simplest approach for mannequin alignment
Telling the mannequin “is my understanding right:
The rationale this system is so highly effective is that you simply’re placing the questions within the arms of the coding agent so that you don’t need to give you the query your self. This comes again to the purpose I made earlier on this article: you need the coding agent to ask you questions and never the opposite manner round.
I might say that utilizing this system of telling the mannequin: “is my understanding right”, has 2 essential advantages:
- It’s a great way so that you can perceive all the issues the coding agent is engaged on.
- The coding agent will get to learn and perceive your perspective and might inform you in case your understanding is improper in any manner or if it’s absolutely right or partially right. This ensures that you’ve got a whole understanding of all the things that’s being completed, and it makes it tremendous straightforward for the coding agent to level out the place your understanding is inaccurate to be able to right it. In fact, after which you may, in fact, right it with the assistance of a coding agent explaining it to you.
The choice is to let the coding agent clarify all the things it did after which confirm it your self. It presents some work that it’s completed, you may check whether or not the characteristic or bug that it mounted was completed accurately, and also you come again to it. The issue, nevertheless, is that you simply don’t achieve a full understanding of all the things the coding agent did. Sure, you may verify the surface-level implementations by, for instance, clicking across the app and simply making an attempt to breed the bug and see if it’s being reproduced, however you don’t have that full understanding of all the things the coding agent did, or no less than you may’t confirm that you’ve got that full understanding.
Now I need to give an instance from a selected activity that I’ve been engaged on. I used to be implementing an app the place I can have a Vercel web site, which makes it in order that I can entry my coding brokers from any location, for instance, my cellphone or my Mac. And it makes it tremendous straightforward for me to find which coding brokers want enter and which of them can proceed working. And I get a swipe performance in order that I can rapidly undergo all of my coding brokers. That is mainly an app thought I considered to make it more practical to work together with all of my coding brokers as a result of I had a tough time having an outline of all of them once I began having 15+ brokers working at a time.
What I did was begin making a plan for implementing this characteristic the place I defined all the things, for instance:
I need an utility, a Vercel utility, that I can entry from
each my cellphone and Mac, so it must be optimized for cellphone view
and PC view. And it ought to give me a simple overview of all my coding
brokers. It is crucial that I can see all my coding brokers from
that view, whether or not it is Codex or Claude Code. It ought to simply give you the option
to find which coding brokers are working autonomously and thus do
not want any enter, and which coding brokers want enter from me, and it
ought to alert me in the event that they want enter from me. It must also use an LLM
to make the queries for me as simplified as doable in order that I can, in
most circumstances, simply reply with one of many predetermined alternate options
and so forth.
I then let the agent make a plan and look into methods to construct it, and it began explaining the applying and so forth.
Later, I needed to grasp higher how the LLM system in my utility labored as a result of I wasn’t positive how the LLM understood which duties had been excellent, like which threads I needed to work on, and the way it understood the way it constructed the multiple-choice questions from the threads that had excellent work.
I thus prompted one thing like:
I wanna perceive the LLM system within the utility higher. Is my
understanding right? That the system works in order that we've cron
job working each 10 minutes the place we then run a codex agent going
by means of all my threads. It identifies which threads are at present
working and which of them are stopped, after which out of those that
are stopped, it discovers if something is ready for enter from me
and discovers the duties that's ready for enter on and presents
them to me in a a number of alternative format. Is that understanding right?
The agent then defined to me that the system was not primarily based on a cron job, for instance, it was primarily based on a webhook system, and it defined that I used to be utilizing a Codex subscription and the Codex API key, and so forth.
Nevertheless, this was very key as a result of the agent additionally highlighted that a part of my understanding was right. Thus, I had absolutely aligned myself with the coding agent on what I used to be constructing, and we might begin constructing it as a result of I agreed on the implementation particulars.
I feel it’s additionally value including right here that making these explanations — like presenting my understanding of the system — is excellent observe to raised perceive code. It helps you current your understanding of the state of affairs, and the LLM corrects it, which mainly helps you improve the way you work together with code. I might additionally like to notice, although, that to a sure extent it positively requires a minimal stage of code understanding as a result of, in fact, it’s a must to understand how totally different programs work to have the ability to describe them. However I positively assume that is one method to be taught. You attempt to clarify it in addition to you may, and the LLM helps you each perceive it and clarify it higher over time so that you simply’ll turn out to be more adept working with code and thus extra environment friendly as effectively.
Conclusion
On this article, I mentioned methods to successfully align your intents as an engineer with a coding agent. I described some totally different strategies that I exploit to make it possible for my coding brokers and I are aligned, which I discover work very well. The very best approach I offered, nevertheless, which is by far the strategies that work greatest for me to align with my coding brokers, is to inform the mannequin: “Is my understanding right?” after which current my understanding of an implementation or a repair. The LLM will then inform me whether or not I’m right, partially right or incorrect and current me a corrected response. I discover that this helps me be sure that I perceive the code that’s being constructed and likewise helps me perceive what the LLM intends to construct primarily based on my prompts.
👉 My free eBook and Webinar:
🚀 10x Your Engineering with LLMs (Free 3-Day E mail Course)
📚 Get my free Imaginative and prescient Language Fashions e book
💻 My webinar on Imaginative and prescient Language Fashions
👉 Discover me on socials:
💌 Substack
















