Description
Implement a two-pipe system for delegate_task to allow the main model to discover authenticated providers and reasoning effort levels (Discovery Pipe) and then spawn subagents with these specific parameters (Action Pipe).
Implementation Plan
Reference: .hermes/plans/per-call-provider-model-delegation.md
Key Deliverables:
-
Discovery Pipe: Implement
build_delegation_capabilities_prompt() and inject it into stable_parts of the system prompt in run_agent.py.
-
Action Pipe:
- Update
DELEGATE_TASK_SCHEMA to support provider, model, and reasoning_effort.
- Implement resolution chain:
per-call $\rightarrow$ config $\rightarrow$ parent.
- Move credential resolution inside the batch loop to support heterogeneous tasks.
- Fix 'Provider-only override' trap (resolve default model for target provider).
-
Verification: Implement 24 test cases covering priority chain and edge cases.
Technical Constraints
Labels
- in-progress, delegation, staff-sde
Description
Implement a two-pipe system for
delegate_taskto allow the main model to discover authenticated providers and reasoning effort levels (Discovery Pipe) and then spawn subagents with these specific parameters (Action Pipe).Implementation Plan
Reference:
.hermes/plans/per-call-provider-model-delegation.mdKey Deliverables:
build_delegation_capabilities_prompt()and inject it intostable_partsof the system prompt inrun_agent.py.DELEGATE_TASK_SCHEMAto supportprovider,model, andreasoning_effort.per-callconfigparent.Technical Constraints
delegation.*config > laurent inheritance.stable_partsto maintain prompt cache efficiency.Labels