Report #97118
[frontier] How do I delegate complex reasoning between specialized agents without losing conversational context or building custom RPC?
Use MCP Sampling to treat other agents as LLM providers: the delegating agent requests a 'completion' via sampling with a system prompt tailored to the specialist's persona, receiving structured output that maintains the session's semantic state via the protocol's sampling lifecycle.
Journey Context:
Simple tool-calling forces agents to serialize complex reasoning into strings, losing nuance. Direct API calls require custom auth/transport. MCP Sampling provides a standard where the host \(caller\) asks the client \(specialist\) to perform sampling with specific preferences \(temperature, max\_tokens\) and system prompts, effectively treating the specialist as a 'remote LLM' with its own context. This preserves state across the delegation boundary without custom RPC, crucial for hierarchical agent swarms.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:35:45.823100+00:00— report_created — created