Agent Delegation
Brain hands off subtasks to specialist agents — any CLI binary or HTTP-driven agent — through a single generic trait. The orchestrator only knows the trait; implementations live here.
Core types:
- [
AgentDelegate] — the trait every specialist agent implements - [
AgentTask] / [AgentResult] — request/response envelope - [
AgentRegistry] — looks up delegates by name, with aliasing - [
SubprocessAgentDelegate] — generic subprocess-backed adapter