Anchor · Agent memory · Draft · 2 min read
Memory is not a longer prompt.
Why I keep coming back to files, bounded context, and the distinction between remembering something and sending it to the model again.
The context window is a working surface.
When an agent loses track of something, making the prompt bigger is an understandable first response. Keep more history. Raise the output limit. Replay more tool results. But eventually the conversation becomes a mixture of instructions, observations, duplicate output, and half-finished reasoning that is expensive to carry and difficult to use.
I find it more useful to separate two questions: what should the system retain, and what should the model see on this call? They are related, but they are not the same storage problem. This distinction shaped the filesystem and context work I did at Obvious, and it keeps showing up in Anchor.
A file gives information an address.
A large tool result does not always belong in the next model request. It can be kept in sandbox storage, with a bounded observation and a pointer back to the full output. The model gets something it can work with now, and the system retains an address it can return to if the detail becomes relevant.
Anchor's built-in tools attempt this truncate-and-spill path. It is deliberately best-effort and bounded, not a promise of lossless archival. The useful property is that the observation can be smaller than the retained artifact. Custom tools still have to bound their own output; a harness cannot assume arbitrary handlers are already well-behaved.
Notes and summaries do different jobs.
A compacted conversation summary is an interpretation of earlier context. It is useful, but it is not a byte-for-byte substitute for everything the agent saw. Notes on disk are different: they are an agent-maintained artifact that can carry a decision, a hypothesis, or the next thing worth trying.
In Anchor, the notes file is not magically populated, and compaction does not rewrite it. A supplied thread store carries conversation state at run boundaries. Sandbox files and checkpoints carry a different kind of continuity. Calling all of these things ‘memory’ is convenient, but an SDK should make their different responsibilities visible.
A completed command is a fact, not a nudge.
Background execution made another distinction important. A transient engine advisory can help redirect a run without becoming permanent conversation history. The result of a command that actually finished is different. It is an observation the agent learned, and a later run may need it.
Anchor distinguishes runtime facts from transient engine advisories so the ordinary thread-history path can preserve those learned results. That provenance is not a secrecy boundary: the model sees the content, and it may repeat it. The host still decides what gets displayed, retained, and redacted.
Continuity is a systems property.
A note is only as durable as the place it is stored. A checkpoint can fail. A sandbox can be released. A local memory store disappears with its process. The presence of a filesystem does not solve those lifecycle decisions on its own.
That is why I prefer explicit interfaces to a single ‘memory enabled’ switch. I want to know where the transcript lives, what compaction can discard, which files survive a checkpoint, and what the next worker must restore. The model can work with a small context window if the surrounding system gives it a reliable way to find its way back.
Retaining information and replaying information are different jobs. An agent system should make that difference explicit.