All posts

an ai agent’s memory

· · 5 min read
XLinkedIn
an ai agent’s memory

This is still a work in progress. These are patterns I’m finding useful right now, not a finished framework. The more I fuck around the more I find out. That’s part of why I want to share the learning as I go.

Edited with Sofia

Over the past couple of weeks, I’ve been running experiments with personal agents: single-player (terminal.co), multiplayer (@usetabapp), and ephemeral (maio.cv) / (naundi). A lot of people are working on this right now. These are just my experiments and what I’m picking up along the way.

Some of this started earlier. Last year we shipped the Terminal AI beta as an extension of terminal.co, our token marketplace. It wasn’t just an idea. You could swap, bridge, send, and set limit orders onchain through tools, and the interface was a chat. That was a real learning experience, mostly about how much an agent needs to know about you and what it already did before you can trust it to act.

Since then things have moved fast. Agents are much more capable. But the hardest part is still the same: memory and context.

I’ve written before that context might be the next moat. Building agents makes that concrete. Context isn’t just data you have access to. It’s what the agent is aware of right now, what it remembers, and what it can prove it did.

So I’ve started thinking about these types less by interface and more by who the agent is for, how long its memory should last, and how much awareness it needs.

A single-player agent works for one person. It needs continuity: what you asked it to manage, what’s already done, and what still stands. Some of these wait for you to speak. Others are more like a manager that watches, prepares, and sometimes acts between prompts. That’s where Terminal AI was pointing.

A multiplayer agent works in a group. Its context is shared, so it has to track who said what, which task they meant, and whose approval counts. Availability is not consent.

An ephemeral agent is built to forget. Memory is short or session-bound. The design question is what should disappear when the session ends, and what result still needs to survive.

A lot of the public conversation is about single-player versus multiplayer, and single-player now includes more proactive managers, not just assistants that wait for a prompt. The distinction I keep coming back to is how long memory should last, and that a fluent reply still isn’t proof something happened.

The other big shift is where these agents live. They’re moving out of apps and dashboards into headless interfaces like iMessage. There’s no screen to hide behind, no buttons or state on display. The text thread is the whole interface, so memory, awareness, and verification matter even more.

A few lessons keep coming up across these.

Awareness and memory are not the same thing. Recent conversation helps an agent understand what you mean. It doesn’t reliably tell it what still needs doing. I’ve been using a short window of recent messages for awareness, alongside saved task state: the objective, constraints, completed work, and next step. Recent chat explains what you mean now; saved task state is what remains true.

That separation matters when you interrupt an agent, correct it, or return later. A side question shouldn’t make it forget the original task. “Never mind” should drop a pending question, not the whole task. And once you pick one option from a list, that choice is the focus. The other candidates can stay in longer memory, but they shouldn’t keep acting like “here.”

If the agent can’t tell whether two things belong together, it should ask. Guessing that they share a place, a task, or a meaning is how it quietly goes off track.

Another lesson: a convincing reply isn’t evidence that something happened. An “ok” from an API isn’t either, and neither is a link or file that was “sent” but isn’t actually usable. The agent needs to check the result as the person will see it before saying “done,” and it shouldn’t remember that it did something until that side effect succeeds. Bad memory is worse than no memory. Names pulled out of fluent prose also aren’t ground truth. A recovered place or fact has to look real, and a bad parse shouldn’t overwrite a known one.

The application should enforce permissions and validate actions, even when the model sounds certain. A prompt is not enough for “don’t do that yet,” or for limits the channel or the data simply don’t support. If the data isn’t there, the app should say so, not let the model invent it.

The most useful tests have been messy conversations: changing direction, replying to an older message, interrupting an action, naming something the agent wasn’t already thinking about, or saying “don’t do that yet.” A concrete named request should still resolve even if the remembered context is stale. Those moments expose more than a clean demo does. Isolated tests miss a lot of this.

I’m increasingly designing around a simple loop: understand, act, verify, remember, continue. Remember, here, means a durable record of the objective, constraints, and verified work, not a pile of leftover chat. That record is the context that compounds.

I’ll continue to fuck around and hopefully I’ll get closer to finding out. Cheers