Skip to content

delegate_task ignores subagent model config — always inherits parent model #11999

@yonefive71

Description

@yonefive71

Bug Description

delegate_task always runs subagents on the parent session's model, ignoring the delegation model configured in config.yaml.

Steps to Reproduce

  1. Configure a delegation model in ~/.hermes/config.yaml:
delegation:
  model: claude-sonnet-4-20250514
  provider: anthropic
  1. Run the parent session on a different model (e.g. claude-opus-4-6)

  2. Use delegate_task to spawn a subagent and have it report its model:

delegate_task(goal='Report what model you are running on.')
  1. The subagent reports claude-opus-4-6 (the parent model), not claude-sonnet-4-20250514 (the configured delegation model).

  2. The result metadata also confirms: "model": "claude-opus-4-6"

Expected Behavior

Subagents spawned via delegate_task should use the model specified in delegation.model config, not inherit the parent session's model.

Actual Behavior

The delegation model config is ignored. Subagents always run on the parent model regardless of config. This persists across /reset commands and config reloads.

Environment

  • Hermes Agent v0.10.0 (2026.4.16)
  • Python 3.11.15
  • Provider: anthropic
  • OS: Linux aarch64

Impact

This defeats the purpose of model tiering for cost efficiency — delegated grunt work that should run on a cheaper model (Sonnet) instead consumes expensive Opus tokens.

Workaround

Spawning a subagent profile via terminal (iris chat -q "...") correctly uses the configured model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High — major feature broken, no workaroundcomp/toolsTool registry, model_tools, toolsetstool/delegateSubagent delegationtype/bugSomething isn't working

    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