model-selection
Resolve explicit and persistent model preferences for Squad spawns without pinning stale defaults
- License 许可
- MIT
- 所属仓库
- github/squad
- 最近更新
- 2026-11-15
- Stars
- ★ 3.4k
- Forks
- 520
01 前言 Front Matter
- name
- model-selection
- domain
- orchestration
- source
- retained pre-recast procedure, narrowed for the descriptive cast
- confidence
- high
- description
- Resolve explicit and persistent model preferences for Squad spawns without pinning stale defaults
03 SKILL.md 正文
Model Selection
Use this skill when the user requests a model, the team configuration contains a saved model preference, or a specialist charter explicitly requires one.
Resolution Order
Apply the first available value:
- Explicit model requested for the current spawn.
- Current-session model directive from the user.
.squad/config.jsonagentModelOverrides.{specialist-id}..squad/config.jsondefaultModel.- The specialist charter's explicit model requirement.
- Runtime automatic selection by omitting the model parameter.
An explicit current request always overrides older persistent configuration. Do not invent a model preference from task type alone, and do not pin a hardcoded fallback that can become obsolete.
Persistent Preferences
- Save
defaultModeloragentModelOverridesonly when the user explicitly asks for persistence. - Merge model fields into the existing
.squad/config.json; do not replace unrelated settings. - Use active specialist IDs from
.squad/casting/registry.json. - Validate a requested model against the runtime's currently supported model list.
- To return to automatic routing, remove the applicable override rather than writing an
"auto"sentinel unless the runtime schema explicitly supports it.
Spawn Behavior
- Pass a model only when resolution steps 1-5 produce a supported value.
- Otherwise omit the model parameter and allow the runtime to select.
- Preserve the user's requested reasoning effort or context tier only when the runtime supports it.
- If a requested model is unavailable, report that failure and fall back to runtime automatic selection unless the user supplied a different fallback.
Stop Conditions
- Stop if the requested model is not supported and no automatic fallback is acceptable.
- Stop rather than rewriting configuration when
.squad/config.jsoncannot be parsed safely. - Do not benchmark models, estimate billing, or modify specialist responsibilities under this skill.
04 同仓库更多 Skills
windows-compatibility
Cross-platform path handling and command patterns
versioning-policy
SemVer rules for Squad's stable, preview, insider, and local package versions
tiered-memory
Three-tier agent memory model (hot/cold/wiki) for context reduction per spawn
test-discipline
Design assertions that prove the actual contract and fail on realistic regressions
squad
Squad's command catalog and interactive menu. Invoke via /squad (slash command) or natural language ("squad commands", "what can squad do", "show me squad options"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.
squad-version-check
Internals of how @bradygaster/squad-cli stamps its version, how `squad upgrade` works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.