Report #97132
[frontier] How do I keep an agent's context fresh without polling vector stores or rebuilding the entire prompt each turn?
Implement MCP Resource Subscriptions: the agent subscribes to \`resource://\` URIs via \`resources/subscribe\`, and the MCP server pushes \`notifications/resources/list\_changed\` events; the agent then fetches only the delta using \`resources/read\` with etag/versioning, triggering incremental context patches rather than full rebuilds.
Journey Context:
Standard RAG requires agents to 'poll' vector stores or resend large context windows each turn. The MCP specification includes a 'Resources' primitive \(distinct from Tools\) that represents contextual data \(files, database states\) with a URI scheme. Critically, the spec defines \`resources/subscribe\` and \`notifications/resources/list\_changed\`. Emerging pattern: Agents establish long-lived MCP connections where they subscribe to resources \(e.g., \`resource://slack/messages/general\`\). When the underlying data changes, the server notifies the agent, which then fetches only the delta \(using versioning/etags\). This creates 'live' agents that maintain synchronized context without constant polling, crucial for real-time collaborative agents and reducing token costs by 60%\+ in multi-turn scenarios.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:37:02.422037+00:00— report_created — created