Bug Description
The delegate_task tool consistently fails to honor the specified model for sub-agents, defaulting to a model with an insufficient context window (qwen/qwen-2.5-coder-32b-instruct), which results in repeated context_length errors. This blocks any task that relies on sub-agent delegation.
Steps to Reproduce
- Call
delegate_task with any number of tasks.
- The sub-agents will fail with the error:
Model qwen/qwen-2.5-coder-32b-instruct has a context window of 32,768 tokens, which is below the minimum 64,000 required by Hermes Agent.
Attempts to Resolve
The following methods have been attempted to force the sub-agents to use a model with a larger context window (e.g., anthropic/claude-3-haiku), all of which have failed:
acp_command and acp_args: Explicitly setting the model in the delegate_task call using acp_command='hermes' and acp_args=['--model', 'anthropic/claude-3-haiku'].
HERMES_MODEL Environment Variable: Setting the HERMES_MODEL environment variable to anthropic/claude-3-haiku before calling delegate_task.
config.yaml Modification: Directly editing $HERMES_HOME/config.yaml to set delegation.model to anthropic/claude-3-haiku.
None of these methods have been successful. The sub-agents continue to default to the qwen model, which suggests the delegation configuration is being ignored or overridden at a deeper level.
Expected Behavior
Sub-agents should use the model specified in config.yaml, the HERMES_MODEL environment variable, or the acp_args of the delegate_task call.
Actual Behavior
Sub-agents ignore all configuration and default to a model with an insufficient context window, causing all delegation tasks to fail.
Impact
This is a high-priority issue as it completely blocks the use of the delegate_task tool, which is critical for performing complex and parallel tasks. This prevents the completion of assigned cron jobs and other multi-step operations.
Bug Description
The
delegate_tasktool consistently fails to honor the specified model for sub-agents, defaulting to a model with an insufficient context window (qwen/qwen-2.5-coder-32b-instruct), which results in repeatedcontext_lengtherrors. This blocks any task that relies on sub-agent delegation.Steps to Reproduce
delegate_taskwith any number of tasks.Model qwen/qwen-2.5-coder-32b-instruct has a context window of 32,768 tokens, which is below the minimum 64,000 required by Hermes Agent.Attempts to Resolve
The following methods have been attempted to force the sub-agents to use a model with a larger context window (e.g.,
anthropic/claude-3-haiku), all of which have failed:acp_commandandacp_args: Explicitly setting the model in thedelegate_taskcall usingacp_command='hermes'andacp_args=['--model', 'anthropic/claude-3-haiku'].HERMES_MODELEnvironment Variable: Setting theHERMES_MODELenvironment variable toanthropic/claude-3-haikubefore callingdelegate_task.config.yamlModification: Directly editing$HERMES_HOME/config.yamlto setdelegation.modeltoanthropic/claude-3-haiku.None of these methods have been successful. The sub-agents continue to default to the
qwenmodel, which suggests the delegation configuration is being ignored or overridden at a deeper level.Expected Behavior
Sub-agents should use the model specified in
config.yaml, theHERMES_MODELenvironment variable, or theacp_argsof thedelegate_taskcall.Actual Behavior
Sub-agents ignore all configuration and default to a model with an insufficient context window, causing all delegation tasks to fail.
Impact
This is a high-priority issue as it completely blocks the use of the
delegate_tasktool, which is critical for performing complex and parallel tasks. This prevents the completion of assigned cron jobs and other multi-step operations.