Report #90722
[frontier] Agents polling for state changes waste tokens and hit rate limits
Use MCP Resource Subscriptions to establish persistent streams, receiving JSON-RPC notifications when resource state changes instead of polling
Journey Context:
Naive implementations call tools repeatedly to check status \(e.g., 'is the build done?'\), burning context window and API budget. MCP Resources support 'subscriptions' where the server pushes 'notifications/resources/updated' events to the client. This shifts agent architecture from 'pull' to 'push', resembling event-driven systems. Complexity: requires handling out-of-order updates and subscription lifecycle management. Tradeoff: architectural complexity for long-lived connections vs 90% cost reduction. Essential for long-running agent workflows \(hours/days\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:52:19.862661+00:00— report_created — created