with AI is an efficient method of accelerating coding pace. AI brokers can deal with loads of the easy and repetitive duties, when you can act as an orchestrator on your brokers.
An issue I usually encounter, nonetheless, is that I’ve extra context in my head than an AI agent might ever have. This might, for instance, be:
- Enterprise goal with a function
- Technical discussions are occurring orally within the workplace
- Conferences the place we mentioned completely different matters
- Historic information
The similarity between all of those is that this data usually isn’t written down, and is unquestionably not out there to your AI agent when implementing code.

Nevertheless, everyone knows that to be as efficient a programmer as potential, you want intensive context. It is advisable to know why a function is being constructed to make the correct choices when implementing the code. The technical discussions within the workplace are necessary to understanding the codebase, and initiatives are sometimes formed in conferences. The query then is:
How can we make AI have the identical context as human programmers?
I’d argue the reply is to be strict about writing down all information (which is now so much easier utilizing AI instruments), and offering tooling for the AI to have entry to this data.
On this article, I’ll talk about how I’m attempting to facilitate my coding agent to be as environment friendly as potential. I imagine a big a part of that is merely to verify the AI has entry to the identical data I’ve, and I’ll talk about three particular strategies I take advantage of every single day to make this occur.
I believe an necessary level in why coding agent isn’t more practical, is just because they don’t have entry to the identical context people have entry to
Why present all context to the AI
The principle purpose for offering your AI coding agent as a lot context as potential is that the extra data the AI has, the higher it should carry out.
Think about you needed to implement a function, say, for instance, a software to summarize conferences. Creating this function is extremely troublesome in the event you don’t know:
- Which repository ought to the code belong to?
- Ought to it summarize all conferences, or simply exterior conferences?
- How briskly does the summarization must occur? 5 seconds, or 5 minutes?
These questions are all contexts that you simply get as a human {that a} coding agent doesn’t natively have entry to.
You realize which code repository to implement the code in, since you’ve labored within the repository earlier than.
You realize it ought to solely summarize exterior conferences, and that it solely must summarize in 5 minutes, as a result of it was mentioned in the course of the shaping assembly final week.
Nevertheless, in the event you don’t present your coding agent with this context on implementation, it should by no means be capable of implement the function the best way you need it applied.
If the agent lacks context that you’ve got, you’ll discover the agent begins performing undesired actions. That is irritating and time-consuming, however could be eradicated by syncing your context, with the coding agent’s context
3 Strategies to Present Context to AI
On this part, I’ll cowl particular strategies I take advantage of in my day-to-day to offer my coding brokers as a lot context as potential. I imagine these strategies are essential to creating me environment friendly as a programmer, and I’m continually on the lookout for extra strategies to change into much more efficient.
Retailer IaC schema in a Markdown file
A easy method you need to use to provide the AI extra context is to retailer your Infrastructure as Code in a simple-to-access file.
IaC is the code representing data equivalent to:
- Desk names
- S3 buckets and prefixes
- Manufacturing logs
- Permissions,
While you’ve been working in an organization for some time, you in all probability have all of this data memorized. You keep in mind the desk names of crucial tables, and which S3 buckets retailer what, and wherein prefixes.
Nevertheless, your coding agent doesn’t have easy entry to this, except you present them entry. The best method to do that is:
- Retailer all of your IaC repositories in a single folder
- Inform a coding agent to undergo all of those repositories and summarize all of the IaC in a single Markdown file
- Now you may check with this Markdown file everytime you need your agent to work with something IaC
It’s troublesome to clarify how a lot time this has saved me. My agent doesn’t need to listing all database tables earlier than discovering the correct desk storing the knowledge it’s on the lookout for. As an alternative, it merely is aware of all of those desk names and immediately accesses the correct data. This makes the agent so much quicker and in addition cheaper, because it’s spending fewer tokens to search out the knowledge it’s on the lookout for.
Discover when your coding agent is lacking context
One other necessary level is to be alert to when your AI is lacking context. If you happen to didn’t summarize your IaC (as defined within the final part), you’ll in all probability discover the agent is all the time:
- Itemizing all desk names
- Reasoning about which desk is the proper one to entry now
- Strive accessing one desk, and generally be improper, and need to strive one other desk
This can be a results of your coding agent lacking necessary context. Everytime you discover a sample like this, you need to instantly interrupt and inform the coding agent:
While you search for paperwork, you will discover them within the desk referred to as
DocumentTable. Memorize this in AGENTS.md
Now the agent will keep in mind this for subsequent time, and also you’ll save loads of time and tokens.
I urge you to all the time search for conditions the place your coding agent is struggling. If it’s taking longer than typical for a job, it’s normally as a result of it’s lacking context, and it’s your job to offer that context to the AI coding agent.
Summarize conferences with AI instruments
One other easy method you need to use to offer your coding agent extra context is to summarize conferences with AI instruments, equivalent to Granola, and supply this as context on your coding agent.
For instance, in the event you had a shaping assembly discussing how one can implement a function, you may summarize that assembly and supply it as context to your coding agent when implementing the function.
This manner, the agent has entry to all the data you do about how the function must be applied. This can be a low cost and easy method you may make the most of to enhance the context of your coding agent.
To amend the final part, I additionally need to spotlight that shaping conferences ought to usually lead to correctly formed duties in challenge administration instruments equivalent to Linear.
The function you’re implementing, for instance, must be summarized and formed fully right into a single Linear challenge or challenge. If that is so, you need to solely have to offer for AI agent entry to the Linear challenge (which you are able to do with the Linear MCP), to make sure it has entry to all of the related data.
Conclusion
On this article, I’ve coated how one can facilitate more practical programming with AI coding brokers. I’ve mentioned how a quite common drawback for coding brokers is that they don’t have entry to the identical context human programmers have. That is easy as a result of matters are mentioned in conferences and across the workplace, and this data isn’t written down. I’ve highlighted three particular strategies I take advantage of to provide my coding agent as a lot context as potential. I imagine that within the coming years, we’ll see nice enhancements in coding brokers’ efficiency, just because we’re higher in a position to present all of them the context that’s wanted to successfully full duties.
👉 My Free Sources
🚀 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:
📩 Subscribe to my e-newsletter
🧑💻 Get in contact
✍️ Medium
















