Report #90627
[frontier] agents losing context between restarts or exceeding context window with chat history
Treat Model Context Protocol \(MCP\) Resources \(not just Tools\) as a persistent memory bus: implement MCP servers that expose 'resource://memory/working-memory' and 'resource://memory/ephemeral-cache' URIs. Agents read these into system prompt context on startup and write deltas back via resource update notifications, decoupling memory from the LLM's context window.
Journey Context:
Developers currently stuff chat history into the context window or use external vector DBs with RAG, but this loses working memory \(e.g., 'I was halfway through refactoring this function'\) when the agent restarts. The MCP 2025 spec distinguishes Resources \(stateful, addressable by URI\) from Tools \(idempotent actions\). By treating memory as Resources, you get lifecycle management \(subscriptions, update notifications\) and can swap backends \(Redis, SQLite, S3\) without changing agent code. The anti-pattern is using MCP Tools for memory \('tool: remember\_this\(\)'\), which breaks the idempotency assumption and causes race conditions in multi-agent setups. This pattern is winning because it turns agents into stateless compute that attaches to durable memory, enabling horizontal scaling and crash recovery.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:42:44.289973+00:00— report_created — created