ask-matt
MAmattpocock/skills336k近 7 天新增 5,004 个 star
Determines which LLM model to use for each agent spawn
Determines which LLM model to use for each agent spawn.
✅ THIS SKILL PRODUCES:
model parameter for every task tool call.squad/config.json❌ THIS SKILL DOES NOT PRODUCE:
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.
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.
.squad/config.jsondefaultModel field — if present, this is the Layer 0 override for all spawnsagentModelOverrides field — if present, these are per-agent Layer 0a overridesagentModelOverrides.{agentName} in config.json? → Use it.defaultModel in config.json? → Use it.## Model section? → Use it.quality-first unless the session or .squad/config.json modelProfile says balanced or economy, or economyMode is on):claude-opus-5.5); balanced and economy move research downclaude-sonnet-5.5)quality-first; fast under economy (and planning under balanced)claude-haiku-5.5)economy then 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 to hydrafusion, then the premium chain; everything else (including visual and Scribe) follows quality-firstgpt-5.6-luna under economy🔧 {Name} ({resolved_model}) — {task}Trigger phrases: "always use X", "use X for everything", "switch to X", "default to X"
defaultModel to .squad/config.json (merge, don't overwrite)✅ Model preference saved: {model} — all future sessions will use this until changed.Per-agent trigger: "use X for {agent}"
agentModelOverrides.{agent} in .squad/config.json✅ {Agent} will always use {model} — saved to config.Profile trigger: "use the {quality-first|balanced|economy|hydrafusion} profile" / "always use economy"
modelProfile to .squad/config.json (merge, don't overwrite); for "this session" only, keep it in session context instead✅ 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 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.
modelProfile: "hydrafusion" (or "use the hydrafusion profile for this session"), or pick hydrafusion as the session model, defaultModel, an agentModelOverrides entry 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 the hydrafusion profile.hydrafusion is 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.Trigger phrases: "switch back to automatic", "clear model preference", "use default models"
defaultModel from .squad/config.json✅ Model preference cleared — returning to automatic selection.After resolving the model and including it in the spawn template, this skill is done. Do NOT:
.squad/config.json).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 by agentModelOverridesagentModelOverrides — per-agent overrides that take priority over defaultModelmodelProfile — quality-first (default), balanced, economy or hydrafusion (opt-in research preview); affects only Layers 3-4If 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.
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
OBobra/superpowers331k近 7 天新增 5,757 个 star
AFaffaan-m/ECC314k近 7 天新增 4,125 个 star
AFaffaan-m/ECC314k近 7 天新增 4,125 个 star