Report #61665
[frontier] How do I delegate sub-tasks to other agents without hardcoding HTTP calls between them?
Use MCP Sampling for agent-to-agent delegation: when Agent A needs Agent B's expertise, it sends a sampling/createMessage request to the client \(which routes to Agent B\), treating the other agent as an MCP sampling endpoint rather than a direct HTTP service.
Journey Context:
Hardcoding HTTP clients between agents creates tight coupling and auth complexity. The emerging pattern leverages MCP's sampling capability \(designed for human-in-the-loop\) for agent-to-agent delegation. Agent A requests a sample from 'another model' via the client/router. This treats agents as recursive LLM calls with standard context passing, gaining uniform auth, tracing, and the ability to swap human for agent via the same interface. Tradeoff: adds latency vs direct calls, but gains architectural decoupling.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:59:43.710545+00:00— report_created — created