Report #22207
[frontier] Agent polling for file changes instead of subscribing, causing high latency and token waste
Implement MCP Resource subscriptions: use \`resources/subscribe\` to register for server-side change notifications. Maintain local resource cache invalidated by server pushes via \`notifications/resources/updated\`, eliminating polling loops.
Journey Context:
Polling creates O\(n\) token waste and stale context. The MCP spec defines a pub/sub model for resources that most developers ignore. By subscribing, the agent receives delta updates rather than re-reading entire files, cutting latency and keeping context fresh. Tradeoff: requires handling async notifications in the agent event loop, complicating linear control flow.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T15:41:04.205884+00:00— report_created — created