Long-running AI agents are hitting a wall with context windows, but a new architectural pattern called Chain of Recall offers a way out. Introduced in the November 1, 2026, design essay "Exploring Super-agent Design" by DeepSeek Harness, the approach treats the context window like a cache. Instead of stuffing every interaction into the prompt, the system assigns permanent IDs to Triggers, Threads, and Workers, allowing agents to fetch specific memories on demand.
The Cache Architecture: Inline vs. Spill
The core mechanism splits data into two operations: Inline and Spill. Critical elements like IDs, short summaries, and neighboring messages stay in the context window. Everything else, such as a 41 KB CI log, gets spilled to external storage, leaving only a pointer behind. When an agent needs the full log, it executes a targeted API call using the stable ID. This prevents token bloat while ensuring that critical details like error codes or PR numbers aren't lost to aggressive summarization.
Navigating the Reference Graph
Chain of Recall relies on an immutable reference graph where Triggers link to Threads, and Threads are managed by Workers. Retrieval is a multi-hop process. For example, to answer why retry logic was added to a payments client from three days prior, the agent locates the Thread ID in its index, fetches the Worker report, and then traces the Worker back to the original Trigger payload. This exact-match retrieval avoids the pitfalls of vector similarity search, which often fails when the query doesn't semantically match the stored text.
API Guarantees and Implementation Realities
This pattern isn't a plug-and-play feature yet; it's a design pattern requiring robust backend infrastructure. The essay notes that APIs must guarantee IDs never change, even after migrations, and that unknown IDs return a strict 404 Not Found rather than an empty 200 response. The authors explicitly state that Chain of Recall is not an official DeepSeek product but a concept implemented in the dsh-superagent-prototype. It does not replace RAG or summarization but complements them, specifically for structured event histories like GitHub PRs and CI pipelines.
Key Takeaways
- Chain of Recall uses stable IDs (Triggers, Threads, Workers) to create a navigable memory graph.
- Context is managed like a cache: keep pointers inline, spill large payloads to external storage.
- Retrieval is exact via ID links, contrasting with approximate vector similarity search (RAG).
- The pattern requires strict API contracts: immutable IDs and 404s for missing records.
- Currently a prototype concept from DeepSeek Harness, not a shipped product feature.
The Bottom Line
This is the missing link for agent infrastructure. We've been throwing raw context at models for too long; Chain of Recall forces us to build proper memory databases with referential integrity. If your agent can't trace a PR back to a specific CI failure without hallucinating, you don't have memoryβyou have amnesia. Time to start treating IDs like primary keys.