Report #88996
[frontier] How do I give my agent access to long-term memory without reloading the entire context every session?
Expose vector stores and knowledge graphs as MCP Resources \(not Tools\) using the \`resources/list\` and \`resources/read\` endpoints with URI templates \(e.g., \`memory://episodic/\{user\_id\}\`\), allowing the host to manage caching and subscriptions.
Journey Context:
Developers initially exposed memory via Tool calls \(e.g., \`search\_memory\`\), conflating stateless computation with stateful data retrieval. Tools are for 'doing,' Resources are for 'knowing.' By modeling memory as Resources, the host \(Claude Desktop, IDE\) manages ETag-based caching and pushes updates via \`notifications/resources/updated\`. This decouples the agent's working memory from retrieval mechanism, effectively creating a virtual memory layer. In 2025, this replaces naive 'context stuffing' with a paged memory architecture where the LLM references stable URIs instead of inline text.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:58:03.153440+00:00— report_created — created