was a extremely popular subject a couple of years in the past. That is the place you’ll tweak your immediate, even only a bit — for instance, the format of your immediate, what the final sentence of your immediate is, and so forth. You possibly can obtain vastly completely different outcomes with LLMs. Nevertheless, within the years since, the LLMs have grow to be loads stronger and smarter, and are actually a lot much less prone to change outputs simply primarily based on the format or textual content order or related issues within the immediate.
Nevertheless, prompting continues to be crucial, and the information on find out how to successfully immediate LLMs continues to be extremely necessary. It simply requires a unique ability set and a unique mind-set to successfully immediate brokers these days.
It’s value noting that, seemingly, within the subsequent 12 months or two, the way in which you immediate your brokers can have advanced additional, and also you simply should preserve monitor of all of the modifications taking place to the fashions with the intention to know find out how to immediate them successfully and get the very best outcomes out of the fashions.
On this article, I’ll focus on how I immediate the LLMs I’m working with to make them successfully carry out a variety of work, and I’ll basically focus on my workflow to get engineering duties accomplished.

Why optimize the way in which you immediate
To start with, you would possibly suppose that the way in which you write prompts doesn’t actually matter that a lot anymore as a result of the LLMs have grow to be so robust that they will perceive you anyway. To a sure extent, I agree with this manner of thought. Nevertheless, there are nonetheless good and dangerous methods to immediate fashions.
For instance, a superb immediate could be:
- Be specific about what you need
- Embrace find out how to take a look at the implementation
- Make clear any ambiguities
Whereas a nasty immediate would, for instance be:
- Be obscure
- Make assumptions that don’t match with the prevailing codebase
Moreover, prompting isn’t just a singular factor you do for a particular thread. Prompting can also be the science of iteratively working with the mannequin to make a plan to implement the characteristic, for instance. So, a superb immediate might additionally embrace stuff like asking the mannequin to find any ambiguities and focus on them with you. Or telling the mannequin which assumptions to make.
How I immediate Claude Code
Now I’ll transfer on to how I immediate Claude Code particularly. I’ll speak you thru a couple of of the strategies that I take advantage of to immediate successfully and get essentially the most out of Claude Code, although these strategies are very common and likewise apply to all different coding brokers, mainly, similar to Codex as nicely.
Transcription
The primary subject I’d prefer to cowl is that I take advantage of a transcription device to get all my ideas into the coding brokers. At present, I’m utilizing a transcription device referred to as FluidVoice, which is a mannequin you’ll be able to run domestically totally free that’s extremely good, each quick and correct for transcribing English textual content.
Now, the transcription instruments are clearly very beneficial as a result of they’re sooner than typing by hand. In fact, how a lot sooner depends upon how briskly you’ll be able to truly kind by hand, nevertheless it’s honest to imagine that you could speak, on common, two to 3 occasions sooner than you’ll be able to kind in your pc. And naturally you get the advantage of not straining your palms and never having to give attention to the typing.
Nevertheless, one other profit I’ve seen is that I’m extra keen to incorporate all of the context that my coding agent must carry out a job. Once I needed to kind the whole lot by hand, there could be occasions after I didn’t wish to write out all of the context, just because it took a variety of time to kind. That is, after all, very dangerous as a result of in the event you don’t give Claude Code the context it wants to resolve a job, it’s very laborious for it to truly remedy that job. Nevertheless, now that I transcribe as an alternative of kind, it’s method simpler for me to truly embrace all of the context that I would like to incorporate, and it’s very low effort as nicely.
So all in all, transcription instruments are excellent as a result of they prevent a variety of time, and it makes it simpler so that you can embrace all of the context you really need to supply the coding agent for it to carry out the duty successfully.
Telling the mannequin find out how to take a look at
One other crucial level is telling the mannequin find out how to take a look at. So let’s say you inform the mannequin to implement characteristic A. That is after all nice. You inform it what the characteristic contains; it is best to embrace why you wish to construct this characteristic. It is best to embrace any context across the characteristic, how the characteristic ties into different components of your utility, and so forth.
Nevertheless, you additionally want to inform the mannequin find out how to take a look at the characteristic. For instance, in the event you implement a chat characteristic into your utility, it is best to inform the mannequin that it ought to open the chat in Chrome, kind in a question itself, and be certain that the AI responds correctly and that the tokens stream in, for instance.
Primarily, it is advisable inform the mannequin the way it can know that it applied the characteristic appropriately. Doing it will prevent a variety of time since you don’t have to check the characteristic as a lot your self, and the mannequin will current you with a extra working characteristic instantly.
Having a dialogue with the mannequin
A typical false impression on the subject of prompting coding brokers is that you simply simply present them a singular immediate and fireplace it off, and you then allow them to work till they’re accomplished. When you’ve got the right immediate setup, that is attainable as a result of the brokers are very able to working for a lot of hours and getting a variety of work accomplished. Nevertheless, this doesn’t keep in mind find out how to construct the right immediate.
For a human, it’s mainly not possible to construct an ideal immediate, and the straightforward purpose for that’s that you simply, as a human, can not have full context of the complete codebase, and there’s merely an excessive amount of code, too many issues to consider, and context you would possibly neglect, which isn’t attainable to have in your short-term reminiscence. Nevertheless, for the coding brokers, they’re truly able to storing all of this of their reminiscence, which makes them an excellent dialogue associate.
Mainly, what it is best to do everytime you begin off with a coding agent, whether or not it’s implementing a brand new characteristic, resolving a bug, or the rest, is that it is best to have a dialogue together with your coding agent. It is best to ask your coding agent to analysis the subject, test the logs, search on-line if there’s something related there, and many others. And have the agent ask you any questions on something that’s ambiguous.
When the coding brokers write code for you, they make a ton of assumptions. Far more assumptions than you’re even conscious of. The explanation for that is that there are method too many choices inside coding for the coding agent to ask you each time. When people code as nicely, in addition they should make a bunch of assumptions that they often consider, and generally it’s simply unconscious assumptions. Nevertheless, when planning, you need the mannequin to no less than share any important assumptions it makes.
An instance of such an assumption might be whether or not to implement infrastructure instantly by way of a CLI, for instance for AWS, or to implement it as CDK, in order code. This isn’t an ideal instance as a result of in virtually all instances the right reply is that it is best to implement it as code and never instantly by way of the CLI. However that is an instance of a call that you simply as a human need to concentrate on in order that the coding agent doesn’t do something you don’t need it to do. You mainly have this dialogue together with your coding agent to align the implementation in your head with what the coding agent will truly implement.
You had a dialogue together with your coding agent to make sure that you’re aligned on which job to implement and find out how to implement it.
HTML stories

One final thing I wish to cowl on this article is HTML stories. So when coding brokers work, and there’s after all a variety of data. The agent will write a variety of output to your terminal, the place most of it’s not related to you, for instance, device calls or simply pondering tokens and so forth. Nevertheless, generally it is advisable overview what the coding agent does. This might, for instance, be the plan that it made within the final job the place you wish to have a dialogue with a mannequin about find out how to implement a characteristic. In these instances, it is best to virtually all the time make the mannequin create HTML stories to visualise what you’re discussing, which makes it loads simpler for you as a human to present your suggestions to the mannequin.
Let me be very particular right here. Let’s say I’m implementing characteristic A, however there’s a bunch of selections the mannequin desires to debate with me earlier than beginning the implementation. In that case, what I do is that I make the mannequin generate an HTML report with every choice listed, together with context similar to:
- What the completely different choices are for that call
- What the choice is about
- Professionals and cons of the choice
- A easy button for me to resolve which choice to decide on for the choice
This makes it extremely easy for me to know what the completely different choices are for every choice and acquire an summary of the general choices which are to be made. And it’s a lot simpler than studying and understanding this by way of the terminal, for instance. One other advantage of HTML stories is that you could create visuals, for instance, diagrams, movement charts, SVGs, and so forth.
One other word right here is that I additionally make HTML stories for testing. So let’s say that the mannequin has applied a characteristic I requested for or mounted the bug. I make it create an HTML report containing the next:
- Every a part of the implementation that I would like to check
- Direct hyperlinks into the product to precisely the place to check it. For instance, if I’m testing a chat, it offers me a hyperlink on to that chat, so I don’t should navigate the product myself
- Two buttons, one for approving the characteristic and one for saying that it wants extra work
- An enter subject the place I may give my suggestions on find out how to repair it and what’s flawed
I then even have a duplicate button on the HTML report in order that I can simply copy the output of the report, i.e., what I answered for the completely different components of the report, and I can merely paste it into Claude Code once more, have it proceed working, after which current me a brand new HTML report so I can proceed like this till the whole lot is examined and authorized. In that case, I can after all merge the whole lot and get it into manufacturing.
Conclusion
On this article, I mentioned find out how to immediate Claude Code and different coding brokers successfully. The science of prompting coding brokers has modified loads over time; at first, the way you worded your prompts or the order wherein you had the textual content in your immediate mattered loads. These days that stuff doesn’t actually matter in any respect, however prompting continues to be a ability that it is advisable grasp. You, for instance, want to inform the brokers find out how to take a look at their implementations. It is best to focus on with the brokers find out how to do an implementation, resolve any ambiguities, and so forth. I feel the way in which you immediate the brokers will change once more over the subsequent 12 months or two, and I’ll simply preserve up to date on the best approach to work with brokers and submit one other article as soon as I consider the way in which I work together with my brokers has modified sufficient since this text.
👉 My free eBook and Webinar:
🚀 10x Your Engineering with LLMs (Free 3-Day Electronic 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





