Building Agent M
I realized a while ago that I was spending too much time re-prompting my agents and it was getting in the way of progress. I set out to fix that problem and called it Agent M.
The first problem was the one I’d been dealing with for a while: Agents start every session from zero. What I wanted was a memory that carries across sessions and gets better the longer we work together.
I started with the storage for the memory: a vault Agent M has permanent access to. When I start a session, it can quickly find relevant memories to get started. As we work, it writes lessons back to the vault as new memories. At first it just kept a project’s notes, and I would have to ask it to check its memory for things, but a few weeks in, it was clear that my workflows were much improved and I was re-prompting much less.
Next I wired in some workflows: planning, reviewing, releasing. This standardized repeated actions, so I spend my time approving work instead of describing it. Then I made it portable: I move between Claude Code and Antigravity depending on the task, and sometimes I want to ask Agent M for help while I’m on my phone, so I’m working on that. The goal is that the memory and the workflows are always just there.
I had a rough version the same week, a decent one by mid-May, and it’s been an ongoing project since. I’m on my third major version as I write this. It’s still far from great, but I honestly don’t know how I worked without it.
I made this blog with help from Agent M. It’s becoming an indispensable part of my daily workflow. I suspect that over time, memory will continue to be an important part of agentic workflows. If I’m right, it will become a common underlying foundation for an individual’s agents, and probably a target for ‘vendor lock-in’, where you are tempted to work with just one frontier lab’s models or harness because it knows how you work the best. Personally, I hope to avoid that.
Liked this? Get new experiments by email — or grab the RSS.