model-selection
Skill3.4k starsChanged 2 months agoMITView on GitHub
Determines which LLM model to use for each agent spawn
16 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- Walsworth-Group/physkittheir own version, first seen Nov 8, 2026
- agentstation/skillstheir own version, first seen Nov 1, 2026
- microsoft/github-vteam-industry-demosedited, first seen Oct 25, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
- awslabs/agent-pluginstheir own version, first seen Oct 13, 2026
- maxatwork/skillstheir own version, first seen Oct 13, 2026
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- github/gh-aw★ 5.6k78% same
- Azure/apiops-cli★ 3278% same
- microsoft/github-vteam-industry-demos★ 278% same
Wrote their own version · 13
- leookun/cursor-byok★ 3.2ksame name
- awslabs/agent-plugins★ 918same name
- Resgrid/Core★ 238same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- han69611/math-modeling-skills★ 10same name
- yuanhao667/Skills★ 10same name
- tstapler/dotfiles★ 8same name
- Walsworth-Group/physkit★ 7same name
- AI-Hydro/Skills★ 2same name
- aemerson-commits/shareable-skills★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository247 other files it gives its agents.
- .github/agents.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- packages/squad-cli/templates/copilot-instructions.mdCopilot instructions
- packages/squad-sdk/templates/copilot-instructions.mdCopilot instructions
- .squad-templates/copilot-instructions.mdCopilot instructions
- .squad/templates/copilot-instructions.mdCopilot instructions
- templates/copilot-instructions.mdCopilot instructions
- action-skill-contractsSkill
- agent-collaborationSkill
- agent-conductSkill
- architectural-proposalsSkill
- architectural-reviewSkill
- archival-integritySkill
- ci-validation-gatesSkill
- client-compatibilitySkill
- cli-wiringSkill
- content-scopeSkill
- distributed-meshSkill
- documentation-maintenanceSkill
- github-multi-accountSkill
- git-workflowSkill
- history-hygieneSkill
- init-modeSkill
- model-selectionSkill
- pr-lifecycleSkill
- protected-filesSkill
- release-processSkill
- reskillSkill
- reviewer-protocolSkill
- secret-handlingSkill
- security-reviewSkill
- squad-conventionsSkill
- test-disciplineSkill
- windows-compatibilitySkill
- agentic-workflow-designerSkill
- gh-aw-reliabilitySkill
- iterative-retrievalSkill
- reflectSkill
- {skill-name}Skill
- agent-collaborationSkill
- agent-conductSkill
- architectural-proposalsSkill
- ci-validation-gatesSkill
- client-compatibilitySkill
- cli-wiringSkill
- coordinator-init-modeSkill
- coordinator-response-modeSkill
- coordinator-source-of-truthSkill
- cross-machine-coordinationSkill
- cross-squad-communicationSkill
- cross-squadSkill
- distributed-meshSkill
- docs-standardsSkill
- e2e-template-testingSkill
- economy-modeSkill
- error-recoverySkill
- external-commsSkill
- fact-checkingSkill
- gh-auth-isolationSkill
- gh-aw-enlistmentSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 5 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 49
CHECK for defaultModel field — if present, this is the Layer 0 override for all spawns
- Very specific: line 50
CHECK for agentModelOverrides field — if present, these are per-agent Layer 0a overrides
- Very specific: line 55
CHECK Layer 0a: Is there an agentModelOverrides.{agentName} in config.json?
- Very specific: line 56
CHECK Layer 0b: Is there a defaultModel in config.json?
- Distinctive: line 57
CHECK Layer 1: Did the user give a session directive?
- Very specific: line 58
CHECK Layer 2: Does the agent's charter have a ## Model section?
- Very specific: line 59
CHECK Layer 3: Determine task type and use the head of its tier chain for the active profile (quality-first unless the session or …
- Very specific: line 74
WRITE defaultModel to .squad/config.json (merge, don't overwrite)
- Very specific: line 80
WRITE to agentModelOverrides.{agent} in .squad/config.json
- Very specific: line 85
WRITE modelProfile to .squad/config.json (merge, don't overwrite).
- Very specific: line 95
hydrafusion-max: only when named explicitly by ID. - Very specific: line 96
Fallback: when hydrafusion is unavailable, fall forward to the head of the premium chain.
- Very specific: line 104
REMOVE defaultModel from .squad/config.json
- Distinctive: line 109
After resolving the model and including it in the spawn template, this skill is done.
- Distinctive: line 111
Run benchmarks or speed tests
- Very specific: line 112
Create new config files (only modify existing .squad/config.json)
- Distinctive: line 134
All fields are optional. When absent, Layers 1-4 apply normally.
- Distinctive: line 138
If a model is unavailable (rate limit, plan restriction), retry within the same tier:
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Model Selection
Determines which LLM model to use for each agent spawn.
SCOPE
✅ THIS SKILL PRODUCES:
- A resolved
modelparameter for everytasktool call - Persistent model preferences in
.squad/config.json - Spawn acknowledgments that include the resolved model
❌ THIS SKILL DOES NOT PRODUCE:
- Code, tests, or documentation
- Model performance benchmarks
- Cost reports or billing artifacts
Context
Squad supports a curated model catalog across three tiers (premium, standard, fast). The coordinator must select the right model for each agent spawn. Users can set persistent preferences that survive across sessions.
5-Layer Model Resolution Hierarchy
Resolution is first-match-wins — the highest layer with a value wins.
| Layer | Name | Source | Persistence |
| 0a | Per-Agent Config | .squad/config.json → agentModelOverrides.{name} | Persistent (survives sessions) |
| 0b | Global Config | .squad/config.json → defaultModel | Persistent (survives sessions) |
| 1 | Session Directive | User said "use X" in current session | Session-only |
| 2 | Charter Preference | Agent's charter.md → ## Model section | Persistent (in charter) |
| 3 | Task-Aware Auto | Task type → tier under the active quality profile (default quality-first) | Computed per-spawn |
| 4 | Default | Head of the standard chain (claude-sonnet-5.5); gpt-5.6-luna under the economy profile | Hardcoded fallback |
Key principle: Layer 0 (persistent config) beats everything. If the user said "always use opus" and it was saved to config.json, every agent gets opus regardless of role or task type. This is intentional — the user explicitly chose quality over cost.
AGENT WORKFLOW
On Session Start
- READ
.squad/config.json - CHECK for
defaultModelfield — if present, this is the Layer 0 override for all spawns - CHECK for
agentModelOverridesfield — if present, these are per-agent Layer 0a overrides - STORE both values in session context for the duration
On Every Agent Spawn
- CHECK Layer 0a: Is there an
agentModelOverrides.{agentName}in config.json? → Use it. - CHECK Layer 0b: Is there a
defaultModelin config.json? → Use it. - CHECK Layer 1: Did the user give a session directive? → Use it.
- CHECK Layer 2: Does the agent's charter have a
## Modelsection? → Use it. - CHECK Layer 3: Determine task type and use the head of its tier chain for the active profile (
quality-firstunless the session or.squad/config.jsonmodelProfilesaysbalancedoreconomy, oreconomyModeis on):
- Architecture, research, verification, reviewer gates, security, design, visual → premium (
claude-opus-5.5);balancedandeconomymove research down - Code (implementation, tests, refactoring, bug fixes), prompts, agent designs → standard (
claude-sonnet-5.5) - Docs, writing, planning, triage → standard under
quality-first; fast undereconomy(and planning underbalanced) - Mechanical (Scribe, git, release, changelogs, version bumps) → fast (
claude-haiku-5.5) economythen applies the economy map (premium → standard, standard →gpt-5.6-luna) and says so in the rationalehydrafusion(opt-in only) sends architecture, research, verification, reviewer gates, security and design tohydrafusion, then the premium chain; everything else (including visual and Scribe) followsquality-first
- FALLBACK Layer 4: head of the standard chain;
gpt-5.6-lunaundereconomy - INCLUDE model in spawn acknowledgment:
🔧 {Name} ({resolved_model}) — {task}
When User Sets a Preference
Trigger phrases: "always use X", "use X for everything", "switch to X", "default to X"
- VALIDATE the model ID against the catalog
- WRITE
defaultModelto.squad/config.json(merge, don't overwrite) - ACKNOWLEDGE:
✅ Model preference saved: {model} — all future sessions will use this until changed.
Per-agent trigger: "use X for {agent}"
- VALIDATE model ID
- WRITE to
agentModelOverrides.{agent}in.squad/config.json - ACKNOWLEDGE:
✅ {Agent} will always use {model} — saved to config.
Profile trigger: "use the {quality-first|balanced|economy|hydrafusion} profile" / "always use economy"
- WRITE
modelProfileto.squad/config.json(merge, don't overwrite); for "this session" only, keep it in session context instead - ACKNOWLEDGE:
✅ Model profile saved: {profile}
A profile never replaces an explicit model (config, session, charter or per-spawn), including an opt-in model the user chose.
HydraFusion (research preview, opt-in)
hydrafusion and hydrafusion-max are GitHub multi-model orchestration models in research preview. They may be unavailable, for example in corporate environments where preview models are turned off, so Squad never uses them by default: they are in no fallback chain, no GA profile and no example. The runtime runs the orchestration; Squad only passes the model ID.
- Opt in:
modelProfile: "hydrafusion"(or "use the hydrafusion profile for this session"), or pickhydrafusionas the session model,defaultModel, anagentModelOverridesentry or a per-spawn model. A session model is inherited by every sub-agent spawn. hydrafusion-max: only when named explicitly by ID. Never chosen implicitly, even under thehydrafusionprofile.- Fallback: when
hydrafusionis unavailable, fall forward to the head of the premium chain; never back, never over the cost ceiling; omit the model if nothing in the ceiling is left. - Unchanged: Scribe and mechanical ops stay fast; reviewer gates still run.
- VS Code uses the single session model for every agent; per-agent selection applies where Squad passes a model per spawn (Copilot CLI and app).
When User Clears a Preference
Trigger phrases: "switch back to automatic", "clear model preference", "use default models"
- REMOVE
defaultModelfrom.squad/config.json - ACKNOWLEDGE:
✅ Model preference cleared — returning to automatic selection.
STOP
After resolving the model and including it in the spawn template, this skill is done. Do NOT:
- Generate model comparison reports
- Run benchmarks or speed tests
- Create new config files (only modify existing
.squad/config.json) - Change the model after spawn (fallback chains handle runtime failures)
Config Schema
.squad/config.json model-related fields:
{
"version": 1,
"defaultModel": "claude-opus-5.5",
"modelProfile": "balanced",
"agentModelOverrides": {
"agent-alpha": "claude-sonnet-5.5",
"agent-beta": "claude-haiku-5.5"
}
}defaultModel— applies to ALL agents unless overridden byagentModelOverridesagentModelOverrides— per-agent overrides that take priority overdefaultModelmodelProfile—quality-first(default),balanced,economyorhydrafusion(opt-in research preview); affects only Layers 3-4- All fields are optional. When absent, Layers 1-4 apply normally.
Fallback Chains
If a model is unavailable (rate limit, plan restriction), retry within the same tier:
Premium: claude-opus-5.5 → gpt-6.1-sol → claude-opus-5 → gpt-6-sol → claude-opus-4.8 → gpt-5.6-sol → (omit model param)
Standard: claude-sonnet-5.5 → gpt-5.6-terra → claude-sonnet-5 → gpt-5.5 → gpt-5.4 → gpt-5.3-codex → (omit model param)
Fast: claude-haiku-5.5 → gpt-6-luna → gpt-5.6-luna → gemini-3.8-flash → claude-haiku-4.5 → gpt-5.4-mini → gpt-5-mini → (omit model param)Chains list only public GA models (https://docs.github.com/en/copilot/reference/ai-models/supported-models, verified 2026-10-14). When the runtime supplies a live model list, it decides availability.
Never fall UP in tier. A fast task won't land on a premium model via fallback.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

