Agent Tool Radar field guide
Choose coding agent memory by what must be remembered
Coding agent memory is useful when it preserves the right context and lets you correct it. Separate durable project rules, session continuity and retrieved facts before choosing a memory tool. Storing more text is not the same as remembering the current truth.
Three different jobs hide behind “memory”
Project instructions describe how work should be done: the supported test command, repository boundaries or a required review step. Session continuity describes what happened in an ongoing task. Retrieval supplies facts from a larger store when needed. These have different owners, lifetimes and failure modes.
Claude Code documents project instruction files and auto memory as distinct mechanisms. Its documentation is the right source for current loading rules and controls. The MCP reference memory server is a different building block: a local knowledge graph containing entities, relations and observations, accessed through tools. It is not a universal replacement for a client’s native memory.
For agent memory tools, begin with the smallest durable representation that can answer the actual question. “Which package manager does this repository use?” may belong in a short project guide. “Which services depend on this contract?” may require linked architecture records. “What was I doing ten minutes ago?” may be handled by the existing session.
| Context type | Practical home | Main failure to prevent |
|---|---|---|
| Team-wide working rules | Versioned project instructions | Outdated commands presented as mandatory |
| Current task progress | Task notes or native session continuity | A stale handoff mistaken for current state |
| Decisions with evidence | Versioned decision records or governed retrieval | Unsupported conclusions losing their source |
| Relationships across many entities | Scoped graph or retrieval store | Cross-project leakage and stale relations |
Worked example: remembering a database migration
A team is moving a background job from one queue to another. During planning, the agent records that the old consumer must remain available until deployment completes. Two weeks later, the migration is finished. If memory preserves only the sentence “keep the old consumer,” future work may reintroduce a component the team intentionally removed.
Instead, create a decision record with a status, date, scope and pointer to the deployment evidence. During the migration, mark the compatibility rule active. After rollout, update the record to completed and record what replaced it. A retrieval answer should show the current status and supporting record, not just quote the oldest matching sentence.
The distinction is operational: a general instruction says to check migration status before removing consumers; the decision record says which migration is complete; the task note says what remains today. Keeping these separate lets the agent follow a stable procedure while the underlying facts change.
Illustrative decision record Subject: billing-jobs queue migration Status: completed Scope: billing worker and producer Decision: new jobs use the replacement queue Evidence: versioned deployment record and migration PR Supersedes: migration-period dual-consumer requirement Owner: billing platform team Recheck when: producer or worker deployment model changes
Design the write path before adding retrieval
Decide who can add, edit, delete and export memory. For shared engineering facts, prefer reviewable writes with an identifiable source over silent accumulation. A proposed record from a chat can remain a draft until a maintainer confirms it. Make corrections possible without rewriting historical evidence or pretending that a disproven assumption was always true.
Choose a project identifier that stays stable across renamed folders and separate organizations or clients deliberately. Specify whether a store is personal, repository-specific or team-wide. A successful search result from the wrong project is a serious failure even when its text looks plausible.
- Observe
Capture a useful fact with a source and project scope.
- Validate
Confirm its status, owner and expected lifetime.
- Retrieve
Return the relevant record with provenance.
- Reconcile
Correct, supersede or delete when the underlying fact changes.
Evaluate privacy and retrieval quality separately
A local memory file can still enter model context, backups, logs or synchronization. A hosted store introduces another operator and its own retention and access controls. Trace where data is stored and where retrieved text is sent. Do not store API tokens, personal customer records or full incident logs merely because they might help a future answer.
Test a small representative set of questions: a current decision, a superseded rule, an ambiguous project name and a fact that was never recorded. Good behavior includes returning “not found” or asking for scope. If the system confidently fills gaps, adding more historical notes can increase apparent authority without repairing accuracy.
Troubleshoot forgetting, contamination and stale answers
If the agent forgets a rule, first determine whether it was ever written durably and whether that client loads the chosen location. If a graph search misses an entity, inspect naming and query behavior before adding duplicate records. If a fact appears in the wrong project, stop broad retrieval and correct the namespace or access boundary.
If deleted information returns, inspect every copy: source documents, indexes, embeddings, exported backups and native session context. Deleting one observation does not establish end-to-end erasure. Document the actual deletion behavior of the chosen product and verify with a new session. Keep long-term memory useful by reviewing obsolete records when the underlying system changes.
Documentation reviewed 2026-11-02 · Agent Tool Radar editorial. Source-based guidance; no independent benchmark implied.