feat(subagent): add configurable subagent model/provider (#609)#751
Closed
Bartok9 wants to merge 1 commit into
Closed
feat(subagent): add configurable subagent model/provider (#609)#751Bartok9 wants to merge 1 commit into
Bartok9 wants to merge 1 commit into
Conversation
…h#609) - Add 'subagent' section to DEFAULT_CONFIG with model/provider options - Update delegate_tool.py to read from subagent config - Precedence: explicit model arg > config.subagent.model > parent model - Same pattern as compression.summary_model for consistency Example config: subagent: provider: openrouter model: google/gemini-3-flash-preview Closes NousResearch#609
teknium1
pushed a commit
that referenced
this pull request
Mar 11, 2026
Allow users to configure a dedicated model for subagents spawned by
delegate_task, so narrowly-scoped subtasks can use a cheaper/faster
model while the parent agent runs on a more powerful one.
Config:
subagent:
model: google/gemini-3-flash-preview
Precedence: explicit model arg > config.subagent.model > parent model.
Cherry-picked from PR #751 by Bartok9, rebased onto current main
with conflict resolution and simplified to model-only override
(provider/base_url/api_key stay inherited from parent — covers the
common case of same-provider model swap via OpenRouter).
Closes #609
Co-authored-by: Bartok Moltbot <bartokmoltbot@users.noreply.github.com>
Contributor
|
Thanks for this PR! The concept is exactly right, but the branch was 830 commits behind main with merge conflicts. Cherry-picked your commit with authorship preserved into PR #896, rebased onto current main. Simplified to model-only override (the provider swap without base_url/api_key resolution would break cross-provider cases — keeping it to model swap covers the 95% use case of same-provider model routing via OpenRouter). Your commit shows as authored by you in git history. 🙏 |
angelburgosrosado
pushed a commit
to angelburgosrosado/hermes-agent
that referenced
this pull request
Apr 28, 2026
Allow users to configure a dedicated model for subagents spawned by
delegate_task, so narrowly-scoped subtasks can use a cheaper/faster
model while the parent agent runs on a more powerful one.
Config:
subagent:
model: google/gemini-3-flash-preview
Precedence: explicit model arg > config.subagent.model > parent model.
Cherry-picked from PR NousResearch#751 by Bartok9, rebased onto current main
with conflict resolution and simplified to model-only override
(provider/base_url/api_key stay inherited from parent — covers the
common case of same-provider model swap via OpenRouter).
Closes NousResearch#609
Co-authored-by: Bartok Moltbot <bartokmoltbot@users.noreply.github.com>
CumulusService
pushed a commit
to Cumulus-Service-GmbH/hermes-agent
that referenced
this pull request
May 30, 2026
Allow users to configure a dedicated model for subagents spawned by
delegate_task, so narrowly-scoped subtasks can use a cheaper/faster
model while the parent agent runs on a more powerful one.
Config:
subagent:
model: google/gemini-3-flash-preview
Precedence: explicit model arg > config.subagent.model > parent model.
Cherry-picked from PR NousResearch#751 by Bartok9, rebased onto current main
with conflict resolution and simplified to model-only override
(provider/base_url/api_key stay inherited from parent — covers the
common case of same-provider model swap via OpenRouter).
Closes NousResearch#609
Co-authored-by: Bartok Moltbot <bartokmoltbot@users.noreply.github.com>
This was referenced Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #609 — Allow configurable subagent model in config.yaml
Changes
subagentsection to DEFAULT_CONFIG with optional model/provider fieldsConfig Structure
Precedence
config.subagent.modelThis matches the existing pattern used by
compression.summary_model.Use Cases
Testing