feat: add multi-agent orchestration pattern HUD-574
[!NOTE] Introduces a complete multi-agent orchestration pattern with a conductor and sub-agents, plus a runnable example.
- Adds
cookbooks/multi-agentwith concepts, patterns, and code snippets; links exampleexamples/07_multi_agent.py(browser + codingAgentTools, coordinatorEnvironment, CLI flags)- Updates docs navigation to include the new cookbook page
- Refines
hud/agents/resolver.resolve_clsto route Codex-capable models toOpenAIAgentonly when the matched model string is Codex-capable; avoids alias-based misrouting- Adds tests covering Codex routing and provider mapping in
hud/agents/tests/test_resolver.pyWritten by Cursor Bugbot for commit 971f613ee4cb1ed4053e6d37df3f543857b7de01. This will update automatically on new commits. Configure here.
This is a solid foundation for multi-agent orchestration — the conductor/sub-agent pattern with typed Environment handoff is the right abstraction for CUA evals.
A few observations from an eval design perspective:
On eval attribution in multi-agent traces: When a sub-agent fails in the middle of a task, the current orchestration pattern doesn't surface which sub-agent's output caused the downstream failure. For eval purposes, this is the core challenge — TaskCompletionMetric at the conductor level just gives you a 0/1, but you can't tell if the browser sub-agent retrieved wrong context vs the coding sub-agent wrote bad code. This connects to my open issue #388 about the gap between tool-call correctness and output correctness.
Would it make sense to add a sub_agent_eval_results field to the conductor's EvalResult, so each sub-agent's intermediate verdict is surfaced alongside the final task outcome? That would let you pinpoint which step broke without having to re-run the full trace.
On the resolver routing: The fix to route Codex-capable models via OpenAIAgent only when the model string is explicitly Codex-capable is the right call — alias-based misrouting is a silent failure mode that's hard to catch in evals.
On the example: 07_multi_agent.py would be even more useful as an eval scenario with a ground-truth expected output, so users can see how to score orchestrated agents end-to-end, not just run them.