is an extremely efficient coding agent, which you should utilize to carry out most cognitive duties in your pc. Nevertheless, continuous studying continues to be a activity we’re struggling to show brokers. Moreover, continuous studying is a activity people are extremely good at.
You possibly can merely mirror on any activity you’ve been doing for a very long time. In nearly all circumstances, you’ll turn into higher at that activity over time, studying out of your errors and enhancing on them. This isn’t solely a matter of remembering what works and what doesn’t. It’s additionally about constructing an instinct for duties, which you merely achieve by doing them over time.

On this article, I’ll focus on how one can obtain related continuous studying together with your coding brokers. Continuous studying for brokers continues to be an unsolved problem, however I’ll undergo how I make my coding brokers be taught from their errors and enhance over time. Moreover, the contents I’ll cowl on this article will make your brokers much better on the duties you particularly need them to be good at, whether or not it’s making shareholder shows, resolving bugs in your particular codebase, or one thing utterly completely different.
Why do we’d like continuous studying
We’d like continuous studying as a result of we at all times wish to turn into higher on the duties we do. Think about in case you’ve been a programmer for a few years, and also you’re nonetheless making primary errors, comparable to forgetting colons after an if assertion in Python.
Clearly, making such errors constantly may be very ineffective, which is why we wish to keep away from it. We wish to turn into higher at duties, to turn into simpler at them, and thus be capable to remedy tougher issues.
Engaged on a activity for an extended time period will show you how to construct up an instinct for the duty, and show you how to remedy extra superior issues in that space
You possibly can think about a recent coding agent as a brand new worker. Clearly, they’ll make some errors to start with, since they don’t perceive your preferences or codebase. Nevertheless, while you inform the brand new worker do one thing, you anticipate them to be taught that over time.
When you don’t take particular measures to make your coding brokers keep in mind such issues, they’ll possible neglect them, which is why you want to take lively measures to attain continuous studying on your coding brokers.
The right way to Obtain Continuous Studying
On this part, I’ll cowl some particular methods I take advantage of every day to attain continuous studying. These methods come from speaking to others working in the identical subject, inspiration from the OpenClaw repository, and my very own experimentation.
The generalize data command
The best and handiest method to make Claude Code be taught from its errors is a basic data command. It is a easy command (also called a talent, merely a markdown file containing a immediate) to be taught from a given thread.
I sometimes run this command each time I end a dialog from Claude Code, performing a single activity. For instance, if I’ve:
- Accomplished a characteristic implementation
- Resolved a bug
- Made a presentation
- Completed checking manufacturing logs
I merely run my command with:
/generalize-knowledge
This works as a result of I’ve saved a generalized data command, which is a immediate just like the one under:
Generalize all of the data from this thread into claude.md and brokers.md.
Write down any info that may be helpful for a future agent working
on this repository. Additionally word down any points you encountered, and the way you
resolved them.
Write the duties you carried out to the done-tasks.md file with time and date,
and a abstract of the duties.
In essence, I inform the mannequin to be taught from its errors and word down something that may be helpful for future interactions.
I additionally make the agent write down the duty it carried out, so I’ve a single file containing all the things I’ve carried out. This isn’t strictly needed, however I discover it good to have this kind of abstract out there.
Additionally word that this assumes you at all times carry out a single activity in a given Claude Code thread, which you positively ought to do to get one of the best outcomes. This additionally applies to each different coding agent out there, just because a single activity for a single thread helps the brokers keep targeted and keep away from noise filling up their context.
Day by day reflections
To construct on the final part, you can too have day by day reflection settings. When you for instance have a number of brokers working all through the day, you may have a cron job (a command which is timed to run at a selected interval), to undergo all logs on your coding agent within the final 24 hours, and word down any helpful info. This builds on the overall data command, however works on a better stage, because the agent going by your logs won’t solely have entry to a single thread, however all the things you’re engaged on.
This could possibly be helpful, because the completely different perspective can result in completely different notes being written down, which can show you how to and your coding brokers turn into extra environment friendly.
Expertise
Expertise is one other idea I’d prefer to cowl, which actually helps contribute to continuous studying and helps Claude Code be taught from its errors. The earlier sections I’ve coated, principally writes to generic CLAUDE.MD, AGENTS.MD, WARP.MD recordsdata. Expertise, nonetheless, are extra particular recordsdata telling the agent carry out particular duties.
That is considerably just like the generalize data command, however a bit completely different since generic recordsdata word that generic errors and options, whereas abilities cowl far more particular matters. Some examples of abilities are:
- How the agent ought to act when sorting your e-mail
- How the agent ought to act when sorting your calendar
- The right way to use a selected API or bundle. That is significantly vital for smaller and unknown API’s and packages that aren’t coated nicely within the pre-training of the LLMs
- The right way to method fixing bugs in a selected repository
As you may inform, abilities are extra particular. Thus, everytime you begin working with a brand new bundle, API, or a brand new activity generally, I urge you to create a talent for that. The talent ought to cowl all the things that’s helpful to know when working with the API or on the duty. Together with:
- The right way to interpret the supplied duties inside the given matter
- The right way to method fixing the duties
- Earlier errors made, and the way they have been solved
The extra info you retailer, the higher. Your coding agent will then normally load this talent dynamically in case you begin engaged on a associated activity.
For instance, in case you ask your agent to kind your e-mail, it is going to dynamically load the e-mail sorting talent, so it is aware of act. This helps your coding agent keep away from the earlier errors it’s made when sorting by your e-mail.
Conclusion
On this article, I’ve coated make Claude Code and different coding brokers be taught from their errors. I’ve mentioned three foremost methods to make use of, together with making a generalize data command, doing a day by day readthrough of agent logs, and actively utilizing abilities when engaged on duties. I consider studying out of your errors is extremely vital, each for people and machines. When you can successfully make your coding brokers be taught from their errors, you’ll turn into way more environment friendly at making use of them, and thus get a significant benefit in comparison with different brokers that don’t be taught from their errors.
👉 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
















