aemerson-commits/shareable-skills/model-selection

Claude Code and agent skill by aemerson-commits/shareable-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Model + thinking-effort orchestration. Reference when dispatching subagents (Agent tool or workflow agent() calls) and when setting session effort. Sonnet is the subagent floor; the main-loop model is the expensive decision-maker; effort is routed per task instead of maxed globally.

Install

npx vskill@latest install aemerson-commits/shareable-skills/model-selection

SKILL.md

The same SKILL.md was published earlier as aemerson-commits/shareable-skills/model-selection.

Model & Effort Orchestration

Goal: top-end reasoning only where the task warrants it. The main loop is the expensive decision-maker; everything it delegates should run on the cheapest model/effort that can't miss.

The stack — who runs what

LayerModelEffortRationale
Main loop (orchestrator)Your configured main-loop model, named by alias (e.g. fable) rather than a version-pinned id, so the setting follows new releasessession effortLevel: highAdaptive thinking scales depth to the task at high; xhigh forces deep reasoning on every trivial turn. Escalate per session, not globally.
Standard subagentssonnetinherits sessionImplementation, research, file reads, builds, deploys, report formatting.
Critical subagentsopushigh default, max for irreversibleSecurity review, adversarial analysis, architecture, financial logic, forensic RCA.
Pure code searchExplore subagent typen/aHarness-backed fast search agent — cheapest way to locate code.

Floor rule: never dispatch below Sonnet for work that produces conclusions we act on. (Explore is the harness's own search agent and is exempt — it locates, it doesn't judge.)

The main-loop model is main-loop-only. Never dispatch subagents at the highest-tier model — Opus at max is the escalation ceiling for delegated work. If a problem genuinely needs main-loop-grade reasoning, it belongs in the main loop where the full session context lives.

Effort mechanics

The old note "effort is session-level only" is obsolete — per-agent effort now exists.

  • Session: /effort low|medium|high|xhigh|max (max is session-only). Persistent default: effortLevel in ~/.claude/settings.json (allowed: low–xhigh).
  • Per-agent: .claude/agents/*.md frontmatter supports effort: alongside model: — that agent runs at its own effort regardless of session level.
  • Per-prompt: include ultrathink in a prompt for a one-off deep pass without changing session state.
  • Precedence: CLAUDE_CODE_EFFORT_LEVEL env > agent frontmatter > session /effort / effortLevel setting.
  • Fable 5.x / Opus 5.5: adaptive thinking only — it cannot be disabled; effort controls its depth. At low/medium the model may skip thinking entirely on simple tasks. MAX_THINKING_TOKENS is deprecated for these models — do not use it.
  • `CLAUDE_CODE_SUBAGENT_MODEL`: NEVER set this globally. It silently overrides every skill's per-agent model pins (flattening Opus reviewers to whatever it names). Routing lives in call sites, not env.

Session defaults (the system)

  • ~/.claude/settings.json: set model: to your preferred main-loop model and effortLevel: high — xhigh forces max thinking on every turn, including trivial ones.
  • Escalate per session when the work is genuinely hard: /effort xhigh or /effort max for forensic debugging, schema-migration design, security-heavy merges. Drop to /effort medium for bulk-mechanical sessions (mass renames, data entry, doc sweeps).
  • Single hard question mid-session → say ultrathink in the prompt instead of re-leveling the session.

Routing matrix

Ask: "If this agent misses something, what happens?"

Task classModelEffortDispatch
Mechanical: run builds/tests, curl endpoints, file moves, format reportssonnetmediumsubagent_type: "routine" (pre-tiered) or Agent({ model: "sonnet" })
Research, codebase mapping, doc readingsonnetsessionAgent({ model: "sonnet" }); pure search → Explore
Implementation (worktree agents)sonnetsessionAgent({ model: "sonnet", isolation: "worktree" })
Critical review, security, architectureopushighAgent({ model: "opus" })
Irreversible decisions: migrations, prod RCA, merge gating, subtle multi-layer bugsopusmaxsubagent_type: "critical-reviewer" (pre-tiered opus+max)
Orchestration, synthesis of agent outputs, user-facing conclusionsmain-loop modelsessiondon't delegate

Opus effort preference (standing decision): when Opus depth is warranted beyond high, skip xhigh and go straight to max. Guessing the "between" tier adds decision overhead without reliably saving cost. high when it suffices; max when it doesn't.

Sessions started from a task brief

The rules above are for subagents. When a launcher starts whole sessions from a written brief (a task queue, a set of consoles), every brief carries an explicit model line and an effort line, and the launcher refuses a line it cannot read instead of guessing. A missing line falls back to the most expensive default: in one 30-day measurement, 60% of started sessions carried neither line. After the start, compare the session's actual model and effort with what it was started on, and flag a mismatch.

Defaults from that measurement (about 1,500 runs over 30 days; re-measure on your own work before trusting them):

Session workModelEffortWhat the runs showed
Ordinary build or UI change (no migration, auth, money or production data write)opusmediumMedian cost about 40% below high, rework the same or lower; first-pass CI was the one number that dipped
High-risk build: migration, auth/security, money, production data, 3+ projectsopushighNever run lower
Small or mechanical code edit (under ~100 lines, tests exist)sonnetmediumCI pass rate as good, at well under half the cost
No-code run: decision notes, emails, queue reads, report formattingsonnetmediumFinished more often than on opus high, at well under half the cost
Diagnosis: a check or spot-checksonnetmediumCheap, but needed a nudge more often
Diagnosis of a root cause or repeat failure; a fix; research, design, reviewopushigh
Release, production step, install, deploy checkopushighOn sonnet medium these finished less often and stalled five times as often
No line at all (the launcher's fallback)opushighKept high on purpose: a missing line costs money, and never puts a production step on medium

max is never a default: it showed no gain over high at 1.5 to 2.7 times the cost. Never change the model of a session that is already running.

Pre-tiered agents (.claude/agents/)

AgentModelEffortUse for
routinesonnetmediumMechanical chores where the output is verifiable (exit codes, HTTP statuses, diffs). Add isolation: "worktree" if it modifies code.
critical-revieweropusmaxAdversarial review of irreversible changes — the effort pin means it gets max thinking even when the session runs at high.

Dispatch via Agent({ subagent_type: "routine", ... }). These exist so the effort pin travels with the agent definition instead of depending on session state.

Workflows

Every agent() call in a workflow script must pass model: explicitly — workflow agents otherwise inherit the main-loop model (the most expensive possible default). Pattern: sonnet for runners/probes/judges, opus for synthesis/verdicts.

Skills that dispatch agents

SkillRecommended model
/start-day, /session-notes, /audit-components, /merge-to-main checkssonnet (mechanical/research)
/review-impl, /pre-merge-review, security auditsopus (reviewers)
/worker-build, /full-stack-buildscaffold/implement = sonnet, review = opus
/qa-sweep view judgessonnet
Forensic teams (/deep-root-cause, /temporal-forensics, etc.)opus, consider critical-reviewer for the verdict agent

Escalate one rung at a time

Treat model and effort as one ladder: R0 sonnet/low, R1 sonnet/medium, R2 sonnet/high, R3 opus/high, R4 opus/max, then ask the operator. Start at the lowest rung that fits the task class above. When a result fails its acceptance check, move ONE rung up. Do not re-run at the same rung and hope. If an autonomous fleet dispatches on its own ladder, keep it in one machine-readable file and have this section defer to it, so the two cannot drift.

What NOT to do

  • Don't dispatch unpinned. An unpinned file-search agent inherits the main-loop model and burns its tokens at session effort for zero quality gain. Every Agent()/agent() call states its model.
  • Don't use Haiku for judgement work. The floor is Sonnet. (Explore's internal model is the harness's business.)
  • Don't set `CLAUDE_CODE_SUBAGENT_MODEL` or `CLAUDE_CODE_EFFORT_LEVEL` env vars. They override all per-call and per-agent routing silently.
  • Don't mix models within one reviewer panel. If a review skill dispatches 5 reviewers, all 5 are Opus — inconsistent models make outputs incomparable.
  • Don't re-level the session for one hard question. Use ultrathink in that prompt.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aemerson-commits/shareable-skills/model-selection/badge)](https://verified-skill.com/skills/aemerson-commits/shareable-skills/model-selection)

Something wrong with this skill or its page? Tell us.