Claude Code: How Do Skills Work?
# Skills represent a fundamentally different approach to extending Claude Code.
Skills represent a fundamentally different approach to extending Claude Code.
Skills represent a fundamentally different approach to extending Claude Code. Claude loads a skill on its own when the conversation calls for it, and you can run the same skill yourself by typing /skill-name.336 You embed domain expertise into a skill, and Claude draws on that expertise whenever the situation calls for it, without you needing to remember to ask.
Custom commands have been merged into skills: a file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both create /deploy and work the same way. Existing command files keep working. Skills add a directory for supporting files and frontmatter that controls whether you, Claude, or both can invoke them.336
Why skills change everything: Consider domain expertise: the payment processing rules, the compliance requirements, the architectural patterns your team has refined over years. Without skills, you either re-explain this context every session or hope Claude infers it from code comments. With skills, you encode it once. Claude reads the skill definition and applies that expertise automatically whenever relevant. Your junior developers get senior-level guidance without asking. Your security patterns get applied without remembering to invoke them.
What matters is who starts it. A skill that only you can invoke is a shortcut you have to remember to use. A skill Claude can load is knowledge Claude always has available. When you create a security review skill with your team’s specific vulnerability patterns and compliance requirements, Claude applies that expertise whenever it encounters relevant code, whether during PR reviews, refactoring, or any task where security matters. You don’t have to type /security-review, though you still can; Claude recognizes the context and applies the skill automatically.
Skills vs Commands vs Subagents
Understanding when to use each extension mechanism prevents duplication and maximizes effectiveness:
| Aspect | Command files (.claude/commands/) |
Skills | Subagents |
|---|---|---|---|
| Invocation | You (/name) or Claude, same as a skill |
You (/name) or Claude, set by frontmatter |
Explicit or auto-delegated |
| Trigger | You type the name, or Claude recognizes context | Claude recognizes context, or you type the name | Task requires delegation |
| Structure | Single markdown file | Directory with resources | Markdown with frontmatter |
| Context | Main conversation | Main conversation | Separate context window |
| Complexity | Simple prompts | Multi-file capabilities | Full agent personality |
| Best for | Explicit actions | Domain expertise | Complex task delegation |
Set disable-model-invocation: true when only you should start the skill: /deploy, /commit, anything with side effects whose timing you want to control. Claude will not load it on its own.
Set user-invocable: false when the skill is background knowledge only Claude should load: Claude Code hides it from the / menu and does not run it when you type the name. Leave both fields unset for a skill either of you may start, such as security patterns, code style rules, or domain knowledge.336
Use subagents when tasks need isolation: background exploration, parallel analysis, specialized reasoning that shouldn’t pollute your main conversation.
Skill Structure and Location
Skills live in dedicated directories containing a required SKILL.md file plus optional supporting resources:
Personal skills (available across all your projects):
~/.claude/skills/
├── code-reviewer/
│ ├── SKILL.md
│ ├── SECURITY_PATTERNS.md
│ └── PERFORMANCE_CHECKLIST.md
├── sql-analyst/
│ ├── SKILL.md
│ └── QUERY_PATTERNS.md
└── api-designer/
└── SKILL.md
Project skills (shared with team via git):
.claude/skills/
├── domain-expert/
│ ├── SKILL.md
│ ├── BUSINESS_RULES.md
│ └── DATA_MODELS.md
└── deployment/
├── SKILL.md
└── RUNBOOKS.md
Project skills commit to version control. When teammates pull, they get your skills automatically, with no installation, no configuration. Automatic distribution standardizes expertise across a team.
A third source arrived in v2.1.275: the skills enabled on your claude.ai account sync into terminal sessions signed in with that account, and so do your claude.ai plugins. Opt out with syncClaudeAiSkills: false (plugins: syncClaudeAiPlugins: false). Synced skills stay account-owned – editing a file in the synced account-skills folder changes the local copy only, and the Write/Edit result says the change is not saved to your account and how to save it.215
A fourth source is in public beta: an MCP server can provide skills, which appear in the / menu as server:skill (release notes: v2.1.332; MCP docs: v2.1.331 or later). See Skills from MCP servers in the MCP section for approvals, scanning, and where they work.527533
The anthropic-skills name is reserved (v2.1.282). Synced skills live in the anthropic-skills namespace, so outside a plugin a skill folder, command file, or saved workflow named anthropic-skills or anthropic-skills:<name> does not load, and a startup notice names the first item to rename. A plugin with that name still loads, but a synced skill wins a name tie under /anthropic-skills:<name>. An MCP server with that name keeps its tools but lists no skills or prompts until you rename it. Skill(anthropic-skills:*) allow rules cover only skills synced from claude.ai. To approve one synced skill without a prompt, the skills docs give Skill(anthropic-skills:pdf), and Skill(anthropic-skills *) for every synced skill.433 The name claude-ai is not reserved: items with that name load (v2.1.283+).222223224
SKILL.md Format
A skill is a SKILL.md file. YAML frontmatter is optional, and description is the one field worth always writing:336
---
name: code-reviewer
description: Review code for security vulnerabilities, performance issues, and best practice violations. Use when examining code changes, reviewing PRs, analyzing code quality, or when asked to review or audit code.
allowed-tools: Bash(git diff *) Bash(git log *)
---
# Code Review Expertise
## Security Analysis
When reviewing code, check for:
### Input Validation
- All user input sanitized before use
- Parameterized queries for database operations
- Output encoding for rendered content
### Authentication & Authorization
- Session tokens properly validated
- Permission checks before sensitive operations
- No hardcoded credentials or API keys
### Data Exposure
- Sensitive data not logged
- PII properly masked in error messages
- API responses don't leak internal details
## Performance Patterns
### Database
- N+1 query detection
- Missing indexes on filtered columns
- Unbounded result sets
### Memory
- Large object lifecycle management
- Stream processing for big files
- Connection pool exhaustion risks
## Review Output Format
For each finding:
- **File**: path/to/file.ts:123
- **Severity**: Critical | High | Medium | Low
- **Category**: Security | Performance | Maintainability
- **Issue**: Clear description of the problem
- **Recommendation**: Specific fix with code example
- **Rationale**: Why this matters
See [SECURITY_PATTERNS.md](SECURITY_PATTERNS.md) for detailed vulnerability patterns.
See [PERFORMANCE_CHECKLIST.md](PERFORMANCE_CHECKLIST.md) for optimization guidelines.
Frontmatter Reference
| Field | Required | Constraints | Purpose |
|---|---|---|---|
name |
No | Defaults to the directory name | The command name shown in the / menu336 |
description |
Recommended | The skill listing shows the first 1,536 characters of description plus when_to_use |
Discovery trigger: Claude uses this to decide when to apply the skill. If omitted, the first non-empty line of the body is used336 |
when_to_use |
No | Counts toward the 1,536-character cap | Extra trigger phrases or example requests, appended to description in the skill listing |
argument-hint |
No | Free text, such as [issue-number] |
Hint shown during autocomplete for the arguments the skill expects |
arguments |
No | Space-separated string or YAML list | Named positional arguments for $name substitution in the skill body |
disable-model-invocation |
No | true / false (default false) |
true stops Claude loading the skill on its own; you start it with /name |
user-invocable |
No | true / false (default true) |
false hides the skill from the / menu so that only Claude invokes it |
allowed-tools |
No | Space- or comma-separated string, or YAML list | Tools Claude can use without asking during the turn that invokes the skill. It does not restrict other tools336 |
disallowed-tools |
No | Space- or comma-separated string, or YAML list | Tools removed from Claude’s available pool while the skill is active; the restriction clears at your next message336 |
context |
No | fork |
Run the skill in a forked subagent context (v2.1.0+).434 As of v2.1.218, context: fork skills run in the background by default; in claude -p and the Agent SDK, Claude Code waits for the result instead.192503 |
agent |
No | A subagent type | Which subagent type runs the skill when context: fork is set |
background |
No | true / false |
Opt a context: fork skill out of background execution: background: false keeps it running in the foreground. Only meaningful with context: fork, where background is the default (v2.1.218+).192 |
model |
No | Model alias or ID, or inherit |
Model for the turn when you run the skill yourself with /name; inherit keeps the active model. When Claude runs the skill, the session keeps its model, and the same happens when your organization blocks the value, a plan-mode upgrade is active, or auto mode’s classifier is on and does not support it. With context: fork, the value is the forked subagent’s model. Honored in interactive sessions (v2.1.259+)208548 |
effort |
No | low / medium / high / xhigh / max |
Run the skill’s turn at a specific effort level (v2.1.80+). It is honored on models whose default effort is pinned (Opus 4.7, Opus 4.8, Fable 5), in custom commands and subagents too (v2.1.267+)213 |
hooks |
No | Hooks configuration | Hooks that Claude Code registers when the skill is invoked and keeps for the rest of the session |
paths |
No | Comma-separated string or YAML list of glob patterns | Claude loads the skill automatically only when working with files that match |
shell |
No | bash (default) or powershell |
Shell that runs the skill’s inline shell commands |
Every field is optional, and Claude Code ignores a field it does not recognize without reporting an error. It also accepts metadata, license, and compatibility without acting on them. Skills uploaded to claude.ai or sent through the Skills API accept only name, description, license, compatibility, metadata, and allowed-tools; any other field fails the upload with an unexpected-key error.336
String Substitutions (v2.1.9+): Skills can access session context using ${CLAUDE_SESSION_ID} substitution. Useful for logging, tracking, or generating session-specific outputs.43
The description field is critical. Claude discovers skills by matching your requests against skill descriptions. A vague description means Claude won’t recognize when to use the skill. A specific description with clear trigger conditions means reliable activation.
Poor description:
description: Helps with code
Effective description:
description: Review code for security vulnerabilities, performance issues, and best practice violations. Use when examining code changes, reviewing PRs, analyzing code quality, or when asked to review, audit, or check code.
The effective description includes:
- What the skill does (review code for specific issues)
- When to use it (examining changes, PRs, quality analysis)
- Trigger phrases (review, audit, check)
Pre-approving and Removing Tools
allowed-tools pre-approves the listed tools for the turn that invokes the skill, so Claude can use them without asking. The grant clears when you send your next message. It does not restrict anything: every other tool stays callable, and your permission settings still govern the tools you did not list. Workspace trust does not gate the field, so review the allowed-tools of skills checked into a repository before you run Claude Code there.336
To take tools away while a skill is active, list them in disallowed-tools:
---
name: security-auditor
description: Audit code for security vulnerabilities without making changes
disallowed-tools: Edit, Write, NotebookEdit, Bash
---
With this configuration, Claude cannot call the file-editing tools or Bash while the skill is active. Tools you did not list stay available, and the restriction clears when you send your next message, so it guards one skill’s turn and not the whole session. To block a tool across every skill and prompt, add a deny rule to your permission settings.336
| Intent | Where to set it | Example |
|---|---|---|
| Run these without asking | allowed-tools |
Bash(git log *) Bash(git diff *) |
| Never use these while the skill is active | disallowed-tools |
Edit, Write, NotebookEdit, Bash |
| Remove a tool in every skill and prompt | A deny rule in your permission settings that names the tool | WebFetch |
| Refuse a command as written, in every skill and prompt | A deny rule in your permission settings with a Bash pattern | Bash(git push *) |
A deny rule that names a tool removes that tool from Claude’s context. A Bash pattern matches the command text instead: Bash(git push *) refuses commands that begin with git push and does not match a push written another way, such as git -C <dir> push, so it is not a security boundary around git.504
Supporting Files
Skills can include multiple files. Claude reads the main SKILL.md on activation, then accesses supporting files as needed, providing progressive disclosure that manages context efficiently.
Structure pattern:
my-skill/
├── SKILL.md # Required: overview + quick reference
├── DETAILED_GUIDE.md # Deep documentation
├── EXAMPLES.md # Concrete examples
├── PATTERNS.md # Reference patterns
├── templates/ # Reusable templates
│ └── component.tsx
└── scripts/ # Helper utilities
└── validate.py
Reference supporting files from SKILL.md:
For detailed security patterns, see [SECURITY_PATTERNS.md](SECURITY_PATTERNS.md).
Use this template for new components:
[templates/component.tsx](templates/component.tsx)
Validate configurations with:
```bash
python ${CLAUDE_SKILL_DIR}/scripts/validate.py config.json
```
A command from a skill runs in the session’s working directory, not in the skill folder. ${CLAUDE_SKILL_DIR} expands to the directory that holds SKILL.md, so the bundled script resolves wherever the skill is installed.503
Expert tip: Put essential information in SKILL.md directly. Reserve supporting files for deep reference material. Claude reads SKILL.md immediately but only accesses supporting files when needed. If critical information is buried in a supporting file, Claude might not find it.
Complete Example: Domain Expert Skill
Here’s a production-quality skill for a fintech application:
Directory structure:
.claude/skills/payments-domain/
├── SKILL.md
├── BUSINESS_RULES.md
├── COMPLIANCE.md
└── DATA_MODELS.md
SKILL.md:
---
name: payments-domain
description: Expert knowledge of payment processing domain including transaction flows, compliance requirements, and business rules. Use when working with payment code, transaction handling, refunds, disputes, or financial calculations.
---
# Payments Domain Expertise
## Core Concepts
### Transaction States
```
PENDING → AUTHORIZED → CAPTURED → SETTLED
↘ VOIDED
AUTHORIZED → DECLINED
CAPTURED → REFUNDED (partial or full)
SETTLED → CHARGEBACK → REPRESENTED
```
### Money Handling Rules
- ALL monetary values stored as integers (cents, not dollars)
- Currency always explicitly tracked (never assume USD)
- Rounding: HALF_EVEN for calculations, HALF_UP for display
- Never use floating point for money
### Idempotency Requirements
Every payment operation MUST be idempotent:
```typescript
// Required pattern
async function processPayment(idempotencyKey: string, amount: number) {
const existing = await findByIdempotencyKey(idempotencyKey);
if (existing) return existing; // Return cached result
const result = await executePayment(amount);
await storeWithIdempotencyKey(idempotencyKey, result);
return result;
}
```
## Quick Reference
### Fee Calculations
- Interchange: 1.5% + $0.10 (debit), 2.1% + $0.10 (credit)
- Platform fee: 2.9% + $0.30 (standard), 2.2% + $0.30 (enterprise)
- International: +1% cross-border fee
- Currency conversion: mid-market rate + 1%
### Compliance Thresholds
- $3,000: Enhanced due diligence trigger
- $10,000: CTR filing required
- $25,000: Additional verification required
### Refund Windows
- Full refund: 120 days from capture
- Partial refund: 180 days from capture
- Chargeback window: 120 days (Visa), 180 days (Mastercard)
## Key Files
- `src/payments/processor.ts` - Core payment logic
- `src/payments/refunds.ts` - Refund handling
- `src/compliance/aml.ts` - AML checks
- `src/models/transaction.ts` - Transaction model
See `BUSINESS_RULES.md` for detailed business logic.
See `COMPLIANCE.md` for regulatory requirements.
See `DATA_MODELS.md` for schema documentation.
With this skill in place, Claude automatically applies payments domain expertise when you work on transaction code, ask about refund logic, or debug payment flows. You don’t invoke anything; the expertise is just there.
Creating Effective Skills
Start with the description. Write the description first, then build the skill content to match. The description determines when Claude uses the skill, so get it right:
- State what the skill provides
- List specific trigger conditions
- Include relevant keywords and phrases
Keep skills focused. One skill covers one domain or capability:
| Good (focused) | Bad (too broad) |
|---|---|
security-auditor |
code-helper |
react-patterns |
frontend-stuff |
postgres-optimization |
database-expert |
api-documentation |
docs-generator |
If a skill tries to cover too much, its description becomes vague, and Claude won’t reliably recognize when to use it.
Use progressive disclosure. Put the most important information in SKILL.md directly. Reference supporting files for depth:
## Quick Reference
[Essential patterns here - Claude sees this immediately]
## Deep Dive
For full coverage, see [DETAILED_GUIDE.md](DETAILED_GUIDE.md).
Include concrete examples. Abstract descriptions are less useful than concrete patterns:
## Input Validation
### Pattern
```typescript
// Good: Explicit validation with typed errors
const validated = PaymentSchema.safeParse(input);
if (!validated.success) {
throw new ValidationError(validated.error.issues);
}
// Bad: Implicit coercion
const amount = Number(input.amount); // Silent NaN on invalid input
```
Test with realistic requests. After creating a skill, test whether Claude activates it:
> Review this payment processing code for issues
# Should activate payments-domain skill
> How should I handle refunds?
# Should activate payments-domain skill
> What's the weather like?
# Should NOT activate payments-domain skill
If Claude doesn’t activate the skill when expected, revise the description to include the trigger phrases you’re using.
Team Sharing Strategies
Git-based sharing (recommended for project skills):
# Add skill to project
mkdir -p .claude/skills/team-standard
# Create SKILL.md and supporting files
# Commit
git add .claude/skills/
git commit -m "Add team coding standards skill"
git push
# Teammates get it automatically
git pull
claude # Skill now available
Cross-project sharing via symlinks:
# Create canonical skill location
mkdir -p ~/shared-skills/security-reviewer
# Create SKILL.md
# Symlink into projects
ln -s ~/shared-skills/security-reviewer ~/.claude/skills/security-reviewer
# Now available in all your projects
Plugin distribution: For broader distribution, package skills into plugins:
my-plugin/
├── .claude-plugin/
│ └── plugin.json
└── skills/
└── my-skill/
└── SKILL.md
Skills bundled in plugins become available when users install the plugin.
Skills housekeeping (v2.1.304-309). Compaction sends Claude the skill list again afterwards, and /reload-skills sends only new or changed skills. The skills of one source, a repository, your own folder, or a plugin, can register at most 1,024 hooks and 16,384 matcher characters per session, and a skill’s once hook no longer removes another skill’s identical hook. Under a policy that allows hooks from plugins only, a skill used in the main conversation whose hooks are kept out no longer gets its allowed-tools (all v2.1.304). A skill in an --add-dir folder whose name another skill already holds is offered as <folder>:<name> (v2.1.309).275276
Skills changes (v2.1.323 to v2.1.332). Scheduled tasks and /loop ask before running a skill that declares allowed-tools or hooks; add Skill(name) to permissions.allow to run it unattended (v2.1.325). A skill’s inline git commands stop in bare-repository worktrees and similar folders until you allow them, outside auto mode and bypass (v2.1.323). .claude/skills folders in --plugin-dir plugins no longer load from a session started above them, so start Claude Code in the plugin folder (v2.1.325). A skill Claude runs with a model setting, other than a context: fork skill, leaves subagents, forks, compaction, and /recap on the session’s model (v2.1.330). On Macs with computer use on, computer-use is a reserved skill name: your own skill or command of that name stops loading, and a start-up notice says to rename it (v2.1.332). To log or refuse the shell commands a skill runs while it loads, use the PreSkillShellCommand hook event (v2.1.332; see Hook Input/Output Protocol).527529
Debugging Skills
Skill not activating:
1. Check the description matches your request:
# If you're saying "check this code" but description says "review"
description: Review OR check code for issues...
2. Verify file location:
# Personal
ls ~/.claude/skills/my-skill/SKILL.md
# Project
ls .claude/skills/my-skill/SKILL.md
3. Validate YAML frontmatter:
- First line must be exactly
--- - Closing
---before markdown content - No tabs in YAML (use spaces)
- Field names match the reference exactly; Claude Code ignores a field it does not recognize without reporting an error
4. Run in debug mode and read the log. --debug prints nothing to the terminal; when a skill’s frontmatter is malformed, the parse error is in the log file:433
claude --debug
# Then read ~/.claude/debug/<session-id>.txt
5. Validate the skills folder (v2.1.233+), which finds SKILL.md files whose frontmatter does not parse:433
claude plugin validate .claude/skills # project skills
claude plugin validate ~/.claude/skills # personal skills
Skill activating unexpectedly:
Narrow the description. If your skill activates when it shouldn’t, the description is too broad:
# Too broad - activates on any "code" mention
description: Help with code
# Specific - activates only for security contexts
description: Audit code for security vulnerabilities including injection attacks, authentication flaws, and data exposure. Use when specifically asked about security, vulnerabilities, or when reviewing code for security issues.
Supporting files not found:
- Link a supporting file by its path from the skill folder, as in
[reference.md](reference.md); in a command, reach a bundled script through${CLAUDE_SKILL_DIR}, because commands run in the session’s working directory503 - Forward slashes only (even on Windows)435
- Check file actually exists:
ls .claude/skills/my-skill/REFERENCED.md
When to Create a Skill
Create a skill when:
- Claude should pick up domain expertise on its own when a task calls for it
- Multiple team members need the same knowledge
- You’re repeatedly explaining the same patterns or rules
- The context should load without you typing a command
- Knowledge spans multiple files and needs organization
Don’t create a skill when:
- The task needs separate context (use subagent)
- It’s a one-off prompt (just type it)
Wanting explicit control over invocation is not a reason to avoid a skill: keep it a skill and set disable-model-invocation: true. A single template works as a skill too, and an existing file in .claude/commands/ keeps working.336
Expert tip: If you find yourself repeatedly typing /security-review before working on auth code, let Claude load it: write a description that names the auth work it applies to and leave disable-model-invocation unset. Make the expertise ambient, not explicitly invoked.
References
-
Claude Code CHANGELOG, section 2.1.9, fetched November 11, 2026: “Added support for
PreToolUsehooks to returnadditionalContextto the model”; “Added${CLAUDE_SESSION_ID}string substitution for skills to access the current session ID”; “Addedauto:Nsyntax for configuring the MCP tool search auto-enable threshold, where N is the context window percentage (0-100)”; “AddedplansDirectorysetting to customize where plan files are stored”. ↩ -
Claude Code CHANGELOG, v2.1.218 entry. July 2026. v2.1.218:
/code-reviewruns as a background subagent so review work no longer fills the conversation, with stacked slash commands remaining its review target; skills withcontext: forkrun in the background by default, with per-skill opt-out via the newbackground: falsefrontmatter key; the dangerous-rm, background-&, and suspicious-Windows-path checks no longer open permission dialogs (the auto-mode classifier adjudicates them), and plan mode with auto no longer prompts for Bash commands the static analyzer can’t prove read-only; agent frontmatter hooks require the agent file’s own folder to have accepted workspace trust before running;/deep-researchstarts only when invoked manually. Plus: left-arrow discard confirmation and Esc-returns-from-agent-view; benign server-managed feature/cost toggles skip the settings-approval prompt; agent names with:rejected;yes/no/on/off/1/0accepted for skill and plugin frontmatter booleans; trust dialogs name the repository root; improved sandbox restrictions for IDE interactions;Ctrl+Bbackground-shell caps; Bedrock ARN spend metering; fork-session lineage after compaction in headless/SDK sessions; Windows\u-path corruption fix; remote-session zombie-heartbeat fix. Fetched July 24, 2026, when v2.1.218 (published 2026-07-22T21:24Z) was npm latest. (Attribution correction, July 25, 2026: theclaude mcp list//mcpHTTP-status-and-error-text item and the MCP hidden-whitespace warning were originally listed here under v2.1.218; the raw changelog places both in the v2.1.219 entry. Moved to 193.) ↩↩ -
Claude Code CHANGELOG, v2.1.219 and v2.1.220 entries. July 2026. v2.1.219 (July 24): adds Claude Opus 5 (
claude-opus-5) as the new default Opus model, with 1M context, fast mode at $10/$50 per MTok; adds thesandbox.network.strictAllowlistsetting to deny non-allowlisted hosts for sandboxed commands without prompting; adds theDirectoryAddedhook, which fires after/add-diror the SDKregister_repo_rootcontrol request registers a new working directory mid-session; addsmcp_server_errorsto the headless stream-json init event, listing--mcp-configentries skipped by config validation (terminal runs print a startup warning); adds theworkflowSizeGuidelinesettings key so the advisory Dynamic workflow size guideline can be set from any settings file, with the/configrow hidden while one does; adds nested subagent forwarding in stream-json, so subagents spawned at depth-2+ appear when--forward-subagent-textis set, keyed by their spawning Agenttool_useid; changes dynamic workflows to default to a medium size guideline (aim for fewer than 15 agents); removes Opus 4.7 from fast mode:/fastnow applies to Opus 5 and Opus 4.8; subagents can now spawn nested subagents up to depth 3 by default (was 1); setCLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=1to disable nesting; updates theclaude-apiskill to default to Claude Opus 5 with a migration path from Opus 4.8; adds HTTP status and error text toclaude mcp listand/mcpwhen a server fails to connect, plus a warning for MCP config values with hidden leading or trailing whitespace;changes managed MCP allowlist/denylist
${VAR}entries to resolve from the startup environment and managed-settings env instead of settings-file env; adds the current default workflow size to the running-workflow status line; fixesclaude -ptext output dropping the answer already produced when a turn dies on a mid-stream API error, the Fable row showing a stale “Requires usage credits” label, the/modelpicker showing the merged Opus row as plain “Opus” instead of “Opus (1M context)”, the new-release highlight covering more than the newest model’s name, GNU screen copy-on-select printing base64, Remote Control clients keeping a stale fast-mode status after a model switch/reconnect/failed org check,CLAUDE_CODE_GIT_BASH_PATHon Windows exiting or being used as bash when the path isn’t a bash/sh binary (now ignored with a warning), Vim mode ← on an empty prompt not returning to the agent view from NORMAL mode, and screen-reader mode rewriting the entire input line on every keystroke; improves the “Remote Control is only available via api.anthropic.com” error to name the setting that caused it andclaude --teleportto show which repo the current checkout points at on a mismatch. v2.1.220 (July 25): bug fixes and reliability improvements only, with no user-facing feature, setting, command, or pricing changes. Fetched July 25, 2026. -
Claude Code release notes v2.1.257 and v2.1.258 (both September 1, 2026) and v2.1.259 (September 2, 2026), and the canonical CHANGELOG on September 3, 2026. npm dist-tags that day: latest and next both 2.1.259, stable 2.1.236; npm’s published versions jump from 2.1.252 to 2.1.257 – 2.1.253 through 2.1.256 were never published and have no CHANGELOG sections (the 2.1.244/2.1.249 pattern) – so the 2.1.258 note’s “regression introduced in 2.1.255” refers to an unpublished internal build and v2.1.257 is the first installable release carrying Fable 5.1 support. Source for the v2.1.257 items: Fable 5.1 support with the gateway caveat (in Claude apps gateway sessions the
fableandbestaliases keep resolving to Fable 5 for now, since a gateway not yet configured for Fable 5.1 rejects it – select it in/modelinstead);timeFormat/timeZone; the auto-mode “Containment Escape” rule (cloud metadata-credential fetches, egress evasion, and cross-tenant reach not auto-approved unless the environment marks them expected);CLAUDE_CODE_SUBAGENT_MODEL_FORCE; the one-time prompt before the first file read outside the working directories pluspermissions.blockReadsOutsideWorkingDirectories;/effort sand the session-scoped--effort; project/localdefaultMode: "bypassPermissions"ignored; themanagedSourcesBehavior: "merge"refinement (sandbox.credentials.awsPairsandsandbox.ripgrepread whole from the highest source that sets them); BashRead()/Edit()deny-rule coverage of< fileinput redirects and reader commands such astacandegrep; and the network-path refusal (UNC shares,/net/<host>automounts) on--add-dir,/add-dir, andadditionalDirectories.Source for the v2.1.258 fixes: a macOS 12 launch regression introduced in unpublished 2.1.255, and remote/scheduled sessions failing on requests requiring non-empty content. Source for the v2.1.259 items:
managedMcpServers; theallowedMcpServersscope change to user-added servers only;--permission-prompts none(anything that would prompt is denied automatically while the active permission mode keeps deciding); managed settings that fail to parse refusing startup and naming the source; frontmattermodel:on custom commands and skills honored in interactive sessions, with auto mode keeping the session model instead of running a turn on an unsupported frontmatter model;claude plugin validate --json; and the option-value/operand extension of BashRead()deny coverage (--ignore-revs-file=.env,-f.env,@filearguments,git diff/git grepoperands,cd DIR && cat FILEcompounds, andgrep -r/cp -rover a directory holding a denied file now asking). The settings docs do not yet documenttimeFormat/timeZoneormanagedMcpServers, and the CLI reference does not yet list--permission-prompts– the CHANGELOG is the source for those as of September 3, 2026. ↩ -
Claude Code release notes v2.1.266 (September 8, 2026), v2.1.267 (September 9), v2.1.268 (September 10), v2.1.269 (September 11), v2.1.270 (September 12), v2.1.271 (September 14), and v2.1.272 (npm September 14, GitHub release September 15 at 00:42 UTC), and the canonical CHANGELOG on September 15, 2026 – all seven release bodies and their CHANGELOG sections are identical. npm dist-tags on September 15 (~13:15 PT): latest 2.1.272, next 2.1.273, stable 2.1.236; 2.1.273 (published September 15 at 18:06 UTC) has no GitHub release and no CHANGELOG section, so its content is not documented here; and 2.1.263 still carries only “Bug fixes and reliability improvements” – no backfill ever landed. Source for, verbatim where quoted: the
/output-stylerevival (“Added/output-style [name]to list and switch output styles, including over Remote Control and in cloud and other headless sessions”, v2.1.269);claude plugin eval(“run a plugin’s eval suite against Claude Code and get scored, reproducible results (JSON + HTML report)”, v2.1.269); fast mode in Claude Code Remote sessions (“cloud and self-hosted runners: the host’s fast-mode setting or/fasttyped in the session applies where your organization allows it”, v2.1.271) and the/fast offfix;the
maxEffortLevelsetting (“top-level or per model undermodelSettings: caps the effort level on every provider, including Bedrock, Vertex and Foundry; users can still pick a lower level”, v2.1.267);--system-prompt-snapshot off(v2.1.267); the v2.1.267 prompt-cache stability batch (resumed-session tool-list, tool-description, and MCP-announcement rewrites;/modelswitches re-sending every tool definition, with attribution text now a conversation note;--system-prompt/--append-system-promptsessions recording the prompt and tool definitions once; mid-session MCP and plugin tools as deferred definitions); theeffort:frontmatter fix on pinned-default-effort models (Opus 4.7, Opus 4.8, Fable 5; v2.1.267); the marketplace backslash containment fix (v2.1.267); the task-tracking allowlist (“Changed the task-tracking tools (TaskCreate/Get/Update/List, TodoWrite) to be offered only on” Claude 3.x, Opus 4.0 to 4.7, Sonnet 4.0 to 4.6 and Haiku 4.5, with “setCLAUDE_CODE_ENABLE_TODO_TOOLS=1elsewhere”, v2.1.268); the symlinked-directory andenv -C/evaldeny-rule fixes (v2.1.268); the WebFetch/Artifact rule split (“Changed plainWebFetchdeny and ask rules to no longer apply to Artifact tool reads and updates; use anArtifactrule (orWebFetch(domain:claude.ai)) to block or gate them”, v2.1.268);/pluginchanges applying on menu close (v2.1.268); the WebFetch 300-second deadline andCLAUDE_CODE_WEBFETCH_DEADLINE_MS(v2.1.268);gatewayInternalNetworks, the empty-allow_cidrswarnings, and the gatewaypricing:rate sync (v2.1.268) plus themultiplierabove 1 up to 10 (v2.1.271);the
${VAR}and git-URL secret-hygiene fixes (v2.1.268);configDirectoryinclaude auth status --json(v2.1.268); the third-partyANTHROPIC_BASE_URLHTTP-400 regression fix (v2.1.268);bashEditDiffEnabled(v2.1.269); the attribution-reminder fix (“Fixed the attribution reminder overriding a CLAUDE.md or memory rule against commit and pull request attribution; lines set by managed settings still apply”, v2.1.269); the env varsOTEL_METRICS_INCLUDE_REPOSITORY,CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS(1-256),CLAUDE_CODE_GATEWAY_MODEL_DISCOVERY_TIMEOUT_MS(default 3s), andCLAUDE_CODE_BG_TASKS_REPORT_RUNNING(v2.1.269); the v2.1.247 keyboard-regression fix and the kitty-query keyboard support over SSH (v2.1.269); theEdit()/tee,Bash(tee:*), and leading-!scoping fixes (v2.1.269); per-commandallowed_domainson Bash, PowerShell, and Monitor in auto mode with sandboxing (v2.1.271);omitClaudeMdagent frontmatter and--agentsJSON (v2.1.271); the auto-mode inline-!and subagent hand-back mechanics changes (v2.1.271);claude plugin install/update--accept-command <sha256>(v2.1.271);--resumekeeping[1m]across model families (v2.1.271); the fail-closed unreadablemanaged-mcp.json(v2.1.271); thefmt/column, wildcard-expansion, variable-declaration-flag, andblockReadsOutsideWorkingDirectorieschecker fixes (v2.1.271); and Markdown artifacts rendering as styled document pages with artifact watches rising to 10 (v2.1.271). v2.1.266 carries one line (theCLAUDE_CODE_USE_GATEWAYregression fix), v2.1.270 one line (the v2.1.269 git-prompting regression fix), and v2.1.272 only “Bug fixes and reliability improvements”. ↩ -
Claude Code release notes v2.1.274 (published September 17, 2026 at 00:12 UTC, 108 bullets), v2.1.275 (September 17 at 22:33 UTC, 96 bullets), and v2.1.276 (September 18 at 02:12 UTC, one line), and the canonical CHANGELOG on September 17, 2026 – all three release bodies and their CHANGELOG sections are byte-identical. npm dist-tags on September 17 (~22:08 PT): latest and next both 2.1.276, stable 2.1.267. Source for, verbatim where quoted: the claude.ai sync (“Added syncing of the skills and plugins enabled on your claude.ai account to terminal sessions signed in with it; opt out with
syncClaudeAiSkills: falseorsyncClaudeAiPlugins: false”, v2.1.275); the send-now key (“Added a send-now key (ctrl+enter, or ctrl+x ctrl+s) that interrupts the current turn and sends all queued messages at once; sent and queued messages show in gray until the model receives them”, v2.1.275);/plugin install <plugin> --marketplace <source>(“which offers to add the marketplace before installing the plugin”, v2.1.275); the npm plugin-source hardening (“Changed plugins installed from an npm source to be fetched withnpm pack --ignore-scriptsand integrity-verified, so a package’s install scripts no longer run”, v2.1.275); the synced account-skills Write/Edit results (“they now say the change is not saved to your account and how to save it”, v2.1.275); the tab-icon change (“Changed the Artifact tool to ask for a one-word tab icon on a first publish instead of an emoji favicon”, v2.1.275);CLAUDE_CODE_MCP_STARTUP_WAIT_MS(“to bound how long the first non-interactive turn waits for connecting MCP servers (0= don’t wait)”, v2.1.274); the MCP client default (“Changed Bedrock, Vertex, Foundry and telemetry-disabled installs to use the v2 MCP client and MCP 2026-07-28 negotiation with direct HTTP servers by default, as other installs already do (opt out:MCP_SDK_GENERATION=v1orMCP_PROTOCOL_NEGOTIATION=legacy)”, v2.1.274); the legacy HTTP+SSE 4xx fix (“Fixed MCP servers configured ashttpthat only speak legacy HTTP+SSE failing to connect when they answer the first request with 422 or another 4xx error”, v2.1.274); the"type": "sdk"skip (“Changed"type": "sdk"MCP entries in.mcp.json, settings, plugins and agent files to be skipped with a warning: only an SDK host application can register in-process servers”, v2.1.274); the naming change (“Changed the/statusGitHub line to read "Cloud sessions", and/web-setup,/ultrareview, and teleport messages to say "cloud session" instead of "Claude Code on the web"“, v2.1.274); artifact watching (“Changed artifact watching in local sessions: a new version published elsewhere no longer starts a turn; Claude learns of it from a later Artifact tool result”, v2.1.274); and the v2.1.276 regression fix (“Fixed every request failing with400 … Input tag 'advisor_20260301'whenANTHROPIC_BASE_URLpoints at a proxy or gateway (2.1.275 regression)”). ↩ -
Claude Code v2.1.282 release notes (npm published September 24, 2026 at 15:56 UTC; GitHub release 18:38 UTC; 86 bullets, identical to the 2.1.282 section of the canonical CHANGELOG, fetched September 26, 2026). Source for every v2.1.282 item in this guide. Key quotes: “Changed auto mode to use the server-side classifier by default on a direct Anthropic API connection when telemetry is off (
CLAUDE_CODE_AUTO_MODE_SERVER=0opts out)”; “Changed project and local settings to ignore OpenTelemetry variables that turn on export, set its endpoint, or capture content, likeCLAUDE_CODE_ENABLE_TELEMETRYandOTEL_LOG_*”; “Added amaxProseWidthsetting that caps the width of Claude’s prose in wide terminals”; “Added theallowClaudeInChromeWithManagedMcpmanaged setting to letclaude --chromerun alongside an exclusivemanaged-mcp.json”; “Changedsandbox.excludedCommandsto ignore project and local settings entries when managed settings or--settingssetallowUnsandboxedCommands: false, or managedallowManagedDomainsOnly: true”; “Changed skill folders, command files and workflow commands in theanthropic-skillsorclaude-ainamespace to no longer load”. ↩ -
Claude Code v2.1.283 release notes (npm published September 25, 2026 at 18:46 UTC; GitHub release 21:50 UTC; 94 bullets, identical to the 2.1.283 section of the canonical CHANGELOG, fetched September 26, 2026, which runs 2.1.281 to 2.1.283 with no gap). Source for every v2.1.283 item in this guide. npm dist-tags on September 26: latest and next 2.1.283, stable 2.1.274. Key quotes: “Changed interactive sessions on third-party providers or with telemetry off to start in auto mode when no permission mode is configured;
permissions.defaultModestill overrides it”; “AddeddeniedModelsmanaged setting to block specific models, even whenavailableModelsallows them”; “Added/doctor prompt-audit(also/checkup prompt-audit) to audit your CLAUDE.md files, skills, agents and commands for prompting patterns written for older models”; “Addedx-claude-code-prompt-idto the gateway hint headers”; “Changed the/modelpicker’s Opus row and the Default model’s name to drop ‘(1M context)’ where Opus already has a 1M context window”; “Reverted the 2.1.282 reservation of theclaude-ainame”. ↩ -
Claude Code documentation, fetched September 26, 2026. Permission modes: “With Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions on every plan and provider”;
claude -pand the Agent SDK start indefault; “From v2.1.282, a session that doesn’t fetch feature flags, for example because you turned telemetry off, asks the server by default in any kind of session.” Auto mode classifier billing: “On a direct connection to the Anthropic API, the variable requires Claude Code v2.1.281 or later.” Settings reference:attribution“orfalseto hide all attribution. Thefalsevalue requires Claude Code v2.1.281 or later”;maxProseWidth,deniedModels, andavailableModelsMatchentries; the OpenTelemetry group under “Variables Claude Code ignores inenv”. LLM gateway protocol: “Direct connection to the Anthropic API: sent by default”. Skills: the reservedanthropic-skillsname. The settings reference also now documentsspinnerTipsOverride’stipsFileand tip objects (“Tip objects,tipsFile,label, and the Scope line’s rule … require Claude Code v2.1.247 or later”) and thetimeFormatandtimeZonekeys. ↩ -
Claude Code canonical CHANGELOG, sections 2.1.303 through 2.1.310, fetched October 23, 2026 (17:20 PT), and npm registry metadata for
@anthropic-ai/claude-coderead at the same time: 2.1.303 published October 18 at 21:15 UTC, 2.1.304 October 19 at 19:47 UTC, 2.1.305 October 20 at 19:29 UTC, 2.1.306 October 21 at 02:28 UTC, 2.1.307 October 21 at 20:47 UTC, 2.1.308 October 22 at 04:19 UTC, 2.1.309 October 22 at 20:34 UTC, 2.1.310 October 23 at 21:20 UTC; dist-tags latest 2.1.310, next 2.1.310, stable 2.1.308. The GitHub releases carry 1, 76, 38, 2, 43, 1, 79, and 26 bullets, identical to the CHANGELOG. Source for every v2.1.303 to v2.1.310 item in this guide.Key quotes, 2.1.304: “Added
/auto-mode-setup: a guided setup that reads your project and recent sessions to teach auto mode about your environment, now also available on Bedrock, Vertex, Foundry, Claude apps gateway and telemetry-disabled sessions”; “Addeddecider: "person"to a mod’stool.checkanswer: only the permission dialog or a host’s callback can approve the ask, and it is refused with the mod’s reason where nobody can be asked”; “Added a warning on Pro and Max plans when resuming an inactive conversation would use a noticeable share of your 5-hour usage limit”; “Changed tool search to be on by default behind a customANTHROPIC_BASE_URL; a 400 or 422 from the gateway is retried without it”; “Changed mods’settings.readhooks to receive each settings layer and rewrite the merged settings, so a managed mod can make an organization’s setting a ceiling”; “Changed skill hooks: the skills of one source (a repo, your own folder, or a plugin) can register at most 1,024 hooks and 16,384 matcher characters per session”.2.1.305: “Added
sandbox.allowNestedUserNamespacesso sandboxed commands on Linux can create user namespaces (Chromium, rootless podman); this lets them get around the sandbox’s file protections”; “AddedCLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MSso unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) notices a usage limit that was lifted before its reset”; “Fixed every request failing on Vertex, Bedrock and other providers when the endpoint or a gateway rejects tool search, and behind gateways with ToolSearch disallowed or left out of--tools(a 2.1.304 regression): Claude Code now retries without it”; “Improved/usage: each warning is now a one-line fix that names its source, andfapplies the fixes; the same fixes appear in VS Code and/doctor”; “ChangedallowedMcpServersto stop filteringmanaged-mcp.jsonstdio servers that use${VAR}only inenv: one your allowlist left out now loads on upgrade; usedeniedMcpServersto keep it off”.2.1.307: “Added
/claude-api api-versionto move Claude API code to API version2026-10-21”; “Added theclaude_code.safety_eventOpenTelemetry event for each tool call a permission rule, auto mode, a safety check, a hook or the sandbox stopped, prompted or sent back”; “Improved fork subagents launched together: each is now told which launch is its own, so forks are much less likely to try to start each other’s work”; “[Code Review] Added@claude review stop(alsooffandpause) to Code Review, ending an@claude review alwayssubscription on a pull request without starting a new review”. 2.1.309: “Fixed sandboxed Bash commands on macOS and Linux running the shell’s startup files outside the sandbox before each command”; “Changedsed -ito get the standard Bash prompt and run as written, not a simulated file-edit preview; like other Bash edits, it is no longer restored by/rewind”; “Changedclaude ultrareviewto require workspace trust: it asks on a terminal, else refuses; scripts pass--trust-workspace, which takes no value (put a PR number or base branch before it), or setCLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1”; “Fixed sessions compacting repeatedly after reading files under a very large nested CLAUDE.md; a nested CLAUDE.md over the size limit now loads only its start”; “Changed worktree creation and reuse so git no longer fetches objects on demand, in ordinary clones and in partial clones with a Bash sandbox configured; such a partial clone fetches them first”.2.1.310: “Added the Monitor tool and plugin monitors on Bedrock, Vertex, and Foundry, and when telemetry or nonessential traffic is disabled; long foreground sleeps are now blocked there too”; “Fixed requests failing behind some gateways and compatible servers that reject the
effort-2025-11-24beta value or mid-conversation system messages; Claude Code now retries without them”; “Linux: Improved/sandboxand the sandbox startup warning to name Ubuntu’s AppArmor restriction on user namespaces, and how to lift it, when it keeps bubblewrap from starting the sandbox”. ↩ -
Claude Code documentation, fetched October 23, 2026. Now documented: environment variables lists
CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS,CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK(“Set it in the environment that launches Claude Code, not a settingsenv”),CLAUDE_CODE_AUTO_COMPACT_WINDOW(“Suffixed values such as200krequire v2.1.304 or later”), andCLAUDE_CODE_AUTO_MODE_MODEL(“Use a full model ID”), and now saysCLAUDE_CODE_FORK_SUBAGENT“Controls fork mode, which is on by default”; the settings reference listssandbox.allowNestedUserNamespaces(“User or managed”); the auto mode configuration page has “Generate environment entries with/auto-mode-setup”; the costs page: “When the/usagefooter shows a hint such asf to fix 2 of 3, pressfto have Claude Code act on the recommendations it can. Thefshortcut requires Claude Code v2.1.305 or later”; slash commands lists/claude-api api-version(“v2.1.307 or later”) andmanaged-agents-secure [<agent-id>]; monitoring listssafety_eventandclassifier_verdict(“Requires Claude Code v2.1.301 or later”);the ultrareview page documents
--trust-workspace(“Takes no value: put a PR number or base branch before it”) and theError: Workspace not trustedexit; the code review page lists the Quick, Standard, and Deep levels; hooks carries the 1,024-hook and 16,384-character caps; the mods reference stampse.isReadOnly“v2.1.304 or later”; the sandboxing page carries the Ubuntu AppArmor profile; and the permission modes table now reads “claude -por the Agent SDK |default”, matching v2.1.302. Still release-notes only:decider: "person",settings.readlayers,@claude review stop, thesed -ichange, the tool-search default behind a custom base URL, the Pro and Max resume warning,--checkout-hook-timeout-min,multiagent_20261001,CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS, the Claude Design closing date, and the mod additions$.env.set,virtualText,$.ui.view, andprompt.change; the advisor page still says the tool “is not available on Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, or Microsoft Foundry”. ↩ -
Extend Claude with skills, Claude Code documentation, fetched November 10, 2026: “Claude uses skills when relevant, or you can invoke one directly with
/skill-name”; “Custom commands have been merged into skills. Your existing.claude/commands/files keep working.” and, in the Glossary, “A file at.claude/commands/deploy.mdand one at.claude/skills/deploy/SKILL.mdboth create/deployand work the same way; existing command files continue to work.”; “All fields are optional. Onlydescriptionis recommended”; “the combineddescriptionandwhen_to_usetext is truncated at 1,536 characters in the skill listing”; “Theallowed-toolsfield grants permission for the listed tools during the turn that invokes the skill, so Claude can use them without prompting you for approval”; “It does not restrict which tools are available: every tool remains callable, and your permission settings still govern tools that are not listed”; “To remove tools from Claude’s available pool while a skill is active, list them indisallowed-toolsin the skill’s frontmatter”; the frontmatter reference table (20 fields, none required) and the “Using skill frontmatter outside Claude Code” table, which limits claude.ai uploads and the Skills API toname,description,license,compatibility,metadata, andallowed-tools. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩↩↩↩↩↩↩↩ -
Extend Claude with skills, Claude Code documentation, fetched November 11, 2026: “
Skill(anthropic-skills:pdf)approves the syncedpdfskill”; “Skill(anthropic-skills *)approves every synced skill”; “Run with--debugto see the parse error”; “claude plugin validate .claude/skillsfor project skills orclaude plugin validate ~/.claude/skillsfor personal skills. Requires Claude Code v2.1.233 or later.” Hooks reference, same date: “runclaude --debugand read the log at~/.claude/debug/<session-id>.txt. The--debugflag doesn’t print to the terminal.” ↩↩↩ -
Claude Code CHANGELOG, section 2.1.0, fetched November 11, 2026: “Added support for running skills and slash commands in a forked sub-agent context using
context: forkin skill frontmatter”. Extend Claude with skills, Claude Code documentation, same date, frontmatter reference: “Set toforkto run in a forked subagent context.” ↩ -
Skill authoring best practices, Claude API documentation, fetched November 11, 2026: “Always use forward slashes in file paths, even on Windows”. ↩
-
Extend Claude with skills, Claude Code documentation, fetched November 11, 2026. On
${CLAUDE_SKILL_DIR}: “The directory containing the skill’sSKILL.mdfile”; “Use this in bash injection commands to reference scripts or files bundled with the skill, regardless of the current working directory”; “The script path uses${CLAUDE_SKILL_DIR}so it resolves correctly whether the skill is installed at the personal, project, or plugin level”, in an example that runspython3 ${CLAUDE_SKILL_DIR}/scripts/visualize.py .. On commands: “Claude Code runs each command in the session shell’s current working directory”. On supporting files: “Reference supporting files fromSKILL.mdso Claude knows what each file contains and when to load it”, with links written as[reference.md](reference.md). Oncontext: fork: “Claude Code also waits for the result, even when the skill doesn’t setbackground: false, in cases like these”, the first of which is “In non-interactive mode, with the-pflag or the Agent SDK”. ↩↩↩ -
Configure permissions, Claude Code documentation, fetched November 11, 2026: “A bare tool name like
Bashremoves the tool from Claude’s context entirely, so Claude never sees it”; “A scoped rule likeBash(rm *)leaves the tool available and blocks matching calls when Claude attempts them”; of a bareWebFetchdeny rule, “Claude Code removes theWebFetchtool, so Claude can’t fetch at all”; “refuses commands that begin withgit push. A push written another way, such asgit -C . push, isn’t matched”; “It doesn’t match the same program invoked in a different form, so a deny or ask rule covers the invocation Claude usually produces and isn’t a security boundary around the program.” Configure auto mode, same date: “A push Claude writes another way, such asgit -C <dir> pushorgit -c <key>=<value> push, doesn’t match the rule”. Extend Claude with skills, same date: “To block tools across all skills and prompts, add deny rules in your permission settings.” ↩ -
Claude Code CHANGELOG, v2.1.323 through v2.1.332, fetched November 25, 2026 (294, 139, 367, 173, 144, 130, 142, 135, and 150 top-level bullets for 2.1.323, 2.1.325, 2.1.326, 2.1.327, 2.1.328, 2.1.329, 2.1.330, 2.1.331, and 2.1.332; no 2.1.324 section), and the GitHub releases v2.1.323 (2026-11-12T22:12:13Z), v2.1.325 (11-13T20:40:01Z), v2.1.326 (11-16T22:11:05Z), v2.1.327 (11-17T23:17:45Z), v2.1.328 (11-19T01:14:04Z), v2.1.329 (11-19T22:14:41Z), v2.1.330 (11-20T22:32:56Z), v2.1.331 (11-23T21:34:41Z), and v2.1.332 (11-25T01:32:14Z); no v2.1.324 release exists. npm publish times from
npm view @anthropic-ai/claude-code time: 2.1.323 2026-11-12T20:29:28Z, 2.1.324 11-13T18:42:36Z, 2.1.325 11-13T20:07:25Z, 2.1.326 11-16T18:43:39Z, 2.1.327 11-17T20:33:19Z, 2.1.328 11-18T23:09:39Z, 2.1.329 11-19T18:40:25Z, 2.1.330 11-20T19:16:01Z, 2.1.331 11-23T18:36:26Z, 2.1.332 11-24T22:06:38Z;dist-tagson 2026-11-25:latest2.1.332,next2.1.332,stable2.1.326. Verbatim, 2.1.332: “Changed the default model on Microsoft Foundry to Sonnet 5.5: deployclaude-sonnet-5-5, or setANTHROPIC_DEFAULT_SONNET_MODELto a model you have deployed”; “Changed thesonnetmodel alias on Google Cloud’s Agent Platform and Microsoft Foundry to Sonnet 5.5, and Foundry’sopusalias to Opus 5.5;sonneton Amazon Bedrock stays at Sonnet 4.5”; “Added aPreSkillShellCommandhook event that can refuse a skill or command’s inline shell commands as it loads; on 2.1.331 and older, a settings file naming it opens a dialog at start”; “Added skills from MCP servers (beta). They show asserver:skillin the/menu; other skills keep their names”; “Changed/schedule, permission prompts and/loop’s cloud offer to say “cloud scheduled task” instead of “routine” or “cloud schedule”;/routinesstill works”. 2.1.330: “Changed recurring scheduled tasks and/loopto run up to 30 days instead of 7 while their session keeps running, and say when they end; tasks made before this release still end at 7 days”. 2.1.328: “Added auto mode for Claude Opus 4.6 and Sonnet 4.6 on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry and Claude apps gateway; interactive sessions with no permission mode start in it”. 2.1.325: “Changed sandboxed Bash commands to follow the normal permission flow by default; setsandbox.autoAllowBashIfSandboxed: trueto keep running them without prompts”. 2.1.323: “Added Code Mode, an experimental opt-in in which Claude writes JavaScript to call its tools”; “Removed thesubagentStatusLinesetting: subagent rows always use the default look, and settings files that still hold the key load as before”; “Changed the context window assumed for a model ID that Claude Code doesn’t recognize from 200K to 1M; use/autocompactto compact earlier, orCLAUDE_CODE_DISABLE_1M_CONTEXT=1to keep 200K”; “ChangedMCP_SDK_GENERATION=v1to run the v2 MCP client in a compatibility mode (earlier handshake, relaxed OAuth sign-in checks), because the v1 MCP client is removed”. ↩↩ -
Hooks reference, Claude Code documentation, fetched November 25, 2026 (34 rows in the event table). PreSkillShellCommand: “Runs before an injected command, a shell command that runs while a skill or a command such as
/security-reviewloads. PreToolUse hooks don’t fire for injected commands.”; “Requires Claude Code v2.1.332 or later, including in the desktop app and VS Code extension.”; “an earlier version such as v2.1.331 opens each interactive terminal session with a warning dialog:Unknown hook event "PreSkillShellCommand" was ignored”; “If you configure apromptoragenthook on this event, Claude Code can’t run it and blocks each command the hook matches.”; “Your script runs after the permission check on injected commands, so it gets the commands that passed. It also runs inbypassPermissionsmode.”; “You can block a command from this hook, but you can’t approve or change one.” On failures: “set"onFailure": "block"on acommand,http, ormcp_toolhook. Requires Claude Code v2.1.295 or later. Onmcp_toolhooks,onFailurerequires v2.1.328 or later.” Reusing the script: “You can reuse the blocking script from How a hook resolves.”; “To use one script on both events, leavehookEventNameasPreToolUse.”; the script printed under “How a hook resolves” is saved as.claude/hooks/block-rm.sh, and the page adds “installjqand make sure it is on yourPATH”. ↩ -
Connect Claude Code to tools via MCP and Environment variables, Claude Code documentation, fetched November 25, 2026. MCP skills: “MCP skills are in public beta and require Claude Code v2.1.331 or later.”; “A skill’s name is
<server>:<skill>.”; “When Claude loads an MCP skill in auto mode, the default, you don’t see a prompt. The classifier decides whether the skill loads, without reading it.”; “When you sign in with/loginon a Pro, Max, or Ultra plan, MCP skills are on. With/loginon a Team or Enterprise plan, they’re off until your organization turns them on.”; “Anthropic doesn’t scan skills from other connectors or servers, including Directory servers added withclaude mcp add.”; “Skills can direct Claude to run code. Servers can change skills at any time. Add only servers you trust.” Onadd-json: “To pipe the JSON in, pass-in its place:cat server.json | claude mcp add-json <name> -. Run the command outside a Claude Code session. Requires Claude Code v2.1.327 or later.” Environment variables,MCP_SDK_GENERATION: “Pin which MCP client runtime this process connects to MCP servers with:v1, built on MCP TypeScript SDK 1.x, orv2”. ↩ -
Extend Claude with skills, Claude Code documentation, fetched November 25, 2026, frontmatter reference,
model: “Accepts/modelvalues, orinheritfor the active model. When Claude runs the skill, the session keeps its model.”; “Withcontext: fork, the value is the forked subagent’s per-invocation model.” ↩