Skip to content

[TASK] Implement Per-Call Provider and Model Overrides for delegate_task #34462

@shang-vikas

Description

@shang-vikas

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:

  1. Discovery Pipe: Implement build_delegation_capabilities_prompt() and inject it into stable_parts of the system prompt in run_agent.py.
  2. 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).
  3. Verification: Implement 24 test cases covering priority chain and edge cases.

Technical Constraints

Labels

  • in-progress, delegation, staff-sde

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/agentCore agent loop, run_agent.py, prompt buildertool/delegateSubagent delegationtype/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions