Changes on
116 changes detected
--- a/2026-w13.md
+++ b/2026-w13.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Releases [v2.1.83 → v2.1.85](</docs/en/changelog#2-1-83>)6 features · March 23–27
Auto moderesearch preview
--- a/2026-w14.md
+++ b/2026-w14.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Releases [v2.1.86 → v2.1.91](</docs/en/changelog#2-1-86>)5 features · March 30 – April 3
Computer use in the CLIresearch preview
--- a/2026-w15.md
+++ b/2026-w15.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Releases [v2.1.92 → v2.1.101](</docs/en/changelog#2-1-92>)4 features · April 6–10
Ultraplanresearch preview
--- a/2026-w16.md
+++ b/2026-w16.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Releases [v2.1.105 → v2.1.113](</docs/en/changelog#2-1-105>)5 features · April 13–17
Claude Opus 4.7new model
--- a/2026-w17.md
+++ b/2026-w17.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Releases [v2.1.114 → v2.1.119](</docs/en/changelog#2-1-114>)4 features · April 20–24
/ultrareviewresearch preview
--- a/admin-setup.md
+++ b/admin-setup.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code enforces organization policy through managed settings that take precedence over local developer configuration. You deliver those settings from the Claude admin console, your mobile device management (MDM) system, or a file on disk. The settings control which tools, commands, servers, and network destinations Claude can reach. This page walks through the deployment decisions in order. Each row links to the section below and to the reference page for that area.
SSO, SCIM provisioning, and seat assignment are configured at the Claude account level. See the [Claude Enterprise Administrator Guide](<https://claude.com/resources/tutorials/claude-enterprise-administrator-guide>) and [seat assignment](<https://support.claude.com/en/articles/11845131-use-claude-code-with-your-team-or-enterprise-plan>) for those steps.
@@ -113,7 +119,7 @@
* [Common workflows](</docs/en/common-workflows>): patterns for everyday tasks like code review, refactoring, and debugging
* [Claude 101](<https://anthropic.skilljar.com/claude-101>) and [Claude Code in Action](<https://anthropic.skilljar.com/claude-code-in-action>): self-paced Anthropic Academy courses
-For login issues, point developers to [authentication troubleshooting](</docs/en/troubleshooting#authentication-issues>). The most common fixes are:
+For login issues, point developers to [authentication troubleshooting](</docs/en/troubleshoot-install#login-and-authentication>). The most common fixes are:
* Run `/logout` then `/login` to switch accounts
* Run `claude update` if the enterprise auth option is missing
--- a/agent-loop.md
+++ b/agent-loop.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The Agent SDK lets you embed Claude Code’s autonomous agent loop in your own applications. The SDK is a standalone package that gives you programmatic control over tools, permissions, cost limits, and output. You don’t need the Claude Code CLI installed to use it. When you start an agent, the SDK runs the same [execution loop that powers Claude Code](</docs/en/how-claude-code-works#the-agentic-loop>): Claude evaluates your prompt, calls tools to take action, receives the results, and repeats until the task is complete. This page explains what happens inside that loop so you can build, debug, and optimize your agents effectively.
##
--- a/agent-teams.md
+++ b/agent-teams.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Agent teams are experimental and disabled by default. Enable them by adding `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` to your [settings.json](</docs/en/settings>) or environment. Agent teams have known limitations around session resumption, task coordination, and shutdown behavior.
Agent teams let you coordinate multiple Claude Code instances working together. One session acts as the team lead, coordinating work, assigning tasks, and synthesizing results. Teammates work independently, each in its own context window, and communicate directly with each other. Unlike [subagents](</docs/en/sub-agents>), which run within a single session and can only report back to the main agent, you can also interact with individual teammates directly without going through the lead.
--- a/amazon-bedrock.md
+++ b/amazon-bedrock.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
@@ -274,6 +280,18 @@
+Service tiers
+
+[Amazon Bedrock service tiers](<https://docs.aws.amazon.com/bedrock/latest/userguide/service-tiers-inference.html>) let you trade off cost against latency. Set `ANTHROPIC_BEDROCK_SERVICE_TIER` to `default`, `flex`, or `priority`:
+
+ export ANTHROPIC_BEDROCK_SERVICE_TIER=priority
+
+Claude Code sends this as the `X-Amzn-Bedrock-Service-Tier` header on each request. Tier availability varies by model and region. Reserved capacity uses a [provisioned throughput](<https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html>) ARN as the model ID instead of this setting.
+
+##
+
+
+
AWS Guardrails
[Amazon Bedrock Guardrails](<https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html>) let you implement content filtering for Claude Code. Create a Guardrail in the [Amazon Bedrock console](<https://console.aws.amazon.com/bedrock/>), publish a version, then add the Guardrail headers to your [settings file](</docs/en/settings>). Enable Cross-Region inference on your Guardrail if you’re using cross-region inference profiles. Example configuration:
--- a/analytics.md
+++ b/analytics.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code provides analytics dashboards to help organizations understand developer usage patterns, track contribution metrics, and measure how Claude Code impacts engineering velocity. Access the dashboard for your plan:
Plan| Dashboard URL| Includes| Read more
--- a/authentication.md
+++ b/authentication.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code supports multiple authentication methods depending on your setup. Individual users can log in with a Claude.ai account, while teams can use Claude for Teams or Enterprise, the Claude Console, or a cloud provider like Amazon Bedrock, Google Vertex AI, or Microsoft Foundry.
##
@@ -13,7 +19,7 @@
* **Claude Console** : log in with your Console credentials. Your admin must have invited you first.
* **Cloud providers** : if your organization uses [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Vertex AI](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>), set the required environment variables before running `claude`. No browser login is needed.
-To log out and re-authenticate, type `/logout` at the Claude Code prompt. If you’re having trouble logging in, see [authentication troubleshooting](</docs/en/troubleshooting#authentication-issues>).
+To log out and re-authenticate, type `/logout` at the Claude Code prompt. If you’re having trouble logging in, see [authentication troubleshooting](</docs/en/troubleshoot-install#login-and-authentication>).
##
--- a/auto-mode-config.md
+++ b/auto-mode-config.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
[Auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>) lets Claude Code run without permission prompts by routing each tool call through a classifier that blocks anything irreversible, destructive, or aimed outside your environment. Use the `autoMode` settings block to tell that classifier which repos, buckets, and domains your organization trusts, so it stops blocking routine internal operations. Out of the box, the classifier trusts only the working directory and the current repo’s configured remotes. Actions like pushing to your company’s source-control org or writing to a team cloud bucket are blocked until you add them to `autoMode.environment`. For how to enable auto mode and what it blocks by default, see [Permission modes](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>). This page is the configuration reference. This page covers how to:
* Choose where to set rules across CLAUDE.md, user settings, and managed settings
--- a/best-practices.md
+++ b/best-practices.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code is an agentic coding environment. Unlike a chatbot that answers questions and waits, Claude Code can read your files, run commands, make changes, and autonomously work through problems while you watch, redirect, or step away entirely. This changes how you work. Instead of writing code yourself and asking Claude to review it, you describe what you want and Claude figures out how to build it. Claude explores, plans, and implements. But this autonomy still comes with a learning curve. Claude works within certain constraints you need to understand. This guide covers patterns that have proven effective across Anthropic’s internal teams and for engineers using Claude Code across various codebases, languages, and environments. For how the agentic loop works under the hood, see [How Claude Code works](</docs/en/how-claude-code-works>).
* * *
Show diff (242 lines)
--- a/champion-kit.md
+++ b/champion-kit.md
@@ -0,0 +1,239 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
+This page is for individual engineers who are already using Claude Code and want to help their team adopt it. It covers what to share, how to answer the questions you will get, a thirty-day playbook, and responses to common concerns. Adoption of a developer tool rarely happens because of a rollout announcement. It happens because someone on the team begins using the tool well, talks about it openly, and makes it easy for others to follow. The work you do as a champion has a disproportionate effect: every example you share shortens the learning curve for the engineers who come after you, and every question you answer in public turns one person’s experience into something the whole team can build on. You are acting as a multiplier for your team, not a help desk, and this guide is structured to keep the role sustainable on those terms.
+
+##
+
+
+
+The champion role
+
+The role consists of three behaviors that reinforce one another.
+
+Behavior| What it looks like in practice| Why it matters
+---|---|---
+Share what you discover| Post the prompts, screenshots, and small wins from your own work in the places your team already reads, such as an engineering channel, a standup thread, or a pull-request description.| Examples drawn from your own codebase are more persuasive than any external documentation, because colleagues can see exactly how the tool applies to the problems they share with you.
+Be the person people ask| When a colleague asks how you accomplished something, respond with the actual prompt you used so they can apply it directly to their own task.| A concrete, runnable example removes the gap between curiosity and a first successful use, which is where most adoption efforts stall.
+Grow the circle| Establish a small number of lightweight, recurring habits, such as a dedicated channel or a weekly thread, so that momentum continues even when your attention is elsewhere.| Adoption that depends on a single person is fragile. Adoption that is carried by shared habits continues to compound on its own.
+
+Most of this fits naturally inside the work you are already doing. The difference is a small amount of additional intention about where your discoveries are posted and how your answers travel.
+
+###
+
+
+
+What this should cost you
+
+Set expectations with yourself and with your lead. The activities below are intended to fit inside a normal working week, and the role should remain a multiplier on your existing work rather than an additional support responsibility.
+
+Activity| Time per week| Guidance
+---|---|---
+Posting wins and prompts| About 15 minutes| Capture these in the moment with a screenshot and one or two sentences; avoid turning them into formal write-ups.
+Answering questions in a shared channel| About 20 minutes| Answer publicly once, then link back to that answer when the question recurs.
+Hosting a weekly show-and-tell thread| About 5 minutes| You post the opening prompt; the team supplies the content.
+Optional pairing or walkthroughs| 0 to 30 minutes| Reserve this for colleagues who are genuinely blocked, and offer the [Quickstart](</docs/en/quickstart>) link before scheduling time.
+
+##
+
+
+
+Share what you discover
+
+Your own experience is the most persuasive material your colleagues will encounter, because it is specific to the codebase, workflows, and problems you all share. Documentation tells people what is possible; your posts show them what is actually working in your environment.
+
+###
+
+
+
+What is worth sharing
+
+The most useful posts describe a technique a colleague can reuse tomorrow rather than an outcome that is already complete. Techniques compound as they spread through a team; status updates do not. Examples of reusable techniques:
+
+ * “I learned that @-mentioning a directory works. Pointing it at `@src/components/` and asking which were missing tests surfaced two I had overlooked.”
+ * “Plan mode (`Shift+Tab`) shows exactly which files will be touched before any edit is made, which is why I am comfortable using it on shared code.”
+ * “I configured a Stop hook so I receive a desktop notification when a long task completes. Configuration is in the thread.”
+ * “Running `/init` generates a `CLAUDE.md` from the repository so the assistant stops re-asking about our conventions.”
+
+###
+
+
+
+Where to share it
+
+Post wherever your team already reads. The goal is to place examples in the path of normal work rather than to create a destination.
+
+Location| Best suited for| Recommended format
+---|---|---
+A `#claude-code` or general engineering channel| Discoveries, prompts, and “today I learned” moments| A screenshot accompanied by one or two sentences of context
+Pull-request descriptions| Demonstrating the approach on real code that reviewers are already reading| A single line such as “Claude and I did this refactor; happy to walk through the approach.”
+Standups or weekly written updates| Normalizing usage with leads and skip-level managers| One sentence describing one concrete outcome
+Team wiki or internal documentation| Durable patterns, custom skills, and `CLAUDE.md` examples| A short page, linked from the channel topic so it remains discoverable
+
+###
+
+
+
+The format that works
+
+A screenshot accompanied by a single line of context, or a brief before-and-after description, is generally the right level of detail. Keep each post short enough that someone scrolling past still absorbs the point. A long write-up tends to be saved for later and forgotten, whereas a short post with a screenshot tends to be copied and tried. The example posts below illustrate tone and length; adapt them rather than copying verbatim.
+
+ Learned today that @-mentioning a directory works. I pointed it at
+ @src/components/ and asked which components were missing tests, and it
+ surfaced two I had forgotten about.
+
+ I configured a Stop hook so I receive a desktop notification when a long
+ task completes. I started a refactor, stepped away, and was notified when
+ it finished. Configuration is in the thread.
+
+ Plan mode is the reason I am comfortable using this on code that matters.
+ Press Shift+Tab until you see "plan"; it lays out exactly which files it
+ intends to touch before changing anything.
+
+##
+
+
+
+Be the person people ask
+
+Once you have shared a few examples, questions will follow. This is where the champion role has the greatest leverage, because a good answer to one person frequently unblocks several others who are watching the same channel.
+
+###
+
+
+
+Answer with a prompt rather than an explanation
+
+When a colleague asks how you accomplished something, the most useful response is the prompt you actually used. They will learn more from running that prompt against their own problem than from any description you could write, and it gives them something they can act on immediately.
+
+ Colleague: How did you get it to find that race condition?
+
+ Champion: I asked, "The test in @tests/scheduler.test.ts is flaky, figure
+ out why," and it traced two unjoined promises in the scheduler. Try the
+ same phrasing on your test.
+
+###
+
+
+
+Point at the feature rather than the documentation
+
+A response such as “Try plan mode, press `Shift+Tab` until you see it” is more useful in the moment than a link to the documentation. If the person needs more depth later they will find it on their own; right now they need the single thing that unblocks them.
+
+###
+
+
+
+Questions you are likely to hear
+
+Question| Suggested response| Follow-up resource
+---|---|---
+”What should I try it on first?”| Recommend a real but contained task, ideally a bug or chore the person has been postponing because it is tedious rather than difficult.| [Common workflows](</docs/en/common-workflows>)
+”How do I trust it with my code?”| Introduce plan mode: pressing `Shift+Tab` cycles into it, Claude proposes exactly what it intends to change, and nothing is modified until the user approves.| [Permissions](</docs/en/permissions>)
+”Is the setup worth the effort?”| Installation takes roughly two minutes, runs in the terminal, and requires no IDE extension. Running `/init` once is sufficient to begin working.| [Quickstart](</docs/en/quickstart>)
+”It produced an incorrect result.”| Encourage them to provide the failure back to Claude. Pasting the error message or failing test is far more effective than rephrasing the original request.| [Common workflows](</docs/en/common-workflows>)
+”It does not understand our codebase conventions.”| Suggest running `/init` to generate a `CLAUDE.md` file, then adding the team’s conventions, test commands, and any directories that should be avoided.| [Memory](</docs/en/memory>)
+”Is this just autocomplete?”| Offer a brief demonstration in which Claude explains an unfamiliar file, traces a bug across services, or drafts a migration plan. These tasks require reasoning across the repository rather than completing a single line.| A two-minute live demonstration
+”What about security and data handling?”| Refer this question to your administrator. Your organization’s deployment and data-handling policy is already configured, and champions should not improvise this answer.| [Security](</docs/en/security>) · [Data usage](</docs/en/data-usage>)
+
+##
+
+
+
+Grow the circle
+
+The objective is not to build a program or to own a rollout. It is to establish a small number of lightweight habits that allow momentum to continue after you have stopped actively driving it. When questions in the channel are being answered by people other than you, the role has done its job.
+
+###
+
+
+
+Patterns that tend to work
+
+Pattern| How to run it| Effort required
+---|---|---
+A dedicated channel| Create a `#claude-code` channel (or a recurring thread in an existing one), pin the [Quickstart](</docs/en/quickstart>) link and one strong example, and answer questions publicly so each answer benefits everyone watching.| About five minutes to set up, then ambient
+A weekly show-and-tell thread| Each Friday, post “What did Claude help you with this week?” No preparation, slides, or meeting are required; screenshots and short descriptions are sufficient.| About two minutes per week
+Share a custom skill| Post your most useful `.claude/skills/<name>/SKILL.md` file, for example a `/ship` skill that runs tests and lint before committing, with a one-line description. Because skills are plain Markdown, colleagues can adopt them immediately.| About five minutes per skill
+Generate a setup guide from your own usage| Run `/team-onboarding` in a project you have spent real time in. Claude scans your recent sessions, commands, and MCP servers, then produces a guide a new teammate can paste as their first message to replay your setup. Pin it in the channel.| About two minutes
+Pair on a first task| Offer a single fifteen-minute pairing session to anyone getting started. One successful outcome on their own code is more persuasive than any presentation.| About fifteen minutes per person
+Identify the next champion| The colleague who asks you the most questions is usually ready to take on this role. Forward them this page and divide the channel responsibilities between you.| Negligible
+
+###
+
+
+
+Thirty-day playbook
+
+If a loose plan is helpful, the sequence below reflects what tends to work across most teams. Adjust freely to fit your context.
+
+1
+
+Week 1: Seed the channel
+
+Create the channel, pin the [Quickstart](</docs/en/quickstart>), and post two or three of your own examples with the prompts included.**Signal that it is working:** a few colleagues react or reply, and at least one question is asked in the channel.
+
+2
+
+Week 2: Start the rhythm
+
+Start the weekly show-and-tell thread, answer every question publicly, and share one custom skill or `CLAUDE.md` snippet.**Signal that it is working:** someone other than you posts an example of their own.
+
+3
+
+Week 3: Pair and consolidate
+
+Offer two or three short pairing sessions and consolidate the most common questions and answers into a pinned FAQ message.**Signal that it is working:** you see repeat usage, with the same colleagues returning rather than trying once and stopping.
+
+4
+
+Week 4: Hand off
+
+Identify a second champion and share a brief summary of what is working and what is not with your lead or administrator.**Signal that it is working:** questions in the channel are being answered by people other than you.
+
+###
+
+
+
+When someone wants to go deeper
+
+You are the warm introduction rather than the onboarding program. When a colleague moves past “should I try this” into “how do I become effective with it,” point them to the [Quickstart](</docs/en/quickstart>) and [Common workflows](</docs/en/common-workflows>) pages. They contain short sections covering the features that are genuinely useful but difficult to discover on your own.
+
+##
+
+
+
+Respond to common concerns
+
+Healthy skepticism is expected; engineers should be cautious about tools that touch their code. The most effective response is rarely to argue the general case. Instead, acknowledge the concern, offer a brief reframe, and propose one concrete demonstration on the person’s own code. Most concerns are resolved by a single successful experience.
+
+Concern| Suggested response| Evidence to offer
+---|---|---
+”I am faster without it.”| That is likely true for code the person writes routinely. Suggest trying it on the work they tend to avoid: legacy files, unfamiliar services, or test scaffolding, where the leverage is highest.| Time one tedious task both ways and compare.
+”I do not trust AI to touch production code.”| Agree that no change should land unread. Plan mode combined with normal diff review means nothing is applied that the engineer has not inspected, the same standard as any pull request.| Demonstrate plan mode on a real file.
+”It will make junior engineers weaker.”| Used well, it is an effective explainer. Encourage junior engineers to ask Claude to explain a file and its call sites before asking it to change anything.| Run “Explain @file and where it is called from” together.
+”I tried it once and it hallucinated.”| This is usually a context problem rather than a model problem. @-mentioning the relevant files, running `/init`, and providing the actual error output typically resolves it.| Re-run their original prompt with proper `@`-context.
+”We do not have time to learn another tool.”| Claude Code is a terminal command rather than a platform. If it does not return value within the first session, it is reasonable to set it aside.| A two-minute install followed by one real bug.
+
+##
+
+
+
+Quick-reference sheet
+
+The techniques below are the ones that most reliably move someone from a first trial to daily use. Pin this table in a channel or share it on its own.
+
+Technique| How to apply it
+---|---
+Provide the right context| Use `@file` or `@directory/` references, or paste the error or log output directly. Supplying relevant context is more effective than elaborate prompting.
+Review the plan before the edit| Press `Shift+Tab` to enter plan mode. Claude will describe the intended changes for your approval before executing them.
+Teach it your repository| Run `/init` to generate a `CLAUDE.md` file, then add your conventions, test commands, and any directories that should not be modified. See [Memory](</docs/en/memory>).
+Reuse a workflow| Save a `SKILL.md` file in `.claude/skills/<name>/` to create a `/name` skill that the entire team can use. See [Skills](</docs/en/skills>).
+Stay informed during long tasks| Configure a Stop hook to receive a desktop notification when a long-running task completes. See [Hooks](</docs/en/hooks-guide>).
+Recover from an incorrect result| Rather than rephrasing the request, paste the failing test or stack trace back to Claude and ask it to address that specific failure.
+Keep edits surgical| Ask for a diff, or specify “only change X.” Claude respects scope when scope is stated.
+
+Claude Code is updated frequently. Verify version-specific details against the [documentation home page](</docs/en/overview>) before distributing this material internally.
--- a/changelog.md
+++ b/changelog.md
@@ -1,4 +1,43 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
This page is generated from the [CHANGELOG.md on GitHub](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md>). Run `claude --version` to check your installed version.
+
+
+
+2.1.123
+
+April 29, 2026
+
+ * Fixed OAuth authentication failing with a 401 retry loop when `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1` is set
+
+
+
+2.1.122
+
+April 28, 2026
+
+ * Added `ANTHROPIC_BEDROCK_SERVICE_TIER` environment variable to select a Bedrock service tier (`default`, `flex`, or `priority`), sent as the `X-Amzn-Bedrock-Service-Tier` header
+ * Pasting a PR URL into the `/resume` search box now finds the session that created that PR (GitHub, GitHub Enterprise, GitLab, and Bitbucket)
+ * `/mcp` now shows claude.ai connectors hidden by a manually-added server with the same URL, with a hint to remove the duplicate
+ * Clarified the `/mcp` message shown when an MCP server is still unauthorized after the browser sign-in flow
+ * OpenTelemetry: numeric attributes on `api_request`/`api_error` log events are now emitted as numbers, not strings
+ * OpenTelemetry: added `claude_code.at_mention` log event for `@`-mention resolution
+ * Fixed `/branch` producing forks that fail with “tool_use ids were found without tool_result blocks” when the source session contained entries from rewound timelines
+ * Fixed `/model` not showing the Effort option for Bedrock application inference profile ARNs, and those ARNs not receiving `output_config.effort`
+ * Fixed Vertex AI / Bedrock returning `invalid_request_error: output_config: Extra inputs are not permitted` on session-title generation and other structured-output queries
+ * Fixed Vertex AI `count_tokens` endpoint returning 400 errors for users behind proxy gateways
+ * Fixed `spinnerTipsOverride.excludeDefault` not suppressing the time-based spinner tips
+ * Fixed ToolSearch missing MCP tools that connected after session start in nonblocking mode
+ * Fixed `!exit` / `!quit` in bash mode terminating the CLI instead of running as a shell command
+ * Fixed images sent to newer models being resized to 2576px per side instead of the correct 2000px maximum
+ * Fixed remote control session idle status redrawing twice per second, which could flood `tmux -CC` control pipes and pause the terminal
+ * Fixed assistant messages appearing blank in some sessions due to a stale view preference
+ * Fixed a malformed hooks entry in `settings.json` no longer invalidating the entire file
+ * Voice mode: keybindings bound to Caps Lock now show an error since terminals don’t deliver Caps Lock as a key event
--- a/channels.md
+++ b/channels.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Channels are in research preview and require Claude Code v2.1.80 or later. They require claude.ai login. Console and API key authentication is not supported. Team and Enterprise organizations must explicitly enable them.
A channel is an MCP server that pushes events into your running Claude Code session, so Claude can react to things that happen while you’re not at the terminal. Channels can be two-way: Claude reads the event and replies back through the same channel, like a chat bridge. Events only arrive while the session is open, so for an always-on setup you run Claude in a background process or persistent terminal. Unlike integrations that spawn a fresh cloud session or wait to be polled, the event arrives in the session you already have open: see how channels compare. You install a channel as a plugin and configure it with your own credentials. Telegram, Discord, and iMessage are included in the research preview. When Claude replies through a channel, you see the inbound message in your terminal but not the reply text. The terminal shows the tool call and a confirmation (like “sent”), and the actual reply appears on the other platform. This page covers:
--- a/channels-reference.md
+++ b/channels-reference.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Channels are in [research preview](</docs/en/channels#research-preview>) and require Claude Code v2.1.80 or later. They require claude.ai login. Console and API key authentication is not supported. Team and Enterprise organizations must [explicitly enable them](</docs/en/channels#enterprise-controls>).
A channel is an MCP server that pushes events into a Claude Code session so Claude can react to things happening outside the terminal. You can build a one-way or two-way channel. One-way channels forward alerts, webhooks, or monitoring events for Claude to act on. Two-way channels like chat bridges also expose a reply tool so Claude can send messages back. A channel with a trusted sender path can also opt in to relay permission prompts so you can approve or deny tool use remotely. This page covers:
--- a/checkpointing.md
+++ b/checkpointing.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code automatically tracks Claude’s file edits as you work, allowing you to quickly undo changes and rewind to previous states if anything gets off track.
##
--- a/chrome.md
+++ b/chrome.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code integrates with the [Claude in Chrome browser extension](<https://chromewebstore.google.com/detail/claude/fcoeoabgfenejglbffodgkkbkcdhcgfn>) to give you browser automation capabilities from the CLI or the [VS Code extension](</docs/en/vs-code#automate-browser-tasks-with-chrome>). Build your code, then test and debug in the browser without switching contexts. Claude opens new tabs for browser tasks and shares your browser’s login state, so it can access any site you’re already signed into. Browser actions run in a visible Chrome window in real time. When Claude encounters a login page or CAPTCHA, it pauses and asks you to handle it manually.
Chrome integration is in beta and currently works with Google Chrome and Microsoft Edge. It is not yet supported on Brave, Arc, or other Chromium-based browsers. WSL (Windows Subsystem for Linux) is also not supported.
--- a/claude-code-features.md
+++ b/claude-code-features.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The Agent SDK is built on the same foundation as Claude Code, which means your SDK agents have access to the same filesystem-based features: project instructions (`CLAUDE.md` and rules), skills, hooks, and more. When you omit `settingSources`, `query()` reads the same filesystem settings as the Claude Code CLI: user, project, and local settings, CLAUDE.md files, and `.claude/` skills, agents, and commands. To run without these, pass `settingSources: []`, which limits the agent to what you configure programmatically. Managed policy settings and the global `~/.claude.json` config are read regardless of this option. See What settingSources does not control. For a conceptual overview of what each feature does and when to use it, see [Extend Claude Code](</docs/en/features-overview>).
##
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code on the web is in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats.
Claude Code on the web runs tasks on Anthropic-managed cloud infrastructure at [claude.ai/code](<https://claude.ai/code>). Sessions persist even if you close your browser, and you can monitor them from the Claude mobile app.
--- a/claude-directory.md
+++ b/claude-directory.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code reads instructions, settings, skills, subagents, and memory from your project directory and from `~/.claude` in your home directory. Commit project files to git to share them with your team; files in `~/.claude` are personal configuration that applies across all your projects. On Windows, `~/.claude` resolves to `%USERPROFILE%\.claude`. If you set [`CLAUDE_CONFIG_DIR`](</docs/en/env-vars>), every `~/.claude` path on this page lives under that directory instead. Most users only edit `CLAUDE.md` and `settings.json`. The rest of the directory is optional: add skills, rules, or subagents as you need them.
##
--- a/cli-reference.md
+++ b/cli-reference.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
@@ -65,13 +71,13 @@
`--fork-session`| When resuming, create a new session ID instead of reusing the original (use with `--resume` or `--continue`)| `claude --resume abc123 --fork-session`
`--from-pr`| Resume sessions linked to a specific pull request. Accepts a PR number, a GitHub or GitHub Enterprise PR URL, a GitLab merge request URL, or a Bitbucket pull request URL. Sessions are linked automatically when Claude creates the pull request| `claude --from-pr 123`
`--ide`| Automatically connect to IDE on startup if exactly one valid IDE is available| `claude --ide`
-`--init`| Run initialization hooks and start interactive mode| `claude --init`
-`--init-only`| Run initialization hooks and exit (no interactive session)| `claude --init-only`
+`--init`| Run [Setup hooks](</docs/en/hooks#setup>) with the `init` matcher before the session (print mode only)| `claude -p --init "query"`
+`--init-only`| Run [Setup](</docs/en/hooks#setup>) and `SessionStart` hooks, then exit without starting a conversation| `claude --init-only`
`--include-hook-events`| Include all hook lifecycle events in the output stream. Requires `--output-format stream-json`| `claude -p --output-format stream-json --include-hook-events "query"`
`--include-partial-messages`| Include partial streaming events in output. Requires `--print` and `--output-format stream-json`| `claude -p --output-format stream-json --include-partial-messages "query"`
`--input-format`| Specify input format for print mode (options: `text`, `stream-json`)| `claude -p --output-format json --input-format stream-json`
`--json-schema`| Get validated JSON output matching a JSON Schema after agent completes its workflow (print mode only, see [structured outputs](</docs/en/agent-sdk/structured-outputs>))| `claude -p --json-schema '{"type":"object","properties":{...}}' "query"`
-`--maintenance`| Run maintenance hooks and start interactive mode| `claude --maintenance`
+`--maintenance`| Run [Setup hooks](</docs/en/hooks#setup>) with the `maintenance` matcher before the session (print mode only)| `claude -p --maintenance "query"`
`--max-budget-usd`| Maximum dollar amount to spend on API calls before stopping (print mode only)| `claude -p --max-budget-usd 5.00 "query"`
`--max-turns`| Limit the number of agentic turns (print mode only). Exits with an error when the limit is reached. No limit by default| `claude -p --max-turns 3 "query"`
`--mcp-config`| Load MCP servers from JSON files or strings (space-separated)| `claude --mcp-config ./mcp.json`
--- a/code-review.md
+++ b/code-review.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Code Review is in research preview, available for [Team and Enterprise](<https://claude.ai/admin-settings/claude-code>) subscriptions. It is not available for organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled.
Code Review analyzes your GitHub pull requests and posts findings as inline comments on the lines of code where it found issues. A fleet of specialized agents examine the code changes in the context of your full codebase, looking for logic errors, security vulnerabilities, broken edge cases, and subtle regressions. Findings are tagged by severity and don’t approve or block your PR, so existing review workflows stay intact. You can tune what Claude flags by adding a `CLAUDE.md` or `REVIEW.md` file to your repository. To run Claude in your own CI infrastructure instead of this managed service, see [GitHub Actions](</docs/en/github-actions>) or [GitLab CI/CD](</docs/en/gitlab-ci-cd>). For repositories on a self-hosted GitHub instance, see [GitHub Enterprise Server](</docs/en/github-enterprise-server>). This page covers:
--- a/commands.md
+++ b/commands.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Commands control Claude Code from inside a session. They provide a quick way to switch models, manage permissions, clear context, run a workflow, and more. Type `/` to see every command available to you, or type `/` followed by letters to filter. The table below lists all the commands included in Claude Code. Entries marked **[Skill](</docs/en/skills#bundled-skills>)** are bundled skills. They use the same mechanism as skills you write yourself: a prompt handed to Claude, which Claude can also invoke automatically when relevant. Everything else is a built-in command whose behavior is coded into the CLI. To add your own commands, see [skills](</docs/en/skills>). Not every command appears for every user. Availability depends on your platform, plan, and environment. For example, `/desktop` only shows on macOS and Windows, and `/upgrade` only shows on Pro and Max plans. In the table below, `<arg>` indicates a required argument and `[arg]` indicates an optional one.
Command| Purpose
@@ -29,7 +35,7 @@
`/feedback [report]`| Submit feedback about Claude Code. Alias: `/bug`
`/fewer-permission-prompts`| **[Skill](</docs/en/skills#bundled-skills>).** Scan your transcripts for common read-only Bash and MCP tool calls, then add a prioritized allowlist to project `.claude/settings.json` to reduce permission prompts
`/focus`| Toggle the focus view, which shows only your last prompt, a one-line tool-call summary with edit diffstats, and the final response. The selection persists across sessions. Only available in [fullscreen rendering](</docs/en/fullscreen>)
-`/heapdump`| Write a JavaScript heap snapshot and a memory breakdown to `~/Desktop` for diagnosing high memory usage. See [troubleshooting](</docs/en/troubleshooting#high-cpu-or-memory-usage>)
+`/heapdump`| Write a JavaScript heap snapshot and a memory breakdown to `~/Desktop`, or your home directory on Linux without a Desktop folder, for diagnosing high memory usage. See [troubleshooting](</docs/en/troubleshooting#high-cpu-or-memory-usage>)
`/help`| Show help and available commands
`/hooks`| View [hook](</docs/en/hooks>) configurations for tool events
`/ide`| Manage IDE integrations and show status
--- a/common-workflows.md
+++ b/common-workflows.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
This page covers practical workflows for everyday development: exploring unfamiliar code, debugging, refactoring, writing tests, creating PRs, and managing sessions. Each section includes example prompts you can adapt to your own projects. For higher-level patterns and tips, see [Best practices](</docs/en/best-practices>).
##
@@ -343,7 +349,7 @@
enhance the PR description with more context about the security improvements
-When you create a PR using `gh pr create`, the session is automatically linked to that PR. You can resume it later with `claude --from-pr <number>`.
+When you create a PR using `gh pr create`, the session is automatically linked to that PR. To return to it later, run `claude --from-pr <number>` or paste the PR URL into the `/resume` picker search.
Review Claude’s generated PR before submitting and ask Claude to highlight potential risks or considerations.
@@ -596,7 +602,7 @@
`Enter`| Select and resume the highlighted session
`Space`| Preview the session content. `Ctrl+V` also works on terminals that do not capture it as paste
`Ctrl+R`| Rename the highlighted session
-`/` or any printable character other than `Space`| Enter search mode and filter sessions
+`/` or any printable character other than `Space`| Enter search mode and filter sessions. Paste a GitHub, GitHub Enterprise, GitLab, or Bitbucket pull or merge request URL to find the session that created it
`Ctrl+A`| Show sessions from all projects on this machine. Press again to restore the current repository
`Ctrl+W`| Show sessions from all worktrees of the current repository. Press again to restore the current worktree. Only shown in multi-worktree repositories
`Ctrl+B`| Filter to sessions from your current git branch. Press again to show sessions from all branches
@@ -812,7 +818,9 @@
`permission_prompt`| Claude needs you to approve a tool use
`idle_prompt`| Claude is done and waiting for your next prompt
`auth_success`| Authentication completes
-`elicitation_dialog`| Claude is asking you a question
+`elicitation_dialog`| An MCP server opens an elicitation form
+`elicitation_complete`| An MCP elicitation form is submitted or dismissed
+`elicitation_response`| An MCP elicitation response is sent back to the server
3
Show diff (546 lines)
--- a/communications-kit.md
+++ b/communications-kit.md
@@ -0,0 +1,543 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
+This page is for administrators and engineering leads rolling Claude Code out to a team. It provides copy-ready launch announcements, a tips-and-tricks drip campaign, and one-line FAQ responses for the questions you will be asked most.
+
+Treat everything here as draft copy, not finished copy. Rewrite each message in your organization’s voice, swap the example tasks for real bugs and modules from your own codebase, and replace the `[bracketed placeholders]` before sending. The announcements that drive adoption are the ones that read like someone at your company wrote them.
+
+##
+
+
+
+Launch communications
+
+One announcement in two formats, plus two optional variants. Pick whichever fits your rollout and rewrite it from there.
+
+###
+
+
+
+Before you send
+
+Work through this checklist before the announcement goes out. Each item closes a gap that otherwise turns into a launch-day support thread.
+
+Item| Why it matters
+---|---
+`#claude-code` channel created and linked in the message| Gives questions one place to land
+Install command tested on at least one machine in your environment| Catches proxy or firewall issues before everyone hits them at once
+Security and data-handling link ready ([Data usage](</docs/en/data-usage>) or your internal equivalent)| “Where does my code go?” will be the first reply
+One concrete first task chosen, a real bug or file in your codebase| Generic examples don’t convert; “fix the flaky test in `auth_test.go`” does
+A named owner for the channel for the first 48 hours| Unanswered launch-day questions kill momentum
+A C-suite sponsor lined up to send or co-sign the announcement| Exec-sent launches consistently see higher first-week adoption than admin-sent ones
+
+###
+
+
+
+The announcement
+
+Use this as your standard org-wide rollout message. It covers what Claude Code is, gives a two-minute install path, hands readers one concrete task to try, and answers “where does my code go?” before anyone has to ask.
+
+ * Email
+
+ * Slack or Teams
+
+ Subject: Claude Code is live for [Engineering / your team]
+
+ Team,
+
+ As of today you have access to Claude Code, an AI coding agent that runs in
+ your terminal, reads your actual codebase, and works through real tasks end
+ to end: debugging, refactors, tests, PRs. It is not autocomplete and it is
+ not a chat window. It edits files, runs your commands, and asks permission
+ before anything risky.
+
+ Get running in two minutes:
+
+ curl -fsSL https://claude.ai/install.sh | bash
+ cd <your-repo>
+ claude
+
+ Then run /init once. Claude reads your project and writes a CLAUDE.md with
+ your build commands and conventions, so you stop re-explaining the basics.
+
+ Then try one of these on the repo you are already in:
+
+ - "The test in [file] is flaky. Figure out why and fix it"
+ - "Walk me through how [module] handles [X]"
+ - "Look at my working diff and tell me what's risky before I push"
+
+ Where your code goes: Claude Code runs in your terminal and talks directly
+ to Anthropic's API, with no third-party servers in the loop. It asks before
+ editing files or running commands. Under our Enterprise agreement, Anthropic
+ does not use your code or prompts to train its models.
+ Details: https://code.claude.com/docs/en/data-usage
+ https://code.claude.com/docs/en/security
+
+ Where to go with questions: #claude-code. [Owner name] is watching it
+ this week.
+
+ - [Name]
+
+ P.S. Prefer your editor? There is a VS Code extension and a JetBrains
+ plugin. Same agent, no terminal required.
+
+ 🚀 *Claude Code is live for [team]*
+
+ AI coding agent, runs in your terminal, reads your repo, does real work:
+ bugs, refactors, tests, PRs. Asks before it touches anything.
+
+ `curl -fsSL https://claude.ai/install.sh | bash` → `cd your-repo` → `claude`
+
+ *First thing to try* → run `/init`, then: "the test in [file] is flaky,
+ figure out why and fix it."
+
+ 🔒 Runs in your terminal, talks only to Anthropic's API. Under our
+ Enterprise plan your code and prompts are not used to train models.
+ Data usage → https://code.claude.com/docs/en/data-usage
+
+ 📚 Quickstart · VS Code · Free 1-hr course
+ https://code.claude.com/docs/en/quickstart
+ https://code.claude.com/docs/en/vs-code
+ https://anthropic.skilljar.com/claude-code-in-action
+
+ Questions → this thread. [Owner] is on point.
+
+###
+
+
+
+Executive sponsor variant
+
+Send this from your sponsoring executive, such as the CTO, CIO, or SVP Engineering, under their name and from their account. Launches that go out under an exec’s name consistently see higher open rates and faster first-week activation than the same message from an admin or tooling team. It signals a company priority rather than an optional experiment. This version is deliberately stripped to one ask: install it and run it on one real task. The exec’s job is to make the ask land; the standard announcement and `#claude-code` handle the how.
+
+ * Email
+
+ * Slack or Teams
+
+ Subject: One thing I'd like every engineer to try this week
+
+ Team,
+
+ We have turned on Claude Code for all of engineering. It is an AI agent
+ that works directly in your terminal, on your actual codebase, and the
+ early results from teams already using it are strong enough that I want
+ everyone on it this week.
+
+ I am asking for ten minutes:
+
+ curl -fsSL https://claude.ai/install.sh | bash
+ cd <your-repo>
+ claude
+
+ Then hand it one real task: the bug you have been putting off, or "walk me
+ through how [module] works."
+
+ That is the whole ask. [Owner name] and team are in #claude-code for
+ anything you hit along the way.
+
+ - [Exec Name]
+ [Title]
+
+ 📣 *From [Exec Name]: one thing to try this week*
+
+ We have turned on *Claude Code* for all of engineering. Early results are
+ strong enough that I am asking everyone to give it ten minutes on real
+ work this week.
+
+ `curl -fsSL https://claude.ai/install.sh | bash` → `cd your-repo` →
+ `claude` → hand it one real task.
+
+ That's it. Questions → #claude-code.
+
+###
+
+
+
+Pilot group variant
+
+Use for a phased rollout. Send to the pilot cohort only.
+
+ Subject: You're in the Claude Code pilot
+
+ [Name / team],
+
+ You are in the first wave of Claude Code at [company]. We picked this group
+ because you will put it on real problems and tell us the truth about it.
+
+ The ask: use it on at least one real task this week, then drop a note in
+ #claude-code-pilot covering what worked, what was annoying, and what
+ surprised you. That feedback decides how we roll it out to everyone else.
+
+ [Continue with "Get running in two minutes" from the standard announcement]
+
+ One extra thing for pilots: on your first multi-file change, press Shift+Tab
+ until you see "plan". Claude will lay out exactly what it intends to do
+ before it touches a file. It is the fastest way to calibrate how much to
+ trust it.
+
+###
+
+
+
+Champion recruitment DM
+
+After launch, DM the two or three people who are most active in `#claude-code`.
+
+ Hey [name], your #claude-code posts are doing more for adoption than my
+ announcement did. A couple of people told me your [thread / screenshot]
+ was why they actually tried it.
+
+ Want to make that semi-official? Low lift: mostly keep posting what you
+ are posting, plus first crack at new features and a direct line to the
+ Anthropic team. I can share a short playbook if you're in.
+
+##
+
+
+
+Tips and tricks campaign
+
+Ready-to-paste Slack or Teams messages designed to drive feature activation after launch. Each follows the same pattern: a hook, the payoff, a “try it now” prompt, and a docs link. Drip them one or two a week in `#claude-code`, or pick the handful that match your team’s gaps. They stand alone with no required order. Copy the message body from each block directly into Slack or Teams. Replace `[bracketed placeholders]` before sending.
+
+###
+
+
+
+Get started
+
+**Choosing the right model**
+
+ 🎯 *Tip: Match the model to the moment*
+
+ Using Opus to fix a typo burns compute. Using Haiku for a 12-file refactor
+ is asking for a re-do.
+
+ Claude Code runs on the same models as the Claude app, and you can switch
+ mid-session. *Sonnet* is the workhorse default for everyday feature work,
+ bugs, tests, and reviews. Reach for *Opus* on large refactors, gnarly
+ debugging, or anything high-stakes. Drop to *Haiku* for quick questions,
+ formatting, and mechanical edits where speed wins.
+
+ *Try it now:* type `/model` and pick Sonnet if you haven't already. It is
+ the right default for most tasks.
+
+ 📖 Model configuration → https://code.claude.com/docs/en/model-config
+
+Model| Best for
+---|---
+Opus| Large-scale refactors, complex debugging, architecture decisions, high-stakes changes
+Sonnet| Everyday feature work, bug fixes, tests, documentation, code review. Recommended default.
+Haiku| Quick questions, formatting, mechanical edits, rapid iteration
+
+**Quick wins to try first**
+
+ 🚀 *Tip: Three things to try in your first 10 minutes*
+
+ Installed Claude Code but not sure what to actually ask it? Start with the
+ stuff that has been bugging you all week.
+
+ - Fix something annoying: "the test in [file] is flaky, figure out why"
+ - Get oriented in code you didn't write: "walk me through how [module] works"
+ - Sanity-check before you push: "look at my working diff and tell me what
+ looks risky"
+
+ None of these need setup. Just `cd` into your repo and run `claude`.
+
+ *Try it now:* pick the bug you have been avoiding and paste the error
+ message in.
+
+ 📖 Quickstart → https://code.claude.com/docs/en/quickstart
+
+###
+
+
+
+Project memory
+
+**`/init` and CLAUDE.md**
+
+ 📁 *Tip: Stop re-explaining your repo every session*
+
+ Telling Claude "we use pnpm, not npm" for the fifth time? There is a
+ one-time fix.
+
+ Run `/init` once per repo. Claude reads your project structure and writes a
+ CLAUDE.md file with your build commands, architecture, and conventions.
+ Every future session in that repo starts from this file automatically. Keep
+ it under two screens. It is a cheat sheet, not documentation.
+
+ *Try it now:* open your main repo, run `claude`, type `/init`. Thirty
+ seconds, pays off every session after.
+
+ 📖 CLAUDE.md and project memory → https://code.claude.com/docs/en/memory
+
+**@-references**
+
+ 📎 *Tip: Stop pasting file contents into the chat*
+
+ Copying 200 lines of a component into your prompt so Claude can "see" it?
+ You don't have to.
+
+ Type `@` then a file path. Claude pulls the file directly into context.
+ Works for whole directories too.
+
+ > the styles in @src/components/Button.tsx look off, check against
+ > @docs/design-system.md
+
+ *Try it now:* type `@` then Tab. Autocomplete shows you every file in reach.
+
+ 📖 Referencing files → https://code.claude.com/docs/en/common-workflows
+
+###
+
+
+
+Control and safety
+
+**Permission modes**
+
+ 🛡️ *Tip: One keystroke between "look but don't touch" and "just do it"*
+
+ Sometimes you want Claude to ask before every edit. Sometimes you just want
+ it to ship. You shouldn't have to pick one forever.
+
+ *Shift+Tab* cycles through how much leash Claude gets: *default* asks before
+ risky stuff, *acceptEdits* lets file edits and common filesystem commands
+ flow through while still checking before other shell commands, and *plan*
+ proposes changes for your approval before anything is touched. Plan mode is
+ the trust-builder, so start there for anything touching multiple files.
+
+ *Try it now:* on your next refactor, hit Shift+Tab until you see "plan",
+ then describe the change. You'll get a full proposal before a single file
+ moves.
+
+ 📖 Permission modes → https://code.claude.com/docs/en/permissions
+
+**Checkpointing and`/rewind`**
+
+ ⏪ *Tip: There is an undo button for the whole conversation*
+
+ Claude went down the wrong path three turns ago and now you're untangling
+ it? You don't have to fix forward.
+
+ `/rewind` rolls back to an earlier point in the conversation, including the
+ file changes Claude made along the way. Checkpointing is automatic; you
+ don't set anything up.
+
+ *Try it now:* press *Esc* twice to open the rewind menu, or type `/rewind`.
+ Pick the point before things went sideways.
+
+ 📖 Checkpointing → https://code.claude.com/docs/en/checkpointing
+
+###
+
+
+
+Connect your tools
+
+**MCP connectors**
+
+ 🔌 *Tip: Let Claude read your issue tracker so you don't have to paste tickets*
+
+ Copy-pasting Jira tickets into the terminal feels like a step backward.
+ It is.
+
+ One config file (`.mcp.json` at your project root) wires Claude into GitHub,
+ Jira, Linear, or whatever tracker you use. Then "what's the top-priority
+ issue assigned to me?" and "go ahead and fix it" happen in the same
+ conversation.
+
+ *Try it now:* ask Claude "set up an MCP connector for [GitHub/Jira/Linear]
+ in this repo". It will write the config for you.
+
+ 📖 MCP connectors → https://code.claude.com/docs/en/mcp
+
+###
+
+
+
+Automate your workflows
+
+**Skills**
+
+ ⚡ *Tip: Turn that prompt you keep retyping into a command*
+
+ Typed "summarize what I worked on today from git log, format it for standup"
+ three times this week? That's a slash command waiting to happen.
+
+ A SKILL.md file in `.claude/skills/<name>/` becomes a reusable prompt; type
+ `/name` to run it. Make one the second time you type a multi-step prompt
+ you've typed before. Easiest path: ask Claude to make it for you.
+
+ *Try it now:* type "make me a /standup skill that summarizes what I worked
+ on today from git log", then run `/standup` tomorrow morning.
+
+ 📖 Skills → https://code.claude.com/docs/en/skills
+
+**Hooks**
+
+ 🔔 *Tip: Get pinged when your refactor finishes*
+
+ Sitting at your desk watching Claude work through a long task? You've got
+ better things to do for those eight minutes.
+
+ Hooks are shell commands that fire on Claude Code events. A Stop hook that
+ sends a desktop notification means you can kick off a long refactor, walk
+ away, and get pinged the moment it's done.
+
+ *Try it now:* ask Claude "add a Stop hook that sends a desktop notification
+ when you finish". It will write the script and wire it up.
+
+ 📖 Hooks guide → https://code.claude.com/docs/en/hooks-guide
+
+###
+
+
+
+Day-to-day development
+
+**Screenshots and images**
+
+ 📸 *Tip: Stop describing the error dialog. Just show it.*
+
+ Typing out "there's a red box that says something about a null reference
+ and it's pointing at line 47-ish"? Screenshot it.
+
+ Drag a screenshot straight into the terminal and Claude sees it: error
+ dialogs, UI mockups, whiteboard photos, Figma exports. *Ctrl+V* pastes from
+ clipboard (use Ctrl+V on macOS too, not Cmd+V).
+
+ *Try it now:* next time something visual breaks, screenshot it and paste it
+ right into the prompt. Then just type "what's wrong here?"
+
+ 📖 Working with images → https://code.claude.com/docs/en/common-workflows
+
+**Git workflows**
+
+ 🌿 *Tip: Hand off the whole git ceremony*
+
+ The fix took 5 minutes. The commit message, branch, and PR description
+ took 15. That ratio is wrong.
+
+ Claude handles the full git flow: commits with conventional messages,
+ branches, PRs with proper summaries. One ask: "fix the off-by-one, commit
+ with a conventional commit message, and open a PR." Reviewing someone
+ else's work? Paste the PR URL and ask Claude to walk you through the diff.
+
+ *Try it now:* after your next fix, instead of switching to your git client,
+ just type "commit this with a good message and open a PR".
+
+ 📖 Creating pull requests → https://code.claude.com/docs/en/common-workflows
+
+###
+
+
+
+Share and scale
+
+**Plugins**
+
+ 📦 *Tip: Someone probably already built that skill*
+
+ About to spend an hour building a `/deploy` command? Check if it
+ already exists.
+
+ Skills get bundled and shared as plugins. `/plugin` browses what's
+ available and installs in one step. Five minutes of browsing can save an
+ hour of building.
+
+ *Try it now:* type `/plugin` and scroll through. You'll find at least one
+ thing you didn't know you wanted.
+
+ 📖 Plugins → https://code.claude.com/docs/en/plugins
+
+###
+
+
+
+Security and admin
+
+**Security architecture**
+
+ 🔐 *Tip: The answer to "is this safe?" for the next time you're asked*
+
+ Someone on your team is going to ask "wait, where does my code go?"
+ Here's the short version you can paste.
+
+ Permission-first by design. Every file edit, shell command, and external
+ call is gated by your approval. The CLI runs in your terminal and talks
+ directly to Anthropic's API, with no third-party servers, and supports
+ optional OS-level sandboxing for shell commands. Under our Enterprise plan,
+ Anthropic does not use your code or prompts to train its models.
+
+ *Try it now:* save these two links for the next time the question comes up.
+ They answer most security-review questions.
+
+ 📖 https://code.claude.com/docs/en/security
+ 📖 https://code.claude.com/docs/en/data-usage
+
+**Best practices**
+
+ ✅ *Tip: The 4 habits that separate "tried it once" from "use it daily"*
+
+ Most people who bounce off Claude Code skipped one of these. Most people
+ who stick did all four in week one.
+
+ - Start in plan mode for anything touching multiple files
+ - Run /init early; context compounds
+ - Review diffs before committing; Claude can be confidently wrong
+ - Verify changes that touch critical paths; treat it like a sharp
+ junior, not an oracle
+
+ *Try it now:* if you've only done one or two of these, pick the one you're
+ missing and do it on your next task. Post what changed in #claude-code.
+
+ 📖 Best practices → https://code.claude.com/docs/en/best-practices
+
+##
+
+
+
+Quick reference
+
+###
+
+
+
+FAQ responses
+
+One-line replies for the questions you will be asked most.
+
+Question| Response
+---|---
+”Does it work in VS Code?”| Yes. There is a VS Code extension and a JetBrains plugin with the same features, embedded in your editor. [VS Code →](</docs/en/vs-code>)
+“Do I have to configure anything first?”| No. Install, then run `claude` in any repo. Run `/init` once and you’re set. [Quickstart →](</docs/en/quickstart>)
+“Where does my code go?”| The CLI runs in your terminal and sends context to Anthropic’s API for inference, with no third-party servers. Under your Enterprise plan, your code and prompts are not used to train models. [Data usage →](</docs/en/data-usage>)
+“Can it see my whole repo?”| It reads what you give it access to. File reads inside your working directory don’t prompt; permission prompts gate edits, shell commands, and anything outside that directory. [Permissions →](</docs/en/permissions>)
+“How is this different from Copilot?”| Copilot autocompletes lines. Claude Code is an agent that reads files, runs commands, and makes multi-file edits. [Overview →](</docs/en/overview>)
+“What should I try first?”| A bug you’ve been putting off because it’s tedious. “The test in [file] is flaky, figure out why.” [Quickstart →](</docs/en/quickstart>)
+
+###
+
+
+
+Prompt templates
+
+Share these starter prompts with engineers who have installed but aren’t sure what to ask. Each one is phrased the way it would be typed into a real session; replace the bracketed pieces with files from your own repo.
+
+Task| Prompt
+---|---
+Fix a bug| ”the tests in [file] are failing, figure out why and fix it”
+Understand code| ”walk me through how [module] works, then tell me where the entry point is”
+Safe refactor| ”refactor [module] to [goal], use plan mode so I can review first”
+Write tests| ”write tests for [file] that cover the edge cases around [scenario]“
+Review before commit| ”look at my working diff and tell me what looks risky”
+Open a PR| ”fix [issue], write a conventional commit, and open a PR with a summary”
+Make a skill| ”make me a /ship skill that runs tests and lint before commit”
+Debug a stack trace| ”here’s the stack trace, find the root cause, don’t just paper over it”
+
+Claude Code ships frequently. Verify version-specific details against the [documentation home page](</docs/en/overview>) before distributing internally.
--- a/computer-use.md
+++ b/computer-use.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Computer use is a research preview on macOS that requires a Pro or Max plan. It is not available on Team or Enterprise plans. It requires Claude Code v2.1.85 or later and an interactive session, so it is not available in non-interactive mode with the `-p` flag.
Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Claude can compile a Swift app, launch it, click through every button, and screenshot the result, all in the same conversation where it wrote the code. This page covers how computer use works in the CLI. For the Desktop app on macOS or Windows, see [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>).
--- a/context-window.md
+++ b/context-window.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code’s context window holds everything Claude knows about your session: your instructions, the files it reads, its own responses, and content that never appears in your terminal. The timeline below walks through what loads and when. See the written breakdown for the same content as a list.
##
--- a/cost-tracking.md
+++ b/cost-tracking.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The Claude Agent SDK provides detailed token usage information for each interaction with Claude. This guide explains how to properly track usage and understand cost reporting, especially when dealing with parallel tool uses and multi-step conversations. For complete API documentation, see the [TypeScript SDK reference](</docs/en/agent-sdk/typescript>) and [Python SDK reference](</docs/en/agent-sdk/python>).
The `total_cost_usd` and `costUSD` fields are client-side estimates, not authoritative billing data. The SDK computes them locally from a price table bundled at build time, so they can drift from what you are actually billed when:
--- a/costs.md
+++ b/costs.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code charges by API token consumption. For subscription plan pricing (Pro, Max, Team, Enterprise), see [claude.com/pricing](<https://claude.com/pricing>). Per-developer costs vary widely based on model selection, codebase size, and usage patterns such as running multiple instances or automation. Across enterprise deployments, the average cost is around $13 per developer per active day and $150-250 per developer per month, with costs remaining below $30 per active day for 90% of users. To estimate spend for your own team, start with a small pilot group and use the tracking tools below to establish a baseline before wider rollout. This page covers how to track your costs, manage costs for teams, and reduce token usage.
##
--- a/custom-tools.md
+++ b/custom-tools.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Custom tools extend the Agent SDK by letting you define your own functions that Claude can call during a conversation. Using the SDK’s in-process MCP server, you can give Claude access to databases, external APIs, domain-specific logic, or any other capability your application needs. This guide covers how to define tools with input schemas and handlers, bundle them into an MCP server, pass them to `query`, and control which tools Claude can access. It also covers error handling, tool annotations, and returning non-text content like images.
##
--- a/data-usage.md
+++ b/data-usage.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
--- a/debug-your-config.md
+++ b/debug-your-config.md
@@ -1,4 +1,10 @@
-When Claude ignores an instruction or a feature you configured doesn’t appear, the cause is usually that the file didn’t load, it loaded from a different location than you expected, or another file overrode it. This guide shows how to inspect what Claude Code actually loaded so you can narrow down which applies. For installation, authentication, and connectivity problems, see [Troubleshooting](</docs/en/troubleshooting>) instead.
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
+When Claude ignores an instruction or a feature you configured doesn’t appear, the cause is usually that the file didn’t load, it loaded from a different location than you expected, or another file overrode it. This guide shows how to inspect what Claude Code actually loaded so you can narrow down which applies. For installation, authentication, and connectivity problems, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>) instead.
##
@@ -72,7 +78,7 @@
Skill appears in `/skills` but Claude never invokes it| Skill has `disable-model-invocation: true` in its frontmatter, or its description doesn’t match how you phrase the request| Check the badge in `/skills`: a “user-only” label means Claude won’t trigger it on its own. See [skill invocation](</docs/en/skills>).
Subdirectory `CLAUDE.md` instructions seem ignored| Subdirectory files load on demand, not at session start| They load when Claude reads a file in that directory with the Read tool, not at launch and not when writing or creating files there. See [how CLAUDE.md files load](</docs/en/memory#how-claude-md-files-load>).
Subagent ignores `CLAUDE.md` instructions| Subagents don’t always inherit project memory| Put critical rules in the agent file body, which becomes the subagent’s system prompt. See [subagent configuration](</docs/en/sub-agents>).
-Cleanup logic never runs at session end| No `SessionEnd` hook configured| `SessionStart` and `SessionEnd` both exist. See the [hook events list](</docs/en/hooks#hook-events>).
+Cleanup logic never runs at session end| No `SessionEnd` hook configured| Add a `SessionEnd` hook in `settings.json`. See the [hook events list](</docs/en/hooks#hook-events>).
MCP servers in `.mcp.json` never load| File is under `.claude/` or uses Claude Desktop’s config format| Project MCP config goes at the repository root as `.mcp.json`, not inside `.claude/`. See [MCP configuration](</docs/en/mcp>).
Project MCP server added but doesn’t appear| The one-time approval prompt was dismissed| Project-scoped servers require approval. Run `/mcp` to see status and approve.
MCP server fails to start from some directories| `command` or `args` uses a relative file path| Use absolute paths for local scripts. Executables on your `PATH` like `npx` or `uvx` work as-is.
@@ -91,4 +97,5 @@
* **[Settings](</docs/en/settings>)** : precedence order and the full key list
* **[Hooks reference](</docs/en/hooks>)** : event names, payloads, and `--debug hooks` output format
* **[MCP](</docs/en/mcp>)** : server configuration, approval, and `/mcp` output
- * **[Troubleshooting](</docs/en/troubleshooting>)** : `claude doctor`, platform issues, and installation problems
+ * **[Troubleshoot installation and login](</docs/en/troubleshoot-install>)** : `command not found`, PATH, and authentication problems
+ * **[Troubleshooting](</docs/en/troubleshooting>)** : performance, hangs, and search issues
--- a/desktop.md
+++ b/desktop.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The Claude Desktop app has three tabs: **Chat** for conversations, **Cowork** for [Dispatch and longer agentic work](<https://claude.com/product/cowork>), and **Code** for software development. This page is the reference for the Code tab.
## Download for macOS
--- a/desktop-quickstart.md
+++ b/desktop-quickstart.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The desktop app gives you Claude Code with a graphical interface built for running multiple sessions side by side: a sidebar for managing parallel work, a drag-and-drop layout with an integrated terminal and file editor, visual diff review, live app preview, GitHub PR monitoring with auto-merge, and scheduled tasks. No terminal required.
## Download for macOS
--- a/desktop-scheduled-tasks.md
+++ b/desktop-scheduled-tasks.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Scheduled tasks start a new session automatically at a time and frequency you choose. Use them for recurring work like daily code reviews, dependency update checks, or morning briefings that pull from your calendar and inbox. The Desktop app’s **Routines** page lets you create both local scheduled tasks and remote [routines](</docs/en/routines>). A local task runs on your machine with direct access to your files and tools, but only fires while the app is open and your computer is awake. A remote routine runs on Anthropic-managed cloud infrastructure even when your computer is off, and can also fire on API calls or GitHub events. This page covers local scheduled tasks; for remote routines and their trigger options, see [Routines](</docs/en/routines>).
##
--- a/devcontainer.md
+++ b/devcontainer.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
A [development container](<https://containers.dev/>), or dev container, lets you define an identical, isolated environment that every engineer on your team can run. With Claude Code installed in that container, commands Claude runs execute inside it rather than on the host machine, while edits to your project files appear in your local repository as you work. This page covers installing Claude Code in a dev container and the configuration topics that follow. Each topic is self-contained, so jump to the ones that match what you need to set up:
* Persist authentication and settings across rebuilds
--- a/discover-plugins.md
+++ b/discover-plugins.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Plugins extend Claude Code with skills, agents, hooks, and MCP servers. Plugin marketplaces are catalogs that help you discover and install these extensions without building them yourself. Looking to create and distribute your own marketplace? See [Create and distribute a plugin marketplace](</docs/en/plugin-marketplaces>).
##
--- a/env-vars.md
+++ b/env-vars.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code supports the following environment variables to control its behavior. Set them in your shell before launching `claude`, or configure them in [`settings.json`](</docs/en/settings#available-settings>) under the `env` key to apply them to every session or roll them out across your team.
Variable| Purpose
@@ -7,6 +13,7 @@
`ANTHROPIC_BASE_URL`| Override the API endpoint to route requests through a proxy or gateway. When set to a non-first-party host, [MCP tool search](</docs/en/mcp#scale-with-mcp-tool-search>) is disabled by default. Set `ENABLE_TOOL_SEARCH=true` if your proxy forwards `tool_reference` blocks
`ANTHROPIC_BEDROCK_BASE_URL`| Override the Bedrock endpoint URL. Use for custom Bedrock endpoints or when routing through an [LLM gateway](</docs/en/llm-gateway>). See [Amazon Bedrock](</docs/en/amazon-bedrock>)
`ANTHROPIC_BEDROCK_MANTLE_BASE_URL`| Override the Bedrock Mantle endpoint URL. See [Mantle endpoint](</docs/en/amazon-bedrock#use-the-mantle-endpoint>)
+`ANTHROPIC_BEDROCK_SERVICE_TIER`| Bedrock [service tier](<https://docs.aws.amazon.com/bedrock/latest/userguide/service-tiers-inference.html>) (`default`, `flex`, or `priority`). Sent as the `X-Amzn-Bedrock-Service-Tier` header. See [Amazon Bedrock](</docs/en/amazon-bedrock#service-tiers>)
`ANTHROPIC_BETAS`| Comma-separated list of additional `anthropic-beta` header values to include in API requests. Claude Code already sends the beta headers it needs; use this to opt into an [Anthropic API beta](<https://platform.claude.com/docs/en/api/beta-headers>) before Claude Code adds native support. Unlike the [`--betas` flag](</docs/en/cli-reference#cli-flags>), which requires API key authentication, this variable works with all auth methods including Claude.ai subscription
`ANTHROPIC_CUSTOM_HEADERS`| Custom headers to add to requests (`Name: Value` format, newline-separated for multiple headers)
`ANTHROPIC_CUSTOM_MODEL_OPTION`| Model ID to add as a custom entry in the `/model` picker. Use this to make a non-standard or gateway-specific model selectable without replacing built-in aliases. See [Model configuration](</docs/en/model-config#add-a-custom-model-option>)
@@ -48,6 +55,7 @@
`CLAUDE_CODE_ACCESSIBILITY`| Set to `1` to keep the native terminal cursor visible and disable the inverted-text cursor indicator. Allows screen magnifiers like macOS Zoom to track cursor position
`CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD`| Set to `1` to load memory files from directories specified with `--add-dir`. Loads `CLAUDE.md`, `.claude/CLAUDE.md`, `.claude/rules/*.md`, and `CLAUDE.local.md`. By default, additional directories do not load memory files
`CLAUDE_CODE_API_KEY_HELPER_TTL_MS`| Interval in milliseconds at which credentials should be refreshed (when using [`apiKeyHelper`](</docs/en/settings#available-settings>))
+`CLAUDE_CODE_ATTRIBUTION_HEADER`| Set to `0` to omit the attribution block (client version and prompt fingerprint) from the start of the system prompt. Disabling it improves prompt-cache hit rates when routing through an [LLM gateway](</docs/en/llm-gateway>). Anthropic API caching is unaffected
`CLAUDE_CODE_AUTO_COMPACT_WINDOW`| Set the context capacity in tokens used for auto-compaction calculations. Defaults to the model’s context window: 200K for standard models or 1M for [extended context](</docs/en/model-config#extended-context>) models. Use a lower value like `500000` on a 1M model to treat the window as 500K for compaction purposes. The value is capped at the model’s actual context window. `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` is applied as a percentage of this value. Setting this variable decouples the compaction threshold from the status line’s `used_percentage`, which always uses the model’s full context window
`CLAUDE_CODE_AUTO_CONNECT_IDE`| Override automatic [IDE connection](</docs/en/vs-code>). By default, Claude Code connects automatically when launched inside a supported IDE’s integrated terminal. Set to `false` to prevent this. Set to `true` to force a connection attempt when auto-detection fails, such as when tmux obscures the parent terminal
`CLAUDE_CODE_CERT_STORE`| Comma-separated list of CA certificate sources for TLS connections. `bundled` is the Mozilla CA set shipped with Claude Code. `system` is the operating system trust store. Default is `bundled,system`. The native binary distribution is required for system store integration. On the Node.js runtime, only the bundled set is used regardless of this value
@@ -73,6 +81,7 @@
`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`| Equivalent of setting `DISABLE_AUTOUPDATER`, `DISABLE_FEEDBACK_COMMAND`, `DISABLE_ERROR_REPORTING`, and `DISABLE_TELEMETRY`
`CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK`| Set to `1` to disable the non-streaming fallback when a streaming request fails mid-stream. Streaming errors propagate to the retry layer instead. Useful when a proxy or gateway causes the fallback to produce duplicate tool execution
`CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL`| Set to `1` to skip automatic addition of the official plugin marketplace on first run
+`CLAUDE_CODE_DISABLE_POLICY_SKILLS`| Set to `1` to skip loading skills from the system-wide managed skills directory. Useful for container or CI sessions that should not load operator-provisioned skills
`CLAUDE_CODE_DISABLE_TERMINAL_TITLE`| Set to `1` to disable automatic terminal title updates based on conversation context
`CLAUDE_CODE_DISABLE_THINKING`| Set to `1` to force-disable [extended thinking](<https://platform.claude.com/docs/en/build-with-claude/extended-thinking>) regardless of model support or other settings. More direct than `MAX_THINKING_TOKENS=0`
`CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL`| Set to `1` to disable virtual scrolling in [fullscreen rendering](</docs/en/fullscreen>) and render every message in the transcript. Use this if scrolling in fullscreen mode shows blank regions where messages should appear
@@ -85,6 +94,7 @@
`CLAUDE_CODE_ENABLE_TELEMETRY`| Set to `1` to enable OpenTelemetry data collection for metrics and logging. Required before configuring OTel exporters. See [Monitoring](</docs/en/monitoring-usage>)
`CLAUDE_CODE_EXIT_AFTER_STOP_DELAY`| Time in milliseconds to wait after the query loop becomes idle before automatically exiting. Useful for automated workflows and scripts using SDK mode
`CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS`| Set to `1` to enable [agent teams](</docs/en/agent-teams>). Agent teams are experimental and disabled by default
+`CLAUDE_CODE_EXTRA_BODY`| JSON object to merge into the top level of every API request body. Useful for passing provider-specific parameters that Claude Code does not expose directly
`CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS`| Override the default token limit for file reads. Useful when you need to read larger files in full
`CLAUDE_CODE_FORK_SUBAGENT`| Set to `1` to enable [forked subagents](</docs/en/sub-agents#fork-the-current-conversation>). A forked subagent inherits the full conversation context from the main session instead of starting fresh. When enabled, `/fork` spawns a forked subagent rather than acting as an alias for [`/branch`](</docs/en/commands>), and all subagent spawns run in the background. Works in interactive mode and via the SDK or `claude -p`
`CLAUDE_CODE_GIT_BASH_PATH`| Windows only: path to the Git Bash executable (`bash.exe`). Use when Git Bash is installed but not in your PATH. See [Windows setup](</docs/en/setup#set-up-on-windows>)
@@ -99,6 +109,7 @@
`CLAUDE_CODE_MAX_OUTPUT_TOKENS`| Set the maximum number of output tokens for most requests. Defaults and caps vary by model; see [max output tokens](<https://platform.claude.com/docs/en/about-claude/models/overview#latest-models-comparison>). Increasing this value reduces the effective context window available before [auto-compaction](</docs/en/costs#reduce-token-usage>) triggers.
`CLAUDE_CODE_MAX_RETRIES`| Override the number of times to retry failed API requests (default: 10)
`CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY`| Maximum number of read-only tools and subagents that can execute in parallel (default: 10). Higher values increase parallelism but consume more resources
+`CLAUDE_CODE_MCP_ALLOWLIST_ENV`| Set to `1` to spawn stdio MCP servers with only a safe baseline environment plus the server’s configured `env`, instead of inheriting your shell environment
`CLAUDE_CODE_NEW_INIT`| Set to `1` to make `/init` run an interactive setup flow. The flow asks which files to generate, including CLAUDE.md, skills, and hooks, before exploring the codebase and writing them. Without this variable, `/init` generates a CLAUDE.md automatically without prompting.
`CLAUDE_CODE_NO_FLICKER`| Set to `1` to enable [fullscreen rendering](</docs/en/fullscreen>), a research preview that reduces flicker and keeps memory flat in long conversations. Equivalent to the [`tui`](</docs/en/settings#available-settings>) setting; you can also switch with `/tui fullscreen`
`CLAUDE_CODE_OAUTH_REFRESH_TOKEN`| OAuth refresh token for Claude.ai authentication. When set, `claude auth login` exchanges this token directly instead of opening a browser. Requires `CLAUDE_CODE_OAUTH_SCOPES`. Useful for provisioning authentication in automated environments
@@ -140,12 +151,13 @@
`CLAUDE_CODE_USE_BEDROCK`| Use [Bedrock](</docs/en/amazon-bedrock>)
`CLAUDE_CODE_USE_FOUNDRY`| Use [Microsoft Foundry](</docs/en/microsoft-foundry>)
`CLAUDE_CODE_USE_MANTLE`| Use the Bedrock [Mantle endpoint](</docs/en/amazon-bedrock#use-the-mantle-endpoint>)
-`CLAUDE_CODE_USE_POWERSHELL_TOOL`| Controls the PowerShell tool. On Windows, the tool is rolling out progressively: set to `1` to opt in or `0` to opt out. On Linux, macOS, and WSL, set to `1` to enable it, which requires `pwsh` on your `PATH`. When enabled on Windows, Claude can run PowerShell commands natively instead of routing through Git Bash. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>)
+`CLAUDE_CODE_USE_NATIVE_FILE_SEARCH`| Set to `1` to discover custom commands, subagents, and output styles using Node.js file APIs instead of ripgrep. Set this if the bundled ripgrep binary is unavailable or blocked in your environment. Does not affect the Grep or file search tools
+`CLAUDE_CODE_USE_POWERSHELL_TOOL`| Controls the PowerShell tool. On Windows without Git Bash, the tool is enabled automatically; set to `0` to disable it. On Windows with Git Bash installed, the tool is rolling out progressively: set to `1` to opt in or `0` to opt out. On Linux, macOS, and WSL, set to `1` to enable it, which requires `pwsh` on your `PATH`. When enabled on Windows, Claude can run PowerShell commands natively instead of routing through Git Bash. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>)
`CLAUDE_CODE_USE_VERTEX`| Use [Vertex](</docs/en/google-vertex-ai>)
`CLAUDE_CONFIG_DIR`| Override the configuration directory (default: `~/.claude`). All settings, credentials, session history, and plugins are stored under this path. Useful for running multiple accounts side by side: for example, `alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'`
`CLAUDE_ENABLE_BYTE_WATCHDOG`| Set to `1` to force-enable the byte-level streaming idle watchdog, or set to `0` to force-disable it. When unset, the watchdog is enabled by default for Anthropic API connections. The byte watchdog aborts a connection when no bytes arrive on the wire for the duration set by `CLAUDE_STREAM_IDLE_TIMEOUT_MS`, with a minimum of 5 minutes, independent of the event-level watchdog
`CLAUDE_ENABLE_STREAM_WATCHDOG`| Set to `1` to enable the event-level streaming idle watchdog. Off by default. For Bedrock, Vertex, and Foundry, this is the only idle watchdog available. Configure the timeout with `CLAUDE_STREAM_IDLE_TIMEOUT_MS`
-`CLAUDE_ENV_FILE`| Path to a shell script whose contents Claude Code runs before each Bash command in the same shell process, so exports in the file are visible to the command. Use to persist virtualenv or conda activation across commands. Also populated dynamically by [SessionStart](</docs/en/hooks#persist-environment-variables>), [CwdChanged](</docs/en/hooks#cwdchanged>), and [FileChanged](</docs/en/hooks#filechanged>) hooks
+`CLAUDE_ENV_FILE`| Path to a shell script whose contents Claude Code runs before each Bash command in the same shell process, so exports in the file are visible to the command. Use to persist virtualenv or conda activation across commands. Also populated dynamically by [SessionStart](</docs/en/hooks#persist-environment-variables>), [Setup](</docs/en/hooks#setup>), [CwdChanged](</docs/en/hooks#cwdchanged>), and [FileChanged](</docs/en/hooks#filechanged>) hooks
`CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX`| Prefix for auto-generated [Remote Control](</docs/en/remote-control>) session names when no explicit name is provided. Defaults to your machine’s hostname, producing names like `myhost-graceful-unicorn`. The `--remote-control-session-name-prefix` CLI flag sets the same value for a single invocation
`CLAUDE_STREAM_IDLE_TIMEOUT_MS`| Timeout in milliseconds before the streaming idle watchdog closes a stalled connection. For the byte-level watchdog on the Anthropic API: default and minimum `300000` (5 minutes); lower values are silently clamped to absorb extended thinking pauses and proxy buffering. For the event-level watchdog: default `90000` (90 seconds), no minimum. For third-party providers, requires `CLAUDE_ENABLE_STREAM_WATCHDOG=1`
`DISABLE_AUTOUPDATER`| Set to `1` to disable automatic background updates. Manual `claude update` still works. Use `DISABLE_UPDATES` to block both
--- a/errors.md
+++ b/errors.md
@@ -1,4 +1,10 @@
-This page lists runtime errors Claude Code displays and how to recover from each one, plus what to check when responses seem off without an error. For installation errors such as `command not found` or TLS failures during setup, see [Troubleshooting](</docs/en/troubleshooting>). These errors and recovery commands apply across the CLI, the [Desktop app](</docs/en/desktop>), and [Claude Code on the web](</docs/en/claude-code-on-the-web>), since all three wrap the same Claude Code CLI. For surface-specific issues, see the troubleshooting section on that surface’s page.
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
+This page lists runtime errors Claude Code displays and how to recover from each one, plus what to check when responses seem off without an error. For installation errors such as `command not found` or TLS failures during setup, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>). These errors and recovery commands apply across the CLI, the [Desktop app](</docs/en/desktop>), and [Claude Code on the web](</docs/en/claude-code-on-the-web>), since all three wrap the same Claude Code CLI. For surface-specific issues, see the troubleshooting section on that surface’s page.
Claude Code calls the Claude API for model responses, so most runtime errors map to an underlying API error code. This page covers what each error means inside Claude Code and how to recover. For the raw HTTP status code definitions, see the [Claude Platform error reference](<https://platform.claude.com/docs/en/api/errors>).
@@ -228,7 +234,7 @@
* For CI or automation where interactive login is not possible, configure an [`apiKeyHelper`](</docs/en/settings#available-settings>) script that fetches a key at startup
* See [Authentication precedence](</docs/en/authentication#authentication-precedence>) to understand which credential wins when several are present
-If you are prompted to log in repeatedly, see [Not logged in or token expired](</docs/en/troubleshooting#not-logged-in-or-token-expired>) for system clock and macOS Keychain fixes.
+If you are prompted to log in repeatedly, see [Not logged in or token expired](</docs/en/troubleshoot-install#not-logged-in-or-token-expired>) for system clock and macOS Keychain fixes.
###
@@ -281,8 +287,8 @@
* Run `/login` to sign in again
* If the error returns within the same session after re-authenticating, run `/logout` first to fully clear the stored token, then `/login`
- * For repeated prompts to log in across launches, see the system clock and macOS Keychain checks in [Troubleshooting](</docs/en/troubleshooting#not-logged-in-or-token-expired>)
- * For other failures including `403 Forbidden` and OAuth browser issues, see [Permissions and authentication](</docs/en/troubleshooting#permissions-and-authentication>)
+ * For repeated prompts to log in across launches, see the system clock and macOS Keychain checks in [Troubleshooting](</docs/en/troubleshoot-install#not-logged-in-or-token-expired>)
+ * For other failures including `403 Forbidden` and OAuth browser issues, see [Login and authentication](</docs/en/troubleshoot-install#login-and-authentication>)
###
@@ -477,7 +483,8 @@
* Run `/model` to pick from models available to your account
* Use an alias such as `sonnet` or `opus` instead of a full versioned ID. Aliases track the latest release so they do not go stale. See [Model configuration](</docs/en/model-config>).
- * See [Model not found](</docs/en/troubleshooting#model-not-found-or-not-accessible>) to locate where a stale ID is set across `--model`, `ANTHROPIC_MODEL`, and settings files
+ * If the wrong model keeps coming back, a stale ID is set somewhere. Check in [priority order](</docs/en/model-config#setting-your-model>): the `--model` flag, the `ANTHROPIC_MODEL` environment variable, then the `model` field in `.claude/settings.local.json`, your project’s `.claude/settings.json`, and `~/.claude/settings.json`. Remove the stale value and Claude Code falls back to your account default.
+ * For Vertex AI deployments, see [Vertex AI troubleshooting](</docs/en/google-vertex-ai#troubleshooting>).
###
@@ -567,7 +574,7 @@
* MCP server failed to connect or authenticate: [MCP](</docs/en/mcp>)
* Hook script failed or blocked a tool: [Debug hooks](</docs/en/hooks#debug-hooks>)
- * Permission denied or filesystem errors during install: [Troubleshooting](</docs/en/troubleshooting>)
+ * Permission denied or filesystem errors during install: [Troubleshoot installation and login](</docs/en/troubleshoot-install>)
If an error is not listed here or the suggested fix does not help:
--- a/fast-mode.md
+++ b/fast-mode.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Fast mode is in research preview. The feature, pricing, and availability may change based on feedback.
Fast mode is a high-speed configuration for Claude Opus 4.6, making the model 2.5x faster at a higher cost per token. Toggle it on with `/fast` when you need speed for interactive work like rapid iteration or live debugging, and toggle it off when cost matters more than latency. Fast mode is not a different model. It uses the same Opus 4.6 with a different API configuration that prioritizes speed over cost efficiency. You get identical quality and capabilities, just faster responses. Fast mode is not available on Opus 4.7 or other models.
--- a/features-overview.md
+++ b/features-overview.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code combines a model that reasons about your code with [built-in tools](</docs/en/how-claude-code-works#tools>) for file operations, search, execution, and web access. The built-in tools cover most coding tasks. This guide covers the extension layer: features you add to customize what Claude knows, connect it to external services, and automate workflows.
For how the core agentic loop works, see [How Claude Code works](</docs/en/how-claude-code-works>).
--- a/file-checkpointing.md
+++ b/file-checkpointing.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
File checkpointing tracks file modifications made through the Write, Edit, and NotebookEdit tools during an agent session, allowing you to rewind files to any previous state. Want to try it out? Jump to the interactive example. With checkpointing, you can:
* **Undo unwanted changes** by restoring files to a known good state
--- a/fullscreen.md
+++ b/fullscreen.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Fullscreen rendering is an opt-in research preview and requires Claude Code v2.1.89 or later. Run `/tui fullscreen` to switch in your current conversation, or set `CLAUDE_CODE_NO_FLICKER=1` on versions before v2.1.110. Behavior may change based on feedback.
Fullscreen rendering is an alternative rendering path for the Claude Code CLI that eliminates flicker, keeps memory usage flat in long conversations, and adds mouse support. It draws the interface on the terminal’s alternate screen buffer, like `vim` or `htop`, and only renders messages that are currently visible. This reduces the amount of data sent to your terminal on each update. The difference is most noticeable in terminal emulators where rendering throughput is the bottleneck, such as the VS Code integrated terminal, tmux, and iTerm2. If your terminal scroll position jumps to the top while Claude is working, or the screen flashes as tool output streams in, this mode addresses those.
@@ -114,6 +120,14 @@
+Clear the conversation
+
+Press `Ctrl+L` twice within two seconds to run `/clear` and start a new conversation. The first press clears the input box and shows a hint; the second press clears the conversation. On macOS, double-pressing `Cmd+K` also runs `/clear`.
+
+##
+
+
+
Use with tmux
Fullscreen rendering works inside tmux, with two caveats. Mouse wheel scrolling requires tmux’s mouse mode. If your `~/.tmux.conf` does not already enable it, add this line and reload your config:
@@ -128,7 +142,7 @@
Keep native text selection
-Mouse capture is the most common friction point, especially over SSH or inside tmux. When Claude Code captures mouse events, your terminal’s native copy-on-select stops working. The selection you make with click-and-drag exists inside Claude Code, not in your terminal’s selection buffer, so tmux copy mode, Kitty hints, and similar tools don’t see it. Claude Code tries to write the selection to your clipboard, but the path it uses depends on your setup. Inside tmux it writes to the tmux paste buffer. Over SSH it falls back to OSC 52 escape sequences, which some terminals block by default. iTerm2 blocks them until you turn on Settings → General → Selection → Applications in terminal may access clipboard. Claude Code prints a toast after each copy telling you which path it used. For a one-off native selection, hold your terminal’s bypass modifier while you click and drag: `Option` in iTerm2, or `Shift` in most Linux and Windows terminals. The modifier tells your terminal to handle the selection itself instead of forwarding mouse events to Claude Code, so `Cmd+C` and your terminal’s other copy shortcuts work on it. If you rely on native selection all the time, set `CLAUDE_CODE_DISABLE_MOUSE=1` to opt out of mouse capture while keeping the flicker-free rendering and flat memory:
+Mouse capture is the most common friction point, especially over SSH or inside tmux. When Claude Code captures mouse events, your terminal’s native copy-on-select stops working. The selection you make with click-and-drag exists inside Claude Code, not in your terminal’s selection buffer, so tmux copy mode, Kitty hints, and similar tools don’t see it. Claude Code tries to write the selection to your clipboard, but the path it uses depends on your setup. Inside tmux it writes to the tmux paste buffer. Over SSH it falls back to OSC 52 escape sequences, which some terminals block by default. iTerm2 blocks them until you turn on Settings → General → Selection → Applications in terminal may access clipboard. Running [`/terminal-setup`](</docs/en/terminal-config>) in iTerm2 enables this for you. Claude Code prints a toast after each copy telling you which path it used. For a one-off native selection, hold your terminal’s bypass modifier while you click and drag: `Option` in iTerm2, or `Shift` in most Linux and Windows terminals. The modifier tells your terminal to handle the selection itself instead of forwarding mouse events to Claude Code, so `Cmd+C` and your terminal’s other copy shortcuts work on it. If you rely on native selection all the time, set `CLAUDE_CODE_DISABLE_MOUSE=1` to opt out of mouse capture while keeping the flicker-free rendering and flat memory:
CLAUDE_CODE_NO_FLICKER=1 CLAUDE_CODE_DISABLE_MOUSE=1 claude
--- a/github-actions.md
+++ b/github-actions.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code GitHub Actions brings AI-powered automation to your GitHub workflow. With a simple `@claude` mention in any PR or issue, Claude can analyze your code, create pull requests, implement features, and fix bugs - all while following your project’s standards. For automatic reviews posted on every PR without a trigger, see [GitHub Code Review](</docs/en/code-review>).
Claude Code GitHub Actions is built on top of the [Claude Agent SDK](</docs/en/agent-sdk/overview>), which enables programmatic integration of Claude Code into your applications. You can use the SDK to build custom automation workflows beyond GitHub Actions.
--- a/github-enterprise-server.md
+++ b/github-enterprise-server.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
GitHub Enterprise Server support is available for Team and Enterprise plans.
GitHub Enterprise Server (GHES) support lets your organization use Claude Code with repositories hosted on your self-managed GitHub instance instead of github.com. Once an admin connects your GHES instance, developers can run web sessions, get automated code reviews, and install plugins from internal marketplaces without any per-repository configuration. For repositories on github.com, see [Claude Code on the web](</docs/en/claude-code-on-the-web>) and [Code Review](</docs/en/code-review>). To run Claude in your own CI infrastructure, see [GitHub Actions](</docs/en/github-actions>).
--- a/gitlab-ci-cd.md
+++ b/gitlab-ci-cd.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code for GitLab CI/CD is currently in beta. Features and functionality may evolve as we refine the experience.This integration is maintained by GitLab. For support, see the following [GitLab issue](<https://gitlab.com/gitlab-org/gitlab/-/issues/573776>).
This integration is built on top of the [Claude Code CLI and Agent SDK](</docs/en/agent-sdk/overview>), enabling programmatic use of Claude in your CI/CD jobs and custom automation workflows.
Show diff (444 lines)
--- a/glossary.md
+++ b/glossary.md
@@ -0,0 +1,441 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
+This glossary defines Claude Code terminology. Each entry links to the page where the concept is covered in depth. For model-level concepts like tokens, temperature, and RAG, see the [platform glossary](<https://platform.claude.com/docs/en/about-claude/glossary>).
+
+##
+
+
+
+A
+
+###
+
+
+
+Agent teams
+
+Multiple independent Claude Code sessions coordinated by a team lead, with a shared task list and peer-to-peer messaging. Unlike subagents, which run within a single session and report only to the parent, teammates each have their own context window and you can interact with any of them directly. Agent teams are experimental and must be enabled by setting `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`. Learn more: [Run agent teams](</docs/en/agent-teams>)
+
+###
+
+
+
+Agentic coding
+
+A workflow where the AI can read files, run commands, and make changes autonomously while you watch, redirect, or step away, as opposed to chat-based assistants that only respond with text you must apply yourself. Claude Code is agentic because it has tools that let it act, not just advise. Learn more: [How Claude Code works](</docs/en/how-claude-code-works>)
+
+###
+
+
+
+Agentic harness
+
+The tools, context management, and execution environment that turn a language model into a capable coding agent. Claude Code is the harness; Claude is the model inside it. The harness supplies file access, shell execution, permission gating, memory loading, and the loop that chains actions together. Learn more: [How Claude Code works](</docs/en/how-claude-code-works>)
+
+###
+
+
+
+Agentic loop
+
+The cycle Claude works through for every task: gather context, take action, verify results, and repeat until done. Each tool use returns information that informs the next step. You can interrupt the loop at any point to redirect. Most extension points, including hooks, skills, and MCP, plug into specific phases of this loop. Learn more: [How Claude Code works](</docs/en/how-claude-code-works#the-agentic-loop>)
+
+###
+
+
+
+Auto memory
+
+Notes Claude writes for itself based on your corrections and preferences, stored per git repository under `~/.claude/projects/`. All worktrees of the same repository share one auto memory directory. The first 200 lines or 25 KB of the `MEMORY.md` index loads at the start of every session. Auto memory is the Claude-written counterpart to CLAUDE.md, which you write. Learn more: [Auto memory](</docs/en/memory#auto-memory>)
+
+###
+
+
+
+Auto mode
+
+A permission mode where a separate classifier model reviews each action in the background instead of showing you approval prompts. The classifier blocks scope escalation, untrusted infrastructure, and prompt injection. It never sees tool results, so injected instructions cannot influence its decisions. Auto mode is a research preview available on Max, Team, Enterprise, and API plans. Learn more: [Eliminate prompts with auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>)
+
+##
+
+
+
+B
+
+###
+
+
+
+Bare mode
+
+A startup flag, `--bare`, that skips auto-discovery of hooks, skills, plugins, MCP servers, auto memory, and CLAUDE.md. Only flags you pass explicitly take effect. Recommended for CI and scripted calls where you need identical behavior across machines regardless of local configuration. Learn more: [Start faster with bare mode](</docs/en/headless#start-faster-with-bare-mode>)
+
+###
+
+
+
+Bundled skills
+
+Prompt-based playbooks included with Claude Code, such as `/batch`, `/simplify`, `/debug`, and `/loop`. Unlike built-in commands, which execute fixed logic, bundled skills give Claude a detailed prompt and let it orchestrate the work, so they can spawn agents, read files, and adapt to your codebase. Learn more: [Bundled skills](</docs/en/skills#bundled-skills>)
+
+##
+
+
+
+C
+
+###
+
+
+
+Channel
+
+An MCP server that pushes events into your running session so Claude can react to things that happen while you’re away from the terminal. Channels can be two-way: Claude reads an inbound event and replies back through the same channel. Telegram, Discord, and iMessage are included in the research preview. Learn more: [Channels](</docs/en/channels>)
+
+###
+
+
+
+Checkpoint
+
+An automatic snapshot of your code captured before each edit Claude makes. Press `Esc` twice or run `/rewind` to restore code, conversation, or both to an earlier point. Checkpoints are local to the session, separate from git, and don’t track changes made through the Bash tool. Learn more: [Checkpointing](</docs/en/checkpointing>)
+
+###
+
+
+
+`.claude` directory
+
+The directory where Claude Code reads project-scoped configuration: settings, hooks, skills, subagents, rules, and auto memory. A project has `.claude/` at its root; your user-level defaults are at `~/.claude/`. Learn more: [The `.claude` directory](</docs/en/claude-directory>)
+
+###
+
+
+
+CLAUDE.md
+
+A markdown file of persistent instructions you write for Claude, loaded at the start of every session as a user message after the system prompt. Put project conventions, architecture notes, and “always do X” rules here. CLAUDE.md survives compaction and is re-read fresh from disk afterward. You can place CLAUDE.md at project scope in `./CLAUDE.md` or `./.claude/CLAUDE.md`, at user scope in `~/.claude/CLAUDE.md`, or as managed policy for your organization. More specific locations take precedence. Learn more: [CLAUDE.md files](</docs/en/memory#claude-md-files>)
+
+###
+
+
+
+Command
+
+A reusable instruction you invoke by typing `/name` in the prompt. Built-in commands such as `/clear`, `/model`, and `/compact` control the session. You can define your own commands as files in `.claude/commands/`, or install them from a plugin. Skills are the recommended way to package multi-step commands. Learn more: [Commands](</docs/en/commands>) · [Skills](</docs/en/skills>)
+
+###
+
+
+
+Compaction
+
+Automatic summarization of your conversation when the context window approaches its limit. Older tool outputs are cleared first, then the conversation is summarized. Project-root CLAUDE.md and auto memory survive compaction and reload from disk; instructions given only in conversation may be lost. Run `/compact` to trigger manually, optionally with a focus like `/compact focus on the API changes`. Learn more: [What survives compaction](</docs/en/context-window#what-survives-compaction>) · [When context fills up](</docs/en/how-claude-code-works#when-context-fills-up>)
+
+###
+
+
+
+Context window
+
+The working memory for a session, holding conversation history, file contents, command outputs, CLAUDE.md, auto memory, loaded skills, and system instructions. As you work, context fills up until compaction summarizes it. Run `/context` to see what’s using space. For the underlying model concept, see the [platform glossary](<https://platform.claude.com/docs/en/about-claude/glossary#context-window>). Learn more: [Explore the context window](</docs/en/context-window>)
+
+##
+
+
+
+D
+
+###
+
+
+
+Dispatch
+
+A phone-initiated task router that spawns a Claude Code session in the Desktop app when you send a coding task from the Claude mobile app. Your prompt routes to the right tool automatically. Available on Pro and Max plans. Learn more: [Sessions from Dispatch](</docs/en/desktop#sessions-from-dispatch>)
+
+##
+
+
+
+E
+
+###
+
+
+
+Effort level
+
+A setting that controls how much of the adaptive-reasoning thinking budget Claude uses on each turn. Higher effort means more thinking tokens and deeper reasoning; lower effort is faster and cheaper. Effort is supported on Opus 4.7, Opus 4.6, and Sonnet 4.6. Learn more: [Adjust effort level](</docs/en/model-config#adjust-effort-level>)
+
+###
+
+
+
+Extended thinking
+
+Visible step-by-step reasoning the model performs before responding. You can cap thinking tokens with `MAX_THINKING_TOKENS` or adjust the effort level. Thinking appears in gray italic text in the terminal. Learn more: [Use extended thinking](</docs/en/common-workflows#use-extended-thinking-thinking-mode>)
+
+##
+
+
+
+H
+
+###
+
+
+
+Hook
+
+A user-defined handler that executes automatically at a specific point in Claude Code’s lifecycle, such as before a tool runs, after a file edit, or at session start. Handlers can be a shell command, HTTP endpoint, MCP tool, LLM prompt, or subagent. Hooks are deterministic: they fire at fixed lifecycle points rather than at the model’s discretion. A hook configuration has three levels:
+
+ * **Hook event** : the lifecycle point
+ * **Matcher** : filters which events fire it
+ * **Hook handler** : what runs
+
+Learn more: [Get started with hooks](</docs/en/hooks-guide>) · [Hooks reference](</docs/en/hooks>)
+
+##
+
+
+
+M
+
+###
+
+
+
+Managed settings
+
+A settings file enforced org-wide by IT or DevOps, placed at an OS-level path outside `~/.claude`. Users cannot override or exclude managed settings. Use this for security policies, compliance requirements, or standardized tooling across a fleet. Learn more: [Server-managed settings](</docs/en/server-managed-settings>)
+
+###
+
+
+
+MCP (Model Context Protocol)
+
+An open standard for connecting AI tools to external data sources and services. MCP servers give Claude new tools for Slack, Jira, databases, browsers, and hundreds of other integrations. You connect servers via `/mcp` or by adding them to `.mcp.json`. For the protocol itself, see the [platform glossary](<https://platform.claude.com/docs/en/about-claude/glossary#mcp-model-context-protocol>). Learn more: [Model Context Protocol](</docs/en/mcp>)
+
+###
+
+
+
+MCP Tool Search
+
+A context-saving mechanism that defers MCP tool schemas until needed. Only tool names load at startup; Claude fetches the full schema on demand when it decides to use a specific tool. This keeps idle MCP servers from consuming much context. Learn more: [Scale with MCP Tool Search](</docs/en/mcp#scale-with-mcp-tool-search>)
+
+##
+
+
+
+N
+
+###
+
+
+
+Non-interactive mode
+
+A mode that executes a single prompt and exits without a conversational session, invoked with `-p` or `--print`. Used for CI, scripts, and piping. The [Agent SDK](</docs/en/agent-sdk/overview>) is the Python and TypeScript equivalent. Formerly called headless mode. Learn more: [Run Claude Code programmatically](</docs/en/headless>)
+
+##
+
+
+
+O
+
+###
+
+
+
+Output style
+
+A configuration that modifies Claude’s system prompt to change response behavior, tone, or format. Output styles turn off the software-engineering-specific parts of the default system prompt, unlike CLAUDE.md which is delivered as a user message following the system prompt. Built-in styles include Default, Explanatory, and Learning. Learn more: [Output styles](</docs/en/output-styles>)
+
+##
+
+
+
+P
+
+###
+
+
+
+Permission mode
+
+The baseline approval behavior for the session. Cycle with `Shift+Tab` in the CLI or use the mode selector in VS Code, Desktop, and claude.ai. Available modes are `default`, `acceptEdits`, `plan`, `auto`, `dontAsk`, and `bypassPermissions`. Learn more: [Choose a permission mode](</docs/en/permission-modes>)
+
+###
+
+
+
+Permission rule
+
+A settings entry that allows, asks about, or denies a tool invocation based on the tool name and argument pattern. Rules are evaluated deny→ask→allow, first match wins. Permission rules are fine-grained controls layered on top of the broader permission mode. Learn more: [Configure permissions](</docs/en/permissions>)
+
+###
+
+
+
+Plan mode
+
+A permission mode where Claude researches and proposes changes without editing your source files. It can read, search, and run exploration commands, then presents a plan for approval before touching anything. Enter plan mode with `/plan` or by pressing `Shift+Tab`. Learn more: [Analyze before you edit with plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>)
+
+###
+
+
+
+Plugin
+
+A bundle of skills, hooks, subagents, and MCP servers packaged as a single installable unit. Plugin skills are namespaced as `plugin-name:skill-name` so multiple plugins coexist. Distribute plugins across teams via a [marketplace](</docs/en/plugin-marketplaces>). Learn more: [Plugins](</docs/en/plugins>)
+
+###
+
+
+
+Project trust
+
+A one-time dialog accepting a directory before Claude Code loads its configuration. Trust gates auto-installation of marketplace plugins and execution of project-defined hooks. Trusting a directory means its `.claude/settings.json`, `.mcp.json`, and other config files take effect. Learn more: [The `.claude` directory](</docs/en/claude-directory>)
+
+###
+
+
+
+Prompt injection
+
+Hostile instructions embedded in a file, web page, or tool result that attempt to redirect Claude toward actions you never asked for. Claude Code’s defenses include the permission system, command blocklists, and trust verification. Auto mode adds a server-side probe that scans tool results for suspicious content and a classifier that never sees tool results, so injected text cannot influence its approval decisions. Learn more: [Protect against prompt injection](</docs/en/security#protect-against-prompt-injection>)
+
+##
+
+
+
+R
+
+###
+
+
+
+Remote Control
+
+A way to continue a local Claude Code session from your phone or browser via claude.ai. Your code stays on your machine; only the UI is remote. Different from Claude Code on the web, which runs in a cloud sandbox. Learn more: [Remote Control](</docs/en/remote-control>)
+
+###
+
+
+
+Rules
+
+Modular instruction files in `.claude/rules/` that load alongside CLAUDE.md. A rule can be path-scoped with YAML `paths:` frontmatter so it only loads when Claude reads a matching file, keeping context lean until it’s relevant. Learn more: [Organize rules with `.claude/rules/`](</docs/en/memory#organize-rules-with-claude/rules/>)
+
+##
+
+
+
+S
+
+###
+
+
+
+Sandboxing
+
+OS-level filesystem and network isolation for the Bash tool. Commands run inside a boundary you define upfront, so Claude can work freely within it without per-command approval prompts. Sandboxing is a separate layer from permission rules. Learn more: [Sandboxing](</docs/en/sandboxing>)
+
+###
+
+
+
+Session
+
+A conversation tied to your current directory, with its own independent context window. Sessions can be resumed with `claude -c`, forked with `--fork-session` to preserve history under a new session ID, or run in parallel across terminals. Running `/clear` starts a new session; the previous one stays stored and is available via `/resume`. Each session’s transcript is stored under `~/.claude/projects/`. Learn more: [Work with sessions](</docs/en/how-claude-code-works#work-with-sessions>)
+
+###
+
+
+
+Settings layers
+
+The hierarchy Claude Code reads configuration from, in precedence order from highest to lowest: managed policy, command-line arguments, local settings at `.claude/settings.local.json`, project settings at `.claude/settings.json`, then user settings at `~/.claude/settings.json`. Arrays merge across layers; scalars at a higher layer override lower ones. Learn more: [Settings files](</docs/en/settings#settings-files>)
+
+###
+
+
+
+Skill
+
+A `SKILL.md` file containing instructions, knowledge, or a workflow that Claude adds to its toolkit. Claude loads a skill automatically when relevant, or you invoke it directly with `/skill-name`. Skills follow the Agent Skills open standard; Claude Code extends it with invocation control and subagent execution. Skills are the recommended successor to custom commands. A file at `.claude/commands/deploy.md` and one at `.claude/skills/deploy/SKILL.md` both create `/deploy` and work the same way; existing command files continue to work. Learn more: [Extend Claude with skills](</docs/en/skills>)
+
+###
+
+
+
+Subagent
+
+A specialized AI assistant that runs in its own context window with a custom system prompt, specific tool access, and independent permissions. It works on a delegated task and returns a summary to the main conversation. Use subagents to keep large explorations out of your primary context or to run parallel research. Different from agent teams, where each agent is a full independent session you can talk to directly. Built-in subagents include Explore, Plan, and general-purpose. Learn more: [Create custom subagents](</docs/en/sub-agents>)
+
+###
+
+
+
+Surface
+
+Any place you access Claude Code: the CLI, VS Code, JetBrains, Desktop, or claude.ai. All surfaces share the same engine, so your CLAUDE.md, settings, and skills work the same way across them. Slack and the Chrome extension are integrations that connect to a surface rather than surfaces themselves. Learn more: [Platforms and integrations](</docs/en/platforms>)
+
+##
+
+
+
+T
+
+###
+
+
+
+Teleport
+
+A command, `/teleport`, that pulls a cloud Claude Code session into your local terminal. Claude fetches the branch, loads the conversation history, and resumes from the web session’s last state. The reverse direction is `--remote`, which sends a local task to run on the web. Learn more: [From web to terminal](</docs/en/claude-code-on-the-web#from-web-to-terminal>)
+
+###
+
+
+
+Tool
+
+An action Claude can take: read a file, edit code, run a shell command, search the web, spawn a subagent. Tools are what make Claude Code agentic. Without them, Claude can only respond with text. Each tool use returns a result that informs Claude’s next decision in the agentic loop. Learn more: [Tools available to Claude](</docs/en/tools-reference>)
+
+##
+
+
+
+W
+
+###
+
+
+
+Worktree isolation
+
+An isolation mode that runs Claude in a separate git worktree under `.claude/worktrees/`, enabled with the `-w` flag or `isolation: worktree` in subagent config. Changes stay on a separate branch in a separate directory, so parallel agents don’t overwrite each other’s files. Learn more: [Run parallel sessions with git worktrees](</docs/en/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees>)
+
+* * *
+
+##
+
+
+
+Deprecated and renamed terms
+
+These terms appear in older docs, blog posts, and community content. Use the current name when searching this site.
+
+Old term| Now called| Notes
+---|---|---
+Headless mode| Non-interactive mode| Same `-p` flag, same behavior
+Custom commands| Skills| `.claude/commands/` files still work
+Slash commands| Commands| ”Slash” dropped from product copy
--- a/google-vertex-ai.md
+++ b/google-vertex-ai.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
--- a/headless.md
+++ b/headless.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The [Agent SDK](</docs/en/agent-sdk/overview>) gives you the same tools, agent loop, and context management that power Claude Code. It’s available as a CLI for scripts and CI/CD, or as [Python](</docs/en/agent-sdk/python>) and [TypeScript](</docs/en/agent-sdk/typescript>) packages for full programmatic control.
The CLI was previously called “headless mode.” The `-p` flag and all CLI options work the same way.
Show diff (271 lines)
--- a/hooks.md
+++ b/hooks.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
For a quickstart guide with examples, see [Automate workflows with hooks](</docs/en/hooks-guide>).
Hooks are user-defined shell commands, HTTP endpoints, or LLM prompts that execute automatically at specific points in Claude Code’s lifecycle. Use this reference to look up event schemas, configuration options, JSON input/output formats, and advanced features like async hooks, HTTP hooks, and MCP tool hooks. If you’re setting up hooks for the first time, start with the [guide](</docs/en/hooks-guide>) instead.
@@ -15,6 +21,7 @@
Event| When it fires
---|---
`SessionStart`| When a session begins or resumes
+`Setup`| When you start Claude Code with `--init-only`, or with `--init` or `--maintenance` in `-p` mode. For one-time preparation in CI or scripts
`UserPromptSubmit`| When you submit a prompt, before Claude processes it
`UserPromptExpansion`| When a user-typed command expands into a prompt, before it reaches Claude. Can block the expansion
`PreToolUse`| Before a tool call executes. Can block it
@@ -187,9 +194,10 @@
---|---|---
`PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, `PermissionDenied`| tool name| `Bash`, `Edit|Write`, `mcp__.*`
`SessionStart`| how the session started| `startup`, `resume`, `clear`, `compact`
+`Setup`| which CLI flag triggered setup| `init`, `maintenance`
`SessionEnd`| why the session ended| `clear`, `resume`, `logout`, `prompt_input_exit`, `bypass_permissions_disabled`, `other`
-`Notification`| notification type| `permission_prompt`, `idle_prompt`, `auth_success`, `elicitation_dialog`
-`SubagentStart`| agent type| `Bash`, `Explore`, `Plan`, or custom agent names
+`Notification`| notification type| `permission_prompt`, `idle_prompt`, `auth_success`, `elicitation_dialog`, `elicitation_complete`, `elicitation_response`
+`SubagentStart`| agent type| `general-purpose`, `Explore`, `Plan`, or custom agent names
`PreCompact`, `PostCompact`| what triggered compaction| `manual`, `auto`
`SubagentStop`| agent type| same values as `SubagentStart`
`ConfigChange`| configuration source| `user_settings`, `project_settings`, `local_settings`, `policy_settings`, `skills`
@@ -597,6 +605,7 @@
`Notification`| No| Shows stderr to user only
`SubagentStart`| No| Shows stderr to user only
`SessionStart`| No| Shows stderr to user only
+`Setup`| No| Shows stderr to user only
`SessionEnd`| No| Shows stderr to user only
`CwdChanged`| No| Shows stderr to user only
`FileChanged`| No| Shows stderr to user only
@@ -650,6 +659,35 @@
To stop Claude entirely regardless of event type:
{ "continue": false, "stopReason": "Build failed, fix errors before continuing" }
+
+####
+
+
+
+Add context for Claude
+
+The `additionalContext` field passes a string from your hook into Claude’s context window. Claude Code wraps the string in a system reminder and inserts it into the conversation at the point where the hook fired. Claude reads the reminder on the next model request, but it does not appear as a chat message in the interface. Return `additionalContext` inside `hookSpecificOutput` alongside the event name:
+
+ {
+ "hookSpecificOutput": {
+ "hookEventName": "PostToolUse",
+ "additionalContext": "This file is generated. Edit src/schema.ts and run `bun generate` instead."
+ }
+ }
+
+Where the reminder appears depends on the event:
+
+ * SessionStart, Setup, and SubagentStart: at the start of the conversation, before the first prompt
+ * UserPromptSubmit and UserPromptExpansion: alongside the submitted prompt
+ * PreToolUse, PostToolUse, PostToolUseFailure, and PostToolBatch: next to the tool result
+
+When several hooks return `additionalContext` for the same event, Claude receives all of the values. If a value exceeds 10,000 characters, Claude Code writes the full text to a file in the session directory and passes Claude the file path with a short preview instead. Use `additionalContext` for information Claude should know about the current state of your environment or the operation that just ran:
+
+ * **Environment state** : the current branch, deployment target, or active feature flags
+ * **Conditional project rules** : which test command applies to the file just edited, which directories are read-only in this worktree
+ * **External data** : open issues assigned to you, recent CI results, content fetched from an internal service
+
+For instructions that never change, prefer [CLAUDE.md](</docs/en/memory>). It loads without running a script and is the standard place for static project conventions. Write the text as factual statements rather than imperative system instructions. Phrasing such as “The deployment target is production” or “This repo uses `bun test`” reads as project information. Text framed as out-of-band system commands can trigger Claude’s prompt-injection defenses, which causes Claude to surface the text to you instead of treating it as context. Once injected, the text is saved in the session transcript. For mid-session events like `PostToolUse` or `UserPromptSubmit`, resuming with `--continue` or `--resume` replays the saved text rather than re-running the hook for past turns, so values like timestamps or commit SHAs become stale on resume. `SessionStart` hooks run again on resume with `source` set to `"resume"`, so they can refresh their context.
####
@@ -762,14 +800,16 @@
Field| Description
---|---
-`additionalContext`| String added to Claude’s context. Multiple hooks’ values are concatenated
+`additionalContext`| String added to Claude’s context at the start of the conversation, before the first prompt. See Add context for Claude for how the text is delivered and what to put in it
{
"hookSpecificOutput": {
"hookEventName": "SessionStart",
- "additionalContext": "My additional context here"
- }
- }
+ "additionalContext": "Current branch: feat/auth-refactor\nUncommitted changes: src/auth.ts, src/login.tsx\nActive issue: #4211 Migrate to OAuth2"
+ }
+ }
+
+Since plain stdout already reaches Claude for this event, a hook that only loads context can print to stdout directly without building JSON. Use the JSON form when you need to combine context with other fields such as `suppressOutput`.
####
@@ -808,7 +848,59 @@
Any variables written to this file will be available in all subsequent Bash commands that Claude Code executes during the session.
-`CLAUDE_ENV_FILE` is available for SessionStart, CwdChanged, and FileChanged hooks. Other hook types do not have access to this variable.
+`CLAUDE_ENV_FILE` is available for SessionStart, Setup, CwdChanged, and FileChanged hooks. Other hook types do not have access to this variable.
+
+###
+
+
+
+Setup
+
+Fires only when you launch Claude Code with `--init-only`, or with `--init` or `--maintenance` in print mode (`-p`). It does not fire on normal startup. Use it for one-time dependency installation or scheduled cleanup that you trigger explicitly from CI or scripts, separate from normal session startup. For per-session initialization, use SessionStart instead. The matcher value corresponds to the CLI flag that triggered the hook:
+
+Matcher| When it fires
+---|---
+`init`| `claude --init-only` or `claude -p --init`
+`maintenance`| `claude -p --maintenance`
+
+`--init-only` runs Setup hooks and `SessionStart` hooks with the `startup` matcher, then exits without starting a conversation. `--init` and `--maintenance` fire Setup hooks only when combined with `-p` (print mode); in an interactive session those two flags do not currently fire Setup hooks. Because Setup does not fire on every launch, a plugin that needs a dependency installed cannot rely on Setup alone. The practical pattern is to check for the dependency on first use and install on miss, for example a hook or skill that tests for `${CLAUDE_PLUGIN_DATA}/node_modules` and runs `npm install` if absent. See the [persistent data directory](</docs/en/plugins-reference#persistent-data-directory>) for where to store installed dependencies.
+
+####
+
+
+
+Setup input
+
+In addition to the common input fields, Setup hooks receive a `trigger` field set to either `"init"` or `"maintenance"`:
+
+ {
+ "session_id": "abc123",
+ "transcript_path": "/Users/.../.claude/projects/.../00893aaf-19fa-41d2-8238-13269b9b3ca0.jsonl",
+ "cwd": "/Users/...",
+ "hook_event_name": "Setup",
+ "trigger": "init"
+ }
+
+####
+
+
+
+Setup decision control
+
+Setup hooks cannot block. On exit code 2, stderr is shown to the user; on any other non-zero exit code, stderr appears only when you launch with `--verbose`. In both cases execution continues. To pass information into Claude’s context, return `additionalContext` in JSON output; plain stdout is written to the debug log only. In addition to the JSON output fields available to all hooks, you can return these event-specific fields:
+
+Field| Description
+---|---
+`additionalContext`| String added to Claude’s context. Multiple hooks’ values are concatenated
+
+ {
+ "hookSpecificOutput": {
+ "hookEventName": "Setup",
+ "additionalContext": "Dependencies installed: node_modules, .venv"
+ }
+ }
+
+Setup hooks have access to `CLAUDE_ENV_FILE`. Variables written to that file persist into subsequent Bash commands for the session, just as in SessionStart hooks. Only `type: "command"` and `type: "mcp_tool"` hooks are supported.
###
@@ -895,7 +987,7 @@
---|---
`decision`| `"block"` prevents the prompt from being processed and erases it from context. Omit to allow the prompt to proceed
`reason`| Shown to the user when `decision` is `"block"`. Not added to context
-`additionalContext`| String added to Claude’s context
+`additionalContext`| String added to Claude’s context alongside the submitted prompt. See Add context for Claude
`sessionTitle`| Sets the session title, same effect as `/rename`. Use to name sessions automatically based on the prompt content
{
@@ -951,7 +1043,7 @@
---|---
`decision`| `"block"` prevents the slash command from expanding. Omit to allow it to proceed
`reason`| Shown to the user when `decision` is `"block"`
-`additionalContext`| String added to Claude’s context alongside the expanded prompt
+`additionalContext`| String added to Claude’s context alongside the expanded prompt. See Add context for Claude
{
"decision": "block",
@@ -1093,7 +1185,7 @@
`permissionDecision`| `"allow"` skips the permission prompt. `"deny"` prevents the tool call. `"ask"` prompts the user to confirm. `"defer"` exits gracefully so the tool can be resumed later. [Deny and ask rules](</docs/en/permissions#manage-permissions>) are still evaluated regardless of what the hook returns
`permissionDecisionReason`| For `"allow"` and `"ask"`, shown to the user but not Claude. For `"deny"`, shown to Claude. For `"defer"`, ignored
`updatedInput`| Modifies the tool’s input parameters before execution. Replaces the entire input object, so include unchanged fields alongside modified ones. Combine with `"allow"` to auto-approve, or `"ask"` to show the modified input to the user. For `"defer"`, ignored
-`additionalContext`| String added to Claude’s context before the tool executes. For `"defer"`, ignored
+`additionalContext`| String added to Claude’s context alongside the tool result. Ignored when `permissionDecision` is `"defer"`. See Add context for Claude
When multiple PreToolUse hooks return different decisions, precedence is `deny` > `defer` > `ask` > `allow`. When a hook returns `"ask"`, the permission prompt displayed to the user includes a label identifying where the hook came from: for example, `[User]`, `[Project]`, `[Plugin]`, or `[Local]`. This helps users understand which configuration source is requesting confirmation.
@@ -1295,7 +1387,7 @@
---|---
`decision`| `"block"` prompts Claude with the `reason`. Omit to allow the action to proceed
`reason`| Explanation shown to Claude when `decision` is `"block"`
-`additionalContext`| Additional context for Claude to consider
+`additionalContext`| String added to Claude’s context alongside the tool result. See Add context for Claude
`updatedToolOutput`| Replaces the tool’s output with the provided value before it is sent to Claude. The value must match the tool’s output shape
`updatedMCPToolOutput`| Replaces the output for MCP tools only. Prefer `updatedToolOutput`, which works for all tools
@@ -1365,7 +1457,7 @@
Field| Description
---|---
-`additionalContext`| Additional context for Claude to consider alongside the error
+`additionalContext`| String added to Claude’s context alongside the error. See Add context for Claude
{
"hookSpecificOutput": {
@@ -1426,7 +1518,7 @@
Field| Description
---|---
-`additionalContext`| Context string injected once before the next model call
+`additionalContext`| Context string injected once before the next model call. See Add context for Claude for delivery details, what to put in it, and how resumed sessions handle past values
{
"hookSpecificOutput": {
@@ -1434,8 +1526,6 @@
"additionalContext": "These files are part of the ledger module. Run pytest before marking the task complete."
}
}
-
-Injected `additionalContext` is persisted to the session transcript. On `--continue` or `--resume`, the saved text is replayed from disk and the hook does not re-run for past turns. Prefer static context such as conventions or file-type guidance over dynamic values like timestamps or the current commit SHA, since those become stale on resume.Frame the context as factual information rather than imperative system instructions. Text written as out-of-band system commands can trigger Claude’s prompt-injection defenses, which surfaces the injection to the user instead of acting on it.
Returning `decision: "block"` or `continue: false` stops the agentic loop before the next model call.
@@ -1497,7 +1587,7 @@
Notification
-Runs when Claude Code sends notifications. Matches on notification type: `permission_prompt`, `idle_prompt`, `auth_success`, `elicitation_dialog`. Omit the matcher to run hooks for all notification types. Use separate matchers to run different handlers depending on the notification type. This configuration triggers a permission-specific alert script when Claude needs permission approval and a different notification when Claude has been idle:
+Runs when Claude Code sends notifications. Matches on notification type: `permission_prompt`, `idle_prompt`, `auth_success`, `elicitation_dialog`, `elicitation_complete`, `elicitation_response`. Omit the matcher to run hooks for all notification types. Use separate matchers to run different handlers depending on the notification type. This configuration triggers a permission-specific alert script when Claude needs permission approval and a different notification when Claude has been idle:
{
"hooks": {
@@ -1542,11 +1632,7 @@
"notification_type": "permission_prompt"
}
-Notification hooks cannot block or modify notifications. In addition to the JSON output fields available to all hooks, you can return `additionalContext` to add context to the conversation:
-
-Field| Description
----|---
-`additionalContext`| String added to Claude’s context
+Notification hooks cannot block or modify notifications. They are intended for side effects such as forwarding the notification to an external service. The common JSON output fields such as `systemMessage` apply.
###
@@ -1554,7 +1640,7 @@
SubagentStart
-Runs when a Claude Code subagent is spawned via the Agent tool. Supports matchers to filter by agent type name (built-in agents like `Bash`, `Explore`, `Plan`, or custom agent names from `.claude/agents/`).
+Runs when a Claude Code subagent is spawned via the Agent tool. Supports matchers to filter by agent type name (built-in agents like `general-purpose`, `Explore`, `Plan`, or custom agent names from `.claude/agents/`).
####
@@ -1562,7 +1648,7 @@
SubagentStart input
-In addition to the common input fields, SubagentStart hooks receive `agent_id` with the unique identifier for the subagent and `agent_type` with the agent name (built-in agents like `"Bash"`, `"Explore"`, `"Plan"`, or custom agent names).
+In addition to the common input fields, SubagentStart hooks receive `agent_id` with the unique identifier for the subagent and `agent_type` with the agent name (built-in agents like `"general-purpose"`, `"Explore"`, `"Plan"`, or custom agent names).
{
"session_id": "abc123",
@@ -1577,7 +1663,7 @@
Field| Description
---|---
-`additionalContext`| String added to the subagent’s context
+`additionalContext`| String added to the subagent’s context at the start of its conversation, before its first prompt. See Add context for Claude
{
"hookSpecificOutput": {
--- a/hooks-guide.md
+++ b/hooks-guide.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Hooks are user-defined shell commands that execute at specific points in Claude Code’s lifecycle. They provide deterministic control over Claude Code’s behavior, ensuring certain actions always happen rather than relying on the LLM to choose to run them. Use hooks to enforce project rules, automate repetitive tasks, and integrate Claude Code with your existing tools. For decisions that require judgment rather than deterministic rules, you can also use prompt-based hooks or agent-based hooks that use a Claude model to evaluate conditions. For other ways to extend Claude Code, see [skills](</docs/en/skills>) for giving Claude additional instructions and executable commands, [subagents](</docs/en/sub-agents>) for running tasks in isolated contexts, and [plugins](</docs/en/plugins>) for packaging extensions to share across projects.
This guide covers common use cases and how to get started. For full event schemas, JSON input/output formats, and advanced features like async hooks and MCP tool hooks, see the [Hooks reference](</docs/en/hooks>).
@@ -400,6 +406,7 @@
Event| When it fires
---|---
`SessionStart`| When a session begins or resumes
+`Setup`| When you start Claude Code with `--init-only`, or with `--init` or `--maintenance` in `-p` mode. For one-time preparation in CI or scripts
`UserPromptSubmit`| When you submit a prompt, before Claude processes it
`UserPromptExpansion`| When a user-typed command expands into a prompt, before it reaches Claude. Can block the expansion
`PreToolUse`| Before a tool call executes. Can block it
@@ -485,7 +492,7 @@
The exit code determines what happens next:
* **Exit 0** : the action proceeds. For `UserPromptSubmit`, `UserPromptExpansion`, and `SessionStart` hooks, anything you write to stdout is added to Claude’s context.
- * **Exit 2** : the action is blocked. Write a reason to stderr, and Claude receives it as feedback so it can adjust.
+ * **Exit 2** : the action is blocked. Write a reason to stderr, and Claude receives it as feedback so it can adjust. Some events cannot be blocked: for `SessionStart`, `Setup`, `Notification`, and others, exit 2 shows stderr to the user and execution continues. See [exit code 2 behavior per event](</docs/en/hooks#exit-code-2-behavior-per-event>) for the full list.
* **Any other exit code** : the action proceeds. The transcript shows a `<hook name> hook error` notice followed by the first line of stderr; the full stderr goes to the [debug log](</docs/en/hooks#debug-hooks>).
####
@@ -537,15 +544,20 @@
}
}
-The `"Edit|Write"` matcher fires only when Claude uses the `Edit` or `Write` tool, not when it uses `Bash`, `Read`, or any other tool. See [Matcher patterns](</docs/en/hooks#matcher-patterns>) for how plain names and regular expressions are evaluated. Each event type matches on a specific field:
+The `"Edit|Write"` matcher fires only when Claude uses the `Edit` or `Write` tool, not when it uses `Bash`, `Read`, or any other tool. See [Matcher patterns](</docs/en/hooks#matcher-patterns>) for how plain names and regular expressions are evaluated.
+
+Claude can also create or modify files by running shell commands through the `Bash` tool. If your hook must see every file change, such as for compliance scanning or audit logging, add a [`Stop`](</docs/en/hooks#stop>) hook that scans the working tree once per turn. For per-call coverage instead, also match `Bash` and have your script list modified and untracked files with `git status --porcelain`.
+
+Each event type matches on a specific field:
Event| What the matcher filters| Example matcher values
---|---|---
`PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, `PermissionDenied`| tool name| `Bash`, `Edit|Write`, `mcp__.*`
`SessionStart`| how the session started| `startup`, `resume`, `clear`, `compact`
+`Setup`| which CLI flag triggered setup| `init`, `maintenance`
`SessionEnd`| why the session ended| `clear`, `resume`, `logout`, `prompt_input_exit`, `bypass_permissions_disabled`, `other`
-`Notification`| notification type| `permission_prompt`, `idle_prompt`, `auth_success`, `elicitation_dialog`
-`SubagentStart`| agent type| `Bash`, `Explore`, `Plan`, or custom agent names
+`Notification`| notification type| `permission_prompt`, `idle_prompt`, `auth_success`, `elicitation_dialog`, `elicitation_complete`, `elicitation_response`
+`SubagentStart`| agent type| `general-purpose`, `Explore`, `Plan`, or custom agent names
`PreCompact`, `PostCompact`| what triggered compaction| `manual`, `auto`
`SubagentStop`| agent type| same values as `SubagentStart`
`ConfigChange`| configuration source| `user_settings`, `project_settings`, `local_settings`, `policy_settings`, `skills`
--- a/hosting.md
+++ b/hosting.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The Claude Agent SDK differs from traditional stateless LLM APIs in that it maintains conversational state and executes commands in a persistent environment. This guide covers the architecture, hosting considerations, and best practices for deploying SDK-based agents in production.
For security hardening beyond basic sandboxing (including network controls, credential management, and isolation options), see [Secure Deployment](</docs/en/agent-sdk/secure-deployment>).
--- a/how-claude-code-works.md
+++ b/how-claude-code-works.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code is an agentic assistant that runs in your terminal. While it excels at coding, it can help with anything you can do from the command line: writing docs, running builds, searching files, researching topics, and more. This guide covers the core architecture, built-in capabilities, and tips for working effectively. For step-by-step walkthroughs, see [Common workflows](</docs/en/common-workflows>). For extensibility features like skills, MCP, and hooks, see [Extend Claude Code](</docs/en/features-overview>).
##
--- a/index.md
+++ b/index.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The weekly dev digest highlights the features most likely to change how you work. Each entry includes runnable code, a short demo, and a link to the full docs. For every bug fix and minor improvement, see the [changelog](</docs/en/changelog>).
--- a/interactive-mode.md
+++ b/interactive-mode.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
Show diff (251 lines)
--- a/jetbrains.md
+++ b/jetbrains.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code integrates with JetBrains IDEs through a dedicated plugin, providing features like interactive diff viewing, selection context sharing, and more.
##
@@ -21,11 +27,11 @@
Features
- * **Quick launch** : Use `Cmd+Esc` (Mac) or `Ctrl+Esc` (Windows/Linux) to open Claude Code directly from your editor, or click the Claude Code button in the UI
- * **Diff viewing** : Code changes can be displayed directly in the IDE diff viewer instead of the terminal
- * **Selection context** : The current selection/tab in the IDE is automatically shared with Claude Code
- * **File reference shortcuts** : Use `Cmd+Option+K` (Mac) or `Alt+Ctrl+K` (Linux/Windows) to insert file references (for example, @File#L1-99)
- * **Diagnostic sharing** : Diagnostic errors (lint, syntax, etc.) from the IDE are automatically shared with Claude as you work
+ * **Quick launch** : use `Cmd+Esc` (Mac) or `Ctrl+Esc` (Windows/Linux) to open Claude Code directly from your editor, or click the Claude Code button in the UI
+ * **Diff viewing** : code changes can be displayed directly in the IDE diff viewer instead of the terminal
+ * **Selection context** : the current selection or tab in the IDE is automatically shared with Claude Code
+ * **File reference shortcuts** : use `Cmd+Option+K` (Mac) or `Alt+Ctrl+K` (Linux/Windows) to insert file references such as `@src/auth.ts#L1-99`
+ * **Diagnostic sharing** : diagnostic errors from the IDE, such as lint and syntax errors, are automatically shared with Claude as you work
##
@@ -37,9 +43,9 @@
-Marketplace Installation
-
-Find and install the [Claude Code plugin](<https://plugins.jetbrains.com/plugin/27310-claude-code-beta->) from the JetBrains marketplace and restart your IDE. If you haven’t installed Claude Code yet, see [our quickstart guide](</docs/en/quickstart>) for installation instructions.
+Marketplace installation
+
+Find and install the [Claude Code plugin](<https://plugins.jetbrains.com/plugin/27310-claude-code-beta->) from the JetBrains marketplace and restart your IDE. If you haven’t installed Claude Code yet, see the [quickstart guide](</docs/en/quickstart>) for installation instructions.
After installing the plugin, you may need to restart your IDE completely for it to take effect.
@@ -53,7 +59,7 @@
-From Your IDE
+From your IDE
Run `claude` from your IDE’s integrated terminal, and all integration features will be active.
@@ -61,7 +67,7 @@
-From External Terminals
+From external terminals
Use the `/ide` command in any external terminal to connect Claude Code to your JetBrains IDE and activate all features:
@@ -81,7 +87,7 @@
-Claude Code Settings
+Claude Code settings
Configure IDE integration through Claude Code’s settings:
@@ -93,7 +99,7 @@
-Plugin Settings
+Plugin settings
Configure the Claude Code plugin by going to **Settings → Tools → Claude Code [Beta]** :
@@ -101,12 +107,12 @@
-General Settings
-
- * **Claude command** : Specify a custom command to run Claude (for example, `claude`, `/usr/local/bin/claude`, or `npx @anthropic-ai/claude-code`)
- * **Suppress notification for Claude command not found** : Skip notifications about not finding the Claude command
- * **Enable using Option+Enter for multi-line prompts** (macOS only): When enabled, Option+Enter inserts new lines in Claude Code prompts. Disable if experiencing issues with the Option key being captured unexpectedly (requires terminal restart)
- * **Enable automatic updates** : Automatically check for and install plugin updates (applied on restart)
+General settings
+
+ * **Claude command** : specify a custom command to run Claude, for example `claude`, `/usr/local/bin/claude`, or `npx @anthropic-ai/claude-code`
+ * **Suppress notification for Claude command not found** : skip notifications about not finding the Claude command
+ * **Enable using Option+Enter for multi-line prompts** : on macOS only. When enabled, Option+Enter inserts new lines in Claude Code prompts. Disable if the Option key is being captured unexpectedly. Requires a terminal restart.
+ * **Enable automatic updates** : automatically check for and install plugin updates, applied on restart
For WSL users: Set `wsl -d Ubuntu -- bash -lic "claude"` as your Claude command (replace `Ubuntu` with your WSL distribution name)
@@ -114,7 +120,7 @@
-ESC Key Configuration
+ESC key configuration
If the ESC key doesn’t interrupt Claude Code operations in JetBrains terminals:
@@ -130,13 +136,13 @@
-Special Configurations
-
-###
-
-
-
-Remote Development
+Special configurations
+
+###
+
+
+
+Remote development
When using JetBrains Remote Development, you must install the plugin in the remote host via **Settings → Plugin (Host)**.
@@ -146,15 +152,54 @@
-WSL Configuration
-
-WSL users may need additional configuration for IDE detection to work properly. See our [WSL troubleshooting guide](</docs/en/troubleshooting#jetbrains-ide-not-detected-on-wsl2>) for detailed setup instructions.
-
-WSL configuration may require:
-
- * Proper terminal configuration
- * Networking mode adjustments
- * Firewall settings updates
+WSL configuration
+
+If you’re using Claude Code on WSL2 with a JetBrains IDE and see “No available IDEs detected”, the cause is usually WSL2’s NAT networking or Windows Firewall blocking the connection between WSL2 and the IDE running on the Windows host. WSL1 uses the host’s network directly and isn’t affected.
+
+####
+
+
+
+Allow WSL2 traffic through Windows Firewall
+
+This is the recommended fix because it keeps your existing WSL2 networking mode.
+
+1
+
+Find your WSL2 IP address
+
+From inside your WSL shell, run:
+
+ hostname -I
+
+Note the subnet, for example `172.21.123.45` is in `172.21.0.0/16`.
+
+2
+
+Create a firewall rule
+
+Open PowerShell as Administrator and run the following, adjusting the IP range to match your subnet:
+
+ New-NetFirewallRule -DisplayName "Allow WSL2 Internal Traffic" -Direction Inbound -Protocol TCP -Action Allow -RemoteAddress 172.21.0.0/16 -LocalAddress 172.21.0.0/16
+
+3
+
+Restart your IDE and Claude Code
+
+Close and reopen both so the new rule takes effect.
+
+####
+
+
+
+Switch WSL2 to mirrored networking
+
+Mirrored networking requires Windows 11 22H2 or later. If you’re on Windows 10, use the firewall rule above instead. Add this to `.wslconfig` in your Windows user directory:
+
+ [wsl2]
+ networkingMode=mirrored
+
+Then restart WSL with `wsl --shutdown` from PowerShell.
##
@@ -166,7 +211,9 @@
-Plugin Not Working
+Plugin not working
+
+If the plugin is installed but Claude Code features don’t appear in your IDE:
* Ensure you’re running Claude Code from the project root directory
* Check that the JetBrains plugin is enabled in the IDE settings
@@ -177,22 +224,24 @@
-IDE Not Detected
+IDE not detected
+
+If running `claude` shows “No available IDEs detected”:
* Verify the plugin is installed and enabled
* Restart the IDE completely
* Check that you’re running Claude Code from the integrated terminal
- * For WSL users, see the [WSL troubleshooting guide](</docs/en/troubleshooting#jetbrains-ide-not-detected-on-wsl2>)
-
-###
-
-
-
-Command Not Found
+ * For WSL users, see WSL configuration above
+
+###
+
+
+
+Command not found
If clicking the Claude icon shows “command not found”:
- 1. Verify Claude Code is installed: `npm list -g @anthropic-ai/claude-code`
+ 1. Verify Claude Code is installed by running `claude --version` in a terminal
2. Configure the Claude command path in plugin settings
3. For WSL users, use the WSL command format mentioned in the configuration section
@@ -200,7 +249,7 @@
-Security Considerations
+Security considerations
When Claude Code runs in a JetBrains IDE with auto-edit permissions enabled, it may be able to modify IDE configuration files that can be automatically executed by your IDE. This may increase the risk of running Claude Code in auto-edit mode and allow bypassing Claude Code’s permission prompts for bash execution. When running in JetBrains IDEs, consider:
@@ -208,4 +257,4 @@
* Taking extra care to ensure Claude is only used with trusted prompts
* Being aware of which files Claude Code has access to modify
-For additional help, see our [troubleshooting guide](</docs/en/troubleshooting>).
+For Claude Code installation or login problems outside the IDE, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>).
--- a/keybindings.md
+++ b/keybindings.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Customizable keyboard shortcuts require Claude Code v2.1.18 or later. Check your version with `claude --version`.
Claude Code supports customizable keyboard shortcuts. Run `/keybindings` to create or open your configuration file at `~/.claude/keybindings.json`.
@@ -114,7 +120,8 @@
Action| Default| Description
---|---|---
`chat:cancel`| Escape| Cancel current input
-`chat:clearInput`| Ctrl+L| Clear prompt input and force a full screen redraw
+`chat:clearInput`| Ctrl+L| Clear prompt input and force a full screen redraw. In [fullscreen rendering](</docs/en/fullscreen#clear-the-conversation>), press twice within two seconds to run `/clear`
+`chat:clearScreen`| Cmd+K| In [fullscreen rendering](</docs/en/fullscreen#clear-the-conversation>), press twice within two seconds to run `/clear`
`chat:killAgents`| Ctrl+X Ctrl+K| Kill all background agents
`chat:cycleMode`| Shift+Tab*| Cycle permission modes
`chat:modelPicker`| Meta+P| Open model picker
@@ -534,6 +541,7 @@
Ctrl+C| Hardcoded interrupt/cancel
Ctrl+D| Hardcoded exit
Ctrl+M| Identical to Enter in terminals (both send CR)
+Caps Lock| Not delivered to terminal applications
##
--- a/legal-and-compliance.md
+++ b/legal-and-compliance.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
--- a/llm-gateway.md
+++ b/llm-gateway.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
LLM gateways provide a centralized proxy layer between Claude Code and model providers, often providing:
* **Centralized authentication** \- Single point for API key management
@@ -30,6 +36,8 @@
Header| Description
---|---
`X-Claude-Code-Session-Id`| A unique identifier for the current Claude Code session. Proxies can use this to aggregate all API requests from a single session without parsing the request body.
+
+Claude Code also prepends a short attribution block to the system prompt containing the client version and a fingerprint derived from the conversation. The Anthropic API strips this block before processing, so it does not affect first-party prompt caching. If your gateway implements its own prompt cache keyed on the full request body, set [`CLAUDE_CODE_ATTRIBUTION_HEADER=0`](</docs/en/env-vars>) to omit it.
##
--- a/mcp.md
+++ b/mcp.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code can connect to hundreds of external tools and data sources through the [Model Context Protocol (MCP)](<https://modelcontextprotocol.io/introduction>), an open source standard for AI-tool integrations. MCP servers give Claude Code access to your tools, databases, and APIs. Connect a server when you find yourself copying data into chat from another tool, like an issue tracker or a monitoring dashboard. Once connected, Claude can read and act on that system directly instead of working from what you paste.
##
@@ -705,7 +711,7 @@
Claude.ai servers appear in the list with indicators showing they come from Claude.ai.
-To disable claude.ai MCP servers in Claude Code, set the `ENABLE_CLAUDEAI_MCP_SERVERS` environment variable to `false`:
+A server you’ve added in Claude Code takes precedence over a claude.ai connector that points at the same URL. When this happens, `/mcp` lists the connector as hidden and shows how to remove the duplicate if you’d rather use the connector. To disable claude.ai MCP servers in Claude Code, set the `ENABLE_CLAUDEAI_MCP_SERVERS` environment variable to `false`:
ENABLE_CLAUDEAI_MCP_SERVERS=false claude
--- a/memory.md
+++ b/memory.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Each Claude Code session begins with a fresh context window. Two mechanisms carry knowledge across sessions:
* **CLAUDE.md files** : instructions you write to give Claude persistent context
--- a/microsoft-foundry.md
+++ b/microsoft-foundry.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
--- a/migration-guide.md
+++ b/migration-guide.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
--- a/model-config.md
+++ b/model-config.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
--- a/modifying-system-prompts.md
+++ b/modifying-system-prompts.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
System prompts define Claude’s behavior, capabilities, and response style. The Claude Agent SDK provides three ways to customize system prompts: using output styles (persistent, file-based configurations), appending to Claude Code’s prompt, or using a fully custom prompt.
##
--- a/monitoring-usage.md
+++ b/monitoring-usage.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Track Claude Code usage, costs, and tool activity across your organization by exporting telemetry data through OpenTelemetry (OTel). Claude Code exports metrics as time series data via the standard metrics protocol, events via the logs/events protocol, and optionally distributed traces via the traces protocol. Configure your metrics, logs, and traces backends to match your monitoring requirements.
##
@@ -617,7 +623,7 @@
* `event.sequence`: monotonically increasing counter for ordering events within a session
* `model`: Model used (for example, “claude-sonnet-4-6”)
* `error`: Error message
- * `status_code`: HTTP status code as a string, or `"undefined"` for non-HTTP errors
+ * `status_code`: HTTP status code as a number. Absent for non-HTTP errors such as connection failures.
* `duration_ms`: Request duration in milliseconds
* `attempt`: Total number of attempts made, including the initial request (`1` means no retries occurred)
* `request_id`: Anthropic API request ID from the response’s `request-id` header, such as `"req_011..."`. Present only when the API returns one.
@@ -789,6 +795,21 @@
+At mention event
+
+Logged when Claude Code resolves an `@`-mention in a prompt. Not every mention emits an event: early-exit paths such as permission denials, oversized files, PDF reference attachments, and directory listing failures return without logging. **Event Name** : `claude_code.at_mention` **Attributes** :
+
+ * All standard attributes
+ * `event.name`: `"at_mention"`
+ * `event.timestamp`: ISO 8601 timestamp
+ * `event.sequence`: monotonically increasing counter for ordering events within a session
+ * `mention_type`: Type of mention (`"file"`, `"directory"`, `"agent"`, `"mcp_resource"`)
+ * `success`: Whether the mention resolved successfully (`"true"` or `"false"`)
+
+####
+
+
+
API retries exhausted event
Logged once when an API request fails after more than one attempt. Emitted alongside the final `api_error` event. **Event Name** : `claude_code.api_retries_exhausted` **Attributes** :
@@ -799,7 +820,7 @@
* `event.sequence`: monotonically increasing counter for ordering events within a session
* `model`: Model used
* `error`: Final error message
- * `status_code`: HTTP status code as a string
+ * `status_code`: HTTP status code as a number. Absent for non-HTTP errors.
* `total_attempts`: Total number of attempts made
* `total_retry_duration_ms`: Total wall-clock time across all attempts
* `speed`: `"fast"` or `"normal"`
@@ -1008,7 +1029,7 @@
Security and privacy
- * Telemetry is opt-in and requires explicit configuration
+ * OpenTelemetry export to your backend is opt-in and requires explicit configuration. For Anthropic’s separate operational telemetry and how to disable it, see [Data usage](</docs/en/data-usage#telemetry-services>)
* Raw file contents and code snippets are not included in metrics or events. Trace spans are a separate data path: see the `OTEL_LOG_TOOL_CONTENT` bullet below
* When authenticated via OAuth, `user.email` is included in telemetry attributes. If this is a concern for your organization, work with your telemetry backend to filter or redact this field
* User prompt content is not collected by default. Only prompt length is recorded. To include prompt content, set `OTEL_LOG_USER_PROMPTS=1`
--- a/network-config.md
+++ b/network-config.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code supports various enterprise network and security configurations through environment variables. This includes routing traffic through corporate proxy servers, trusting custom Certificate Authorities (CA), and authenticating with mutual Transport Layer Security (mTLS) certificates for enhanced security.
All environment variables shown on this page can also be configured in [`settings.json`](</docs/en/settings>).
--- a/observability.md
+++ b/observability.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
When you run agents in production, you need visibility into what they did:
* which tools they called
--- a/output-styles.md
+++ b/output-styles.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Output styles change how Claude responds, not what Claude knows. They modify the system prompt to set role, tone, and output format while keeping core capabilities like running scripts, reading and writing files, and tracking TODOs. Use one when you keep re-prompting for the same voice or format every turn, or when you want Claude to act as something other than a software engineer. For instructions about your project, conventions, or codebase, use [CLAUDE.md](</docs/en/memory>) instead.
##
--- a/overview.md
+++ b/overview.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code is an AI-powered coding assistant that helps you build features, fix bugs, and automate development tasks. It understands your entire codebase and can work across multiple files and tools to get things done.
##
@@ -59,7 +65,7 @@
You’ll be prompted to log in on first use. That’s it! [Continue with the Quickstart →](</docs/en/quickstart>)
-See [advanced setup](</docs/en/setup>) for installation options, manual updates, or uninstallation instructions. Visit [troubleshooting](</docs/en/troubleshooting>) if you hit issues.
+See [advanced setup](</docs/en/setup>) for installation options, manual updates, or uninstallation instructions. Visit [installation troubleshooting](</docs/en/troubleshoot-install>) if you hit issues.
The VS Code extension provides inline diffs, @-mentions, plan review, and conversation history directly in your editor.
--- a/permission-modes.md
+++ b/permission-modes.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
When Claude wants to edit a file, run a shell command, or make a network request, it pauses and asks you to approve the action. Permission modes control how often that pause happens. The mode you pick shapes the flow of a session: default mode has you review each action as it comes, while looser modes let Claude work in longer uninterrupted stretches and report back when done. Pick more oversight for sensitive work, or fewer interruptions when you trust the direction.
##
--- a/permissions.md
+++ b/permissions.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code supports fine-grained permissions so that you can specify exactly what the agent is allowed to do and what it cannot. Permission settings can be checked into version control and distributed to all developers in your organization, as well as customized by individual developers.
##
--- a/platforms.md
+++ b/platforms.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code runs the same underlying engine everywhere, but each surface is tuned for a different way of working. This page helps you pick the right platform for your workflow and connect the tools you already use.
##
--- a/plugin-dependencies.md
+++ b/plugin-dependencies.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
A plugin can depend on other plugins by listing them in `plugin.json` or in its marketplace entry. By default, a dependency tracks the latest available version, so an upstream release can change the dependency under your plugin without warning. Version constraints let you hold a dependency at a tested version range until you choose to move. When you install a plugin that declares dependencies, Claude Code resolves and installs them automatically and lists which dependencies were added at the end of the install output. If a dependency later goes missing, `/reload-plugins` and the background plugin auto-update reinstall it, provided its marketplace is already in your configured marketplaces. Re-running `claude plugin install` on the dependent plugin, or adding a marketplace with `claude plugin marketplace add`, also resolves any outstanding missing dependencies. Dependencies from a marketplace you have not added are left unresolved. This guide is for plugin authors who declare dependencies in `plugin.json` and for marketplace maintainers who tag releases. To install plugins that have dependencies, see [Discover and install plugins](</docs/en/discover-plugins>). For the full manifest schema, see the [Plugins reference](</docs/en/plugins-reference>).
Dependency version constraints require Claude Code v2.1.110 or later.
--- a/plugin-marketplaces.md
+++ b/plugin-marketplaces.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
A **plugin marketplace** is a catalog that lets you distribute plugins to others. Marketplaces provide centralized discovery, version tracking, automatic updates, and support for multiple source types (git repositories, local paths, and more). This guide shows you how to create your own marketplace to share plugins with your team or community. Looking to install plugins from an existing marketplace? See [Discover and install prebuilt plugins](</docs/en/discover-plugins>).
##
--- a/plugins.md
+++ b/plugins.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Plugins let you extend Claude Code with custom functionality that can be shared across projects and teams. This guide covers creating your own plugins with skills, agents, hooks, and MCP servers. Looking to install existing plugins? See [Discover and install plugins](</docs/en/discover-plugins>). For complete technical specifications, see [Plugins reference](</docs/en/plugins-reference>).
##
@@ -332,7 +338,7 @@
3. **Create or use a marketplace** : Distribute through [plugin marketplaces](</docs/en/plugin-marketplaces>) for installation
4. **Test with others** : Have team members test the plugin before wider distribution
-Once your plugin is in a marketplace, others can install it using the instructions in [Discover and install plugins](</docs/en/discover-plugins>).
+Once your plugin is in a marketplace, others can install it using the instructions in [Discover and install plugins](</docs/en/discover-plugins>). To keep a plugin internal to your team, host the marketplace in a [private repository](</docs/en/plugin-marketplaces#private-repositories>).
###
--- a/plugins-reference.md
+++ b/plugins-reference.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Looking to install plugins? See [Discover and install plugins](</docs/en/discover-plugins>). For creating plugins, see [Plugins](</docs/en/plugins>). For distributing plugins, see [Plugin marketplaces](</docs/en/plugin-marketplaces>).
This reference provides complete technical specifications for the Claude Code plugin system, including component schemas, CLI commands, and development tools. A **plugin** is a self-contained directory of components that extends Claude Code with custom functionality. Plugin components include skills, agents, hooks, MCP servers, LSP servers, and monitors.
@@ -89,6 +95,7 @@
Event| When it fires
---|---
`SessionStart`| When a session begins or resumes
+`Setup`| When you start Claude Code with `--init-only`, or with `--init` or `--maintenance` in `-p` mode. For one-time preparation in CI or scripts
`UserPromptSubmit`| When you submit a prompt, before Claude processes it
`UserPromptExpansion`| When a user-typed command expands into a prompt, before it reaches Claude. Can block the expansion
`PreToolUse`| Before a tool call executes. Can block it
--- a/python.md
+++ b/python.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
@@ -3319,14 +3325,6 @@
`ignoreViolations`| `SandboxIgnoreViolations`| `None`| Configure which sandbox violations to ignore
`enableWeakerNestedSandbox`| `bool`| `False`| Enable a weaker nested sandbox for compatibility
-**Filesystem and network access restrictions** are NOT configured via sandbox settings. Instead, they are derived from [permission rules](</docs/en/settings#permission-settings>):
-
- * **Filesystem read restrictions** : Read deny rules
- * **Filesystem write restrictions** : Edit allow/deny rules
- * **Network restrictions** : WebFetch allow/deny rules
-
-Use sandbox settings for command execution sandboxing, and permission rules for filesystem and network access control.
-
####
@@ -3358,6 +3356,9 @@
Network-specific configuration for sandbox mode.
class SandboxNetworkConfig(TypedDict, total=False):
+ allowedDomains: list[str]
+ deniedDomains: list[str]
+ allowManagedDomainsOnly: bool
allowLocalBinding: bool
allowUnixSockets: list[str]
allowAllUnixSockets: bool
@@ -3366,11 +3367,16 @@
Property| Type| Default| Description
---|---|---|---
+`allowedDomains`| `list[str]`| `[]`| Domain names that sandboxed processes can access
+`deniedDomains`| `list[str]`| `[]`| Domain names that sandboxed processes cannot access. Takes precedence over `allowedDomains`
+`allowManagedDomainsOnly`| `bool`| `False`| Managed-settings only: when set in managed settings, ignore `allowedDomains` from non-managed settings sources. Has no effect when set via SDK options
`allowLocalBinding`| `bool`| `False`| Allow processes to bind to local ports (e.g., for dev servers)
`allowUnixSockets`| `list[str]`| `[]`| Unix socket paths that processes can access (e.g., Docker socket)
`allowAllUnixSockets`| `bool`| `False`| Allow access to all Unix sockets
`httpProxyPort`| `int`| `None`| HTTP proxy port for network requests
`socksProxyPort`| `int`| `None`| SOCKS proxy port for network requests
+
+The built-in sandbox proxy enforces the network allowlist based on the requested hostname and does not terminate or inspect TLS traffic, so techniques such as [domain fronting](<https://en.wikipedia.org/wiki/Domain_fronting>) can potentially bypass it. See [Sandboxing security limitations](</docs/en/sandboxing#security-limitations>) for details and [Secure deployment](</docs/en/agent-sdk/secure-deployment#traffic-forwarding>) for configuring a TLS-terminating proxy.
###
--- a/quickstart.md
+++ b/quickstart.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
This quickstart guide will have you using AI-powered coding assistance in a few minutes. By the end, you’ll understand how to use Claude Code for common development tasks.
##
--- a/remote-control.md
+++ b/remote-control.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Remote Control is in research preview and available on all plans. On Team and Enterprise, it is off by default until an admin enables the Remote Control toggle in [Claude Code admin settings](<https://claude.ai/admin-settings/claude-code>).
Remote Control connects [claude.ai/code](<https://claude.ai/code>) or the Claude app for [iOS](<https://apps.apple.com/us/app/claude-by-anthropic/id6473753684>) and [Android](<https://play.google.com/store/apps/details?id=com.anthropic.claude>) to a Claude Code session running on your machine. Start a task at your desk, then pick it up from your phone on the couch or a browser on another computer. When you start a Remote Control session on your machine, Claude keeps running locally the entire time, so nothing moves to the cloud. With Remote Control you can:
--- a/routines.md
+++ b/routines.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Routines are in research preview. Behavior, limits, and the API surface may change.
A routine is a saved Claude Code configuration: a prompt, one or more repositories, and a set of [connectors](</docs/en/mcp>), packaged once and run automatically. Routines execute on Anthropic-managed cloud infrastructure, so they keep working when your laptop is closed. Each routine can have one or more triggers attached to it:
--- a/sandboxing.md
+++ b/sandboxing.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
@@ -61,6 +67,8 @@
* **Custom proxy support** : Advanced users can implement custom rules on outgoing traffic
* **Comprehensive coverage** : Restrictions apply to all scripts, programs, and subprocesses spawned by commands
+The built-in proxy enforces the allowlist based on the requested hostname and does not terminate or inspect TLS traffic. See Security limitations for the implications of this design, and Custom proxy configuration if your threat model requires TLS inspection.
+
###
@@ -96,6 +104,8 @@
sudo apt-get install bubblewrap socat
sudo dnf install bubblewrap socat
+
+WSL1 does not support sandboxing because it lacks the required Linux namespace primitives. If you see `Sandboxing requires WSL2`, upgrade your distribution to WSL2 or run Claude Code without sandboxing. On WSL2, sandboxed commands cannot launch Windows binaries such as `cmd.exe`, `powershell.exe`, or anything under `/mnt/c/`. WSL hands these off to the Windows host over a Unix socket, which the sandbox blocks. If a command needs to invoke a Windows binary, add it to [`excludedCommands`](</docs/en/settings#sandbox-settings>) so it runs outside the sandbox.
###
@@ -239,9 +249,9 @@
Security Limitations
- * Network Sandboxing Limitations: The network filtering system operates by restricting the domains that processes are allowed to connect to. It does not otherwise inspect the traffic passing through the proxy and users are responsible for ensuring they only allow trusted domains in their policy.
-
-Users should be aware of potential risks that come from allowing broad domains like `github.com` that may allow for data exfiltration. Also, in some cases it may be possible to bypass the network filtering through [domain fronting](<https://en.wikipedia.org/wiki/Domain_fronting>).
+ * Network Sandboxing Limitations: The network filtering system operates by restricting the domains that processes are allowed to connect to. The built-in proxy does not terminate or perform TLS inspection on outbound traffic, so the contents of encrypted connections are not examined. You are responsible for ensuring that only trusted domains are allowed in your policy.
+
+Allowing broad domains such as `github.com` can create paths for data exfiltration. Because the proxy makes its allow decision from the client-supplied hostname without inspecting TLS, code running inside the sandbox can potentially use [domain fronting](<https://en.wikipedia.org/wiki/Domain_fronting>) or similar techniques to reach hosts outside the allowlist. If your threat model requires stronger guarantees, configure a custom proxy that terminates TLS and inspects traffic, and install its CA certificate inside the sandbox. Stronger TLS-aware network isolation is an active area of development.
* Privilege Escalation via Unix Sockets: The `allowUnixSockets` configuration can inadvertently grant access to powerful system services that could lead to sandbox bypasses. For example, if it is used to allow access to `/var/run/docker.sock` this would effectively grant access to the host system through exploiting the docker socket. Users are encouraged to carefully consider any unix sockets that they allow through the sandbox.
* Filesystem Permission Escalation: Overly broad filesystem write permissions can enable privilege escalation attacks. Allowing writes to directories containing executables in `$PATH`, system configuration directories, or user shell configuration files (`.bashrc`, `.zshrc`) can lead to code execution in different security contexts when other users or system processes access these files.
--- a/scheduled-tasks.md
+++ b/scheduled-tasks.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Scheduled tasks require Claude Code v2.1.72 or later. Check your version with `claude --version`.
Scheduled tasks let Claude re-run a prompt automatically on an interval. Use them to poll a deployment, babysit a PR, check back on a long-running build, or remind yourself to do something later in the session. To react to events as they happen instead of polling, see [Channels](</docs/en/channels>): your CI can push the failure into the session directly. Tasks are session-scoped: they live in the current conversation and stop when you start a new one. Resuming with `--resume` or `--continue` brings back any task that hasn’t expired: a recurring task created within the last 7 days, or a one-shot whose scheduled time hasn’t passed yet. For scheduling that survives independently of any session, use [Routines](</docs/en/routines>), [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>), or [GitHub Actions](</docs/en/github-actions>).
--- a/secure-deployment.md
+++ b/secure-deployment.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code and the Agent SDK are powerful tools that can execute code, access files, and interact with external services on your behalf. Like any tool with these capabilities, deploying them thoughtfully ensures you get the benefits while maintaining appropriate controls. Unlike traditional software that follows predetermined code paths, these tools generate their actions dynamically based on context and goals. This flexibility is what makes them useful, but it also means their behavior can be influenced by the content they process: files, webpages, or user input. This is sometimes called prompt injection. For example, if a repository’s README contains unusual instructions, Claude Code might incorporate those into its actions in ways the operator didn’t anticipate. This guide covers practical ways to reduce this risk. The good news is that securing an agent deployment doesn’t require exotic infrastructure. The same principles that apply to running any semi-trusted code apply here: isolation, least privilege, and defense in depth. Claude Code includes several security features that help with common concerns, and this guide walks through these along with additional hardening options for those who need them. Not every deployment needs maximum security. A developer running Claude Code on their laptop has different requirements than a company processing customer data in a multi-tenant environment. This guide presents options ranging from Claude Code’s built-in security features to hardened production architectures, so you can choose what fits your situation.
##
@@ -103,7 +109,7 @@
Then create a configuration file specifying allowed paths and domains. **Security considerations:**
1. **Same-host kernel** : Unlike VMs, sandboxed processes share the host kernel. A kernel vulnerability could theoretically enable escape. For some threat models this is acceptable, but if you need kernel-level isolation, use gVisor or a separate VM.
- 2. **No TLS inspection** : The proxy allowlists domains but doesn’t inspect encrypted traffic. If the agent has permissive credentials for an allowed domain, ensure it isn’t possible to use that domain to trigger other network requests or to exfiltrate data.
+ 2. **No TLS inspection** : The proxy allowlists domains based on the client-supplied hostname and does not terminate or inspect encrypted traffic. Code running inside the sandbox can potentially use [domain fronting](<https://en.wikipedia.org/wiki/Domain_fronting>) or similar techniques to reach hosts outside the allowlist. If your threat model requires stronger guarantees, configure a TLS-terminating proxy. See the [sandboxing security limitations](</docs/en/sandboxing#security-limitations>) for more detail. Separately, if the agent has permissive credentials for an allowed domain, ensure it cannot use that domain to trigger other network requests or to exfiltrate data.
For many single-developer and CI/CD use cases, sandbox-runtime raises the bar significantly with minimal setup. The sections below cover containers and VMs for deployments requiring stronger isolation.
--- a/security.md
+++ b/security.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
--- a/server-managed-settings.md
+++ b/server-managed-settings.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Server-managed settings allow administrators to centrally configure Claude Code through a web-based interface on Claude.ai. Claude Code clients automatically receive these settings when users authenticate with their organization credentials. This approach is designed for organizations that do not have device management infrastructure in place, or need to manage settings for users on unmanaged devices.
Server-managed settings are available for [Claude for Teams](<https://claude.com/pricing?utm_source=claude_code&utm_medium=docs&utm_content=server_settings_teams#team-&-enterprise>) and [Claude for Enterprise](<https://anthropic.com/contact-sales?utm_source=claude_code&utm_medium=docs&utm_content=server_settings_enterprise>) customers.
--- a/sessions.md
+++ b/sessions.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
A session is the conversation history the SDK accumulates while your agent works. It contains your prompt, every tool call the agent made, every tool result, and every response. The SDK writes it to disk automatically so you can return to it later. Returning to a session means the agent has full context from before: files it already read, analysis it already performed, decisions it already made. You can ask a follow-up question, recover from an interruption, or branch off to try a different approach.
Sessions persist the **conversation** , not the filesystem. To snapshot and revert file changes the agent made, use [file checkpointing](</docs/en/agent-sdk/file-checkpointing>).
--- a/settings.md
+++ b/settings.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code offers a variety of settings to configure its behavior to meet your needs. You can configure Claude Code by running the `/config` command when using the interactive REPL, which opens a tabbed Settings interface where you can view status information and modify configuration options.
##
@@ -902,4 +908,4 @@
* [Permissions](</docs/en/permissions>): permission system, rule syntax, tool-specific patterns, and managed policies
* [Authentication](</docs/en/authentication>): set up user access to Claude Code
* [Debug your configuration](</docs/en/debug-your-config>): diagnose why a setting, hook, or MCP server isn’t taking effect
- * [Troubleshooting](</docs/en/troubleshooting>): installation, authentication, and platform issues
+ * [Troubleshoot installation and login](</docs/en/troubleshoot-install>): installation, authentication, and platform issues
--- a/setup.md
+++ b/setup.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
This page covers system requirements, platform-specific installation details, updates, and uninstallation. For a guided walkthrough of your first session, see the [quickstart](</docs/en/quickstart>). If you’ve never used a terminal before, see the [terminal guide](</docs/en/terminal-guide>).
##
@@ -16,7 +22,7 @@
* Alpine Linux 3.19+
* **Hardware** : 4 GB+ RAM, x64 or ARM64 processor
* **Network** : internet connection required. See [network configuration](</docs/en/network-config#network-access-requirements>).
- * **Shell** : Bash, Zsh, PowerShell, or CMD. Native Windows setups recommend [Git for Windows](<https://git-scm.com/downloads/win>); PowerShell is used as a fallback when Git Bash is absent. WSL setups do not require Git for Windows.
+ * **Shell** : Bash, Zsh, PowerShell, or CMD. On native Windows, [Git for Windows](<https://git-scm.com/downloads/win>) is recommended; Claude Code falls back to PowerShell when Git Bash is absent. WSL setups do not require Git for Windows.
* **Location** : [Anthropic supported countries](<https://www.anthropic.com/supported-countries>)
###
@@ -73,7 +79,7 @@
claude
-If you encounter any issues during installation, see the [troubleshooting guide](</docs/en/troubleshooting>).
+If you encounter any issues during installation, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>).
###
@@ -97,7 +103,7 @@
}
}
-Claude Code can also run PowerShell natively on Windows. The PowerShell tool is rolling out progressively; set `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` to opt in or `0` to opt out. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD.
+Claude Code can also run PowerShell natively on Windows. When Git Bash is installed, the PowerShell tool is rolling out progressively as an additional option: set `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` to opt in or `0` to opt out. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD.
###
@@ -127,7 +133,7 @@
claude --version
-For a more detailed check of your installation and configuration, run [`claude doctor`](</docs/en/troubleshooting#get-more-help>):
+If this fails with `command not found` or another error, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>). For a more detailed check of your installation and configuration, run [`claude doctor`](</docs/en/troubleshooting#get-more-help>):
claude doctor
@@ -332,9 +338,9 @@
npm install -g @anthropic-ai/claude-code
-The npm package installs the same native binary as the standalone installer. npm pulls the binary in through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`, and a postinstall step links it into place. The installed `claude` binary does not itself invoke Node. Supported npm install platforms are `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Your package manager must allow optional dependencies. See [troubleshooting](</docs/en/troubleshooting#native-binary-not-found-after-npm-install>) if the binary is missing after install.
-
-Do NOT use `sudo npm install -g` as this can lead to permission issues and security risks. If you encounter permission errors, see [troubleshooting permission errors](</docs/en/troubleshooting#permission-errors-during-installation>).
+The npm package installs the same native binary as the standalone installer. npm pulls the binary in through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`, and a postinstall step links it into place. The installed `claude` binary does not itself invoke Node. Supported npm install platforms are `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Your package manager must allow optional dependencies. See [troubleshooting](</docs/en/troubleshoot-install#native-binary-not-found-after-npm-install>) if the binary is missing after install.
+
+Do NOT use `sudo npm install -g` as this can lead to permission issues and security risks. If you encounter permission errors, see [troubleshooting permission errors](</docs/en/troubleshoot-install#permission-errors-during-installation>).
###
--- a/skills.md
+++ b/skills.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Skills extend what Claude can do. Create a `SKILL.md` file with instructions, and Claude adds it to its toolkit. Claude uses skills when relevant, or you can invoke one directly with `/skill-name`. Create a skill when you keep pasting the same playbook, checklist, or multi-step procedure into chat, or when a section of CLAUDE.md has grown into a procedure rather than a fact. Unlike CLAUDE.md content, a skill’s body loads only when it’s used, so long reference material costs almost nothing until you need it.
For built-in commands like `/help` and `/compact`, and bundled skills like `/debug` and `/simplify`, see the [commands reference](</docs/en/commands>).**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. Your existing `.claude/commands/` files keep working. Skills add optional features: a directory for supporting files, frontmatter to control whether you or Claude invokes them, and the ability for Claude to load them automatically when relevant.
--- a/slack.md
+++ b/slack.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code in Slack brings the power of Claude Code directly into your Slack workspace. When you mention `@Claude` with a coding task, Claude automatically detects the intent and creates a Claude Code session on the web, allowing you to delegate development work without leaving your team conversations. This integration is built on the existing Claude for Slack app but adds intelligent routing to Claude Code on the web for coding-related requests.
##
--- a/slash-commands.md
+++ b/slash-commands.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Slash commands provide a way to control Claude Code sessions with special commands that start with `/`. These commands can be sent through the SDK to perform actions like compacting context, listing context usage, or invoking custom commands. Only commands that work without an interactive terminal are dispatchable through the SDK; the `system/init` message lists the ones available in your session.
##
--- a/statusline.md
+++ b/statusline.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The status line is a customizable bar at the bottom of Claude Code that runs any shell script you configure. It receives JSON session data on stdin and displays whatever your script prints, giving you a persistent, at-a-glance view of context usage, costs, git status, or anything else you want to track. Status lines are useful when you:
* Want to monitor context window usage as you work
@@ -560,7 +566,7 @@
Windows configuration
-On Windows, Claude Code runs status line commands through Git Bash. You can invoke PowerShell from that shell:
+On Windows, Claude Code runs status line commands through Git Bash when Git Bash is installed, or through PowerShell when Git Bash is absent. To run a PowerShell script as your status line, invoke it via `powershell`; this works from either shell:
settings.json
@@ -573,7 +579,7 @@
}
}
-Or run a Bash script directly:
+Or, when Git Bash is installed, run a Bash script directly:
settings.json
--- a/streaming-output.md
+++ b/streaming-output.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
By default, the Agent SDK yields complete `AssistantMessage` objects after Claude finishes generating each response. To receive incremental updates as text and tool calls are generated, enable partial message streaming by setting `include_partial_messages` (Python) or `includePartialMessages` (TypeScript) to `true` in your options.
This page covers output streaming (receiving tokens in real-time). For input modes (how you send messages), see [Send messages to agents](</docs/en/agent-sdk/streaming-vs-single-mode>). You can also [stream responses using the Agent SDK via the CLI](</docs/en/headless>).
--- a/streaming-vs-single-mode.md
+++ b/streaming-vs-single-mode.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
##
--- a/structured-outputs.md
+++ b/structured-outputs.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Structured outputs let you define the exact shape of data you want back from an agent. The agent can use any tools it needs to complete the task, and you still get validated JSON matching your schema at the end. Define a [JSON Schema](<https://json-schema.org/understanding-json-schema/about>) for the structure you need, and the SDK validates the output against it, re-prompting on mismatch. If validation does not succeed within the retry limit, the result is an error instead of structured data; see Error handling. For full type safety, use Zod (TypeScript) or Pydantic (Python) to define your schema and get strongly-typed objects back.
##
--- a/sub-agents.md
+++ b/sub-agents.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Subagents are specialized AI assistants that handle specific types of tasks. Use one when a side task would flood your main conversation with search results, logs, or file contents you won’t reference again: the subagent does that work in its own context and returns only the summary. Define a custom subagent when you keep spawning the same kind of worker with the same instructions. Each subagent runs in its own context window with a custom system prompt, specific tool access, and independent permissions. When Claude encounters a task that matches a subagent’s description, it delegates to that subagent, which works independently and returns results. To see the context savings in practice, the [context window visualization](</docs/en/context-window>) walks through a session where a subagent handles research in its own separate window.
If you need multiple agents working in parallel and communicating with each other, see [agent teams](</docs/en/agent-teams>) instead. Subagents work within a single session; agent teams coordinate across separate sessions.
--- a/subagents.md
+++ b/subagents.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Subagents are separate agent instances that your main agent can spawn to handle focused subtasks. Use subagents to isolate context for focused subtasks, run multiple analyses in parallel, and apply specialized instructions without bloating the main agent’s prompt. This guide explains how to define and use subagents in the SDK using the `agents` parameter.
##
--- a/terminal-config.md
+++ b/terminal-config.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code works in any terminal without configuration. This page is for when something specific is not behaving the way you expect. Find your symptom below. If everything already feels right, you do not need this page.
* Shift+Enter submits instead of inserting a newline
--- a/third-party-integrations.md
+++ b/third-party-integrations.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Organizations can deploy Claude Code through Anthropic directly or through a cloud provider. This page helps you choose the right configuration.
##
--- a/todo-tracking.md
+++ b/todo-tracking.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Todo tracking provides a structured way to manage tasks and display progress to users. The Claude Agent SDK includes built-in todo functionality that helps organize complex workflows and keep users informed about task progression.
###
--- a/tool-search.md
+++ b/tool-search.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Tool search enables your agent to work with hundreds or thousands of tools by dynamically discovering and loading them on demand. Instead of loading all tool definitions into the context window upfront, the agent searches your tool catalog and loads only the tools it needs. This approach solves two challenges as tool libraries scale:
* **Context efficiency:** Tool definitions can consume large portions of the context window (50 tools can use 10-20K tokens), leaving less room for actual work.
--- a/tools-reference.md
+++ b/tools-reference.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code has access to a set of built-in tools that help it understand and modify your codebase. The tool names are the exact strings you use in [permission rules](</docs/en/permissions#tool-specific-permission-rules>), [subagent tool lists](</docs/en/sub-agents>), and [hook matchers](</docs/en/hooks>). To disable a tool entirely, add its name to the `deny` array in your [permission settings](</docs/en/permissions#tool-specific-permission-rules>). To add custom tools, connect an [MCP server](</docs/en/mcp>). To extend Claude with reusable prompt-based workflows, write a [skill](</docs/en/skills>), which runs through the existing `Skill` tool rather than adding a new tool entry.
Tool| Description| Permission Required
@@ -95,7 +101,7 @@
PowerShell tool
-The PowerShell tool lets Claude run PowerShell commands natively. On Windows, this means commands run in PowerShell instead of routing through Git Bash. The tool is rolling out progressively on Windows and is opt-in on Linux, macOS, and WSL.
+The PowerShell tool lets Claude run PowerShell commands natively. On Windows, this means commands run in PowerShell instead of routing through Git Bash. On Windows without Git Bash, the tool is enabled automatically. On Windows with Git Bash installed, the tool is rolling out progressively. On Linux, macOS, and WSL, the tool is opt-in.
###
Show diff (693 lines)
--- a/troubleshoot-install.md
+++ b/troubleshoot-install.md
@@ -0,0 +1,690 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
+If installation fails or you can’t sign in, find your error below. For runtime issues after Claude Code is working, see [Troubleshooting](</docs/en/troubleshooting>). For configuration problems such as settings not applying or hooks not firing, see [Debug your configuration](</docs/en/debug-your-config>).
+
+##
+
+
+
+Find your error
+
+Match the error message or symptom you’re seeing to a fix:
+
+What you see| Solution
+---|---
+`command not found: claude` or `'claude' is not recognized`| Fix your PATH
+`syntax error near unexpected token '<'`| Install script returns HTML
+`curl: (56) Failure writing output to destination`| Check connectivity or use an alternative installer
+`Killed` during install on Linux| Add swap space for low-memory servers
+`TLS connect error` or `SSL/TLS secure channel`| Update CA certificates
+`Failed to fetch version` or can’t reach download server| Check network and proxy settings
+`irm is not recognized` or `&& is not valid`| Use the right command for your shell
+`'bash' is not recognized as the name of a cmdlet`| Use the Windows installer command
+`Claude Code on Windows requires either Git for Windows (for bash) or PowerShell`| Install a shell
+`Claude Code does not support 32-bit Windows`| Open Windows PowerShell, not the x86 entry
+`Error loading shared library`| Wrong binary variant for your system
+`Illegal instruction`| Architecture or CPU instruction set mismatch
+`cannot execute binary file: Exec format error` in WSL| WSL1 native-binary regression
+PowerShell installer completes but `claude` is not found or shows an old version| Restart your terminal and verify PATH
+`dyld: cannot load`, `dyld: Symbol not found`, or `Abort trap` on macOS| Binary incompatibility
+`Invoke-Expression: Missing argument in parameter list`| Install script returns HTML
+`App unavailable in region`| Claude Code is not available in your country. See [supported countries](<https://www.anthropic.com/supported-countries>).
+`unable to get local issuer certificate`| Configure corporate CA certificates
+`OAuth error` or `403 Forbidden`| Fix authentication
+`Could not load the default credentials` or `Could not load credentials from any providers`| Bedrock, Vertex, or Foundry credentials
+`ChainedTokenCredential authentication failed` or `CredentialUnavailableError`| Bedrock, Vertex, or Foundry credentials
+`API Error: 500`, `529 Overloaded`, `429`, or other 4xx and 5xx errors not listed above| See the [Error reference](</docs/en/errors>)
+
+If your issue isn’t listed, work through the diagnostic checks below to narrow down the cause.
+
+If you’d rather skip the terminal entirely, the [Claude Code Desktop app](</docs/en/desktop-quickstart>) lets you install and use Claude Code through a graphical interface. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>) or [Windows](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>) and start coding without any command-line setup.
+
+##
+
+
+
+Run diagnostic checks
+
+###
+
+
+
+Check network connectivity
+
+The installer downloads from `downloads.claude.ai`. Verify you can reach it:
+
+ curl -sI https://downloads.claude.ai/claude-code-releases/latest
+
+An `HTTP/2 200` line means you reached the server. If you see no output, `Could not resolve host`, or a connection timeout, your network is blocking the connection. Common causes:
+
+ * Corporate firewalls or proxies blocking `downloads.claude.ai`
+ * Regional network restrictions: try a VPN or alternative network
+ * TLS/SSL issues: update your system’s CA certificates, or check if `HTTPS_PROXY` is configured
+
+If you’re behind a corporate proxy, set `HTTPS_PROXY` and `HTTP_PROXY` to your proxy’s address before installing. Ask your IT team for the proxy URL if you don’t know it, or check your browser’s proxy settings. This example sets both proxy variables, then runs the installer through your proxy:
+
+ * macOS/Linux
+
+ * Windows PowerShell
+
+ export HTTP_PROXY=http://proxy.example.com:8080
+ export HTTPS_PROXY=http://proxy.example.com:8080
+ curl -fsSL https://claude.ai/install.sh | bash
+
+ $env:HTTP_PROXY = 'http://proxy.example.com:8080'
+ $env:HTTPS_PROXY = 'http://proxy.example.com:8080'
+ irm https://claude.ai/install.ps1 | iex
+
+###
+
+
+
+Verify your PATH
+
+If installation succeeded but you get a `command not found` or `not recognized` error when running `claude`, the install directory isn’t in your PATH. Your shell searches for programs in directories listed in PATH, and the installer places `claude` at `~/.local/bin/claude` on macOS/Linux or `%USERPROFILE%\.local\bin\claude.exe` on Windows. Check if the install directory is in your PATH by listing your PATH entries and filtering for `local/bin`:
+
+ * macOS/Linux
+
+ * Windows PowerShell
+
+ * Windows CMD
+
+ echo $PATH | tr ':' '\n' | grep -Fx "$HOME/.local/bin"
+
+If this prints `/Users/you/.local/bin` or `/home/you/.local/bin`, the directory is in your PATH and you can skip to Check for conflicting installations. If there’s no output, add it to your shell configuration.For Zsh, the default on macOS:
+
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
+ source ~/.zshrc
+
+For Bash, the default on most Linux distributions:
+
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
+ source ~/.bashrc
+
+Alternatively, close and reopen your terminal.Verify the fix worked:
+
+ claude --version
+
+ $env:PATH -split ';' | Select-String '\.local\\bin'
+
+If there’s no output, add the install directory to your User PATH:
+
+ $currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
+ [Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')
+
+Restart your terminal for the change to take effect.Verify the fix worked:
+
+ claude --version
+
+ echo %PATH% | findstr /i "local\bin"
+
+If there’s no output, open System Settings, go to Environment Variables, and add `%USERPROFILE%\.local\bin` to your User PATH variable. Restart your terminal.Verify the fix worked:
+
+ claude --version
+
+###
+
+
+
+Check for conflicting installations
+
+Multiple Claude Code installations can cause version mismatches or unexpected behavior. Check what’s installed:
+
+ * macOS/Linux
+
+ * Windows PowerShell
+
+List all `claude` binaries found in your PATH:
+
+ which -a claude
+
+If this prints nothing, no `claude` is on your PATH yet. Go back to Verify your PATH.Check the three locations a `claude` binary can come from. `~/.local/bin/claude` is the native installer, `~/.claude/local/` is a legacy local npm install created by older versions of Claude Code, and the npm global list shows a `-g` install:
+
+ ls -la ~/.local/bin/claude
+
+ ls -la ~/.claude/local/
+
+ npm -g ls @anthropic-ai/claude-code 2>/dev/null
+
+List all `claude` binaries found in your PATH:
+
+ where.exe claude
+
+Check whether the native installer placed a binary:
+
+ Test-Path "$env:USERPROFILE\.local\bin\claude.exe"
+
+If you find multiple installations, keep only one. The native install at `~/.local/bin/claude` on macOS/Linux or `%USERPROFILE%\.local\bin\claude.exe` on Windows is recommended. Remove the extras: Uninstall an npm global install:
+
+ npm uninstall -g @anthropic-ai/claude-code
+
+Remove the legacy local npm install:
+
+ rm -rf ~/.claude/local
+
+On Windows, use PowerShell:
+
+ Remove-Item -Recurse -Force "$env:USERPROFILE\.claude\local"
+
+Remove a Homebrew install on macOS. If you installed the `claude-code@latest` cask, substitute that name:
+
+ brew uninstall --cask claude-code
+
+Remove a WinGet install on Windows:
+
+ winget uninstall Anthropic.ClaudeCode
+
+###
+
+
+
+Check directory permissions
+
+The installer needs write access to `~/.local/bin/` and `~/.claude/` on macOS and Linux. On Windows the install location is under `%USERPROFILE%`, which is writable by your user by default, so this section rarely applies there. Check whether the directories are writable:
+
+ test -w ~/.local/bin && echo "writable" || echo "not writable"
+ test -w ~/.claude && echo "writable" || echo "not writable"
+
+If either directory isn’t writable, create the install directory and set your user as the owner:
+
+ sudo mkdir -p ~/.local/bin
+ sudo chown -R $(whoami) ~/.local
+
+###
+
+
+
+Verify the binary works
+
+If `claude --version` prints a version but `claude` crashes or hangs on startup, run these checks to narrow down the cause. If `claude --version` says command not found, go to Verify your PATH first; the commands below assume `claude` is on your PATH. Confirm the binary exists and is executable:
+
+ ls -la "$(command -v claude)"
+
+On Windows, use PowerShell:
+
+ Get-Command claude | Select-Object Source
+
+On Linux, check for missing shared libraries. If `ldd` shows missing libraries, you may need to install system packages. On Alpine Linux and other musl-based distributions, see [Alpine Linux setup](</docs/en/setup#alpine-linux-and-musl-based-distributions>).
+
+ ldd "$(command -v claude)" | grep "not found"
+
+Confirm the binary can execute:
+
+ claude --version
+
+##
+
+
+
+Common installation issues
+
+These are the most frequently encountered installation problems and their solutions.
+
+###
+
+
+
+Install script returns HTML instead of a shell script
+
+When running the install command, you may see one of these errors:
+
+ bash: line 1: syntax error near unexpected token `<'
+ bash: line 1: `<!DOCTYPE html>'
+
+On PowerShell, the same problem appears as:
+
+ Invoke-Expression: Missing argument in parameter list.
+
+This means the install URL returned an HTML page instead of the install script. If the HTML page says “App unavailable in region,” Claude Code is not available in your country. See [supported countries](<https://www.anthropic.com/supported-countries>). Otherwise, this can happen due to network issues, regional routing, or a temporary service disruption. **Solutions:**
+
+ 1. **Use an alternative install method** : On macOS, install via Homebrew:
+
+ brew install --cask claude-code
+
+On Windows, install via WinGet:
+
+ winget install Anthropic.ClaudeCode
+
+ 2. **Retry after a few minutes** : the issue is often temporary. Wait and try the original command again.
+
+###
+
+
+
+`command not found: claude` after installation
+
+The install finished but `claude` doesn’t work. The exact error varies by platform:
+
+Platform| Error message
+---|---
+macOS| `zsh: command not found: claude`
+Linux| `bash: claude: command not found`
+Windows CMD| `'claude' is not recognized as an internal or external command`
+PowerShell| `claude : The term 'claude' is not recognized as the name of a cmdlet`
+
+This means the install directory isn’t in your shell’s search path. See Verify your PATH for the fix on each platform.
+
+###
+
+
+
+`curl: (56) Failure writing output to destination`
+
+The `curl ... | bash` command downloads the script and pipes it to Bash for execution. This error means the connection broke before the script finished downloading. Common causes include network interruptions, the download being blocked mid-stream, or system resource limits. **Solutions:**
+
+ 1. **Check network stability** : Claude Code binaries are hosted at `downloads.claude.ai`. Test that you can reach it:
+
+ curl -sI https://downloads.claude.ai/claude-code-releases/latest
+
+An `HTTP/2 200` line means you reached the server and the original failure was likely intermittent; retry the install command. If you see `Could not resolve host` or a connection timeout, your network is blocking the download.
+ 2. **Try an alternative install method** : On macOS:
+
+ brew install --cask claude-code
+
+On Windows:
+
+ winget install Anthropic.ClaudeCode
+
+###
+
+
+
+TLS or SSL connection errors
+
+Errors like `curl: (35) TLS connect error`, `schannel: next InitializeSecurityContext failed`, or PowerShell’s `Could not establish trust relationship for the SSL/TLS secure channel` indicate TLS handshake failures. **Solutions:**
+
+ 1. **Update your system CA certificates** : On Ubuntu/Debian:
+
+ sudo apt-get update && sudo apt-get install ca-certificates
+
+On macOS, the system curl uses the Keychain trust store; updating macOS itself updates the root certificates.
+ 2. **On Windows, enable TLS 1.2** in PowerShell before running the installer:
+
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+ irm https://claude.ai/install.ps1 | iex
+
+ 3. **Check for proxy or firewall interference** : corporate proxies that perform TLS inspection can cause these errors, including `unable to get local issuer certificate` and `SELF_SIGNED_CERT_IN_CHAIN`. For the install step, point curl at your corporate CA bundle with `--cacert`:
+
+ curl --cacert /path/to/corporate-ca.pem -fsSL https://claude.ai/install.sh | bash
+
+For Claude Code itself once installed, set `NODE_EXTRA_CA_CERTS` so API requests trust the same bundle:
+
+ export NODE_EXTRA_CA_CERTS=/path/to/corporate-ca.pem
+
+Ask your IT team for the certificate file if you don’t have it. You can also try on a direct connection to confirm the proxy is the cause.
+ 4. **On Windows, bypass certificate revocation checks** if you see `CRYPT_E_NO_REVOCATION_CHECK (0x80092012)` or `CRYPT_E_REVOCATION_OFFLINE (0x80092013)`. These mean curl reached the server but your network blocks the certificate revocation lookup, which is common behind corporate firewalls. Add `--ssl-revoke-best-effort` to the install command:
+
+ curl --ssl-revoke-best-effort -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
+
+Alternatively, install with `winget install Anthropic.ClaudeCode`, which avoids curl entirely.
+
+###
+
+
+
+`Failed to fetch version from downloads.claude.ai`
+
+The installer couldn’t reach the download server. This typically means `downloads.claude.ai` is blocked on your network. **Solutions:**
+
+ 1. **Test connectivity directly** :
+
+ curl -sI https://downloads.claude.ai/claude-code-releases/latest
+
+ 2. **If behind a proxy** , set `HTTPS_PROXY` so the installer can route through it. See [proxy configuration](</docs/en/network-config#proxy-configuration>) for details.
+
+ export HTTPS_PROXY=http://proxy.example.com:8080
+ curl -fsSL https://claude.ai/install.sh | bash
+
+ 3. **If on a restricted network** , try a different network or VPN, or use an alternative install method: On macOS:
+
+ brew install --cask claude-code
+
+On Windows:
+
+ winget install Anthropic.ClaudeCode
+
+###
+
+
+
+Wrong install command on Windows
+
+If you see `'irm' is not recognized`, `The token '&&' is not valid`, or `'bash' is not recognized as the name of a cmdlet`, you copied the install command for a different shell or operating system.
+
+ * **`irm` not recognized**: you’re in CMD, not PowerShell. You have two options: Open PowerShell by searching for “PowerShell” in the Start menu, then run the original install command:
+
+ irm https://claude.ai/install.ps1 | iex
+
+Or stay in CMD and use the CMD installer instead:
+
+ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
+
+ * **`&&` not valid**: you’re in PowerShell but ran the CMD installer command. Use the PowerShell installer:
+
+ irm https://claude.ai/install.ps1 | iex
+
+ * **`bash` not recognized**: you ran the macOS/Linux installer on Windows. Use the PowerShell installer instead:
+
+ irm https://claude.ai/install.ps1 | iex
+
+###
+
+
+
+Install killed on low-memory Linux servers
+
+If you see `Killed` during installation on a VPS or cloud instance:
+
+ Setting up Claude Code...
+ Installing Claude Code native build latest...
+ bash: line 142: 34803 Killed "$binary_path" install ${TARGET:+"$TARGET"}
+
+The Linux OOM killer terminated the process because the system ran out of memory. Claude Code requires at least 4 GB of available RAM. **Solutions:**
+
+ 1. **Add swap space** if your server has limited RAM. Swap uses disk space as overflow memory, letting the install complete even with low physical RAM. Create a 2 GB swap file and enable it:
+
+ sudo fallocate -l 2G /swapfile
+ sudo chmod 600 /swapfile
+ sudo mkswap /swapfile
+ sudo swapon /swapfile
+
+Then retry the installation:
+
+ curl -fsSL https://claude.ai/install.sh | bash
+
+ 2. **Close other processes** to free memory before installing.
+ 3. **Use a larger instance** if possible. Claude Code requires at least 4 GB of RAM.
+
+###
+
+
+
+Install hangs in Docker
+
+When installing Claude Code in a Docker container, installing as root into `/` can cause hangs. **Solutions:**
+
+ 1. **Set a working directory** before running the installer. When run from `/`, the installer scans the entire filesystem, which causes excessive memory usage. Setting `WORKDIR` limits the scan to a small directory:
+
+ WORKDIR /tmp
+ RUN curl -fsSL https://claude.ai/install.sh | bash
+
+ 2. **Increase Docker memory limits** if using Docker Desktop:
+
+ docker build --memory=4g .
+
+###
+
+
+
+Claude Desktop overrides the `claude` command on Windows
+
+If you installed an older version of Claude Desktop, it may register a `Claude.exe` in the `WindowsApps` directory that takes PATH priority over Claude Code CLI. Running `claude` opens the Desktop app instead of the CLI. Update Claude Desktop to the latest version to fix this issue.
+
+###
+
+
+
+Claude Code on Windows requires either Git for Windows (for bash) or PowerShell
+
+Claude Code on native Windows needs at least one shell: either [Git for Windows](<https://git-scm.com/downloads/win>) for Bash, or PowerShell. When neither is found, this error appears at startup. If only PowerShell is found, Claude Code uses the PowerShell tool instead of Bash. **If neither is installed** , install one:
+
+ * Git for Windows: download from [git-scm.com/downloads/win](<https://git-scm.com/downloads/win>). During setup, select “Add to PATH.” Restart your terminal after installing.
+ * PowerShell 7: download from [aka.ms/powershell](<https://aka.ms/powershell>).
+
+**If Git is already installed** but Claude Code can’t find it, set the path in your [settings.json file](</docs/en/settings>):
+
+ {
+ "env": {
+ "CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe"
+ }
+ }
+
+If your Git is installed somewhere else, find the path by running `where.exe git` in PowerShell and use the `bin\bash.exe` path from that directory.
+
+###
+
+
+
+Claude Code does not support 32-bit Windows
+
+Windows includes two PowerShell entries in the Start menu: `Windows PowerShell` and `Windows PowerShell (x86)`. The x86 entry runs as a 32-bit process and triggers this error even on a 64-bit machine. To check which case you’re in, run this in the same window that produced the error:
+
+ [Environment]::Is64BitOperatingSystem
+
+If this prints `True`, your operating system is fine. Close the window, open `Windows PowerShell` without the x86 suffix, and run the install command again. If this prints `False`, you are on a 32-bit edition of Windows. Claude Code requires a 64-bit operating system. See the [system requirements](</docs/en/setup#system-requirements>).
+
+###
+
+
+
+Linux musl or glibc binary mismatch
+
+If you see errors about missing shared libraries like `libstdc++.so.6` or `libgcc_s.so.1` after installation, the installer may have downloaded the wrong binary variant for your system.
+
+ Error loading shared library libstdc++.so.6: No such file or directory
+
+This can happen on glibc-based systems that have musl cross-compilation packages installed, causing the installer to misdetect the system as musl. **Solutions:**
+
+ 1. **Check which libc your system uses** :
+
+ ldd --version 2>&1 | head -1
+
+Output mentioning `GNU libc` or `GLIBC` means glibc. Output mentioning `musl` means musl.
+ 2. **If you’re on glibc but got the musl binary** , remove the installation and reinstall. You can also manually download the correct binary using the manifest at `https://downloads.claude.ai/claude-code-releases/{VERSION}/manifest.json`. File a [GitHub issue](<https://github.com/anthropics/claude-code/issues>) with the output of `ldd --version` and `ls /lib/libc.musl*`.
+ 3. **If you’re actually on musl** , such as Alpine Linux, install the required packages:
+
+ apk add libgcc libstdc++ ripgrep
+
+###
+
+
+
+`Illegal instruction`
+
+If running `claude` or the installer prints `Illegal instruction`, the native binary uses CPU instructions your processor doesn’t support. There are two distinct causes. **Architecture mismatch.** The installer downloaded the wrong binary, for example x86 on an ARM server. Check with `uname -m` on macOS or Linux, or `$env:PROCESSOR_ARCHITECTURE` in PowerShell. If the result doesn’t match the binary you received, [file a GitHub issue](<https://github.com/anthropics/claude-code/issues>) with the output. **Missing instruction set on older CPUs.** If your architecture is correct but you still see `Illegal instruction`, your CPU likely lacks AVX or another instruction the binary requires. This affects roughly pre-2013 Intel and AMD processors. There is currently no native-binary workaround; track [issue #50384](<https://github.com/anthropics/claude-code/issues/50384>) for status, and include your CPU model from `cat /proc/cpuinfo | grep "model name" | head -1` on Linux or `sysctl -n machdep.cpu.brand_string` on macOS when reporting. Alternative install methods download the same native binary and won’t resolve either cause.
+
+###
+
+
+
+`dyld: cannot load` on macOS
+
+If you see `dyld: cannot load`, `dyld: Symbol not found`, or `Abort trap: 6` during installation, the binary is incompatible with your macOS version or hardware.
+
+ dyld: cannot load 'claude-2.1.42-darwin-x64' (load command 0x80000034 is unknown)
+ Abort trap: 6
+
+A `Symbol not found` error that references `libicucore` also indicates your macOS version is older than the binary supports:
+
+ dyld: Symbol not found: _ubrk_clone
+ Referenced from: claude-darwin-x64 (which was built for Mac OS X 13.0)
+ Expected in: /usr/lib/libicucore.A.dylib
+
+**Solutions:**
+
+ 1. **Check your macOS version** : Claude Code requires macOS 13.0 or later. Open the Apple menu and select About This Mac to check your version.
+ 2. **Update macOS** if you’re on an older version. The binary uses load commands and system libraries that older macOS versions don’t support. Alternative install methods like Homebrew download the same binary and won’t resolve this error.
+
+###
+
+
+
+`Exec format error` on WSL1
+
+If running `claude` in WSL prints `cannot execute binary file: Exec format error`, you’re on WSL1 and hitting a known native-binary regression tracked in [issue #38788](<https://github.com/anthropics/claude-code/issues/38788>). The binary’s program headers changed in a way WSL1’s loader can’t handle. The cleanest fix is to convert your distribution to WSL2 from PowerShell:
+
+ wsl --set-version <DistroName> 2
+
+If you need to stay on WSL1, invoke the binary through the dynamic linker. Add this function to `~/.bashrc` inside WSL, replacing the path if your home directory differs:
+
+ claude() {
+ /lib64/ld-linux-x86-64.so.2 "$(readlink -f "$HOME/.local/bin/claude")" "$@"
+ }
+
+Then run `source ~/.bashrc` and retry `claude`.
+
+###
+
+
+
+npm install errors in WSL
+
+These issues apply if you installed Claude Code with `npm install -g` inside WSL. If you used the [native installer](</docs/en/setup>), skip this section. **OS or platform detection issues.** If npm reports a platform mismatch during install, WSL is likely picking up the Windows `npm`. Run `npm config set os linux` first, then install with `npm install -g @anthropic-ai/claude-code --force`. Do not use `sudo`. **`exec: node: not found` when running `claude`.** Your WSL environment is likely using the Windows installation of Node.js. Confirm with `which npm` and `which node`: paths starting with `/mnt/c/` are Windows binaries, while Linux paths start with `/usr/`. To fix this, install Node via your Linux distribution’s package manager or via [`nvm`](<https://github.com/nvm-sh/nvm>). **nvm version conflicts.** If you have nvm installed in both WSL and Windows, switching Node versions in WSL may break because WSL imports the Windows PATH by default and the Windows nvm takes priority. The most common cause is that nvm isn’t loaded in your shell. Add the nvm loader to `~/.bashrc` or `~/.zshrc`:
+
+ export NVM_DIR="$HOME/.nvm"
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
+ [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
+
+Or load it in your current session:
+
+ source ~/.nvm/nvm.sh
+
+If nvm is loaded but Windows paths still take priority, prepend your Linux Node path explicitly:
+
+ export PATH="$HOME/.nvm/versions/node/$(node -v)/bin:$PATH"
+
+Avoid disabling Windows PATH importing via `appendWindowsPath = false` as this breaks the ability to call Windows executables from WSL. Similarly, avoid uninstalling Node.js from Windows if you use it for Windows development.
+
+###
+
+
+
+Permission errors during installation
+
+If the native installer fails with permission errors, the target directory may not be writable. See Check directory permissions. If you previously installed with npm and are hitting npm-specific permission errors, switch to the native installer:
+
+ curl -fsSL https://claude.ai/install.sh | bash
+
+###
+
+
+
+Native binary not found after npm install
+
+The `@anthropic-ai/claude-code` npm package pulls in the native binary through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`. If running `claude` after install prints `Could not find native binary package "@anthropic-ai/claude-code-<platform>"`, check the following causes:
+
+ * **Optional dependencies are disabled.** Remove `--omit=optional` from your npm install command, `--no-optional` from pnpm, or `--ignore-optional` from yarn, and check that `.npmrc` does not set `optional=false`. Then reinstall. The native binary is delivered only as an optional dependency, so there is no JavaScript fallback if it is skipped.
+ * **Unsupported platform.** Prebuilt binaries are published for `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Claude Code does not ship a binary for other platforms; see the [system requirements](</docs/en/setup#system-requirements>).
+ * **Corporate npm mirror is missing the platform packages.** Ensure your registry mirrors all eight `@anthropic-ai/claude-code-*` platform packages in addition to the meta package.
+
+Installing with `--ignore-scripts` does not trigger this error. The postinstall step that links the binary into place is skipped, so Claude Code falls back to a wrapper that locates and spawns the platform binary on each launch. This works but starts more slowly; reinstall with scripts enabled for direct execution.
+
+##
+
+
+
+Login and authentication
+
+These sections address login failures, OAuth errors, and token issues.
+
+###
+
+
+
+Reset your login
+
+When login fails and the cause isn’t obvious, a clean re-authentication resolves most cases:
+
+ 1. Run `/logout` to sign out completely
+ 2. Close Claude Code
+ 3. Restart with `claude` and complete the authentication process again
+
+If the browser doesn’t open automatically during login, press `c` to copy the OAuth URL to your clipboard, then paste it into a browser manually. This also works when the URL wraps across lines in a narrow or SSH terminal and can’t be clicked directly.
+
+###
+
+
+
+OAuth error: Invalid code
+
+If you see `OAuth error: Invalid code. Please make sure the full code was copied`, the login code expired or was truncated during copy-paste. **Solutions:**
+
+ * Press Enter to retry and complete the login quickly after the browser opens
+ * Type `c` to copy the full URL if the browser doesn’t open automatically
+ * If using a remote/SSH session, the browser may open on the wrong machine. Copy the URL displayed in the terminal and open it in your local browser instead.
+
+###
+
+
+
+403 Forbidden after login
+
+If you see `API Error: 403 {"error":{"type":"forbidden","message":"Request not allowed"}}` after logging in:
+
+ * **Claude Pro/Max users** : verify your subscription is active at [claude.ai/settings](<https://claude.ai/settings>)
+ * **Anthropic Console users** : confirm your account has the “Claude Code” or “Developer” role. Admins assign this in the Anthropic Console under Settings → Members.
+ * **Behind a proxy** : corporate proxies can interfere with API requests. See [network configuration](</docs/en/network-config>) for proxy setup.
+
+###
+
+
+
+This organization has been disabled with an active subscription
+
+If you see `API Error: 400 ... "This organization has been disabled"` despite having an active Claude subscription, an `ANTHROPIC_API_KEY` environment variable is overriding your subscription. This commonly happens when an old API key from a previous employer or project is still set in your shell profile. When `ANTHROPIC_API_KEY` is present and you have approved it, Claude Code uses that key instead of your subscription’s OAuth credentials. In non-interactive mode with the `-p` flag, the key is always used when present. See [authentication precedence](</docs/en/authentication#authentication-precedence>) for the full resolution order. To use your subscription instead, unset the environment variable and remove it from your shell profile:
+
+ unset ANTHROPIC_API_KEY
+ claude
+
+Check `~/.zshrc`, `~/.bashrc`, or `~/.profile` for `export ANTHROPIC_API_KEY=...` lines and remove them to make the change permanent. On Windows, check your PowerShell profile at `$PROFILE` and your User environment variables for `ANTHROPIC_API_KEY`. Run `/status` inside Claude Code to confirm which authentication method is active.
+
+###
+
+
+
+OAuth login fails in WSL2
+
+Browser-based login in WSL2 can fail in two ways: WSL can’t open your Windows browser, or the terminal won’t accept the pasted authorization code. If the browser doesn’t open, set the `BROWSER` environment variable to your Windows browser path:
+
+ export BROWSER="/mnt/c/Program Files/Google/Chrome/Application/chrome.exe"
+ claude
+
+Or press `c` at the login prompt to copy the OAuth URL and paste it into your Windows browser yourself. If the browser opens but pasting the code back into the terminal does nothing, your terminal’s paste binding likely isn’t reaching the prompt. Try your terminal’s alternate paste shortcut, often right-click or Shift+Insert in Windows Terminal, or run login outside the interactive UI:
+
+ claude auth login
+
+This fallback also applies on native Windows or any terminal where pasting the code into the interactive prompt fails.
+
+###
+
+
+
+Not logged in or token expired
+
+If Claude Code prompts you to log in again after a session, your OAuth token may have expired. Run `/login` to re-authenticate. If this happens frequently, check that your system clock is accurate, as token validation depends on correct timestamps. On macOS, login can also fail when the Keychain is locked or its password is out of sync with your account password, which prevents Claude Code from saving credentials. Run `claude doctor` to check Keychain access. To unlock the Keychain manually, run `security unlock-keychain ~/Library/Keychains/login.keychain-db`. If unlocking doesn’t help, open Keychain Access, select the `login` keychain, and choose Edit > Change Password for Keychain “login” to resync it with your account password.
+
+###
+
+
+
+Bedrock, Vertex, or Foundry credentials not loading
+
+If you configured Claude Code to use a cloud provider and see `Could not load credentials from any providers` on Bedrock, `Could not load the default credentials` on Vertex, or `ChainedTokenCredential authentication failed` on Foundry, your cloud provider CLI is likely not authenticated in the current shell. For Bedrock, confirm your AWS credentials are valid:
+
+ aws sts get-caller-identity
+
+For Vertex AI, confirm `ANTHROPIC_VERTEX_PROJECT_ID` and `CLOUD_ML_REGION` are set in your shell, then set application default credentials:
+
+ gcloud auth application-default login
+
+For Microsoft Foundry, confirm `ANTHROPIC_FOUNDRY_API_KEY` is set, or sign in with the Azure CLI so the default credential chain can find your account:
+
+ az login
+
+If credentials work in your terminal but not in the VS Code or JetBrains extension, the IDE process likely didn’t inherit your shell environment. Set the provider environment variables in the IDE’s own settings, or launch the IDE from a terminal where they’re already exported. See [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Vertex AI](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>) for full provider setup.
+
+##
+
+
+
+Still stuck
+
+If none of the above resolves your issue:
+
+ 1. Check the [GitHub repository](<https://github.com/anthropics/claude-code/issues>) for known issues, or open a new one with your operating system, the install command you ran, and the full error output
+ 2. If `claude --version` works but something else is wrong, run `claude doctor` for an automated diagnostic report
+ 3. If you can start a session, use `/feedback` inside Claude Code to report the problem
Show diff (934 lines)
--- a/troubleshooting.md
+++ b/troubleshooting.md
@@ -1,702 +1,23 @@
-##
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
-
+This page covers performance, stability, and search problems once Claude Code is running. For other issues, start with the page that matches where you’re stuck:
-Troubleshoot installation issues
+Symptom| Go to
+---|---
+`command not found`, install fails, PATH issues, `EACCES`, TLS errors| [Troubleshoot installation and login](</docs/en/troubleshoot-install>)
+Login loops, OAuth errors, `403 Forbidden`, “organization disabled”, Bedrock/Vertex/Foundry credentials| [Troubleshoot installation and login](</docs/en/troubleshoot-install#login-and-authentication>)
+Settings not applying, hooks not firing, MCP servers not loading| [Debug your configuration](</docs/en/debug-your-config>)
+`API Error: 5xx`, `529 Overloaded`, `429`, request validation errors| [Error reference](</docs/en/errors>)
+`model not found` or `you may not have access to it`| [Error reference](</docs/en/errors#theres-an-issue-with-the-selected-model>)
+VS Code extension not connecting or detecting Claude| [VS Code integration](</docs/en/vs-code#fix-common-issues>)
+JetBrains plugin or IDE not detected| [JetBrains integration](</docs/en/jetbrains#troubleshooting>)
+High CPU or memory, slow responses, hangs, search not finding files| Performance and stability below
-If you’d rather skip the terminal entirely, the [Claude Code Desktop app](</docs/en/desktop-quickstart>) lets you install and use Claude Code through a graphical interface. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>) or [Windows](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>) and start coding without any command-line setup.
-
-Find the error message or symptom you’re seeing:
-
-What you see| Solution
----|---
-`command not found: claude` or `'claude' is not recognized`| Fix your PATH
-`syntax error near unexpected token '<'`| Install script returns HTML
-`curl: (56) Failure writing output to destination`| Download script first, then run it
-`Killed` during install on Linux| Add swap space for low-memory servers
-`TLS connect error` or `SSL/TLS secure channel`| Update CA certificates
-`Failed to fetch version` or can’t reach download server| Check network and proxy settings
-`irm is not recognized` or `&& is not valid`| Use the right command for your shell
-`'bash' is not recognized as the name of a cmdlet`| Use the Windows installer command
-`Claude Code on Windows requires either Git for Windows (for bash) or PowerShell`| Install a shell
-`Claude Code does not support 32-bit Windows`| Open Windows PowerShell, not the x86 entry
-`Error loading shared library`| Wrong binary variant for your system
-`Illegal instruction` on Linux| Architecture mismatch
-`dyld: cannot load`, `dyld: Symbol not found`, or `Abort trap` on macOS| Binary incompatibility
-`Invoke-Expression: Missing argument in parameter list`| Install script returns HTML
-`App unavailable in region`| Claude Code is not available in your country. See [supported countries](<https://www.anthropic.com/supported-countries>).
-`unable to get local issuer certificate`| Configure corporate CA certificates
-`OAuth error` or `403 Forbidden`| Fix authentication
-`API Error: 500`, `529 Overloaded`, `429`, or other 4xx and 5xx errors not listed above| See the [Error reference](</docs/en/errors>)
-
-If your issue isn’t listed, work through these diagnostic steps.
-
-##
-
-
-
-Debug installation problems
-
-###
-
-
-
-Check network connectivity
-
-The installer downloads from `downloads.claude.ai`. Verify you can reach it:
-
- curl -sI https://downloads.claude.ai
-
-If this fails, your network may be blocking the connection. Common causes:
-
- * Corporate firewalls or proxies blocking `downloads.claude.ai`
- * Regional network restrictions: try a VPN or alternative network
- * TLS/SSL issues: update your system’s CA certificates, or check if `HTTPS_PROXY` is configured
-
-If you’re behind a corporate proxy, set `HTTPS_PROXY` and `HTTP_PROXY` to your proxy’s address before installing. Ask your IT team for the proxy URL if you don’t know it, or check your browser’s proxy settings. This example sets both proxy variables, then runs the installer through your proxy:
-
- export HTTP_PROXY=http://proxy.example.com:8080
- export HTTPS_PROXY=http://proxy.example.com:8080
- curl -fsSL https://claude.ai/install.sh | bash
-
-###
-
-
-
-Verify your PATH
-
-If installation succeeded but you get a `command not found` or `not recognized` error when running `claude`, the install directory isn’t in your PATH. Your shell searches for programs in directories listed in PATH, and the installer places `claude` at `~/.local/bin/claude` on macOS/Linux or `%USERPROFILE%\.local\bin\claude.exe` on Windows. Check if the install directory is in your PATH by listing your PATH entries and filtering for `local/bin`:
-
- * macOS/Linux
-
- * Windows PowerShell
-
- * Windows CMD
-
- echo $PATH | tr ':' '\n' | grep local/bin
-
-If there’s no output, the directory is missing. Add it to your shell configuration:
-
- # Zsh (macOS default)
- echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
- source ~/.zshrc
-
- # Bash (Linux default)
- echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
- source ~/.bashrc
-
-Alternatively, close and reopen your terminal.Verify the fix worked:
-
- claude --version
-
- $env:PATH -split ';' | Select-String 'local\\bin'
-
-If there’s no output, add the install directory to your User PATH:
-
- $currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
- [Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')
-
-Restart your terminal for the change to take effect.Verify the fix worked:
-
- claude --version
-
- echo %PATH% | findstr /i "local\bin"
-
-If there’s no output, open System Settings, go to Environment Variables, and add `%USERPROFILE%\.local\bin` to your User PATH variable. Restart your terminal.Verify the fix worked:
-
- claude --version
-
-###
-
-
-
-Check for conflicting installations
-
-Multiple Claude Code installations can cause version mismatches or unexpected behavior. Check what’s installed:
-
- * macOS/Linux
-
- * Windows PowerShell
-
-List all `claude` binaries found in your PATH:
-
- which -a claude
-
-Check whether the native installer and npm versions are present:
-
- ls -la ~/.local/bin/claude
-
- ls -la ~/.claude/local/
-
- npm -g ls @anthropic-ai/claude-code 2>/dev/null
-
- where.exe claude
- Test-Path "$env:LOCALAPPDATA\Claude Code\claude.exe"
-
-If you find multiple installations, keep only one. The native install at `~/.local/bin/claude` is recommended. Remove any extra installations: Uninstall an npm global install:
-
- npm uninstall -g @anthropic-ai/claude-code
-
-Remove a Homebrew install on macOS (use `claude-code@latest` if you installed that cask):
-
- brew uninstall --cask claude-code
-
-###
-
-
-
-Check directory permissions
-
-The installer needs write access to `~/.local/bin/` and `~/.claude/`. If installation fails with permission errors, check whether these directories are writable:
-
- test -w ~/.local/bin && echo "writable" || echo "not writable"
- test -w ~/.claude && echo "writable" || echo "not writable"
-
-If either directory isn’t writable, create the install directory and set your user as the owner:
-
- sudo mkdir -p ~/.local/bin
- sudo chown -R $(whoami) ~/.local
-
-###
-
-
-
-Verify the binary works
-
-If `claude` is installed but crashes or hangs on startup, run these checks to narrow down the cause. Confirm the binary exists and is executable:
-
- ls -la $(which claude)
-
-On Linux, check for missing shared libraries. If `ldd` shows missing libraries, you may need to install system packages. On Alpine Linux and other musl-based distributions, see [Alpine Linux setup](</docs/en/setup#alpine-linux-and-musl-based-distributions>).
-
- ldd $(which claude) | grep "not found"
-
-Run a quick sanity check that the binary can execute:
-
- claude --version
-
-##
-
-
-
-Common installation issues
-
-These are the most frequently encountered installation problems and their solutions.
-
-###
-
-
-
-Install script returns HTML instead of a shell script
-
-When running the install command, you may see one of these errors:
-
- bash: line 1: syntax error near unexpected token `<'
- bash: line 1: `<!DOCTYPE html>'
-
-On PowerShell, the same problem appears as:
-
- Invoke-Expression: Missing argument in parameter list.
-
-This means the install URL returned an HTML page instead of the install script. If the HTML page says “App unavailable in region,” Claude Code is not available in your country. See [supported countries](<https://www.anthropic.com/supported-countries>). Otherwise, this can happen due to network issues, regional routing, or a temporary service disruption. **Solutions:**
-
- 1. **Use an alternative install method** : On macOS or Linux, install via Homebrew:
-
- brew install --cask claude-code
-
-On Windows, install via WinGet:
-
- winget install Anthropic.ClaudeCode
-
- 2. **Retry after a few minutes** : the issue is often temporary. Wait and try the original command again.
-
-###
-
-
-
-`command not found: claude` after installation
-
-The install finished but `claude` doesn’t work. The exact error varies by platform:
-
-Platform| Error message
----|---
-macOS| `zsh: command not found: claude`
-Linux| `bash: claude: command not found`
-Windows CMD| `'claude' is not recognized as an internal or external command`
-PowerShell| `claude : The term 'claude' is not recognized as the name of a cmdlet`
-
-This means the install directory isn’t in your shell’s search path. See Verify your PATH for the fix on each platform.
-
-###
-
-
-
-`curl: (56) Failure writing output to destination`
-
-The `curl ... | bash` command downloads the script and passes it directly to Bash for execution using a pipe (`|`). This error means the connection broke before the script finished downloading. Common causes include network interruptions, the download being blocked mid-stream, or system resource limits. **Solutions:**
-
- 1. **Check network stability** : Claude Code binaries are hosted at `downloads.claude.ai`. Test that you can reach it:
-
- curl -fsSL https://downloads.claude.ai -o /dev/null
-
-If the command completes silently, your connection is fine and the issue is likely intermittent. Retry the install command. If you see an error, your network may be blocking the download.
- 2. **Try an alternative install method** : On macOS or Linux:
-
- brew install --cask claude-code
-
-On Windows:
-
- winget install Anthropic.ClaudeCode
-
-###
-
-
-
-TLS or SSL connection errors
-
-Errors like `curl: (35) TLS connect error`, `schannel: next InitializeSecurityContext failed`, or PowerShell’s `Could not establish trust relationship for the SSL/TLS secure channel` indicate TLS handshake failures. **Solutions:**
-
- 1. **Update your system CA certificates** : On Ubuntu/Debian:
-
- sudo apt-get update && sudo apt-get install ca-certificates
-
-On macOS via Homebrew:
-
- brew install ca-certificates
-
- 2. **On Windows, enable TLS 1.2** in PowerShell before running the installer:
-
- [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
- irm https://claude.ai/install.ps1 | iex
-
- 3. **Check for proxy or firewall interference** : corporate proxies that perform TLS inspection can cause these errors, including `unable to get local issuer certificate`. Set `NODE_EXTRA_CA_CERTS` to your corporate CA certificate bundle:
-
- export NODE_EXTRA_CA_CERTS=/path/to/corporate-ca.pem
-
-Ask your IT team for the certificate file if you don’t have it. You can also try on a direct connection to confirm the proxy is the cause.
- 4. **On Windows, bypass certificate revocation checks** if you see `CRYPT_E_NO_REVOCATION_CHECK (0x80092012)` or `CRYPT_E_REVOCATION_OFFLINE (0x80092013)`. These mean curl reached the server but your network blocks the certificate revocation lookup, which is common behind corporate firewalls. Add `--ssl-revoke-best-effort` to the install command:
-
- curl --ssl-revoke-best-effort -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
-
-Alternatively, install with `winget install Anthropic.ClaudeCode`, which avoids curl entirely.
-
-###
-
-
-
-`Failed to fetch version from downloads.claude.ai`
-
-The installer couldn’t reach the download server. This typically means `downloads.claude.ai` is blocked on your network. **Solutions:**
-
- 1. **Test connectivity directly** :
-
- curl -sI https://downloads.claude.ai
-
- 2. **If behind a proxy** , set `HTTPS_PROXY` so the installer can route through it. See [proxy configuration](</docs/en/network-config#proxy-configuration>) for details.
-
- export HTTPS_PROXY=http://proxy.example.com:8080
- curl -fsSL https://claude.ai/install.sh | bash
-
- 3. **If on a restricted network** , try a different network or VPN, or use an alternative install method: On macOS or Linux:
-
- brew install --cask claude-code
-
-On Windows:
-
- winget install Anthropic.ClaudeCode
-
-###
-
-
-
-Windows: wrong install command
-
-If you see `'irm' is not recognized`, `The token '&&' is not valid`, or `'bash' is not recognized as the name of a cmdlet`, you copied the install command for a different shell or operating system.
-
- * **`irm` not recognized**: you’re in CMD, not PowerShell. You have two options: Open PowerShell by searching for “PowerShell” in the Start menu, then run the original install command:
-
- irm https://claude.ai/install.ps1 | iex
-
-Or stay in CMD and use the CMD installer instead:
-
- curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
-
- * **`&&` not valid**: you’re in PowerShell but ran the CMD installer command. Use the PowerShell installer:
-
- irm https://claude.ai/install.ps1 | iex
-
- * **`bash` not recognized**: you ran the macOS/Linux installer on Windows. Use the PowerShell installer instead:
-
- irm https://claude.ai/install.ps1 | iex
-
-###
-
-
-
-Install killed on low-memory Linux servers
-
-If you see `Killed` during installation on a VPS or cloud instance:
-
- Setting up Claude Code...
- Installing Claude Code native build latest...
- bash: line 142: 34803 Killed "$binary_path" install ${TARGET:+"$TARGET"}
-
-The Linux OOM killer terminated the process because the system ran out of memory. Claude Code requires at least 4 GB of available RAM. **Solutions:**
-
- 1. **Add swap space** if your server has limited RAM. Swap uses disk space as overflow memory, letting the install complete even with low physical RAM. Create a 2 GB swap file and enable it:
-
- sudo fallocate -l 2G /swapfile
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
- sudo swapon /swapfile
-
-Then retry the installation:
-
- curl -fsSL https://claude.ai/install.sh | bash
-
- 2. **Close other processes** to free memory before installing.
- 3. **Use a larger instance** if possible. Claude Code requires at least 4 GB of RAM.
-
-###
-
-
-
-Install hangs in Docker
-
-When installing Claude Code in a Docker container, installing as root into `/` can cause hangs. **Solutions:**
-
- 1. **Set a working directory** before running the installer. When run from `/`, the installer scans the entire filesystem, which causes excessive memory usage. Setting `WORKDIR` limits the scan to a small directory:
-
- WORKDIR /tmp
- RUN curl -fsSL https://claude.ai/install.sh | bash
-
- 2. **Increase Docker memory limits** if using Docker Desktop:
-
- docker build --memory=4g .
-
-###
-
-
-
-Windows: Claude Desktop overrides `claude` CLI command
-
-If you installed an older version of Claude Desktop, it may register a `Claude.exe` in the `WindowsApps` directory that takes PATH priority over Claude Code CLI. Running `claude` opens the Desktop app instead of the CLI. Update Claude Desktop to the latest version to fix this issue.
-
-###
-
-
-
-Windows: “Claude Code on Windows requires either Git for Windows (for bash) or PowerShell”
-
-Claude Code on native Windows needs at least one shell: either [Git for Windows](<https://git-scm.com/downloads/win>) for Bash, or PowerShell. When neither is found, this error appears at startup. If only PowerShell is found, Claude Code uses the PowerShell tool instead of Bash. **If neither is installed** , install one:
-
- * Git for Windows: download from [git-scm.com/downloads/win](<https://git-scm.com/downloads/win>). During setup, select “Add to PATH.” Restart your terminal after installing.
- * PowerShell 7: download from [aka.ms/powershell](<https://aka.ms/powershell>).
-
-**If Git is already installed** but Claude Code can’t find it, set the path in your [settings.json file](</docs/en/settings>):
-
- {
- "env": {
- "CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe"
- }
- }
-
-If your Git is installed somewhere else, find the path by running `where.exe git` in PowerShell and use the `bin\bash.exe` path from that directory.
-
-###
-
-
-
-Windows: Claude Code does not support 32-bit Windows
-
-Windows includes two PowerShell entries in the Start menu: `Windows PowerShell` and `Windows PowerShell (x86)`. The x86 entry runs as a 32-bit process and triggers this error even on a 64-bit machine. To check which case you’re in, run this in the same window that produced the error:
-
- [Environment]::Is64BitOperatingSystem
-
-If this prints `True`, your operating system is fine. Close the window, open `Windows PowerShell` without the x86 suffix, and run the install command again. If this prints `False`, you are on a 32-bit edition of Windows. Claude Code requires a 64-bit operating system. See the [system requirements](</docs/en/setup#system-requirements>).
-
-###
-
-
-
-Linux: wrong binary variant installed (musl/glibc mismatch)
-
-If you see errors about missing shared libraries like `libstdc++.so.6` or `libgcc_s.so.1` after installation, the installer may have downloaded the wrong binary variant for your system.
-
- Error loading shared library libstdc++.so.6: No such file or directory
-
-This can happen on glibc-based systems that have musl cross-compilation packages installed, causing the installer to misdetect the system as musl. **Solutions:**
-
- 1. **Check which libc your system uses** :
-
- ldd /bin/ls | head -1
-
-If it shows `linux-vdso.so` or references to `/lib/x86_64-linux-gnu/`, you’re on glibc. If it shows `musl`, you’re on musl.
- 2. **If you’re on glibc but got the musl binary** , remove the installation and reinstall. You can also manually download the correct binary using the manifest at `https://downloads.claude.ai/claude-code-releases/{VERSION}/manifest.json`. File a [GitHub issue](<https://github.com/anthropics/claude-code/issues>) with the output of `ldd /bin/ls` and `ls /lib/libc.musl*`.
- 3. **If you’re actually on musl** (Alpine Linux), install the required packages:
-
- apk add libgcc libstdc++ ripgrep
-
-###
-
-
-
-`Illegal instruction` on Linux
-
-If the installer prints `Illegal instruction` instead of the OOM `Killed` message, the downloaded binary doesn’t match your CPU architecture. This commonly happens on ARM servers that receive an x86 binary, or on older CPUs that lack required instruction sets.
-
- bash: line 142: 2238232 Illegal instruction "$binary_path" install ${TARGET:+"$TARGET"}
-
-**Verify your architecture** :
-
- uname -m
-
-`x86_64` means 64-bit Intel/AMD, `aarch64` means ARM64. If the binary doesn’t match, [file a GitHub issue](<https://github.com/anthropics/claude-code/issues>) with the output. Alternative install methods download the same architecture-specific binary and won’t resolve this error.
-
-###
-
-
-
-`dyld: cannot load` on macOS
-
-If you see `dyld: cannot load`, `dyld: Symbol not found`, or `Abort trap: 6` during installation, the binary is incompatible with your macOS version or hardware.
-
- dyld: cannot load 'claude-2.1.42-darwin-x64' (load command 0x80000034 is unknown)
- Abort trap: 6
-
-A `Symbol not found` error that references `libicucore` also indicates your macOS version is older than the binary supports:
-
- dyld: Symbol not found: _ubrk_clone
- Referenced from: claude-darwin-x64 (which was built for Mac OS X 13.0)
- Expected in: /usr/lib/libicucore.A.dylib
-
-**Solutions:**
-
- 1. **Check your macOS version** : Claude Code requires macOS 13.0 or later. Open the Apple menu and select About This Mac to check your version.
- 2. **Update macOS** if you’re on an older version. The binary uses load commands and system libraries that older macOS versions don’t support. Alternative install methods like Homebrew download the same binary and won’t resolve this error.
-
-###
-
-
-
-Windows installation issues: errors in WSL
-
-You might encounter the following issues in WSL: **OS/platform detection issues** : if you receive an error during installation, WSL may be using Windows `npm`. Try:
-
- * Run `npm config set os linux` before installation
- * Install with `npm install -g @anthropic-ai/claude-code --force --no-os-check`. Do not use `sudo`.
-
-**Node not found errors** : if you see `exec: node: not found` when running `claude`, your WSL environment may be using a Windows installation of Node.js. You can confirm this with `which npm` and `which node`, which should point to Linux paths starting with `/usr/` rather than `/mnt/c/`. To fix this, try installing Node via your Linux distribution’s package manager or via [`nvm`](<https://github.com/nvm-sh/nvm>). **nvm version conflicts** : if you have nvm installed in both WSL and Windows, you may experience version conflicts when switching Node versions in WSL. This happens because WSL imports the Windows PATH by default, causing Windows nvm/npm to take priority over the WSL installation. You can identify this issue by:
-
- * Running `which npm` and `which node` \- if they point to Windows paths (starting with `/mnt/c/`), Windows versions are being used
- * Experiencing broken functionality after switching Node versions with nvm in WSL
-
-To resolve this issue, fix your Linux PATH to ensure the Linux node/npm versions take priority: **Primary solution: Ensure nvm is properly loaded in your shell** The most common cause is that nvm isn’t loaded in non-interactive shells. Add the following to your shell configuration file (`~/.bashrc`, `~/.zshrc`, etc.):
-
- # Load nvm if it exists
- export NVM_DIR="$HOME/.nvm"
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
- [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
-
-Or run directly in your current session:
-
- source ~/.nvm/nvm.sh
-
-**Alternative: Adjust PATH order** If nvm is properly loaded but Windows paths still take priority, you can explicitly prepend your Linux paths to PATH in your shell configuration:
-
- export PATH="$HOME/.nvm/versions/node/$(node -v)/bin:$PATH"
-
-Avoid disabling Windows PATH importing via `appendWindowsPath = false` as this breaks the ability to call Windows executables from WSL. Similarly, avoid uninstalling Node.js from Windows if you use it for Windows development.
-
-###
-
-
-
-WSL2 sandbox setup
-
-[Sandboxing](</docs/en/sandboxing>) is supported on WSL2 but requires installing additional packages. If you see an error about missing `bubblewrap` or `socat` when running `/sandbox`, install the dependencies:
-
- * Ubuntu/Debian
-
- * Fedora
-
- sudo apt-get install bubblewrap socat
-
- sudo dnf install bubblewrap socat
-
-WSL1 does not support sandboxing. If you see “Sandboxing requires WSL2”, you need to upgrade to WSL2 or run Claude Code without sandboxing. Sandboxed commands cannot launch Windows binaries such as `cmd.exe`, `powershell.exe`, or executables under `/mnt/c/`. WSL hands these off to the Windows host over a Unix socket, which the sandbox blocks. If a command needs to invoke a Windows binary, add it to [`excludedCommands`](</docs/en/settings#sandbox-settings>) so it runs outside the sandbox.
-
-###
-
-
-
-Permission errors during installation
-
-If the native installer fails with permission errors, the target directory may not be writable. See Check directory permissions. If you previously installed with npm and are hitting npm-specific permission errors, switch to the native installer:
-
- curl -fsSL https://claude.ai/install.sh | bash
-
-###
-
-
-
-Native binary not found after npm install
-
-The `@anthropic-ai/claude-code` npm package pulls in the native binary through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`. If running `claude` after install prints `Could not find native binary package "@anthropic-ai/claude-code-<platform>"`, check the following causes:
-
- * **Optional dependencies are disabled.** Remove `--omit=optional` from your npm install command, `--no-optional` from pnpm, or `--ignore-optional` from yarn, and check that `.npmrc` does not set `optional=false`. Then reinstall. The native binary is delivered only as an optional dependency, so there is no JavaScript fallback if it is skipped.
- * **Unsupported platform.** Prebuilt binaries are published for `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Claude Code does not ship a binary for other platforms; see the [system requirements](</docs/en/setup#system-requirements>).
- * **Corporate npm mirror is missing the platform packages.** Ensure your registry mirrors all eight `@anthropic-ai/claude-code-*` platform packages in addition to the meta package.
-
-Installing with `--ignore-scripts` does not trigger this error. The postinstall step that links the binary into place is skipped, so Claude Code falls back to a wrapper that locates and spawns the platform binary on each launch. This works but starts more slowly; reinstall with scripts enabled for direct execution.
-
-##
-
-
-
-Permissions and authentication
-
-These sections address login failures, token issues, and permission prompt behavior.
-
-###
-
-
-
-Repeated permission prompts
-
-If you find yourself repeatedly approving the same commands, you can allow specific tools to run without approval using the `/permissions` command. See [Permissions docs](</docs/en/permissions#manage-permissions>).
-
-###
-
-
-
-Authentication issues
-
-If you’re experiencing authentication problems:
-
- 1. Run `/logout` to sign out completely
- 2. Close Claude Code
- 3. Restart with `claude` and complete the authentication process again
-
-If the browser doesn’t open automatically during login, press `c` to copy the OAuth URL to your clipboard, then paste it into your browser manually.
-
-###
-
-
-
-OAuth error: Invalid code
-
-If you see `OAuth error: Invalid code. Please make sure the full code was copied`, the login code expired or was truncated during copy-paste. **Solutions:**
-
- * Press Enter to retry and complete the login quickly after the browser opens
- * Type `c` to copy the full URL if the browser doesn’t open automatically
- * If using a remote/SSH session, the browser may open on the wrong machine. Copy the URL displayed in the terminal and open it in your local browser instead.
-
-###
-
-
-
-403 Forbidden after login
-
-If you see `API Error: 403 {"error":{"type":"forbidden","message":"Request not allowed"}}` after logging in:
-
- * **Claude Pro/Max users** : verify your subscription is active at [claude.ai/settings](<https://claude.ai/settings>)
- * **Console users** : confirm your account has the “Claude Code” or “Developer” role assigned by your admin
- * **Behind a proxy** : corporate proxies can interfere with API requests. See [network configuration](</docs/en/network-config>) for proxy setup.
-
-###
-
-
-
-Model not found or not accessible
-
-If you see `There's an issue with the selected model (...). It may not exist or you may not have access to it`, the API rejected the configured model name. Common causes:
-
- * A typo in the model name passed to `--model`
- * A stale or deprecated model ID saved in your settings
- * An API key without access to that model on your current usage tier
-
-Check where the model is set, in [priority order](</docs/en/model-config#setting-your-model>):
-
- * The `--model` flag
- * The `ANTHROPIC_MODEL` environment variable
- * The `model` field in `.claude/settings.local.json`
- * The `model` field in your project’s `.claude/settings.json`
- * The `model` field in `~/.claude/settings.json`
-
-To clear a stale value, remove the `model` field from your settings or unset `ANTHROPIC_MODEL`, and Claude Code will fall back to the default model for your account. To browse models available to your account, start `claude` interactively and run `/model` to open the picker. For Vertex AI deployments, see [the Vertex AI troubleshooting section](</docs/en/google-vertex-ai#troubleshooting>).
-
-###
-
-
-
-This organization has been disabled with an active subscription
-
-If you see `API Error: 400 ... "This organization has been disabled"` despite having an active Claude subscription, an `ANTHROPIC_API_KEY` environment variable is overriding your subscription. This commonly happens when an old API key from a previous employer or project is still set in your shell profile. When `ANTHROPIC_API_KEY` is present and you have approved it, Claude Code uses that key instead of your subscription’s OAuth credentials. In non-interactive mode (`-p`), the key is always used when present. See [authentication precedence](</docs/en/authentication#authentication-precedence>) for the full resolution order. To use your subscription instead, unset the environment variable and remove it from your shell profile:
-
- unset ANTHROPIC_API_KEY
- claude
-
-Check `~/.zshrc`, `~/.bashrc`, or `~/.profile` for `export ANTHROPIC_API_KEY=...` lines and remove them to make the change permanent. Run `/status` inside Claude Code to confirm which authentication method is active.
-
-###
-
-
-
-OAuth login fails in WSL2
-
-Browser-based login in WSL2 may fail if WSL can’t open your Windows browser. Set the `BROWSER` environment variable:
-
- export BROWSER="/mnt/c/Program Files/Google/Chrome/Application/chrome.exe"
- claude
-
-Or copy the URL manually: when the login prompt appears, press `c` to copy the OAuth URL, then paste it into your Windows browser.
-
-###
-
-
-
-Not logged in or token expired
-
-If Claude Code prompts you to log in again after a session, your OAuth token may have expired. Run `/login` to re-authenticate. If this happens frequently, check that your system clock is accurate, as token validation depends on correct timestamps. On macOS, login can also fail when the Keychain is locked or its password is out of sync with your account password, which prevents Claude Code from saving credentials. Run `claude doctor` to check Keychain access. To unlock the Keychain manually, run `security unlock-keychain ~/Library/Keychains/login.keychain-db`. If unlocking doesn’t help, open Keychain Access, select the `login` keychain, and choose Edit > Change Password for Keychain “login” to resync it with your account password.
-
-##
-
-
-
-Configuration file locations
-
-Claude Code stores configuration in several locations:
-
-File| Purpose
----|---
-`~/.claude/settings.json`| User settings (permissions, hooks, model overrides)
-`.claude/settings.json`| Project settings (checked into source control)
-`.claude/settings.local.json`| Local project settings (not committed)
-`~/.claude.json`| Global state (theme, OAuth, MCP servers)
-`.mcp.json`| Project MCP servers (checked into source control)
-`managed-mcp.json`| [Managed MCP servers](</docs/en/mcp#managed-mcp-configuration>)
-Managed settings| [Managed settings](</docs/en/settings#settings-files>) (server-managed, MDM/OS-level policies, or file-based)
-
-On Windows, `~` refers to your user home directory, such as `C:\Users\YourName`. For details on configuring these files, see [Settings](</docs/en/settings>) and [MCP](</docs/en/mcp>).
-
-###
-
-
-
-Resetting configuration
-
-To reset Claude Code to default settings, you can remove the configuration files:
-
- # Reset all user settings and state
- rm ~/.claude.json
- rm -rf ~/.claude/
-
- # Reset project-specific settings
- rm -rf .claude/
- rm .mcp.json
-
-This will remove all your settings, MCP server configurations, and session history.
+If you’re not sure which applies, run `/doctor` inside Claude Code for an automated check of your installation, settings, MCP servers, and context usage. If `claude` won’t start at all, run `claude doctor` from your shell instead.
##
@@ -718,7 +39,7 @@
2. Close and restart Claude Code between major tasks
3. Consider adding large build directories to your `.gitignore` file
-If memory usage stays high after these steps, run `/heapdump` to write a JavaScript heap snapshot and a memory breakdown to `~/Desktop`. The breakdown shows resident set size, JS heap, array buffers, and unaccounted native memory, which helps identify whether the growth is in JavaScript objects or in native code. Open the `.heapsnapshot` file in Chrome DevTools under Memory → Load to inspect retainers. Attach both files when reporting a memory issue on [GitHub](<https://github.com/anthropics/claude-code/issues>).
+If memory usage stays high after these steps, run `/heapdump` to write a JavaScript heap snapshot and a memory breakdown to `~/Desktop`. On Linux without a Desktop folder, the files are written to your home directory. The breakdown shows resident set size, JS heap, array buffers, and unaccounted native memory, which helps identify whether the growth is in JavaScript objects or in native code. To inspect retainers, open the `.heapsnapshot` file in Chrome DevTools under Memory → Load. Attach both files when reporting a memory issue on [GitHub](<https://github.com/anthropics/claude-code/issues>).
###
@@ -744,28 +65,35 @@
1. Press Ctrl+C to attempt to cancel the current operation
2. If unresponsive, you may need to close the terminal and restart
+Restarting doesn’t lose your conversation. Run `claude --resume` in the same directory to pick the session back up.
+
###
Search and discovery issues
-If Search tool, `@file` mentions, custom agents, and custom skills aren’t working, install system `ripgrep`:
+If the Search tool, `@file` mentions, custom agents, or custom skills aren’t finding files, the bundled `ripgrep` binary may not run on your system. Install your platform’s `ripgrep` package and tell Claude Code to use it instead:
- # macOS (Homebrew)
+ * macOS
+
+ * Ubuntu/Debian
+
+ * Alpine
+
+ * Arch
+
+ * Windows
+
brew install ripgrep
- # Windows (winget)
- winget install BurntSushi.ripgrep.MSVC
-
- # Ubuntu/Debian
sudo apt install ripgrep
- # Alpine Linux
apk add ripgrep
- # Arch Linux
pacman -S ripgrep
+
+ winget install BurntSushi.ripgrep.MSVC
Then set `USE_BUILTIN_RIPGREP=0` in your [environment](</docs/en/env-vars>).
@@ -789,156 +117,11 @@
-IDE integration issues
-
-If Claude Code does not connect to your IDE or behaves unexpectedly within an IDE terminal, try the solutions below.
-
-###
-
-
-
-JetBrains IDE not detected on WSL2
-
-If you’re using Claude Code on WSL2 with JetBrains IDEs and getting “No available IDEs detected” errors, this is likely due to WSL2’s networking configuration or Windows Firewall blocking the connection.
-
-####
-
-
-
-WSL2 networking modes
-
-WSL2 uses NAT networking by default, which can prevent IDE detection. You have two options: **Option 1: Configure Windows Firewall** (recommended)
-
- 1. Find your WSL2 IP address:
-
- wsl hostname -I
- # Example output: 172.21.123.45
-
- 2. Open PowerShell as Administrator and create a firewall rule:
-
- New-NetFirewallRule -DisplayName "Allow WSL2 Internal Traffic" -Direction Inbound -Protocol TCP -Action Allow -RemoteAddress 172.21.0.0/16 -LocalAddress 172.21.0.0/16
-
-Adjust the IP range based on your WSL2 subnet from step 1.
- 3. Restart both your IDE and Claude Code
-
-**Option 2: Switch to mirrored networking** Add to `.wslconfig` in your Windows user directory:
-
- [wsl2]
- networkingMode=mirrored
-
-Then restart WSL with `wsl --shutdown` from PowerShell.
-
-These networking issues only affect WSL2. WSL1 uses the host’s network directly and doesn’t require these configurations.
-
-For additional JetBrains configuration tips, see the [JetBrains IDE guide](</docs/en/jetbrains#plugin-settings>).
-
-###
-
-
-
-Report Windows IDE integration issues
-
-If you’re experiencing IDE integration problems on Windows, [create an issue](<https://github.com/anthropics/claude-code/issues>) with the following information:
-
- * Environment type: native Windows (Git Bash) or WSL1/WSL2
- * WSL networking mode, if applicable: NAT or mirrored
- * IDE name and version
- * Claude Code extension/plugin version
- * Shell type: Bash, Zsh, PowerShell, etc.
-
-###
-
-
-
-Escape key not working in JetBrains IDE terminals
-
-If you’re using Claude Code in JetBrains terminals and the `Esc` key doesn’t interrupt the agent as expected, this is likely due to a keybinding clash with JetBrains’ default shortcuts. To fix this issue:
-
- 1. Go to Settings → Tools → Terminal
- 2. Either:
- * Uncheck “Move focus to the editor with Escape”, or
- * Click “Configure terminal keybindings” and delete the “Switch focus to Editor” shortcut
- 3. Apply the changes
-
-This allows the `Esc` key to properly interrupt Claude Code operations.
-
-##
-
-
-
-Markdown formatting issues
-
-Claude Code sometimes generates markdown files with missing language tags on code fences, which can affect syntax highlighting and readability in GitHub, editors, and documentation tools.
-
-###
-
-
-
-Missing language tags in code blocks
-
-If you notice code blocks like this in generated markdown:
-
- ```
- function example() {
- return "hello";
- }
- ```
-
-Instead of properly tagged blocks like:
-
- ```javascript
- function example() {
- return "hello";
- }
- ```
-
-**Solutions:**
-
- 1. **Ask Claude to add language tags** : request “Add appropriate language tags to all code blocks in this markdown file.”
- 2. **Use post-processing hooks** : set up automatic formatting hooks to detect and add missing language tags. See [Auto-format code after edits](</docs/en/hooks-guide#auto-format-code-after-edits>) for an example of a PostToolUse formatting hook.
- 3. **Manual verification** : after generating markdown files, review them for proper code block formatting and request corrections if needed.
-
-###
-
-
-
-Inconsistent spacing and formatting
-
-If generated markdown has excessive blank lines or inconsistent spacing: **Solutions:**
-
- 1. **Request formatting corrections** : ask Claude to “Fix spacing and formatting issues in this markdown file.”
- 2. **Use formatting tools** : set up hooks to run markdown formatters like `prettier` or custom formatting scripts on generated markdown files.
- 3. **Specify formatting preferences** : include formatting requirements in your prompts or project [memory](</docs/en/memory>) files.
-
-###
-
-
-
-Reduce markdown formatting issues
-
-To minimize formatting issues:
-
- * **Be explicit in requests** : ask for “properly formatted markdown with language-tagged code blocks”
- * **Use project conventions** : document your preferred markdown style in [`CLAUDE.md`](</docs/en/memory>)
- * **Set up validation hooks** : use post-processing hooks to automatically verify and fix common formatting issues
-
-##
-
-
-
Get more help
If you’re experiencing issues not covered here:
- 1. See the [Error reference](</docs/en/errors>) for `API Error: 5xx`, `529 Overloaded`, `429`, and request validation errors that appear during a session
+ 1. Run `/doctor` to check installation health, settings validity, MCP configuration, and context usage in one pass
2. Use the `/feedback` command within Claude Code to report problems directly to Anthropic
3. Check the [GitHub repository](<https://github.com/anthropics/claude-code>) for known issues
- 4. Run `/doctor` to diagnose issues. It checks:
- * Installation type, version, and search functionality
- * Auto-update status and available versions
- * Invalid settings files (malformed JSON, incorrect types)
- * MCP server configuration errors, including the same server name defined in multiple scopes with different endpoints
- * Keybinding configuration problems
- * Context usage warnings (large CLAUDE.md files, high MCP token usage, unreachable permission rules)
- * Plugin and agent loading errors
- 5. Ask Claude directly about its capabilities and features - Claude has built-in access to its documentation
+ 4. Ask Claude directly about its capabilities and features. Claude has built-in access to its documentation.
--- a/typescript.md
+++ b/typescript.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
**Try the new V2 interface (preview):** A simplified interface with `send()` and `stream()` patterns is now available, making multi-turn conversations easier. [Learn more about the TypeScript V2 preview](</docs/en/agent-sdk/typescript-v2-preview>)
##
@@ -3236,6 +3242,8 @@
`httpProxyPort`| `number`| `undefined`| HTTP proxy port for network requests
`socksProxyPort`| `number`| `undefined`| SOCKS proxy port for network requests
+The built-in sandbox proxy enforces `allowedDomains` based on the requested hostname and does not terminate or inspect TLS traffic, so techniques such as [domain fronting](<https://en.wikipedia.org/wiki/Domain_fronting>) can potentially bypass it. See [Sandboxing security limitations](</docs/en/sandboxing#security-limitations>) for details and [Secure deployment](</docs/en/agent-sdk/secure-deployment#traffic-forwarding>) for configuring a TLS-terminating proxy.
+
###
--- a/typescript-v2-preview.md
+++ b/typescript-v2-preview.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The V2 interface is an **unstable preview**. APIs may change based on feedback before becoming stable. Some features like session forking are only available in the [V1 SDK](</docs/en/agent-sdk/typescript>).
The V2 Claude Agent TypeScript SDK removes the need for async generators and yield coordination. This makes multi-turn conversations simpler, instead of managing generator state across turns, each turn is a separate `send()`/`stream()` cycle. The API surface reduces to three concepts:
--- a/ultraplan.md
+++ b/ultraplan.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Ultraplan is in research preview and requires Claude Code v2.1.91 or later. Behavior and capabilities may change based on feedback.
Ultraplan hands a planning task from your local CLI to a [Claude Code on the web](</docs/en/claude-code-on-the-web>) session running in [plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>). Claude drafts the plan in the cloud while you keep working in your terminal. When the plan is ready, you open it in your browser to comment on specific sections, ask for revisions, and choose where to execute it. This is useful when you want a richer review surface than the terminal offers:
--- a/ultrareview.md
+++ b/ultrareview.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Ultrareview is a research preview feature available in Claude Code v2.1.86 and later. The feature, pricing, and availability may change based on feedback.
Ultrareview is a deep code review that runs on Claude Code on the web infrastructure. When you run `/ultrareview`, Claude Code launches a fleet of reviewer agents in a remote sandbox to find bugs in your branch or pull request. Compared to a local `/review`, ultrareview offers:
@@ -42,7 +48,7 @@
Max| 3 free runs through May 5, 2026| billed as [extra usage](<https://support.claude.com/en/articles/12429409-extra-usage-for-paid-claude-plans>)
Team and Enterprise| none| billed as [extra usage](<https://support.claude.com/en/articles/12429409-extra-usage-for-paid-claude-plans>)
-Pro and Max subscribers receive three free ultrareview runs to try the feature. These three runs are a one-time allotment per account, do not refresh, and expire on May 5, 2026. After you use all three, or after the free run period ends, each review is billed to extra usage and typically costs $5 to $20 depending on the size of the change. Because ultrareview always bills as extra usage outside the free runs, your account or organization must have extra usage enabled before you can launch a paid review. If extra usage is not enabled, Claude Code blocks the launch and links you to the billing settings where you can turn it on. You can also run `/extra-usage` to check or change your current setting.
+Pro and Max subscribers receive three free ultrareview runs to try the feature. These three runs are a one-time allotment per account, do not refresh, and expire on May 5, 2026. After you use all three, or after the free run period ends, each review is billed to extra usage and typically costs $5 to $20 depending on the size of the change. A run counts once the remote session starts, so a review that you stop early or that fails to complete still uses a free run. For a paid review, extra usage is billed only for the portion that ran. Because ultrareview always bills as extra usage outside the free runs, your account or organization must have extra usage enabled before you can launch a paid review. If extra usage is not enabled, Claude Code blocks the launch and links you to the billing settings where you can turn it on. You can also run `/extra-usage` to check or change your current setting.
##
--- a/user-input.md
+++ b/user-input.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
While working on a task, Claude sometimes needs to check in with users. It might need permission before deleting files, or need to ask which database to use for a new project. Your application needs to surface these requests to users so Claude can continue with their input. Claude requests user input in two situations: when it needs **permission to use a tool** (like deleting files or running commands), and when it has **clarifying questions** (via the `AskUserQuestion` tool). Both trigger your `canUseTool` callback, which pauses execution until you return a response. This is different from normal conversation turns where Claude finishes and waits for your next message. For clarifying questions, Claude generates the questions and options. Your role is to present them to users and return their selections. You can’t add your own questions to this flow; if you need to ask users something yourself, do that separately in your application logic. The callback can stay pending indefinitely. Execution remains paused until your callback returns, and the SDK only cancels the wait when the query itself is cancelled. If a user might take longer to respond than your process can reasonably stay running, the TypeScript SDK supports the [`defer` hook decision](</docs/en/hooks#defer-a-tool-call-for-later>), which lets the process exit and resume later from the persisted session; this option is not available in the Python SDK. This guide shows you how to detect each type of request and respond appropriately.
##
--- a/voice-dictation.md
+++ b/voice-dictation.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Speak your prompts instead of typing them in the Claude Code CLI. Your speech is transcribed live into the prompt input, so you can mix voice and typing in the same message. Enable dictation with `/voice`, then either hold a key while you speak or tap once to start and again to send.
Voice dictation requires Claude Code v2.1.69 or later. Tap mode requires v2.1.116 or later. Check your version with `claude --version`.
--- a/vs-code.md
+++ b/vs-code.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
The VS Code extension provides a native graphical interface for Claude Code, integrated directly into your IDE. This is the recommended way to use Claude Code in VS Code. With the extension, you can review and edit Claude’s plans before accepting them, auto-accept edits as they’re made, @-mention files with specific line ranges from your selection, access conversation history, and open multiple conversations in separate tabs or windows.
##
--- a/web-quickstart.md
+++ b/web-quickstart.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Claude Code on the web is in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats.
Claude Code on the web runs on Anthropic-managed cloud infrastructure instead of your machine. Submit tasks from [claude.ai/code](<https://claude.ai/code>) in your browser or the Claude mobile app. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Claude Code on the web works well for:
--- a/zero-data-retention.md
+++ b/zero-data-retention.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Zero Data Retention (ZDR) is available for Claude Code when used through Claude for Enterprise. When ZDR is enabled, prompts and model responses generated during Claude Code sessions are processed in real time and not stored by Anthropic after the response is returned, except where needed to comply with law or combat misuse. ZDR on Claude for Enterprise gives enterprise customers the ability to use Claude Code with zero data retention and access administrative capabilities:
* Cost controls per user