feat: per-skill model routing + supervisor/execution model config#8485
Open
iRonin wants to merge 1 commit into
Open
feat: per-skill model routing + supervisor/execution model config#8485iRonin wants to merge 1 commit into
iRonin wants to merge 1 commit into
Conversation
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.
This was referenced May 1, 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 mechanisms for routing different tasks to different LLM models:
1.
delegate_task(model=..., provider=...)Route individual subagent calls to any model.
2. Skill frontmatter
model:fieldSkills can declare their own model in SKILL.md frontmatter. When loaded via
delegate_task(skill='...'), the skill's model is used automatically.3. Config aliases
Closes #5508