Back

Towards self-learning coding agents

2 minute read1 minute read

So often, you work with coding agents when its making mistakes and you ask why don’t you remember this? A human would have remembered many of the small details and feedback it’d have given. With coding agents, this doesn’t come by default and they need to store this information somewhere.

You also dont wan’t to manage this manually, as its a quite tedious and involved process. To solve this, we’ve built an experimental plugin for self learning:

https://cursor.com/marketplace/cursor/continual-learning

Towards self-learning coding agents – image 1

This will read existing chats, extract learnings, preferences and other relevant workspace information and then store it in AGENTS.md in a simple bulleted format.

Last year, we both shipped and unshipped memories. They built on a sidecar approach where a smaller model would monitor chats and extract the same information when it found something useful. We found this approach to be clunky, require more technical hoops, but most importantly not provide good memory suggestions. And that is why we unshipped it.

However, a need for long term persisted memory has not gone away. Agents have gotten better, and we have started adapting Cursor harness to be more file first focused: Dynamic context discovery

As chat transcripts are just text stored in files, agent can access them with two tools it already has access to:

  1. Search (grep + semsearch)
  2. Read file

One challenge becomes formatting the transcripts in way that its flexible for rendering and easy to query. Fortunately, agents are good at retrieving and reasoning over what is relevant information given the task at hand, and that has enabled a plugin like this to exist

See the demo on X

Building truly continual learning on a deeper level is something that’ll take time, but is something we’re working towards!

Try out the plugin and let me know what you think!

Coding agent repeats mistake, you ask why don’t you remember this? Human would remember small details and feedback. Coding agents do not by default. They need storage.

Managing that by hand: tedious, involved. So we built experimental plugin for self learning:

https://cursor.com/marketplace/cursor/continual-learning

Towards self-learning coding agents – image 1

Reads existing chats, extracts learnings, preferences, other relevant workspace information, stores it in AGENTS.md as simple bullets.

Last year we shipped and unshipped memories. Sidecar approach: smaller model watched chats, extracted same information. Clunky, more technical hoops, and most important, bad memory suggestions. So we unshipped it.

Need for long term memory remains. Agents got better, and Cursor harness becomes more file first: Dynamic context discovery

Chat transcripts are text in files. Agent reaches them with two tools it already has:

  1. Search (grep + semsearch)
  2. Read file

One challenge: transcript format flexible for rendering, easy to query. Agents are good at retrieving and reasoning over what is relevant for task. That makes this plugin possible

See the demo on X

True continual learning at deeper level takes time. We work towards it!

Try the plugin, tell me what you think!