feat: per-skill model routing + supervisor/execution model config#4833
Open
iRonin wants to merge 1 commit into
Open
feat: per-skill model routing + supervisor/execution model config#4833iRonin wants to merge 1 commit into
iRonin wants to merge 1 commit into
Conversation
a94ce11 to
223e621
Compare
2de4bbb to
3363b1d
Compare
Three interconnected features for multi-agent model routing: 1. delegate_task() — model/provider params (like PR NousResearch#3172) - model, provider: per-call overrides for all subagents in the call - Per-task model/provider in batch tasks array - Priority: per-task > call-level > delegation config > parent inherit 2. delegate_task() — skill/skills params (new) - skill: load a single named skill into the subagent's context - skills: load multiple skills - Skill SKILL.md content is prepended to the subagent system prompt - If SKILL.md frontmatter contains model: or provider: fields, those are used as the model/provider for that subagent call (overridable by the explicit model param) 3. config.yaml — supervisor_model / execution_model aliases - delegation.supervisor_model → model.default (main agent) - delegation.execution_model → delegation.model (all subagents) - Resolved during config load; explicit model.default / delegation.model always take precedence if both are set - Allows clear intent in config: delegation: supervisor_model: anthropic/claude-opus-4-6 execution_model: google/gemini-flash-1.5 Skill frontmatter example: --- name: code-review model: anthropic/claude-opus-4-6 provider: anthropic --- Usage example (agent tool call): delegate_task(goal='review this PR', skill='code-review') delegate_task(goal='summarise docs', model='google/gemini-flash-1.5') delegate_task(tasks=[ {goal: 'fast research', model: 'google/gemini-flash-1.5'}, {goal: 'careful code', model: 'anthropic/claude-opus-4-6'}, ]) Builds on / references PR NousResearch#3172 (ReqX) for the model/provider param idea.
3363b1d to
81da4a4
Compare
Collaborator
Collaborator
|
Superseded by PR #8485 |
This was referenced May 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.
Three interconnected features for multi-agent model routing.
1.
delegate_task()—model/providerparamsSame feature as #3172 (great work @ReqX). Added independently here as the foundation for the skill-level routing below.
Priority: per-task > call-level >
delegation.modelconfig > parent inherit2.
delegate_task()—skill/skillsparamsLoad a skill into the subagent's context. The skill's
SKILL.mdcontent is prepended to the subagent's system prompt. If the skill's frontmatter contains amodel:field, that model is used automatically.Skill frontmatter:
Usage:
3.
config.yaml—supervisor_model/execution_modelaliasesSemantic config keys that make multi-agent intent explicit:
These map to
model.defaultanddelegation.modelrespectively during config loading. Explicitmodel.default/delegation.modelalways take precedence if both are set.