/claude-code-capability-primer:claude-code-effort-modelsfrom claude-code-capability-primer
Use when deciding how to work on a task - choosing effort level, model, or fast mode to balance reasoning depth, speed, and token cost.
Ships in claude-code-capability-primer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Quick reference for tuning how Claude Code works: model selection, effort levels, and speed mode. Read this mid-session when deciding how to approach a task.
Switch with /model (opens picker) or /model <name> to set directly. Persists to next session.
Available models (aliases resolve to the latest version for your provider; on the Anthropic API opus→Opus 4.8, sonnet→Sonnet 5):
opus → Claude Opus 4.8 (strongest Opus-tier reasoning)sonnet → Claude Sonnet 5 (daily coding, best speed/intelligence balance; native 1M-token context on the Anthropic API — no [1m] suffix needed) — requires Claude Code v2.1.197+haiku → Claude Haiku 4.5 (fast, simple tasks)fable → Claude Fable 5 (most capable; for tasks larger than one sitting — long autonomous sessions, root-cause debugging, architecture) — requires v2.1.170+best → Fable 5 where your org has access, otherwise the latest Opusopusplan → opus during planning, auto-switches to sonnet for executionopus[1m] / sonnet[1m] → 1M token context window (no effect once sonnet already resolves to Sonnet 5's native 1M window)Model IDs (full names):
claude-fable-5claude-opus-4-8claude-sonnet-5claude-haiku-4-5-20251001 (alias claude-haiku-4-5)Default model (via default / picker): Opus 4.8 on Max, Team Premium, Enterprise pay-as-you-go, and Anthropic API; Sonnet 5 on Pro, Team Standard, and Enterprise subscription seats. Fable 5 is never a default — select it explicitly.
When to pick:
Controls adaptive reasoning depth per message. Raise it for complex problems; lower it for routine tasks. Persistent across sessions unless overridden by env var.
Available levels (varies by model):
low — minimal thinking, fastest, cheapest. Use: latency-sensitive, low-complexity tasks.medium — lighter reasoning, cost-conscious work that trades some intelligence.high — default on Fable 5, Sonnet 5, Opus 4.8, Opus 4.6, Sonnet 4.6. Balances tokens and capability.xhigh — deeper reasoning, higher token spend. Default on Opus 4.7. Use: tricky architecture, intricate bugs.max — deepest reasoning, unbounded tokens, session-only. Can overthink; test first.Fable 5, Sonnet 5, Opus 4.8, and Opus 4.7 support low–max. Opus 4.6 and Sonnet 4.6 support low/medium/high/max only (no xhigh — it falls back to high). Setting an unsupported level falls back to the highest supported at or below it.
Special: /effort ultracode (Opus only, session-only) sends xhigh to model AND orchestrates dynamic workflows for substantive tasks. Reserved for ambitious multi-phase work.
Usage:
/effort — open slider picker/effort high — set directly/effort auto — reset to model defaultCLAUDE_CODE_EFFORT_LEVEL=xhigheffort: xhighToken tradeoff: low < medium < high < xhigh < max. Each step costs more tokens but enables deeper reasoning for complex tasks.
Opus only. Same model quality, ~2.5x faster output, higher cost per token. Toggle with /fast or "fastMode": true in settings.json.
Pricing (per MTok):
How it works:
When to use:
Cost gotcha: enabling fast mode mid-conversation re-caches full history at fast-mode price. Enable at session start for best cost.
Requirements:
Model choice drives cost (per MTok input/output, Anthropic API):
Effort and fast mode interact:
Prompt caching: a stable warm prefix re-reads at ~10% of input price. Keep the prefix stable (don't rewrite early messages mid-session). Switching /model mid-session invalidates the cache for the next turn.
Task is routine (format, search, simple edit)? → haiku, low effort, standard mode.
Task is typical coding (features, tests, refactors)? → sonnet, high effort (or medium to cut cost), standard mode.
Task is hard (architecture, complex bug, design)? → opus, xhigh effort, standard mode.
You need output in seconds, not minutes? → Use fast mode on Opus (higher cost, lower latency). Not a model change.
You need the deepest reasoning on an ambitious task? → opus, max effort, standard mode. Session-only, unbounded tokens.
ANTHROPIC_MODEL=<name> — set model for this session only.CLAUDE_CODE_EFFORT_LEVEL=<level> — effort level; overrides session choice.CLAUDE_CODE_DISABLE_FAST_MODE=1 — disable fast mode entirely.ANTHROPIC_DEFAULT_OPUS_MODEL / ANTHROPIC_DEFAULT_SONNET_MODEL / ANTHROPIC_DEFAULT_HAIKU_MODEL / ANTHROPIC_DEFAULT_FABLE_MODEL — pin specific model versions for each alias (useful on Bedrock, Vertex, Foundry).CLAUDE_CODE_DISABLE_1M_CONTEXT=1 — remove 1M variants from the picker; treats Sonnet 5 sessions as 200K.Fallback models: set fallbackModel (settings, array) or --fallback-model sonnet,haiku to try backups in order when the primary is overloaded/unavailable. Chain capped at 3; lasts the current turn only.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ucsandman/claude-code-capability-primer --plugin claude-code-capability-primerOther plugins' skills for the same job
12 skills in this plugin
/claude-code-agent-sdkUse when building custom AI agents headlessly, embedding Claude Code tools in an app, or running scripted/cron agents—need SDK package names, setup, core API entry points, supported languages, and relation to Claude Code CLI and Messages.../claude-code-background-agentsUse when needing to understand or manage background agents, long-running tasks, polling, scheduling, or async work in Claude Code without blocking the session./claude-code-capabilitiesUse when unsure which Claude Code capability fits a task, when about to single-thread large/cross-cutting/repetitive work, or when you or the user ask what Claude Code can do — loads the full capability map (signal → capability) and points to the deep-dive skills.