> ## 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 docs map

# Claude Code Documentation Map

This is a comprehensive map of all Claude Code documentation pages with their headings, designed for easy navigation by LLMs.

> **Note:** This file is auto-generated by GitHub Actions. Do not edit manually.
> Last updated: 2026-11-16 22:23:39 UTC

## Document Structure

This map uses a hierarchical structure:

* **##** marks documentation groups (e.g., 'Getting started')
* **###** marks individual documentation pages
* **### Parent > Child** marks a nested group; **####** marks its pages
* **Nested bullets** show the heading structure within each page
* Each page title links to the full documentation

## Getting started

### [overview](https://code.claude.com/docs/en/overview.md)

* Get started
* What you can do
* Use Claude Code everywhere
* Next steps

### [quickstart](https://code.claude.com/docs/en/quickstart.md)

* Before you begin
* Step 1: Install Claude Code
* Step 2: Start your first session
* Step 3: Ask your first question
* Step 4: Make your first code change
* Step 5: Use Git with Claude Code
* Step 6: Fix a bug or add a feature
* Step 7: Test out other common workflows
* Essential commands
  * Shell commands
  * Session commands
* Pro tips for beginners
* What's next?
* Getting help

### [changelog](https://code.claude.com/docs/en/changelog.md)

* (No headings found)

## Core concepts

### [how-claude-code-works](https://code.claude.com/docs/en/how-claude-code-works.md)

* The agentic loop
  * Models
  * Tools
* What Claude can access
* Environments and interfaces
  * Execution environments
  * Interfaces
* Work with sessions
  * Work across branches
  * Resume or fork sessions
  * The context window
    * Context Claude Code adds on its own
    * When context fills up
    * Manage context with skills and subagents
* Stay safe with checkpoints and permissions
  * Undo changes with checkpoints
  * Control what Claude can do
* Work effectively with Claude Code
  * Ask Claude Code for help
  * It's a conversation
    * Interrupt and steer
  * Delegate, don't dictate
* What's next

### [features-overview](https://code.claude.com/docs/en/features-overview.md)

* Overview
* Match features to your goal
  * Build your setup over time
  * Compare similar features
  * Understand how features layer
  * Combine features
* Understand context costs
  * Context cost by feature
  * Understand how features load
* Learn more

### [claude-directory](https://code.claude.com/docs/en/claude-directory.md)

* Explore the directory
* What's not shown
* Choose the right file
* File reference
* Frontmatter fields by file
* Troubleshoot configuration
* Application data
  * Cleaned up automatically
  * Session scratchpad directory
  * Kept until you delete them
    * State files to keep
  * Plaintext storage
  * Clear local data
* Related resources

### [context-window](https://code.claude.com/docs/en/context-window.md)

* What the timeline shows
* What survives compaction
* When your context fills up
* Check your own session
* Related resources

### [prompt-caching](https://code.claude.com/docs/en/prompt-caching.md)

* How the cache is organized
  * Where the cache lives
* Actions that invalidate the cache
  * Switching models
  * Changing effort level
  * Turning on fast mode
  * Connecting or removing an MCP server
  * Enabling or disabling a plugin
    * Plugin components that keep the cache
    * Plugins that provide MCP servers
    * Code intelligence plugins
    * When plugin changes apply
    * Plugins you enable and then disable in one session
  * Denying an entire tool
  * Compacting the conversation
  * Accumulating many images
  * Upgrading Claude Code
* Actions that keep the cache
  * Editing files in your repository
  * Editing CLAUDE.md mid-session
  * Changing permission mode
  * Changing output style
  * Invoking skills and commands
  * Running `/recap`
  * Rewinding the conversation
* Resuming a session
* Cache lifetime
  * Which TTL each request gets
  * Choose the TTL yourself
* Cache scope
* Check cache performance
* Subagents and the cache
* Disable prompt caching
* Related resources

## Use Claude Code

### [memory](https://code.claude.com/docs/en/memory.md)

* CLAUDE.md vs auto memory
* CLAUDE.md files
  * When to add to CLAUDE.md
  * Choose where to put CLAUDE.md files
  * Set up a project CLAUDE.md
  * Write effective instructions
    * Audit your instruction files
  * Import additional files
  * How CLAUDE.md files load
    * Load from additional directories
  * Organize rules with `.claude/rules/`
    * Set up rules
    * Path-specific rules
    * Rule frontmatter reference
    * Share rules across projects with symlinks
    * User-level rules
  * Manage CLAUDE.md for large teams
    * Deploy organization-wide CLAUDE.md
    * Exclude specific CLAUDE.md files
* AGENTS.md
  * When Claude Code reads AGENTS.md
  * Choose which instruction files load
  * When AGENTS.md support is unavailable
  * Where AGENTS.md differs from CLAUDE.md
  * Remove an earlier AGENTS.md workaround
  * Share one file with other coding tools
  * Migrate instructions from other tools
* Auto memory
  * Enable or disable auto memory
  * Storage location
  * How it works
  * Audit and edit your memory
* View and edit with `/memory`
* Troubleshoot memory issues
  * Claude isn't following my CLAUDE.md
  * My AGENTS.md isn't loading
  * I don't know what auto memory saved
  * My CLAUDE.md is too large
  * Claude ignores the end of my subdirectory CLAUDE.md
  * Instructions seem lost after `/compact`
* Related resources

### [sessions](https://code.claude.com/docs/en/sessions.md)

* Resume a session
  * Resume a running background session
  * What a resumed session restores
    * Flags to pass again when you resume
    * Permission mode on resume
      * Resume in plan mode with `-p`
  * The "Resume this conversation?" dialog
  * Where the session picker looks
    * `/loop`, `-p`, Agent SDK, and background sessions
    * Sessions in other worktrees and projects
    * Resume by session ID or name
* Name your sessions
* Use the session picker
* Branch a session
* Manage context within a session
* Export and locate session data
  * Access conversations from scripts
  * Where transcripts are stored
  * Delete session data
  * Name the project directory yourself
* See also

### [common-workflows](https://code.claude.com/docs/en/common-workflows.md)

* Prompt recipes
  * Understand new codebases
    * Get a quick codebase overview
    * Find relevant code
  * Fix bugs efficiently
  * Refactor code
  * Work with tests
  * Create pull requests
  * Handle documentation
  * Work in notes and non-code folders
  * Work with images
  * Reference files and directories
  * Run Claude on a schedule
  * Ask Claude about its capabilities
    * Example questions
* Resume previous conversations
* Run parallel sessions with worktrees
* Plan before editing
* Delegate research to subagents
* Pipe Claude into scripts
* Next steps

### [prompt-library](https://code.claude.com/docs/en/prompt-library.md)

* What makes these prompts work
* Where these come from
* Related resources

### [best-practices](https://code.claude.com/docs/en/best-practices.md)

* Deterministic and non-deterministic instructions
* Tell Claude what it can't see
  * Write a specific prompt
  * Brainstorm with Claude first
  * Keep CLAUDE.md short
  * Scope rules to one part of the codebase
  * Put team procedures in skills
  * Connect the tools Claude needs
* Give Claude a check to run
  * Review against your spec
  * Enforce the check with a Stop hook
* Enforce the rules that can't have exceptions
  * Enforce steps with hooks
  * Limit access with permission rules and the sandbox
  * Choose who a rule applies to
* Change a default
  * Change the permission mode
  * Change the model and effort
  * Know what subagents cost
  * Keep cost and context down
* Steer the session
* Let Claude run without you
  * Run Claude from a script
  * Start runs on a schedule or an event
  * Run sessions in parallel
* What you can stop doing
* Related resources

## Platforms and integrations

### [platforms](https://code.claude.com/docs/en/platforms.md)

* Where to run Claude Code
* Connect your tools
* Work when you are away from your terminal
* Related resources
  * Platforms
  * Integrations
  * Remote access

### [remote-control](https://code.claude.com/docs/en/remote-control.md)

* Requirements
* Start a Remote Control session
  * Check connection status
  * Connect from another device
  * What connected devices see
  * Fork a session from your browser
  * Enable Remote Control for all sessions
    * Auto-connect with `DISABLE_TELEMETRY` or `DO_NOT_TRACK` set
  * Resume sessions after stopping the server
  * Set the default spawn mode for a project
* Connection and security
* Trusted Devices
  * Enable Trusted Devices for a Team or Enterprise organization
  * What members see
  * Manage enrolled devices
* Remote Control vs cloud sessions
* Mobile push notifications
* Limitations
* Authorize a connector again from your shell
* Troubleshooting
  * "Remote Control disconnected" or "Can't reach"
  * "Remote Control requires a claude.ai subscription"
  * "Remote Control requires a full-scope login token"
  * "Unable to determine your organization for Remote Control eligibility"
  * "Remote Control isn't enabled for this account"
  * "Couldn't verify Remote Control eligibility"
  * "Remote Control requires feature-flag evaluation"
  * "Remote Control is only available when using Claude via api.anthropic.com"
  * "Remote Control is disabled by your organization's policy"
  * "Remote Control was turned off by your organization's policy"
  * "Couldn't verify your organization's policy for remote control"
  * "Remote credentials fetch failed"
  * "working folder not found"
  * "The program file this Remote Control started from is gone"
  * "Couldn't reconnect to your Remote Control session"
  * "Previous session is unavailable — run /remote-control to start a new one"
  * "Remote Control got an unexpected server response"
  * "Your organization requires Trusted Devices for Remote Control, but this device is not enrolled"
  * "session expired for trusted-device check"
* Related resources

### [claude-projects](https://code.claude.com/docs/en/claude-projects.md)

* When to use a project
  * When something else fits better
* How a project is organized
* Create a project
  * Check the prerequisites
  * Start a new project from scratch
  * Start from an existing session
  * Set up GitHub access
* Work in a project
  * Your first batch
  * Send work and read results
  * Review a thread's pull request
  * See what needs you in Overview
  * Open a thread when you need control
  * Choose models and let Claude manage context
  * Tune how Claude runs a project
  * Unblock a thread waiting on approval
  * Run a thread on your own computer
* Give a project standing context
  * Write project instructions
  * Decide which repositories to add
  * Add files and folders
  * What threads pick up from your repositories
  * Choose an environment for threads
  * Get skills, plugins, connectors, and tools into threads
* Project settings reference
  * Pause, archive, or delete a project
* Usage and cost
  * What draws on your plan
  * See and reduce a project's usage
* How projects relate to other Claude Code features
* Limitations
* Troubleshooting
  * A thread looks stuck
  * Threads guessed or stalled instead of asking
  * Claude hasn't responded
  * Repository access errors
  * A thread hit the usage limit
  * Additional usage credits are required
  * Lost contact with your folder
  * Other messages
* Related resources

### [mobile](https://code.claude.com/docs/en/mobile.md)

* Get the app
* Work from your phone
  * Start and monitor cloud sessions
  * Continue a local session with Remote Control
  * Get push notifications
* Limitations
* Related resources

### [chrome](https://code.claude.com/docs/en/chrome.md)

* Capabilities
* Prerequisites
  * Chrome availability with HIPAA or zero data retention
* Get started in the CLI
  * Install the extension when Claude asks
  * Enable Chrome by default
  * Answer the startup dialog
  * Manage site permissions
  * Permission prompts in VS Code sessions
  * Browser tools in plan mode
* Example workflows
  * Test a local web application
  * Debug with console logs
  * Automate form filling
  * Upload files to web pages
  * Draft content in Google Docs
  * Extract data from web pages
  * Run multi-site workflows
  * Record a demo GIF
  * Save screenshots to disk
* Troubleshooting
  * Extension not detected
  * Project settings can't turn on Chrome
  * Browser not responding
  * Connection drops during long sessions
  * Extension signed in to a different organization
  * Windows-specific issues
  * Common error messages
* See also

### [computer-use](https://code.claude.com/docs/en/computer-use.md)

* What you can do with computer use
* When computer use applies
* Enable computer use
* Approve apps per session
* How Claude works on your screen
  * One session at a time
  * Apps are hidden while Claude works
  * Screenshots are downscaled automatically
  * Stop at any time
* Safety and the trust boundary
* Example workflows
  * Validate a native build
  * Reproduce a layout bug
  * Test a simulator flow
* Differences from the Desktop app
* Troubleshooting
  * "Computer use is in use by another Claude session"
  * macOS permissions prompt keeps reappearing
  * `computer-use` doesn't appear in `/mcp`
* See also

### [vs-code](https://code.claude.com/docs/en/vs-code.md)

* Prerequisites
* Install the extension
* Get started
* Use the prompt box
  * Use or turn off suggested prompts
  * Reference files and folders
  * Read specific pages of a PDF
  * Include terminal output in prompts
  * Attach images and files
  * Paste text
  * Automatic context from your selection and open file
    * Keep your selection and open file out of your messages
    * Selected text from excluded or ignored files
  * LaTeX math in responses
  * Resume past conversations
    * The conversation is still open somewhere else
  * Resume cloud sessions from claude.ai
  * Check account and usage
  * Rewind with checkpoints
* Customize your workflow
  * Choose where Claude lives
  * Continue conversations after a reload
    * Interrupted steps after a reload
    * Turn off continuation after a reload
    * A conversation was not reopened
  * Run multiple conversations
  * Organize sessions into groups
  * Filter the sessions list
  * Switch to terminal mode
* Manage plugins
  * Install plugins
  * Uninstall plugins
  * Share a plugin install link
  * Manage marketplaces
  * Plugins that draw in the panel
* Automate browser tasks with Chrome
* Work with git
  * Create commits and pull requests
  * Reopen a conversation that moved into a worktree
* Work with Jupyter notebooks
  * Re-run edited cells
  * Save the notebook before an edit
* Run work in the background
  * Move a running command or subagent to the background
    * The Run in background action is missing under a subagent
  * Monitor background processes
    * See a background subagent's tool calls
* VS Code commands and shortcuts
  * Launch a VS Code tab from other tools
* Configure settings
  * Extension settings
* Use third-party providers
* Use a screen reader
  * Use the chat panel from the keyboard
* VS Code extension vs. Claude Code CLI
  * Run CLI in VS Code
  * Switch between extension and CLI
* Connect to external tools with MCP
* The built-in IDE MCP server
* Fix common issues
  * Extension won't install
  * Spark icon not visible
  * Cmd+Esc does nothing on macOS
  * Ctrl+J adds a new line in the prompt box
  * The Claude Code panel is blank or couldn't load
  * A resumed conversation is blank at first
  * The panel stops responding each time a reload reopens a conversation
  * A formula shows as raw LaTeX
  * Dictation or the Web tab fails behind a TLS-inspecting proxy
  * Claude Code never responds
* Uninstall the extension
* Next steps

### [jetbrains](https://code.claude.com/docs/en/jetbrains.md)

* Supported IDEs
* Features
* Installation
* Usage
  * Run Claude Code from your IDE
  * Connect from an external terminal
* Configuration
  * Claude Code settings
  * Plugin settings
    * General settings
    * ESC key configuration
* Special configurations
  * Remote development
  * WSL configuration
    * Allow WSL2 traffic through Windows Firewall
    * Switch WSL2 to mirrored networking
* Troubleshooting
  * Plugin not working
  * IDE not detected
  * Command not found
* Security considerations
  * The built-in IDE MCP server

### [slack](https://code.claude.com/docs/en/slack.md)

* Use cases
* Prerequisites
* Setting up Claude Code in Slack
* How it works
  * Automatic detection
  * Context gathering
  * Session flow
* User interface elements
  * Message actions
  * Repository selection
* Access and permissions
  * User-level access
  * Workspace-level access
  * Channel-based access control
* What's accessible where
* Best practices
  * Writing effective requests
  * When to use Slack vs. web
* Troubleshooting
  * "This workspace isn't set up for Claude Tag yet"
  * "The legacy Claude in Slack bot is retired"
  * "Claude Code is not enabled for your account"
  * Sessions not starting
  * Sessions from a Claude Tag channel fail to start
  * Repository not showing
  * Wrong repository selected
  * Authentication errors
* Current limitations
* Related resources

### [claude-tag](https://code.claude.com/docs/en/claude-tag.md)

* (No headings found)

### Platforms and integrations > Claude Code in the cloud

#### [web-quickstart](https://code.claude.com/docs/en/web-quickstart.md)

* How sessions run
* Compare ways to run Claude Code
* Connect GitHub
  * Connect from your terminal
    * Remove the `/web-setup` token
* Start a task
* Pre-fill sessions
* Review and iterate
* Troubleshoot setup
  * No repositories appear after connecting GitHub
  * The page only shows a GitHub login button
  * "Claude Code isn't available on your account"
  * `/web-setup` says "Not signed in to Claude"
  * `/web-setup` warns that your token doesn't have the `workflow` scope
  * `/web-setup` shows "No commands match" or "Unknown command"
  * "Could not create a cloud environment" or "No cloud environment available" when using `--cloud`
  * Setup script failed
  * New sessions hang or time out during setup
  * Session keeps running after closing the tab
* Next steps

#### [claude-code-on-the-web](https://code.claude.com/docs/en/claude-code-on-the-web.md)

* Cloud environments
* GitHub authentication options
  * Quick setup for Team and Enterprise
* Move tasks between terminal and cloud
  * Start a cloud session from your terminal
    * Tips for cloud tasks
    * Send local repositories without GitHub
  * Send follow-ups from the CLI
    * Output
  * Continue a cloud session in your terminal
    * Teleport requirements
    * `--teleport` is unavailable
* Work with sessions
  * Permission modes in cloud sessions
  * Review changes
    * Troubleshoot a missing file in the diff view
  * Manage context
  * Plugin suggestions in the conversation
    * Add or remove a suggested plugin
    * Turn off plugin suggestions
  * Take back a queued message
  * Share sessions
    * Share from an Enterprise or Team account
    * Share from a Max, Ultra, or Pro account
  * Archive sessions
    * Find an archived session
  * Delete sessions
* Auto-fix pull requests
  * How Claude responds to PR activity
* Security and isolation
* Troubleshooting
  * Session creation failed
  * Your new session couldn't start
  * Can't rewind to this message
  * Unable to get organization UUID
  * Branch is not on GitHub
  * Remote Control session expired or access denied
  * Errors when sending to a cloud session
  * Environment expired
* Limitations
* Related resources

#### [routines](https://code.claude.com/docs/en/routines.md)

* Example use cases
* Create a scheduled task
  * Create from the web
    * Dialog with Repositories and Environment in the main view
    * Full-page form
  * Create from the CLI
* Configure triggers
  * Add a schedule trigger
    * Schedule a one-off run
  * Add an API trigger
    * Trigger a scheduled task
    * API reference
  * Add a GitHub trigger
    * Supported events
    * Filter pull requests
* Manage scheduled tasks
  * View and interact with runs
  * Edit and control scheduled tasks
  * Manage scheduled tasks from the CLI
  * Repositories and branch permissions
  * Connectors
  * Permission prompts during a run
  * When a run publishes an artifact without asking
    * Artifacts in Accept edits mode
  * Environments and network access
* Usage and limits
* Where the name routines still appears
* Troubleshooting
  * `/schedule` returns "Unknown command"
  * Scheduled tasks are off for your organization
  * "The last run" warnings
* Related resources

### Platforms and integrations > Claude Code on desktop

#### [desktop-quickstart](https://code.claude.com/docs/en/desktop-quickstart.md)

* Install
* Start your first session
* Now what?
* What's next

#### [desktop](https://code.claude.com/docs/en/desktop.md)

* Start a session
* Work with code
  * Use the prompt box
  * Accept a suggested prompt
  * Add files and context to prompts
  * Choose a permission mode
    * Auto mode availability
  * Preview your app
    * Preview HTML files in SSH and WSL sessions
    * Turn off scripts in SSH and WSL previews for your organization
      * Check a computer for scripts that still run
  * Browse external sites
    * Approve Claude's actions on a site
    * Choose between the Browser and the Chrome extension
    * Restrict external browsing for your organization
  * Review changes with diff view
  * Review your code
  * Monitor pull request status
* Arrange your workspace
  * See session details
    * Hide or show the session details panel
  * Minimize a pane
  * Run commands in the terminal
  * Open and edit files
    * Save edits in the file pane
  * Open files in other apps
  * Switch view modes
  * Keyboard shortcuts
  * Check usage
* Let Claude use your computer
  * When computer use applies
  * Enable computer use
  * App permissions
* Manage sessions
  * Work in parallel with sessions
    * Run a session in its own worktree
  * Add folders to a session
  * Archive a session
    * Keep uncommitted changes when a session is archived
  * Organize and find sessions
  * Check and free up context
  * Get notified when a session finishes
  * Ask a side question without derailing the session
  * Watch background tasks
  * Work across sessions
  * Start a task that Claude suggests
  * Run long-running tasks in the cloud
  * Continue in another surface
  * Control which sessions appear on your other devices
    * Keep sessions off your other devices
  * Sessions from Dispatch
    * Follow a session that Dispatch started
    * Set up Dispatch
* Extend Claude Code
  * Connect external tools
  * Use skills
  * Install plugins
  * Configure preview servers
    * Auto-verify changes
    * Configuration fields
      * When to use `program` vs `runtimeExecutable`
      * Open the preview at a specific URL
    * Port conflicts
    * Examples
* Environment configuration
  * Create a saved environment
    * Environments that Desktop creates for you
    * Use, edit, or remove a saved environment
  * Environment variables in local sessions
    * Set environment variables for local sessions
    * Set environment variables for dev servers
    * Use the local environment editor
    * Exported variable missing or wrong in commands Claude runs
    * Environment variables Desktop sets itself
    * Turn off extended thinking
    * Fixed thinking budgets
  * Local sessions on managed devices
  * Cloud sessions
  * SSH sessions
    * Remote machine requirements for SSH sessions
    * Check a remote machine's host key
    * Set a proxy or a CA certificate for SSH sessions
      * Find a proxy or CA variable set elsewhere on the remote machine
    * Use your SSH configuration
      * Connect on Windows without the OpenSSH client
      * Reach a machine behind a jump host
      * Reach a container on a remote machine
      * Use variables from your shell in a `ProxyCommand`
      * Use AWS credentials in a `ProxyCommand` on macOS and Linux
      * Raise the SSH connection timeout
      * Fix a `Match host` block that only Desktop applies
      * Forwarding settings that Desktop leaves off
    * Reach a port on the remote machine
    * Windows remote machines
    * Keep a task running while Desktop is disconnected
      * Prepare a long task
      * Limits while Desktop is disconnected
      * Handle requests that arrive while you are away
      * Reconnect after sleep or a network loss
      * Reopen a session after you quit Desktop
    * Choose where SSH session worktrees go
      * Set the worktree folder on an existing connection
    * Files and processes on the remote machine
      * End one session's process
      * See which user the processes run as
      * See who connected to the remote machine
    * Connections that close before login
      * Recognize a test in the SSH server's log
      * Check whether the SSH server itself refuses the address
      * Check whether fail2ban counts Desktop's tests
      * Prevent a ban by fail2ban
    * Use MCP servers set up on the remote machine
    * Open an SSH session from a link
    * Create an SSH connection from a command
      * Write the command
      * Write the command on Windows
      * Wrap a Windows tool that prints other lines
      * Connect to a new host
      * Create another machine
      * Stop using a machine
      * Remove an entry
      * Distribute commands to your team
      * If a command is missing or gray
    * Pre-configure SSH connections for your team
    * Restrict which SSH hosts users can connect to
      * Allow jump hosts
    * Turn off local sessions and distribute SSH connections
* Enterprise configuration
  * Admin console controls
  * Managed settings
    * Claude Code settings that behave differently in the Code tab
  * Device management policies
    * Restrict sign-in to your organization
  * Network access requirements
  * Authentication and SSO
  * Data handling
  * Deployment
* Coming from the CLI?
  * CLI flag equivalents
  * Shared configuration
    * MCP servers from the Claude Desktop chat app
  * Feature comparison
  * What's not available in Desktop
* Troubleshooting
  * Check your version
    * Claude Code version in the Code tab
  * Check which layout you have
  * 403 or authentication errors in the Code tab
  * Blank or stuck screen on launch
  * "Failed to load session"
  * Session not finding installed tools
  * Git and Git LFS errors
  * MCP servers not working on Windows
  * SSH host key verification failed
    * Check the host key from a terminal
      * Check the keys that `ssh` already trusts
  * SSH host key refused on Windows without an OpenSSH client
  * SSH connection fails after you log in
  * Get Desktop's logs for an SSH problem
  * App won't quit
  * Windows-specific issues
  * "Branch doesn't exist yet" when opening in CLI
  * Still stuck?

#### [desktop-linux](https://code.claude.com/docs/en/desktop-linux.md)

* Requirements
  * Cowork requirements
* Install
  * Install from a downloaded file
* Update
* Uninstall
* Troubleshoot
  * Unable to locate package claude-desktop
  * Unmet dependencies
  * Running as root without `--no-sandbox` is not supported
  * Your sign-in won't be saved on this device
  * Cowork isn't available
* What's not in the Linux beta yet

#### [desktop-wsl](https://code.claude.com/docs/en/desktop-wsl.md)

* Requirements
* Start a WSL session
* What works in a WSL session
  * If the terminal or connectors are unavailable
* Managed devices

#### [desktop-scheduled-tasks](https://code.claude.com/docs/en/desktop-scheduled-tasks.md)

* Compare scheduling options
* Create a scheduled task
  * Dialog with Only on this computer at the top
  * Full-page form
* Schedule options
* How scheduled tasks run
  * Find a run's session
* Missed runs
* Permissions for scheduled tasks
* Manage scheduled tasks
* Related resources

#### [desktop-ios-simulator](https://code.claude.com/docs/en/desktop-ios-simulator.md)

* Requirements
  * Choose which Xcode the simulator pane uses
* Run your app in the simulator
* Control the simulator yourself
  * Minimize or close the simulator pane
* How sessions manage devices
* Grant Claude access to a device
  * Allow a device the first time
  * Actions that follow your permission mode
  * Turn off simulator access
* Test your app on an iPhone Duo
  * Fold an iPhone Duo
  * Expect a prompt to export Xcode agent skills
* Limitations
* Troubleshooting
  * The simulator pane doesn't open when Claude runs the app
  * The simulator pane says no simulators were found
* See also

## Code review and pull requests

### [code-review-local](https://code.claude.com/docs/en/code-review-local.md)

* Choose what to review
* What the review reads and edits
* How findings are reported
* Tune effort and arguments
  * Post findings to a GitLab merge request
  * Text after the effort level and flags
* Run in the foreground
* Let Claude start the review
* Escalate to ultrareview
* Change or build on the review
* Related resources

### [ultrareview](https://code.claude.com/docs/en/ultrareview.md)

* Run ultrareview from the CLI
  * Review against a different base
  * Review a pull request
  * Post findings to the pull request
  * Pass a request in plain words
  * Diff limits and fallbacks
* Pricing and free runs
* Track a running review
* Run ultrareview non-interactively
  * Trust the folder before the review runs
* How ultrareview compares to /code-review
* Related resources

### [github-enterprise-server](https://code.claude.com/docs/en/github-enterprise-server.md)

* What works with GitHub Enterprise Server
* Admin setup
  * GitHub App permissions
  * Manual setup
  * Network requirements
* Developer workflow
  * Teleport sessions to your terminal
* Plugin marketplaces on GHES
  * Add a GHES marketplace
  * Pre-register GHES marketplaces with managed settings
  * Allowlist GHES marketplaces in managed settings
* Limitations
* Troubleshooting
  * Cloud session fails to clone repository
  * Marketplace add fails with a policy error
  * Marketplace add on claude.ai fails with a GitHub access error
  * GHES instance not reachable
  * Connection test passes but a second test fails
  * Session start fails with `Unable to get organization UUID`
* Related resources

### Code review and pull requests > Code Review

#### [code-review](https://code.claude.com/docs/en/code-review.md)

* Availability
* Set up and use Code Review
* How reviews work
  * Review levels
  * What a review can access
  * Who controls a review
* Compare ways to get a review
* Related resources

#### [code-review-setup](https://code.claude.com/docs/en/code-review-setup.md)

* What you need to turn on Code Review
* Turn on Code Review
* Set defaults for your organization
  * Set the default review level
  * Set when reviews run
  * Turn tip comments on or off
  * What developers can change
* Manage repositories
  * Add more repositories
  * Cover a whole GitHub organization
  * Turn off Code Review or remove a repository
* Related resources

#### [code-review-customize](https://code.claude.com/docs/en/code-review-customize.md)

* Use CLAUDE.md for project-wide rules
* Use REVIEW\.md for review-only rules
  * When a subdirectory REVIEW\.md doesn't apply
  * Example REVIEW\.md
  * Choose what to write in REVIEW\.md
  * Include other files in REVIEW\.md
  * Include a skill file
    * Write a skill line that Code Review includes
    * Check what a review gets from a skill
    * Characters that Code Review changes in skill text
  * Which branch REVIEW\.md is read from
    * What counts as branch protection
    * What a review reads for each branch setup
* Related resources

#### [code-review-pull-requests](https://code.claude.com/docs/en/code-review-pull-requests.md)

* Severity levels
* Respond to findings
* Check run output
  * When a push keeps the earlier result
  * Read the result from a script
* Request a review
  * Comment commands
  * What a later review covers
  * Review drafts and pull requests from forks
  * Use Code Review alongside the Claude Code GitHub Action
* Related resources

#### [code-review-costs](https://code.claude.com/docs/en/code-review-costs.md)

* Pricing
  * How often reviews run
* Estimate your spend
* Limit your spend
* View usage
* Related resources

#### [code-review-troubleshooting](https://code.claude.com/docs/en/code-review-troubleshooting.md)

* Check how far the review got
* A review didn't start
  * A comment command didn't start a review
  * Review didn't run and the PR shows a budget message
* Retrigger a failed or timed-out review
* Find issues that aren't showing as inline comments
* The check run mentions REVIEW\.md
* Setup problems
  * A repository isn't listed in Add a repository
  * No check run appears on the test pull request
* Related resources

### Code review and pull requests > Security scans

#### [security-guidance](https://code.claude.com/docs/en/security-guidance.md)

* Prerequisites
* Install the plugin
  * Enable for your team in local sessions
* What the plugin checks
  * Checks on each file edit
  * Checks at the end of each turn
  * Checks on each commit or push Claude makes
  * Review independence and limits
* Add your own rules
  * Add guidance for the model-backed reviews
  * Add custom per-edit patterns
  * Rule file lookup locations
* Usage cost
* Disable or uninstall
* How the plugin integrates with Claude Code
* How this fits with other security tools
* Troubleshooting
* Related resources

#### [claude-security](https://code.claude.com/docs/en/claude-security.md)

* Prerequisites
* Models and providers
* Install the plugin
  * Update the plugin
  * Uninstall the plugin
* Scan and fix your codebase
  * Scan only your changes
  * Scope large repositories
  * Choose a scan effort
  * Read the scan results
* Fix findings
  * Patches are never applied automatically
* How the plugin fits with other security tools
* Troubleshooting
* Related resources

### Code review and pull requests > Run Claude in your own CI

#### [github-actions](https://code.claude.com/docs/en/github-actions.md)

* Setup
  * Quick setup
  * Manual setup
  * Set up for an organization
  * Uninstall
  * GitHub App permissions
* Interactive and automation modes
  * Who can trigger runs
* Example use cases
  * Respond to @claude mentions
  * Run a skill
  * Run on a schedule
* Best practices
  * Define project standards in CLAUDE.md
  * Protect your credentials
  * Manage costs
* Use a cloud provider
* Troubleshooting
  * Claude not responding to @claude commands
  * CI not running on Claude's commits
  * Authentication errors
* Advanced configuration
  * Action parameters
  * Pass CLI arguments
* Upgrade from beta
* What's next

#### [github-actions-cloud-providers](https://code.claude.com/docs/en/github-actions-cloud-providers.md)

* Choose your provider
* Prerequisites
* Set up the integration
* Troubleshooting
* What's next

#### [gitlab-ci-cd](https://code.claude.com/docs/en/gitlab-ci-cd.md)

* Why use Claude Code with GitLab?
* How it works
* What can Claude do?
* Setup
  * Quick setup
  * Manual setup (recommended for production)
* Example use cases
  * Turn issues into MRs
  * Get implementation help
  * Fix bugs quickly
* Using with Amazon Bedrock and Google Cloud
* Configuration examples
  * Amazon Bedrock job example (OIDC)
  * Agent Platform job example (Workload Identity Federation)
* Best practices
  * CLAUDE.md configuration
  * Security considerations
  * Optimizing performance
  * CI costs
* Troubleshooting
  * Claude not responding to @claude commands
  * Job can't write comments or open MRs
  * Authentication errors
* Advanced configuration
  * Common parameters and variables
  * Customizing Claude's behavior

## Agents and parallel work

### [agents](https://code.claude.com/docs/en/agents.md)

* Choose an approach
* Check on running work
* Learn more

### [sub-agents](https://code.claude.com/docs/en/sub-agents.md)

* Built-in subagents
* Quickstart: create your first subagent
* Configure subagents
  * Choose the subagent scope
  * Write subagent files
  * Frontmatter reference
    * Subagent files Claude Code skips
      * Check an `agents` directory before a session
  * Choose a model
    * Which model a nested subagent runs on
    * Check a subagent's model
    * Run every subagent on one model
    * Which version a model alias selects
    * When an allowlist blocks a subagent model
  * Extended thinking in subagents
  * Choose an effort level
    * When a subagent has no `effort` field or parameter
  * Control subagent capabilities
    * Available tools
    * Restrict which tools a subagent can use
      * MCP server names that contain a double underscore
    * Restrict which subagents can be spawned
    * Scope MCP servers to a subagent
    * Trust required for inline MCP servers
    * Permission modes
    * Preload skills into subagents
    * Enable persistent memory
      * Persistent memory tips
    * Conditional rules with hooks
    * Disable specific subagents
  * Define hooks for subagents
    * Hooks in subagent frontmatter
    * Project-level hooks for subagent events
* Work with subagents
  * Understand automatic delegation
  * Invoke subagents explicitly
  * Run subagents in foreground or background
    * Which subagents run in the background
    * Let Claude wait for a subagent
    * Tools, permissions, and results of background subagents
    * Finished subagents in the panel and task list
  * Subagent names
  * API errors in subagents
  * Subagent output scanning
  * Common patterns
    * Isolate high-volume operations
    * Run parallel research
    * Chain subagents
  * Choose between subagents and main conversation
  * Let subagents spawn their own subagents
  * Concurrent subagent limit
  * Manage subagent context
    * What loads at startup
    * Resume subagents
      * Message a subagent by name after a restart
    * Auto-compaction
      * Set the auto-compact window for one subagent
* Fork the current conversation
  * Observe and steer running forks
  * How forks differ from other subagents
  * Turn fork mode off
* Example subagents
  * Code reviewer
  * Debugger
  * Data scientist
  * Database query validator
* Next steps

### [agent-view](https://code.claude.com/docs/en/agent-view.md)

* Quick start
  * Open agent view by default
* Monitor sessions with agent view
  * Read session state
  * Row summaries
    * Cost of row summaries
  * Pull request status
  * Peek and reply
  * Attach to a session
    * Switch sessions without leaving the terminal
      * Prompts sent as the session moves to the background
  * Organize the list
    * Bring back a past session
  * Filter sessions
  * Keyboard shortcuts
* Dispatch new agents
  * Dispatch an agent from agent view
    * Dispatch to a specific directory
  * Send or copy a session to the background
    * Send the session to the background
    * Copy the session with /fork
      * Prompt the copy and open its session
      * Where the copy runs
      * Sessions that can't be forked
    * What carries over when you background
      * Dynamic workflows when you background
  * Dispatch an agent from your shell
    * Prompts that contain `--bg`
    * Run a shell command
  * How file edits are isolated
    * What deleting a session removes
      * Delete a session after Claude Code refuses
      * Resolve a `Worktree not removed` message
      * Resolve a `files that weren't checked against a repository` message
  * Set the model, effort, and fast mode
  * Permission mode, model, and effort
    * Settings and provider
    * LLM gateway
    * Permission mode
    * Dispatch defaults
    * What persists across restarts
  * Settings, plugins, and MCP servers
* Manage sessions from the shell
  * List sessions as JSON
  * Read session state from a script
* How background sessions are hosted
  * The supervisor process
    * Keep sessions running after the supervisor stops
  * Where state is stored
  * Turn off agent view
* Troubleshooting
  * `claude agents` lists subagents instead of opening agent view
  * Agent view opens with no sessions
  * Backgrounding shows a `Background this session?` dialog
  * The conversation says a background agent `was carried into this session and not resumed`
  * Prompt rejected as too short
  * Sessions show as failed or stopped after shutdown
  * Opening a session says the conversation is already open
  * Opening a session says it has no saved transcript
  * The terminal host died or the session stopped responding
  * A session fails before starting with a `possibly low memory` note
  * Agent view says the background service did not respond
  * Dispatch fails with `Could not resolve authentication method`
  * A background session shows `No LLM gateway`
  * Background sessions can't read Desktop, Documents, or Downloads on macOS
  * Background sessions can't reach local-network hosts on macOS
  * A session is slow to respond after attaching
  * `.claude/worktrees/` is filling up
* Limitations
* Related resources
* Version history

### [agent-teams](https://code.claude.com/docs/en/agent-teams.md)

* When to use agent teams
  * Compare with subagents
* Enable agent teams
* Start your first agent team
* Control your agent team
  * Choose a display mode
  * Specify teammates and models
  * Have teammates plan before implementing
  * Talk to teammates directly
  * Assign and claim tasks
  * Shut down teammates
  * Enforce quality gates with hooks
* How agent teams work
  * How Claude starts agent teams
  * Architecture
  * Use subagent definitions for teammates
  * Permissions
    * Messages between agents
  * Context and communication
  * Token usage
* Use case examples
  * Run a parallel code review
  * Investigate with competing hypotheses
* Best practices
  * Give teammates enough context
  * Choose an appropriate team size
  * Size tasks appropriately
  * Wait for teammates to finish
  * Start with research and review
  * Avoid file conflicts
  * Monitor and steer
* Troubleshooting
  * Teammates not appearing
  * Claude spawns teammates instead of subagents
  * Too many permission prompts
  * Agents stopping early
  * Orphaned tmux sessions
* Limitations
* Next steps

### [cross-session-messaging](https://code.claude.com/docs/en/cross-session-messaging.md)

* When to use cross-session messaging
* Message another session
  * Message delivery
  * Get a notice when another session goes idle
    * Ask for a notice
    * What each session shows
    * Limits
  * See which sessions Claude can reach
  * Message sessions on other machines
    * Replies from other machines and cloud sessions
* How a session treats an incoming message
  * What a message looks like
  * Control inbound messages
  * Non-interactive sessions
  * The session's inbox socket
* Restrict cross-session messaging
  * Require approval for cross-machine messages
  * Turn off cross-session messaging
* Availability
* Limitations
* Related resources

### [workflows](https://code.claude.com/docs/en/workflows.md)

* When to use a workflow
* Run a bundled workflow
  * Bundled workflows
  * Watch the run
* Have Claude write a workflow
  * Ask for a workflow in your prompt
    * Dismiss or turn off the keyword
    * Where the keyword works
  * Let Claude decide with ultracode
  * Approve the plan before it runs
  * Save the workflow for reuse
  * Distribute a workflow in a plugin
  * Pass input to a saved workflow
* Example workflow prompts
  * Audit many files for the same issue
  * Keep fixing until a check passes
  * Migrate many files in parallel
  * Review every changed file and write one summary
  * Research a topic across many sources
  * Find issues until the list stops growing
  * What the saved script looks like
  * Edit a saved script
* How a workflow runs
  * Prompt caching in a fan-out
  * Behavior and limits
* Manage runs
  * Resume after a pause
    * Which agents run again
    * Resume after you leave the session
  * When a run hits your usage limit
  * When an agent stalls and restarts
  * Cost
  * Set a size guideline
  * Turn workflows off
* Related resources

### [worktrees](https://code.claude.com/docs/en/worktrees.md)

* Start Claude in a worktree
  * Set up the worktree environment
  * Ask Claude to create a worktree
    * Claude has no `EnterWorktree` tool
* Clean up worktrees
* Resume a worktree session
* How Claude Code enforces isolation
* Isolate subagents with worktrees
  * Clean up subagent and background-session worktrees
    * Worktree locks and manual removal
* Customize worktree creation
  * Choose the base branch
  * Branch from a pull request
  * Copy gitignored files into worktrees
  * Reuse a worktree name
  * Replace worktree creation with a hook
* What worktrees share with the main checkout
* Manage worktrees manually
* Non-git version control
* Troubleshooting
  * Claude Code can't enter the worktree at startup
  * Worktree creation fails on a symlinked path
  * A worktree Claude Code created has the original content of replaced objects
  * Git LFS files are pointer files in a worktree Claude Code created
  * Worktree creation fails in a partial clone
  * `Can only use --worktree in a git repository`
  * The worktree directory `belongs to a different repository`
  * Claude Code refuses to use a worktree
  * The session resumes outside its worktree
* See also

## MCP

### [mcp-quickstart](https://code.claude.com/docs/en/mcp-quickstart.md)

* Before you begin
* Add and verify a server
* Where servers are saved
  * Find your configuration on disk
* Change server scope
  * Use a server in all your projects
  * Share a server with your team
* Additional MCP server examples
  * Add a local server
  * Connect a server that requires sign-in
* Edit .mcp.json directly
* Connect from other surfaces
* Troubleshooting
* Next steps

### [mcp](https://code.claude.com/docs/en/mcp.md)

* What you can do with MCP
* Find and build MCP servers
* Installing MCP servers
  * Option 1: Add a remote HTTP server
  * Option 2: Add a remote SSE server
  * Option 3: Add a local stdio server
    * How Claude Code stops a stdio server
  * Option 4: Add a remote WebSocket server
  * Add a server from setup instructions written for another client
    * Add a server from a URL
    * Add a server from an `npx`, `uvx`, or binary command
    * Add a server from an `mcpServers` JSON block
  * Managing your servers
    * Server status
    * Project server approvals and workspace trust
    * Server status detail
      * Connection failures and unconfigured servers
    * Configuration warnings
    * Tool availability
      * Tool counts in a cloud session
      * Tools from a server that is still connecting
  * Disable a server without removing it
  * MCP client runtimes
  * Dynamic tool updates
    * Notification streams on the v2 runtime
  * Automatic reconnection
    * Mid-session drops of a remote server
    * Failed first connections
    * Stdio servers that exit or fail to start
    * Failed discovery requests
    * Retry failed servers yourself
    * How Claude learns that a server failed
  * Push messages with channels
  * Time limits on MCP tool calls
  * Automatic backgrounding of long tool calls
  * MCP tasks that run on the server
    * Stop an MCP task or get its result
    * Answer a question from an MCP task
    * Exit, clear, or resume while an MCP task runs
    * What a call needs to become an MCP task
    * Status messages on an MCP task
    * Time limits on MCP tasks
    * Make Claude wait for the result of an MCP task
  * MCP tasks for server authors
    * Answer the call with a task
    * Report status, results, and questions
  * Plugin-provided MCP servers
* MCP installation scopes
  * Local scope
  * Project scope
  * User scope
  * Scope hierarchy and precedence
  * Environment variable expansion in `.mcp.json`
    * Example with variable expansion
    * Unset variables without a default
    * Variables set to an empty string
    * Credential variables that read as empty
    * How references appear in `/mcp` and CLI output
* Practical examples
  * Example: Connect to GitHub for code reviews
  * Example: Query your PostgreSQL database
* Authenticate with remote MCP servers
  * Authenticate from the command line
  * Use a fixed OAuth callback port
  * Use pre-configured OAuth credentials
  * Override OAuth metadata discovery
  * Restrict OAuth scopes
  * Use OAuth with a server behind an authenticating proxy
  * Use dynamic headers for custom authentication
    * Where the helper runs
    * Which variables a helper can read
    * Trust a folder before its headersHelper runs
  * Sign in to an MCP server behind a gateway that requires a header
* Add MCP servers from JSON configuration
* Import MCP servers from Claude Desktop
* Use MCP servers from claude.ai
  * How connectors reach Claude Code
  * Organization controls on connector tools
  * Disable claude.ai connectors
* Use Claude Code as an MCP server
  * Read a background command's output as an MCP client
* MCP output limits and warnings
  * Raise the limit for a specific tool
  * Images in tool results
* Tool input schemas with a root-level combinator
* Tools with invalid input schemas
  * Tools whose input schema the API refuses
* Tools with names longer than 128 characters
* Require approval for a specific tool
* Mark tools that are safe to call twice
* Respond to MCP elicitation requests
  * Answer an elicitation request in a cloud session
  * Elicitation modes Claude Code declares
* Use MCP resources
  * Reference MCP resources
* Scale with MCP tool search
  * Tool search for MCP server authors
    * Change the description length limits
    * Mark a tool to load upfront or stay deferred
  * Configure tool search
    * Tool search through an LLM gateway
    * Tools that stay deferred below the `ENABLE_TOOL_SEARCH=auto` threshold
  * Exempt a server from deferral
  * Defer a server's tools
* Use MCP prompts as commands
  * Execute MCP prompts
* Managed MCP configuration

## Skills

### [skills](https://code.claude.com/docs/en/skills.md)

* Bundled skills
  * Check your setup with `/doctor`
  * Run and verify your app
  * Run your checks before each commit
  * Work on Claude API projects
* Getting started
  * Create your first skill
* Choose where skills load
  * Load skills in monorepos and subdirectories
  * Load skills from a directory outside the project
    * Run a same-named skill from an added directory
  * Resolve skills that share a name
  * Use skills in Cowork and cloud sessions
  * Skills synced from claude.ai
    * Where synced skills load
    * When a synced skill name matches another command
    * Names reserved for synced skills
    * How Claude Code handles the frontmatter of a synced skill
    * How Claude Code handles the body of a synced skill
  * Edit a skill during a session
  * Remove a skill
* Configure skills
  * Types of skill content
  * Frontmatter reference
    * Using skill frontmatter outside Claude Code
    * How a skill gets its command name
    * Characters a skill name can't hold
    * Available string substitutions
  * Add supporting files
  * Control who invokes a skill
    * Where you write the skill's name
  * Skill content lifecycle
  * Pre-approve tools for a skill
    * When managed settings lock hooks to plugins
    * When only managed permission rules apply
  * Pass arguments to skills
    * Stack several skills in one message
* Advanced patterns
  * Inject dynamic context
    * How injected commands run
    * When an injected command fails
    * When no shell command was run
    * Permission checks on injected commands
  * Run skills in a subagent
    * Example: Research skill using Explore agent
  * Restrict Claude's skill access
  * Override skill visibility from settings
  * Find unused skills
* Evaluate and iterate on a skill
  * Run evals with skill-creator
* Share skills
  * Generate visual output
* Troubleshooting
  * Skill not triggering
  * Skill triggers too often
  * Claude stops following a skill
  * Skill descriptions are cut short
  * Angle brackets in a skill description show as `&lt;` and `&gt;`
  * Personal skills disappeared
* Related resources

## Artifacts

### [artifacts](https://code.claude.com/docs/en/artifacts.md)

* When to use an artifact
  * What an artifact is not
* Create an artifact
  * When Claude Code asks before publishing
* Update an artifact
  * Turn off one-step artifact updates
* Find an artifact again
* Share an artifact
  * Link to a specific view
  * Let someone edit with you
* Read an artifact shared with you
* Collect comments on an artifact
  * Let Claude reply to comments on its own
* Pull live data with MCP connectors
  * How connector calls work for viewers
  * The page shows no live data for a viewer
* Offer a file download
* What you can build
  * Walk through a change
  * Compare alternatives
  * Tune with interactive controls
  * Bring the result back to your session
  * Track work in progress
* Improve the visual design
* Start from a Slides, Design, or Docs template
  * Make a slide deck
  * Draft a design canvas
  * Write a document with Claude Docs
* Page constraints
* Availability
* Disable artifacts
* Manage artifacts for your organization
  * Enable or disable artifacts
  * Control connector calls from artifacts
  * Control public sharing
  * Set a retention policy
  * Audit artifact activity with the Compliance API
  * Allowlist the viewer domain
  * List and delete artifacts with the Compliance API
* Related resources

## Automation

### [hooks-guide](https://code.claude.com/docs/en/hooks-guide.md)

* Set up your first hook
* What you can automate
  * Get notified when Claude needs input
  * Auto-format code after edits
  * Block edits to protected files
  * Re-inject context after compaction
  * Audit configuration changes
  * Reload environment when directory or files change
  * Auto-approve specific permission prompts
* How hooks work
  * Combine results from multiple hooks
  * Read input and return output
    * Hook input
    * Hook output
    * Structured JSON output
  * Filter hooks with matchers
    * Filter by tool name and arguments with the `if` field
  * Configure hook location
* Prompt-based hooks
* Agent-based hooks
* HTTP hooks
* Limitations and troubleshooting
  * Limitations
  * Hooks and permission modes
  * Hook not firing
  * Hook error in output
  * `/hooks` shows no hooks configured
  * Stop hook hits the block cap
  * Hook JSON has no effect
    * Shell profile output before the JSON
    * Fields at the wrong level
  * Check what a hook did
* Learn more

### [channels](https://code.claude.com/docs/en/channels.md)

* Supported channels
* Quickstart
* Security
* Enterprise controls
  * Enable channels for your organization
  * Restrict which channel plugins can run
* Research preview
* How channels compare
* Next steps

### [scheduled-tasks](https://code.claude.com/docs/en/scheduled-tasks.md)

* Compare scheduling options
* Run a prompt repeatedly with /loop
  * Run on a fixed interval
  * Let Claude choose the interval
  * Run the built-in maintenance prompt
  * Customize the default prompt with loop.md
  * Stop a loop
    * Detach without stopping a loop
* Set a one-time reminder
* Manage session-scoped scheduled tasks
* How session-scoped scheduled tasks run
  * Jitter
    * How late a recurring task runs
    * When a one-shot task runs early
  * Seven-day expiry
* Cron expression reference
* Disable session-scoped scheduled tasks
* Limitations

### [goal](https://code.claude.com/docs/en/goal.md)

* Compare ways to keep a session running
* Use `/goal`
  * Set a goal
  * Write an effective condition
  * Check status
  * Clear a goal
  * Resume with an active goal
  * Run non-interactively
* How evaluation works
  * When a turn fails
    * Errors you have to fix clear the goal
    * Other errors retry or pause the goal
  * Background work defers evaluation
  * Evaluation model and cost
* Requirements
* See also

### [headless](https://code.claude.com/docs/en/headless.md)

* Basic usage
  * Start faster with bare mode
  * Background tasks at exit
    * Give a long subagent command more time
    * MCP work when a non-interactive run ends
  * Stop a run with SIGTERM
  * If the working directory is deleted
* Examples
  * Pipe data through Claude
  * Add Claude to a build script
  * Get structured output
  * Stream responses
    * Follow subagent messages
    * Handle API retries
    * Read session metadata
    * Fail CI when a plugin or MCP server doesn't load
    * Track plugin installs
  * Auto-approve tools
  * Turn off permission prompts in unattended runs
  * Create a commit
  * Customize the system prompt
  * Continue conversations
* Next steps

### [deep-links](https://code.claude.com/docs/en/deep-links.md)

* How deep links work
  * What a launched session shows
* Build a link
  * Choose between `cwd` and `repo`
* Examples
  * Embed a link in a runbook
  * Open a link from the shell
* Registration and supported platforms
* Open a VS Code tab instead of a terminal
* Open a Claude Desktop session on an SSH connection
* Troubleshooting
  * Clicking the link does nothing
  * xdg-open is not found on Linux
  * The link renders as plain text instead of being clickable
  * The session opens in my home directory instead of the repo
  * The link opens the wrong terminal
* Learn more

## Guides

### [large-codebases](https://code.claude.com/docs/en/large-codebases.md)

* What this guide covers
  * Settings on this page
  * The example monorepo
* Choose where to start Claude
* Layer CLAUDE.md files by directory
  * Choose between per-directory CLAUDE.md and path-scoped rules
  * Exclude irrelevant CLAUDE.md files
* Reduce what Claude reads
  * Block reads of generated and vendored code
  * Reduce file reads with code intelligence
* Scope worktrees and file access
  * Check out only the directories you need
  * Grant access across packages or repositories
* Add per-directory skills
  * Keep skills discoverable
* Centralize conventions when layering stops scaling
  * Recommend the right plugin at session start
* Put it together
* Scope and plan changes that span packages
* Next steps

## Troubleshooting

### [troubleshoot-install](https://code.claude.com/docs/en/troubleshoot-install.md)

* Find your error
* Run diagnostic checks
  * Check network connectivity
  * Verify your PATH
  * Check for conflicting installations
  * Check directory permissions
  * Verify the binary works
* Common installation issues
  * Install script returns HTML instead of a shell script
  * `command not found: claude` after installation
  * `permission denied` when adding to your PATH
  * `curl: (56) Failure writing output to destination`
  * Homebrew cask unavailable or outdated
  * `Cask 'claude-code@latest' is not installed`
  * TLS or SSL connection errors
  * `Failed to fetch version from downloads.claude.ai`
  * The connection dropped while downloading the update
  * Release verification failed for Claude Code
  * `Auto-update failed · Run claude doctor` in the session footer
  * Wrong install command on Windows
  * `running scripts is disabled on this system`
  * `The process cannot access the file` during Windows install
  * `claude.exe` missing after an update on Windows
  * Install killed on low-memory Linux servers
  * Installation was killed before it could finish
  * Install hangs in Docker
  * `Raw mode is not supported` during install
  * `claude update` or `claude doctor` hangs
  * Claude Desktop overrides the `claude` command on Windows
  * Claude Code on Windows requires either Git for Windows (for bash) or PowerShell
  * Claude Code does not support 32-bit Windows
  * Linux musl or glibc binary mismatch
  * `Illegal instruction`
  * `dyld: cannot load` on macOS
  * `Bus error` while a session is running
  * `Exec format error` on WSL1
  * npm install errors in WSL
  * Permission errors during installation
  * Native binary not found after npm install
    * Fix an npm 12 install
  * npm `ENOTEMPTY` error during update or reinstall
* Login and authentication
  * Reset your login
  * OAuth error: Invalid code
  * 403 Forbidden after login
  * Claude Code access has not been granted for this account
  * This organization has been disabled with an active subscription
  * OAuth login fails in WSL2, SSH, or containers
  * Not logged in or token expired
    * Login fails on a network home directory
  * Bedrock, Agent Platform, or Foundry credentials not loading
* Still stuck

### [troubleshooting](https://code.claude.com/docs/en/troubleshooting.md)

* Performance and stability
  * High CPU or memory usage
  * Large tables are cut off in the terminal
  * Auto-compaction stops with a thrashing error
  * Command hangs or freezes
  * Garbled or corrupted text in an editor's integrated terminal
  * Stray `>0q` at startup or `>4m` after exit
  * Mouse wheel scrolls one line at a time in fullscreen rendering
  * Clipboard commands such as `pbcopy` fail inside the sandbox
  * Copied text doesn't reach your local clipboard over SSH
  * Search and discovery issues
  * Slow or incomplete search results on WSL
* Get more help

### [debug-your-config](https://code.claude.com/docs/en/debug-your-config.md)

* See what loaded into context
* Check resolved settings
* Check MCP servers
* Check hooks
* Test against a clean configuration
* Check common causes
* Related resources

### [errors](https://code.claude.com/docs/en/errors.md)

* Find your error
* Automatic retries
  * What you see while Claude Code retries or waits
    * Waiting for API response
    * The waiting banner comes and goes behind a gateway
  * Tune retry behavior
    * How long a non-streaming attempt waits
* Server errors
  * API Error: 500 Internal server error
  * API Error: Repeated 529 Overloaded errors
  * Request timed out
  * No response from API
  * The response above may be incomplete
  * Auto mode cannot determine the safety of an action
  * The server returned no safety verdict
    * `a hook changed this call's input after auto mode reviewed it`
  * Was not reviewed and did not run
  * Agent terminated early due to an API error
* Usage limits
  * You've hit your session limit
  * Usage credits required for 1M context
  * The prompt to confirm went unanswered
  * Server is temporarily limiting requests
  * Request rejected (429)
  * You've hit your monthly spend limit
  * Spend limit reached
  * Credit balance is too low
  * Could not update your spend limit
* Authentication errors
  * Not logged in
  * Could not resolve authentication method
  * Invalid API key
  * Your apiKeyHelper script is failing
  * Claude Code didn't send your claude.ai login
  * Invalid request header value
  * This organization has been disabled
  * Your organization has disabled API key authentication
  * Your organization has disabled Claude subscription access
  * Scheduled tasks are off for your organization
  * Remote Control requires the Anthropic API
  * Remote Control couldn't refresh your login
  * Remote Control could not renew this computer's connection
  * Remote Control stopped because the signed-in account changed
  * Remote Control stopped because the app running the session signed out or switched accounts
  * OAuth token revoked or expired
  * API Error: 401 Invalid authentication credentials
  * Login expired
  * Could not refresh your login because another Claude Code process is refreshing it
  * Could not refresh your login: the disk that holds the Claude Code config directory is full
  * Couldn't save your login
  * Sign in again to take your previous account or API key off the config file
  * Your account or API key may still be in the config file
  * Couldn't start the local listener that receives the browser sign-in
  * Claude login not accepted
  * Artifacts need a claude.ai login
  * Administrator policy requires a Cloud gateway sign-in
  * Your account is on hold
  * Anthropic profile login expired
  * OAuth scope requirement
  * claude.ai rejected the session token
  * MCP server needs you to sign in again
  * Couldn't read the stored credentials for MCP server
  * MCP server URL is missing or not a valid URL
  * Issuer mismatch in authorization response
  * Stopped an OAuth request
  * Refusing to send credentials to non-https token endpoint
  * AWS credentials expired or invalid
  * AWS authentication failed
  * Google Cloud credentials expired or invalid
  * Google Cloud authentication failed
  * Microsoft Foundry authentication failed
  * Could not load AWS or Google Cloud credentials
  * AWS default-chain credential resolve timed out
  * Bedrock setup verification timed out waiting for AWS
  * Cloud gateway session expired
  * Sign-in timed out while waiting for you to continue
  * Gateway refused the request
* Network and connection errors
  * Unable to connect to API
  * Unable to connect to Anthropic services
  * Socket is closed
  * API returned an empty or malformed response
  * Streaming response ended before any complete data was received
  * Bedrock streaming response has an unexpected content-type
  * SSL certificate errors
  * Host not allowed in a cloud session
  * The proxy refused the connection
  * The cloud environments service returned an empty or unexpected response
  * Failed to fetch session from Sessions API
  * Couldn't load the history of cloud session
  * Couldn't reconnect to your Remote Control session
  * Sessions ended while this machine was offline
  * Couldn't share the transcript
  * Couldn't send feedback
  * Feedback payload too large
  * MCP server connection timed out during a sleep or clock change
* Request errors
  * Prompt is too long
  * Context exceeds the token limit
  * Request too large
  * Image was too large
  * Unable to resize image
  * Request rejected as unprocessable by the model
  * PDF errors
  * Extra inputs are not permitted
  * Tool input schema is invalid
  * MCP tool name over 128 characters
  * tool\_use.name over 200 characters
  * There's an issue with the selected model
  * Model is not a recognized model id
  * Model not found
  * Couldn't confirm model with the API
  * API error when checking the picked model
  * Claude Opus is not available with the Claude Pro plan
  * Claude Code does not support this model
  * Model is restricted by your organization's settings
  * Can't switch to the default model
  * Model switch was blocked by a PreModelSwitch hook
  * Couldn't save it as your default
  * Advisor is less capable than the current main model
  * thinking.type.enabled is not supported for this model
  * Effort isn't available with thinking turned off
  * Thinking budget exceeds output limit
  * Response exceeded the output token maximum
  * Tool use or thinking block mismatch
  * Invalid data in redacted\_thinking block
  * Unsupported tool content removed
  * role 'system' must precede an 'assistant' message
  * Invalid encrypted\_content in search\_result block
  * Usage Policy refusal
  * Safety measures flagged a cybersecurity topic
  * Safeguards flagged a request for Claude's reasoning
  * Output blocked by content filtering policy
* Command-line errors
  * Conflict between `--bg` and `--print`
  * Couldn't tell whether `--bg` is a flag or text
  * Conflict between a system prompt flag and its file form
  * Invalid `--agents` configuration
  * Cloud sessions cannot be created from a `--restricted` session
  * Cloud sessions are disabled by your organization's policy
  * Cloud sessions use your claude.ai login
  * Couldn't verify your organization's policy for cloud sessions
  * Nothing was stashed because a folder replaced a tracked file
  * The `--json-schema` value is not a valid JSON Schema
  * Settings file exceeds the 2MiB limit
  * Configuration error in \~/.claude.json
  * Claude configuration file was empty and no backup holds anything
  * The current directory no longer exists
  * Temp directory refused or cannot be created
  * Claude Code could not save because the disk is full
  * Directory couldn't be resolved to a real location
  * Workspace not trusted when starting Remote Control
  * Workspace not trusted when running claude ultrareview
  * Remote Control did not start because a question got no answer
  * Not carried over to the sessions Remote Control starts
  * Remote Control did not start because of the `--settings` file
  * The settings file has changed since Remote Control started
  * `--sandbox` or `--no-sandbox` is not supported by claude remote-control
  * claude import is not yet available in this build
  * Could not read Claude Code config
  * Could not import a server from Claude Desktop
  * Cannot add MCP server to the managed scope
  * Cannot add MCP server when managed settings allow only plugin servers
  * Can't read .mcp.json
  * MCP server was not saved or removed
  * MCP server may not have been saved or removed
  * Server is Anthropic-hosted and doesn't support local OAuth
  * Server rejected the Authorization header minted by the configured headersHelper
  * MCP server rejected the elicitation capability
  * MCP permission prompt tool not found
  * OAuth callback port is already in use
  * No available ports for OAuth redirect
  * /security-review fails without origin/HEAD
  * No shell command in a skill or command was run
  * Skill, command, or hook over the 4,000,000-character limit
  * Input must be provided when using `--print`
  * Claude Code can't read the keyboard here
  * Input contained only whitespace
  * stream-json input carried over 256M characters with no newline
  * Unknown command
  * Diff is too large for ultrareview
  * Could not find merge-base with the base branch
  * Your checkout has no branches
  * No GitHub account is connected to your Claude account
  * Your connected GitHub account can't see the repository
  * The GitHub App preflight failed transiently
  * The repository upload can't follow a git setting
  * GitHub isn't connected to your Claude account
  * A GitHub organization policy is blocking Claude
  * Single sign-on authorization needed
  * Failed to resume the conversation
  * No conversation found with the session ID
  * Windows reported an error (EBADF) when Claude Code read this session's transcript file
  * Cannot switch renderers in this session
  * Can't restart while work is running or Remote Control is connected
  * Claude Code couldn't restart
  * Couldn't open Claude Desktop
  * /terminal-setup left your Zed keymap unchanged
  * Skill usage reports are not available on this connection
  * Custom output styles can't be selected over Remote Control
  * Output styles are saved to local settings which this session doesn't load
  * /recap only runs when you ask for it yourself
  * /feedback is disabled by your organization's policy
* Plugin errors
  * plugin eval is currently in early access
  * Marketplace is registered from an untrusted source
  * Marketplace name is another spelling of a reserved name
  * Claude Code refuses the marketplace name
  * Marketplace is already added from a different source
  * Plugin command references user\_config in a shell command
  * Plugin archive integrity check failed
  * Path escapes plugin directory
  * Server file path not read
  * Plugin not loaded: its manifest was not read
  * Path could not be checked
  * Marketplace entry path does not stay inside the marketplace directory
  * Failed to load marketplace configuration
  * Plugin is required by your organization
  * Plugin was not uninstalled
  * Skipping connection (recent failure cached; retries automatically in 15 min, or edit the plugin config to retry now)
* Tool errors
  * No such tool available
  * MCP server connection closed before the tool call was answered
  * MCP server is disabled
  * MCP tool call timed out with the server's question unanswered
  * Permission prompt tool returned an invalid result
  * Agent would be spawned with zero tools
  * File is covered by a Read deny rule
  * Setting blocks writes outside the working directories
  * Writes to Claude Code settings files are blocked
  * Path cannot contain null bytes
  * Command contains an invisible character
  * Approved command was not run after Claude Code restarted
  * File is too large to read as an image
  * subagent\_type is required
  * Memory index is over its read limit
  * pkill pattern matches the Claude Code process
  * Failed to write to a teammate's inbox
  * Teammate's agent definition was not restored
  * Only a teammate can approve a shutdown request
  * A command-line deny rule cannot be handed to a teammate intact
  * Message too large for cross-session delivery
  * Too many messages to this session just now
  * Cross-session message was dropped at the recipient session's inbox
  * Refusing to send a cross-session message
  * Refusing to read, write, or search a path
  * The search failed, so this is not a "no matches" result
  * Task output swap refused
  * Disk full or disk quota used up
  * git is not installed on this Mac
  * File is not valid UTF-8
  * Refusing to apply edits: a hook is configured for file edits in this session
  * The source file is not valid UTF-8 text
  * Not published: that file is on a network share
  * Not published: Claude sent the same content again after a newer version of the artifact turned it away
  * Reading a local file from outside the connected folders in a Cowork session
  * WebFetch cannot fetch localhost
  * WebFetch domain safety check failed
* Background session errors
  * Commands refused in a background session
  * Write or command blocked because the path cannot be safely resolved
  * Write or command blocked because the path names a network location
  * Command blocked by the worktree isolation checks
  * This session has no saved transcript
  * This session is running in another terminal
  * This session's saved conversation is no longer on disk
  * Worktree has commits that are not pushed anywhere
  * Terminal host process died
  * Session isn't responding
  * Session was stopped while the respawn was in flight
  * Session agent no longer available
  * This session restarted after its next /loop wakeup was due
  * No LLM gateway: a gateway set in your shell isn't passed to a session opened from another folder
  * CLAUDE\_CODE\_PROCESS\_WRAPPER launcher errors
  * EUNKNOWN when starting a background session
  * EACCES when starting a background session
  * Background service exited before it became reachable
  * Working directory no longer exists when starting a background session
  * This forked session could not be started
  * Workspace not trusted when dispatching a background session
* Wrapper and IDE errors
  * Subprocess initialization did not complete within 60000ms
  * Claude Code process exited with code N
  * Could not locate the Claude CLI on PATH
  * The Claude Code program for this computer could not be found
  * The connection to Claude Code ended before this message completed
* Rewind warnings and errors
  * Restored the code, but skipped files
  * No files were restored
* Session saving warnings
  * Transcript writes are failing
  * Transcript saving is off because CLAUDE\_CODE\_SKIP\_PROMPT\_HISTORY is set
  * Transcript saving is off because of an inherited CLAUDE\_CODE\_CHILD\_SESSION marker
* Configuration warnings
  * Claude Code exited after an unrecoverable interface error
  * Agent descriptions are over the 15.0k-token limit
  * Hook needs quotes around a path with a space
  * Instruction file not loaded
  * A skill, command, or workflow wasn't loaded because its name is reserved
  * Skill or command name refused
  * Workspace has not been trusted
  * Working directory is a network path
  * Remote managed settings failed to load
  * Claude Code couldn't load your organization's settings
  * Managed settings were not approved
  * Managed settings need your approval
  * Managed settings block the default model
  * Managed settings don't allow this API provider
  * MCP server is blocked by enterprise managed policy
  * MCP server name is reserved
  * Managed settings document could not be parsed
  * Unable to read managed policy settings
  * Managed settings contain invalid entries, including PreToolUse/PermissionRequest hooks that are NOT loaded
  * otelHeadersHelper failed
  * headersHelper not run
  * Malformed Tool(content) rule
  * Matches no tool · check for typos
  * Is not matched by file permission checks
  * Has a wildcard before the rest of the command
  * Denying Bash also turns off the PowerShell tool
  * crossSessionInbound must be one of accept, hold, refuse
  * ANTHROPIC\_FOUNDRY\_RESOURCE must be a Foundry resource name
  * The 200K limit isn't enforced
  * Unrecognized model ID on a request
  * Sandbox allow entries are ignored under a managed lock
  * Sandbox mask files left behind at write-deny paths
  * Two Claude Code config files exist
  * Make this change again later: \~/.claude.json could not be updated
* Responses seem lower quality than usual
* Report an error

## Plugins

### [overview](https://code.claude.com/docs/en/plugins/overview.md)

* Understand what a plugin is
  * Decide whether you need a plugin
  * What an enabled plugin adds to your sessions
* Get plugins from a marketplace
  * Make an installed plugin available in your session
* Tell Anthropic's marketplaces from third-party ones
* Understand install scopes
* Next steps

## Use plugins

### [install](https://code.claude.com/docs/en/plugins/install.md)

* Install a plugin
  * Choose an install scope
  * JetBrains, non-interactive runs, and the Agent SDK
  * Plugins from your claude.ai account
  * Install from your shell
* Add a marketplace
  * Add a marketplace and install in one command
    * Add and install in a session
    * Add and install from your shell
  * Add a private marketplace
  * Add a marketplace from claude.ai
* Manage installed plugins
  * Manage plugins synced from claude.ai
  * Uninstall a plugin the project enables
  * See what an installed plugin adds to your sessions
  * Find plugins you no longer use
  * Plugins with dependencies
  * Manage plugins from your shell
* Keep plugins updated
  * Turn auto-update on or off for a marketplace
  * Update plugins now
  * Auto-update from a private marketplace
* Manage marketplaces
* Next steps

### [anthropic-marketplaces](https://code.claude.com/docs/en/plugins/anthropic-marketplaces.md)

* Anthropic's marketplaces
  * Deprecated `claude-code-plugins` marketplace
* Find plugins in the official marketplace
* Browse and install from Anthropic's marketplaces
  * Add the community marketplace
* Third-party marketplaces
* Next steps

### [code-intelligence](https://code.claude.com/docs/en/plugins/code-intelligence.md)

* Install a code intelligence plugin
* See what Claude gains
  * Read the diagnostics yourself
* Accept or dismiss the recommendation dialog
  * When the recommendation dialog appears
  * Respond to the recommendation dialog
  * Turn recommendations back on
* Troubleshoot code intelligence
* Add a language without an official plugin
* Next steps

### [security](https://code.claude.com/docs/en/plugins/security.md)

* Understand what a plugin can do
* Identify Anthropic's marketplaces by name
  * Official marketplace names
* Review a plugin before you install
  * Remove a plugin you no longer trust
* Recognize when Claude Code refuses or warns
  * Trust warning before you install
  * Untrusted marketplace sources and failed integrity checks
* Enforce plugin controls for your organization
* Find plugins in telemetry
* Next steps

## Create plugins

### [create](https://code.claude.com/docs/en/plugins/create.md)

* Decide when to use a plugin
* Create your first plugin
  * Share your plugin
  * Plugin layout
* Develop without a marketplace
  * Load a plugin for one session
    * Load a plugin from a directory or `.zip`
    * Load a folder of plugins
    * Load a plugin from a URL
    * Load plugins from an environment variable
  * Make a plugin load in every session
    * Scaffold the plugin with `claude plugin init`
    * Name the plugin's skills
    * Stop loading the plugin
    * Share the plugin through a repository
* Test and debug
  * A component path isn't found
  * `--plugin-dir` at a marketplace root doesn't load the plugins under `plugins/`
  * The plugin loads but its skills are missing
  * The `userConfig` dialog never appears
  * Check that the plugin changes Claude's behavior
* Convert an existing `.claude/` setup
* Next steps

### [components](https://code.claude.com/docs/en/plugins/components.md)

* Explore the plugin directory
* Add each kind of component
  * Skills
  * Commands
    * Define commands in the manifest
  * Agents
    * Organize agents in subfolders
    * Frontmatter fields in plugin agents
  * Hooks
    * When plugin hooks fire
    * Environment, quoting, and matching MCP tools
  * MCP servers
    * Reach users on claude.ai and Cowork
    * Server names, tool names, and reloads
    * Include a packaged MCPB server
  * LSP servers
  * Executables
  * Themes and output styles
  * Channels
  * Monitors
* Ask the user for configuration values
  * When the configuration dialog appears
* Reference plugin paths and store data
  * Install dependencies into the data directory
* Next steps

### [dependencies](https://code.claude.com/docs/en/plugins/dependencies.md)

* Declare dependencies
  * Declare a dependency with a version constraint
  * Bundle plugins for a team
  * Depend on a plugin from another marketplace
  * Test a plugin and its dependency locally
* Release a plugin that others depend on
  * Create a release tag
  * Constrain a dependency that has a non-git source
* How dependencies behave for your users
  * How a constraint resolves against tags
  * Confirm the resolved version
  * Combine constraints from several plugins
  * Dependencies when your plugin loads from claude.ai
* See also

### [plugin-evals](https://code.claude.com/docs/en/plugin-evals.md)

* Requirements
* How an eval run works
  * What happens in a run
  * How a case is scored
  * The no-plugin baseline
* Create your first eval suite
* Write and refine cases
  * Write a case manually
  * Set run limits and tools in prompt.md
  * Choose and weight graders
    * Choose graders that give a stable signal
  * Score against the no-plugin baseline
  * Use a different eval directory
* Set up fixtures and mocks
  * Seed the workspace or conversation
  * Mock MCP servers
    * Replay agent mock answers
* Run evals
  * Choose what to evaluate
  * Grant tools
  * Command options
  * Run evals in CI
* Read the results
  * HTML report
  * JSON result
* What a run can access
  * Trust the plugin directory
  * How runs are isolated
* Eval suite reference
  * prompt.md frontmatter
  * case.yaml fields
  * Grader frontmatter
    * What a grader can look at
    * Grader types
  * Mock files
    * Regex patterns in expect
* Troubleshooting
  * "plugin eval is currently in early access"
  * "plugin eval is currently unavailable"
  * "is not a trusted plugin directory, and this run cannot stop to ask you about it"
  * "is too old for claude plugin eval"
  * "cannot be evaluated where sessions load it"
  * "No eval cases found"
  * The baseline arm shows no plugin, or delta is zero
  * "Agent type '...' not found" for one of your plugin's agents
  * Everything scores zero although the right files were produced
  * A regex over the trace doesn't match text I can see
  * Tools are denied, MCP tools are missing, or Bash won't run
  * The run exits 1 but the results look fine
  * `--json output path must end in .json`
  * A grader shows passed: false under a run that scored 1.0
  * "ended on an API error and scored 0 without grading"
  * Runs fail with a usage-limit or rate-limit error partway through
  * "mock call budget exceeded"
  * Runs time out or hit the turn cap
* See also

### [publish](https://code.claude.com/docs/en/plugins/publish.md)

* Choose how to distribute
* Prepare your plugin for release
* Share a plugin without a marketplace
  * Ship a plugin with your own tool
* Publish through your own marketplace
  * Add the marketplace file to your repository
  * Control who can install
  * Tell users how to install
  * Ship updates to users
* Submit to Anthropic's directory
  * How a listed plugin reaches Claude Code users
* Ship updates, renames, and removals
  * Release a new version
  * Tag a release
  * Rename or remove a plugin
* Declare dependencies
* Next steps

### [measure](https://code.claude.com/docs/en/plugins/measure.md)

* Measure what a plugin costs
  * Lower the always-on figure
  * Cost shown to users before install
* Check whether a plugin is used
  * Not used recently in `/plugin`
  * Find skills that never run
  * Unused plugins in `/doctor`
  * Usage share in `/usage`
* Measure across a fleet
  * OpenTelemetry events for plugin installs and use
  * Redacted plugin names in your backend
  * Query the Analytics API
* Next steps

### [cli-hints](https://code.claude.com/docs/en/plugins/cli-hints.md)

* Emit the hint
* Hint format
* Check when the prompt appears
* Preview what the user sees
* Next steps

## Mods

### [overview](https://code.claude.com/docs/en/plugins/mods/overview.md)

* What a mod can do
* Get a mod
  * Install or update a mod
  * Try a sample mod
* Decide whether to trust a mod
  * What a mod can reach
  * List what a mod does before you install one
* Turn mods on or off
  * See which mods a session loaded
* How a mod works
  * What a hook can do with an event
  * Where mods run
* Control mods for your organization
* Compare mods, settings hooks, skills, and MCP servers
* Mods built into Claude Code
  * Read the source of built-in mods
* Next steps

### [create](https://code.claude.com/docs/en/plugins/mods/create.md)

* Ask Claude for a mod
  * Use the mod in other sessions
  * Sessions that load a mod without asking
  * Sessions where a mod Claude writes can't load
* Write a mod yourself
  * How the example mod works
* Keep working on a mod
  * Change a mod with Claude
  * Get type definitions for your version
  * Check what Claude Code reads from your mod
  * Test the mod
* Share your mod
* Next steps

### [reference](https://code.claude.com/docs/en/plugins/mods/reference.md)

* Files
* The hook function
* Events
  * Tools
    * Agent and organization fields on `tool.check`
    * The `e.isReadOnly` field on `tool.check`
  * Prompts and what Claude reads
    * Source and frontmatter fields on `skill.prompt`
    * Send a changed system prompt section or tool description with `breakPromptCache`
  * Commands and configuration
    * `e.layers` and `e.source` on `settings.read`
  * Turns
  * Session
  * Subagents
  * Interface
  * Other mods
  * Telemetry
  * Settings hook events
  * Mods API calls
    * Fields on Claude Code's own `http.fetch` requests
* Mods API methods
* Render sites
* Elements
  * `Box` border styles
  * `Box` spacing steps
  * `Text` typography props
    * Replace `bold` with `weight`
* Limits
* Settings and environment variables
* Commands

### Mods > Build

#### [interface](https://code.claude.com/docs/en/plugins/mods/interface.md)

* Build a pane with tabs
* Pick where to draw
  * Change what Claude Code already draws
  * Open a pane at the right time
    * Hold toasts behind a dialog
    * When a pane waits for a wider terminal
  * Draw in the VS Code extension
  * Place a row in the transcript
  * Put a backdrop behind the conversation
  * Change the colors of the Desktop app
    * Ask Claude for a colors mod
    * Write a colors mod yourself
  * Fix missing mod colors in the Desktop app
  * Remove mod colors from the Desktop app
* Build a tree from elements
  * `Link` in the Desktop app and VS Code
  * When a `Client` fails
  * Draw a grid of colored cells
* Respond to presses and typing
  * Which controls need a `key`
  * Keyboard focus and hotkeys
    * How a pane gets keyboard focus
    * What each key does
    * Set a hotkey and the first focus
    * When the user collapses the band
  * Take typed input and draw a row for each item
* Redraw a site
  * When Claude Code redraws without being asked
  * Redraw when your data changes
  * Redraw on a timer
  * How often a site can redraw
* Keep state
  * Keep a value in `$.state`
    * Declare the values
    * Point the manifest at the declaration
    * Define, read, and write a value
    * Change `hello-tabs` to use `$.state`
  * Load a saved value again after `/clear`
  * Save from more than one session
* Next steps

#### [gallery](https://code.claude.com/docs/en/plugins/mods/gallery.md)

* Try a sample
* Pick an element
* Show text
  * `Text`
  * `Markdown`
  * `Link`
* Show code and changes
  * `Code`
  * `Code` as a diff
* Arrange elements
  * `Box`
* Take input
  * `Button`
  * `Input`
  * `Select`
* Draw pictures
  * `Raster`
  * `Svg`
  * `Image` and `Client`
    * Draw an `Image` inside tmux
* See where a mod can draw
* Next steps

#### [events](https://code.claude.com/docs/en/plugins/mods/events.md)

* How a hook handles an event
  * Observe an event
  * Rewrite an event
  * Answer an event
  * Filter which events a hook handles
    * Hook other mods' drawings and controls
* Hook what Claude is doing
  * Guard or change a tool call
    * Hold a tool call until the user decides
    * Approve or refuse a tool call before the user is asked
    * Check whether a tool call is read-only
    * Filter a `tool.check` hook by whether the call is read-only
  * Rewrite or add to a prompt
  * Follow a turn
    * Send a request to a different model
  * Change or refuse a settings read
    * What a `settings.read` hook receives
    * Tell Claude Code's own read from a mod's read
    * What a `settings.read` hook can return
    * What `next(e)` gives a `settings.read` hook
    * Change one setting from a `settings.read` hook
  * Handle the settings hook events
* Run alongside other mods
  * The order mods run in
    * Where settings hooks run in the order
  * Handle a hook that fails
* Next steps

#### [api](https://code.claude.com/docs/en/plugins/mods/api.md)

* Add a command or a tool
  * Add a command
  * Add a tool
* Call a model
  * Send one prompt
  * Use prompt caching
    * Choose between `prompt` and `system`
    * Check for cache hits
  * What a `model.complete` hook receives
* Run work in the background
  * Show something without starting a turn
  * Start a turn from a background job
  * Stop background work
  * Calls and background work after the user interrupts a turn
    * Retry a refused or dropped call
    * What refused calls return
    * Work your mod started before the interruption
  * Calls refused in `claude -p` runs and Agent SDK sessions
  * A `claude -p` run with your mod never exits
* Send and receive messages between sessions
* Reach files, processes, and the network
  * Read all settings, one source, or one key
* Next steps

### Mods > Test and troubleshoot

#### [test](https://code.claude.com/docs/en/plugins/mods/test.md)

* Write a test
  * Stub what Claude Code would answer
  * Follow the test kit's rules
  * Look up what a stub returns
  * Check a result with `expect`
* Test a timer
* Test a drawing
  * Test a drawing after `/clear`
* Test a policy mod
* Next steps

#### [troubleshoot](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md)

* Find out why a mod does nothing
* Check whether mods can load
* The mod doesn't load
  * Your version is too old
  * The `mods active` line doesn't name the mod
  * A `claude -p` run prints `hooks module not loaded`
  * Refusal messages
  * Messages from the built-in guard
  * `validate` passes and lists no `hooks` line
  * `hooks module did not load`
  * `options do not fit plugin.json userConfig`
  * `code nested too deep to scan: more than 2000 scopes`
  * `the engine ran out of stack linking the file and its imports`
  * `the parser stopped` or `the engine ran out of stack loading the file`
  * No mod loads in a directory you opened for the first time
  * No installed plugin loads at all
  * Claude Code stops asking to enable hot reloading
* A hook is skipped or a mod is unloaded
  * `hook skipped`
  * `no command.run hook answered it`
  * `it crashed the hooks worker`
  * `its session.start ran again in a fresh copy`
  * `This mod's change didn't load` or `the earlier version is no longer running`
  * `reload failed`
  * `$.agent.register refused: the hooks module that made the call is no longer loaded`
  * `mods that run in the hooks worker are off for this session`
* A tool call is denied
  * `a hook changed this call's input after the model wrote it`
  * A message about the deny rules in your settings
* A toast appears after a turn is stopped
  * `Stopped: type a message to continue; a mod cannot resume work after Stop`
* A drawing doesn't appear or respond
  * Another mod's band shows and yours doesn't
  * A pane or band is empty or shows Claude Code's usual content
  * A `ui.render` line says `refused`
  * `needs a key`, `is drawn twice`, or `key each once`
  * A `ui.render` line says `threw while drawn`
  * `the module failed without a message`
  * `$.ui.open` runs and no pane appears
  * A toast doesn't appear
  * The band shows `plugin panel hidden`
  * Hotkeys do nothing
  * A drawing works in the terminal and not in the Desktop app or VS Code
* An edit or a value is lost
  * Your edits don't take effect
  * A value resets when the module reloads
  * A value resets after `/clear`, `/resume`, or `/branch`
  * A key your `settings.read` hook returns doesn't take effect
  * `the answer for <key> is no value the key can hold`
  * `settings.read: refused to the engine`
* Read the debug log
* Next steps

## Run a marketplace

### [create-marketplace](https://code.claude.com/docs/en/plugins/create-marketplace.md)

* Create a marketplace
* Add plugin entries
* Rules for plugin entries
  * Write relative paths from the marketplace root
  * Keep the entry name and the manifest name the same
  * Keep unused submodules out of the clone
* Choose a plugin source
* Validate and test
  * Problems that validation reports
  * Problems that surface when you add or install
  * Test an edit to a plugin
  * Remove the marketplace to start over
* Host your marketplace
* Next steps

### [host-marketplace](https://code.claude.com/docs/en/plugins/host-marketplace.md)

* Host your marketplace
  * Register the marketplace for everyone in a repository
  * Avoid relative-path entries in a URL-hosted marketplace
  * Stay within the download limits for hosted files
  * Edit plugins in place on a shared directory
  * Keep plugin files out of Git LFS
  * Share files within a marketplace with symlinks
* Distribute through organization settings
* Grant access to a private marketplace
  * Serve users who have no git-host account
  * What background auto-update does with credentials
* Roll out to a whole company
* Keep users up to date
  * Turn on auto-update
  * Release a new version
  * Hold users on one version
  * Change the command of a command source
* Run release channels
* Rename or remove a plugin
  * Migrate users with a renames map
  * Uninstall removed plugins from users' machines
* Authenticate archive downloads
  * Add a headersHelper to a plugin entry
  * Write the headersHelper command
  * When Claude Code skips a headersHelper command or drops its output
  * How users accept a headersHelper command
  * Installs and updates that refuse a command instead of asking
  * When a marketplace `url` source's command runs
* Depend on and recommend other plugins
* Work around what a marketplace can't do
* Next steps

### [relevance](https://code.claude.com/docs/en/plugins/relevance.md)

* Understand how plugin relevance works
* Add relevance to a plugin entry
* Field reference
  * `relevance`
  * `relevance.signals`
    * Working directory matching
    * Command name matching
    * Manifest dependency matching
* Validate your marketplace
* Enable suggestions in managed settings
* Preview what the user sees
* See also

## Manage plugins for your organization

### [org](https://code.claude.com/docs/en/plugins/org.md)

* Pre-install and require plugins
  * Choose a delivery mechanism
    * Which managed source applies on a machine
  * Require a marketplace and its plugins
  * Require plugins per repository
  * When each surface applies the plugin keys
  * Confirm the rollout
* Seed containers and CI
* Restrict what users can install
  * Control matrix
    * Aliases for the marketplace keys
  * Allowlist with `strictKnownMarketplaces`
    * How entries match
    * Keep skills-directory plugins loading
    * Marketplaces hosted on claude.ai
    * Lock every source out
  * Blocklist with `blockedMarketplaces`
  * Allow the official marketplace and your own
* Set update policy
  * Turn auto-update on or off per marketplace
  * Turn updates off for the whole fleet
  * Assign release channels to user groups
* Recommend plugins
* Audit and review
  * OpenTelemetry events
  * Analytics API
* Plan for what managed settings can't enforce
* Troubleshoot policy
* Next steps

### [admin](https://code.claude.com/docs/en/plugins/mods/admin.md)

* Stop user-installed mods from loading
* Know what happens by default
  * Know which controls still apply
  * Know which hooks of a user's mod don't run
* Decide whether to leave mods on
  * Review what a mod can do
* Choose how much to allow
  * Allow only your organization's mods
  * Apply your plugin controls to mods
  * Set options on the built-in guard
* Run your organization's own mods
  * Install your organization's mods and set the order
  * Enforce a policy with a mod of your own
    * Refuse mods when your check fails
* Next steps

## Troubleshooting

### [troubleshooting](https://code.claude.com/docs/en/plugins/troubleshooting.md)

* Find where `/plugin` runs
  * `/plugin isn't available in this environment`
  * `zsh: no such file or directory: /plugin`
  * `The term '/plugin' is not recognized as the name of a cmdlet`
  * `claude: command not found` after `claude plugin ...`
  * `Unknown command` and command spellings that don't exist
* Add a marketplace
  * `Marketplace "claude-plugins-official" not found`
  * `Marketplace "<name>" not found`
  * `Invalid marketplace source format`
  * `'<source>' is not a valid GitHub owner/repo shorthand`
  * `Invalid git URL`
  * `Path does not exist: <path>`
  * `Marketplace file not found at <path>/.claude-plugin/marketplace.json`
  * `Cannot add marketplace "<name>": Claude Code cannot install plugins from a marketplace with this name`
  * `Cannot add marketplace "<name>": Claude Code reserves this name and cannot register a marketplace under it`
  * `SSH authentication failed` or `HTTPS authentication failed`
  * `SSH host key is not in your known_hosts file`
  * `Command 'git' not found or is in an unsafe location`
  * `Git clone timed out after 120s`
  * Marketplace updates keep failing offline
  * Marketplace add fails on a GitHub Enterprise Server host
* Install a plugin
  * `Plugin "<name>" not found in marketplace "<marketplace>"`
    * `not found in marketplace` with a refresh hint
    * `not found in marketplace` with no hint
  * `Plugin "<name>" not found in any marketplace`
  * `Plugin '<name>@<marketplace>' is already installed globally`
  * `"<plugin>" was not installed: it would share its folder with "<other>"`
  * `This plugin uses a source type your Claude Code version does not support`
  * `Plugin archive integrity check failed`
  * `An npm plugin source must name a registry package`
  * `Marketplace "<name>" is registered from an untrusted source`
  * `Marketplace "<name>" is added but ignored`
  * `Plugin <name> has a corrupt manifest file` or `has an invalid manifest file`
  * `Plugin directory not found at path: <path>`
  * `No plugins available` or `No marketplaces configured`
  * `Marketplace "<name>" is already added from a different source`
  * `Cannot add marketplace "<name>": its source doesn't match its extraKnownMarketplaces entry in user or managed settings`
  * `Failed to install: <plugin> (<reason>)`
  * `Could not move the new copy of this plugin version into <path>`
  * Dependency errors
* Plugin installed but not working
  * Plugin doesn't appear or its skills don't show up
  * `Run /reload-plugins to apply.`
  * `The packages it lists are not installed` or `were not installed, because ...`
  * `Plugin "<name>" not cached at <path>`
  * `installed_plugins.json holds a record under "<id>" that this version of Claude Code cannot read`
  * `installed_plugins.json could not be read and was rebuilt`
  * `install records under names that no version of Claude Code can use were removed from installed_plugins.json`
  * `does not load (...), so Claude Code ignores the whole file`
  * `Disabled in ~/.claude/settings.json but still loads`
  * `Plugin "<name>" is enabled in project settings but isn't installed here`
  * A plugin stays installed after `plugin uninstall` on Windows
  * A plugin installed from a git repository shows version `unknown`
  * `Failed to load hooks from <path>` and hooks that don't fire
    * Hooks fail to load
    * `hook error` notices in the transcript
    * A plugin hook blocks a tool call or prompt
    * Hook loads but never fires
  * `Plugin directory does not exist: <path>`
  * `Invalid MCP server config for "<server>"` and MCP servers that don't start
    * `Invalid MCP server config for "<server>": <error>`
    * `Bundled MCP server "<name>" was not started: it needs configuration`
    * Server is configured but never connects
    * Server works with `--plugin-dir` but fails after install
  * Language server doesn't start, uses too much memory, or reports wrong diagnostics
    * Language server doesn't start
    * Language server uses too much memory
    * False positive diagnostics in a monorepo
* Build a plugin
  * `commands path not found: <path>`
  * `--plugin-dir` at a marketplace root doesn't load the plugins under `plugins/`
  * Files the plugin references outside its directory aren't found
  * `${CLAUDE_PLUGIN_ROOT}` shows forward slashes on Windows
  * Plugin loads but its skills are missing
  * Skill loads but Claude never invokes the skill
  * `<directory> is not a plugin or skill folder` from `claude plugin eval init`
  * The `userConfig` dialog never appears
  * `claude plugin validate` reports errors
  * `Plugin <name> has conflicting manifests`
  * `Warning: No commands found in plugin <name> custom directory`
* Host a marketplace
  * Plugins with relative paths fail in URL-based marketplaces
  * A root plugin's files from a git submodule are missing after install
  * Marketplace validation errors
* Blocked by your organization
  * `Marketplace source '<source>' is blocked by enterprise policy`
  * `Marketplace "<name>" is not in the allowed marketplace list`
  * `Plugin "<name>" is blocked by your organization's policy and cannot be installed`
  * `--plugin-dir is disabled by your organization's managed settings (disableSideloadFlags)`
  * `Plugins from ~/.claude/skills/ are blocked by your organization's managed settings`
  * `Command-sourced plugins are disabled by your organization's managed settings`
  * `Marketplace '<name>' is seed-managed`
* Next steps

### [loading](https://code.claude.com/docs/en/plugins/loading.md)

* Check which stage a plugin reached
  * Plugins and marketplaces that aren't on disk at session start
* Find where a plugin came from
  * Entry name and manifest name
  * Plugins shared through a repository
    * Trust check and component limits for repository plugins
    * Check why a repository plugin didn't load
  * Skills-directory plugins blocked by managed settings
  * Plugins synced from claude.ai
    * Sync timing in cloud Cowork sessions
    * Sync timing in terminal sessions
    * Sign-in requirements for terminal sync
    * Control which synced plugins load
* Find where a plugin is enabled
  * Disabled in user settings but still loads
  * Enabled in an `--add-dir` directory but not loaded
  * Enabled in project settings but not installed
* Find plugins on disk
  * In-place and copied plugins
  * Paths that escape the plugin directory
  * Cleanup of previous versions
  * Node.js package dependencies
    * When the dependency install runs
    * Limits on the dependency install
    * When the dependency install fails or is skipped
* Versions and updates
  * How Claude Code computes the version
  * When Claude Code refreshes a marketplace before an install
  * When auto-update runs
    * Which marketplaces and plugins auto-update
  * When a command source re-runs
* Name conflicts
  * Hooks when two enabled plugins share a name
  * Keep a session-only plugin from loading
* Next steps

## Reference

### [manifest-reference](https://code.claude.com/docs/en/plugins/manifest-reference.md)

* Manifest file
  * Unrecognized fields
  * Validate the manifest
* Fields
  * `name`
  * `displayName`
  * `version`
  * `metadata`
  * Directory listing fields
  * `defaultEnabled`
  * `dependencies`
* Component path forms
  * Path-only fields
  * `commands`
  * `hooks`
  * `mcpServers`
  * `lspServers`
  * `monitors`
* Path rules
  * Containment and existence
  * How each key combines with its default location
* User configuration
  * Limit a field to fixed options
  * Where values are stored
  * Reference a saved value
  * Fields that run through a shell
* Channels
* Environment variables
  * Where each variable resolves
  * Quoting and path separators
* Standard layout
* Marketplace entries and the manifest
  * How entry fields combine with `plugin.json`
  * Metadata precedence
* Next steps

### [marketplace-reference](https://code.claude.com/docs/en/plugins/marketplace-reference.md)

* Marketplace file
  * Reserved names
* Top-level fields
* Plugin entries
  * How an entry combines with plugin.json
    * Hooks in an entry
    * Display fields
  * Strict mode
* Plugin sources
  * Relative path plugin source
    * Git submodules in the marketplace repository
    * Bare names under pluginRoot
  * github plugin source
  * url plugin source
  * git-subdir plugin source
  * npm plugin source
  * archive plugin source
  * command plugin source
    * What the command must do
    * Output that fails the install or update
    * Copy mode and link mode
* Marketplace sources
  * Fields by type
  * Source values valid only in policy lists
  * Source objects in settings
* Validation messages
  * Invalid input on a source
  * Failures that validation doesn't catch
* Next steps

### [cli-reference](https://code.claude.com/docs/en/plugins/cli-reference.md)

* claude plugin commands
  * plugin init
  * plugin install
    * JSON result format
    * JSON result for marketplace commands
    * Accept a displayed install command
  * plugin uninstall
    * What an uninstall deletes and keeps
  * plugin enable
  * plugin disable
  * plugin update
    * Which scope the command updates
    * Update by bare name
    * Retry an unfinished dependency install
  * plugin list
    * JSON output
  * plugin details
  * plugin configure
  * plugin prune
  * plugin eval
  * plugin eval init
  * plugin tag
  * plugin test
  * plugin validate
    * Validate a directory
    * Validate a manifest file
    * Output and exit codes
    * Advice on the README
* claude plugin marketplace commands
  * plugin marketplace add
  * plugin marketplace list
  * plugin marketplace remove
  * plugin marketplace update
* /plugin in a session
* /reload-plugins
  * Reload summary
  * Reloads that change MCP tools
  * Sessions without an interactive terminal
* Flags that load a plugin for one session
* Next steps

## Setup and access

### [admin-setup](https://code.claude.com/docs/en/admin-setup.md)

* Choose your API provider
* Decide how settings reach devices
  * WSL sessions in Claude Code Desktop
* Decide what to enforce
  * Connected GitHub accounts
* Set up usage visibility
* Review data handling
* Verify and onboard
* Next steps

### [setup](https://code.claude.com/docs/en/setup.md)

* System requirements
  * Additional dependencies
* Install Claude Code
  * Set up on Windows
    * Install on native Windows
    * Install in WSL
  * Alpine Linux and musl-based distributions
* Verify your installation
* Authenticate
* Update Claude Code
  * Auto-updates
  * Configure release channel
  * Pin a minimum version
    * Set version limits for your organization
  * Disable auto-updates
  * Update manually
* Advanced installation options
  * Install a specific version
  * Install with Linux package managers
  * Install with npm
  * Install on network storage
  * Binary integrity and code signing
    * Verify the manifest signature
    * Platform code signatures
* Uninstall Claude Code
  * Uninstall a native installation
  * Uninstall with Homebrew
  * Uninstall with WinGet
  * Uninstall with apt, dnf, or apk
  * Uninstall with npm
  * Remove configuration files

### [authentication](https://code.claude.com/docs/en/authentication.md)

* Log in to Claude Code
  * Login prompt still appears after an earlier sign-in
  * Log in with multiple accounts
* Set up team authentication
  * Claude for Teams or Enterprise
  * Claude Console authentication
    * Sign in without an API key
    * Stop offering the keyless sign-in on managed machines
  * Cloud provider authentication
  * Restrict login to your organization
  * Restrict which API providers a machine may use
* Credential management
  * Renew an expiring login
  * Authentication precedence
    * Anthropic profiles and federation credentials
  * Generate a long-lived token

### [managed-settings](https://code.claude.com/docs/en/managed-settings.md)

* Deploy a managed settings file
* Choose a delivery mechanism
  * Where and when a policy applies
  * Where each mechanism stores the policy
  * Split a file-based policy across teams
* How Claude Code combines managed sources
  * When an admin document counts as present
  * Keys read from every admin source
    * Which managed source supplies login keys
  * Compose every managed source
  * Compute the policy with a helper program
  * Let an embedding host add policy
    * Keep Cowork folder access when only managed rules apply
  * What a developer can change
* Check that a policy is in force
  * Read the source in /status
  * Find entries Claude Code dropped
    * Keys that fail closed
    * Invalid values inside `sandbox`
* Keys only a managed source can set
* Turn telemetry off for your organization
* See also

### [server-managed-settings](https://code.claude.com/docs/en/server-managed-settings.md)

* Requirements
* Choose between server-managed and endpoint-managed settings
* Configure server-managed settings
  * Verify settings delivery
  * Give groups different settings
  * Access control
  * Managed-only settings
  * Current limitations
* Settings delivery
  * Settings precedence
  * Per-key exceptions across managed sources
    * When a machine's `apiKeyHelper` isn't in effect
  * Fetch and caching behavior
  * Invalid entries in delivered settings
  * Enforce fail-closed startup
  * Security approval dialogs
    * Approval memory
    * Environment variables and the approval dialog
* Platform availability
* Audit logging
* Security considerations
* See also

### [managed-mcp](https://code.claude.com/docs/en/managed-mcp.md)

* Choose a pattern
* Exclusive control with managed-mcp.json
  * Deploy managed-mcp.json
  * Authenticate with per-user credentials
  * Servers passed with `--mcp-config` or `--strict-mcp-config`
  * How allowlists and denylists apply to the managed set
  * Validate the configuration
  * Disable MCP entirely
  * Allow claude.ai connectors alongside the managed set
  * Allow Claude in Chrome alongside the managed set
* Provide servers through managed settings
  * What an entry can contain
  * How provided servers load
  * What users can see and change
  * Where `managedMcpServers` applies
  * When provided servers connect
* Policy-based control with allowlists and denylists
  * Match servers by URL, command, or name
    * How `serverName` entries match
    * How `serverCommand` entries match
    * How `serverUrl` entries match
    * Environment variables in `serverCommand` and `serverUrl` entries
  * How a server is evaluated
    * Servers that skip the allowlist check
  * Example configuration
  * Restrict the allowlist to managed settings only
* How restrictions appear to users
* Monitor MCP usage
* Configuration summary
* Related resources

### [auto-mode-config](https://code.claude.com/docs/en/auto-mode-config.md)

* Common boundaries
  * Add a human checkpoint
* Where the classifier reads configuration
* Define trusted infrastructure
* Generate environment entries with `/auto-mode-setup`
  * What `/auto-mode-setup` reads
  * Review and save the draft
  * Turn off `/auto-mode-setup`
  * `/auto-mode-setup` returns "Unknown command"
* Override the block and allow rules
* Edit rules from `/permissions`
* Suspend shell allow rules
* Inspect the defaults and your effective config
* Review denials
  * Fix a denial with an allow rule, an environment entry, or a retry
  * Fix repeated denials
* See also

## Deployment

### [third-party-integrations](https://code.claude.com/docs/en/third-party-integrations.md)

* Compare deployment options
* Configure proxies and gateways
* Best practices for organizations
  * Invest in documentation and memory
  * Simplify deployment
  * Start with guided usage
  * Pin model versions for cloud providers
  * Configure security policies
  * Use MCP for integrations
* Next steps

### [feature-availability](https://code.claude.com/docs/en/feature-availability.md)

* Availability by model provider
  * Features available on every provider
  * Features that require a Claude subscription
  * CLI capabilities that vary by provider
  * Admin and analytics
  * Summary by provider
* Availability by subscription plan
  * Ultra plan
* Model availability
* Related resources

### [amazon-bedrock](https://code.claude.com/docs/en/amazon-bedrock.md)

* Prerequisites
* Sign in with Bedrock
* Set up manually
  * 1. Submit use case details
  * 2. Configure AWS credentials
    * Use `aws configure`
    * Export an access key
    * Use an SSO profile
    * Use AWS Management Console credentials
    * Use an Amazon Bedrock API key
    * Credential caching and resolution timeout
    * Advanced credential configuration
      * Example configuration
      * Configuration settings explained
  * 3. Configure Claude Code
  * 4. Pin model versions
    * Map each model version to an inference profile
* Startup model checks
  * Start a session on a specific model
  * Remembered model refusals
  * When your organization enforces a model allowlist
  * When a model is disabled mid-session
* Cross-region inference profile prefixes
* IAM configuration
* 1M token context window
* Service tiers
* AWS Guardrails
* Use the Mantle endpoint
  * Enable Mantle
  * Select a Mantle model
  * Run Mantle alongside the Invoke API
  * Route Mantle through a gateway
  * Mantle environment variables
* Troubleshooting
  * Authentication loop with SSO and corporate proxies
  * Certificate errors behind a TLS-inspecting proxy
  * Region issues
  * Streaming errors behind a gateway or proxy
  * Zero token counts in /context
  * Mantle endpoint errors
* Additional resources

### [claude-platform-on-aws](https://code.claude.com/docs/en/claude-platform-on-aws.md)

* Prerequisites
* Setup
  * 1. Configure AWS credentials
    * Use AWS credentials with SigV4
    * Use a workspace API key
  * 2. Configure Claude Code
  * 3. Pin model versions
  * 4. Launch and verify
* Use the Agent SDK
* Route through a corporate proxy
* Troubleshooting
  * `403 Forbidden` or `AccessDenied` on every request
  * Requests fail with a missing-workspace error
  * Requests still go to `api.anthropic.com`
* Additional resources

### [claude-models-on-google-cloud-anthropic-managed](https://code.claude.com/docs/en/claude-models-on-google-cloud-anthropic-managed.md)

* Prerequisites
* Set up Claude Code
  * Set up Claude Code for a team
* Pin model versions
* Environment variables
* Claude Code features that aren't available
* Troubleshooting
  * `No workspace ID found`
  * `No project was given`
  * `Could not load Google Cloud credentials`
  * `Google Cloud credentials expired or invalid`
  * `Google Cloud authentication failed`
* Related resources

### [google-vertex-ai](https://code.claude.com/docs/en/google-vertex-ai.md)

* Prerequisites
* Sign in with Agent Platform
* Region configuration
* Set up manually
  * 1. Enable Agent Platform API
  * 2. Request model access
  * 3. Configure GCP credentials
    * Advanced credential configuration
  * 4. Configure Claude Code
  * 5. Pin model versions
  * 6. Verify your configuration
* Startup model checks
  * Start a session on a specific model
  * Remembered model refusals
  * When your organization enforces a model allowlist
  * When a model is disabled mid-session
* IAM configuration
* 1M token context window
* Troubleshooting
* Additional resources

### [microsoft-foundry](https://code.claude.com/docs/en/microsoft-foundry.md)

* Prerequisites
* Setup
  * 1. Provision Microsoft Foundry resource
  * 2. Configure Azure credentials
    * Use an API key
    * Use Microsoft Entra ID
    * Use a bearer token
  * 3. Configure Claude Code
  * 4. Pin model versions
  * 5. Run Claude Code
* Azure RBAC configuration
* 1M token context window
* Troubleshooting
* Additional resources

### [network-config](https://code.claude.com/docs/en/network-config.md)

* Proxy configuration
  * Environment variables
  * Basic authentication
* CA certificate store
* Custom CA certificates
* mTLS authentication
* Verify your configuration
* Apply network settings to background agents
  * Set network variables in settings, not the shell
  * Configure a corporate launcher as a setting
* Streaming idle watchdogs
* Network access requirements
  * Cloud provider and LLM gateway routing
  * Organization IP allowlists and proxy egress
  * GitHub allow lists and firewalls
  * Desktop and claude.ai
    * Third-party hosts for artifact fonts and libraries
* Additional resources

### [corporate-launcher](https://code.claude.com/docs/en/corporate-launcher.md)

* What the launcher covers
  * Processes that start outside the launcher
  * Helper process names in process monitors
* Set up the launcher
* The launcher contract
  * Format of the launcher value
  * Pass arguments to the launcher
* Relationship to `CLAUDE_CODE_SHELL_PREFIX`
* Related resources

### [devcontainer](https://code.claude.com/docs/en/devcontainer.md)

* Add Claude Code to your dev container
* Persist authentication and settings across rebuilds
* Enforce organization policy
* Restrict network egress
* Run without permission prompts
* Try the reference container
* Next steps

## Gateways

### [gateways](https://code.claude.com/docs/en/gateways.md)

* How a gateway works
* Choose a gateway
  * Claude apps gateway
  * Other gateways
* Subscriptions and gateways
* Configure separately from the gateway
* Next steps

### Gateways > Claude apps gateway

#### [claude-apps-gateway](https://code.claude.com/docs/en/claude-apps-gateway.md)

* Why Claude apps gateway
  * Other gateway implementations
* Quickstart
  * Prerequisites
  * Steps
* Connect developers
  * Set the gateway URL
    * Set the gateway URL in user settings
  * Allow a gateway on public address space you own
  * Deliver policy to Claude Desktop sessions
    * Which machines need the opt-in
    * Set the opt-in
  * Restrict parent settings
    * Deploy the locks
    * Lock behavior across sources
    * Settings the locks don't cover
    * How hook and skill keys in parent settings take effect
  * Connect Claude Desktop
  * CI pipelines and remote machines
  * What's enforced on developers
  * What the organization can see
* Availability and limitations
* Next steps

#### [claude-apps-gateway-config](https://code.claude.com/docs/en/claude-apps-gateway-config.md)

* File structure
* Secret expansion
* Required sections
  * `listen`
  * `oidc`
    * Certificate client authentication
    * Rotate the client certificate
    * IdP requests through a forward proxy
    * Proxy-only egress
  * `session`
  * `store`
  * `upstreams`
    * Upstream error messages
    * Anthropic API
      * Per-user identity headers for a proxy you run
    * Amazon Bedrock
      * Apply an Amazon Bedrock guardrail
      * Add guardrail input tags
      * What input tags don't cover
      * Log which guardrail filter fired
      * Bedrock in another AWS account
      * Per-developer AWS cost attribution
    * Amazon Bedrock Mantle endpoint
    * Claude Platform on AWS
    * Google Cloud Agent Platform
    * Microsoft Foundry
    * Static headers on upstream requests
    * Multiple upstreams
    * Send each team to its own upstream
      * What happens when a developer is in no listed group
* Optional sections
  * `login_notice`
  * `admin`
    * Pooled budget order
  * `enforcement`
  * `pricing`
    * Mark prices up
    * Send the rates to signed-in clients
  * `models`
  * `managed`
    * Apply every matching policy
    * Start sessions on a model the policy allows
    * Matcher values that stop the gateway at boot
    * Choose `cli` or `code`
    * What goes in `cli`
    * Test a policy before deployment
    * Context window in terminal sessions
    * One-hour prompt cache
    * MCP servers in a policy
    * Claude Desktop overlay
      * Settings the gateway derives for Claude Desktop
      * Apply `code` settings in the Code tab
      * Set Claude Desktop settings directly
      * What the gateway rejects at boot
      * Keys the gateway doesn't know
      * Keys that need a later gateway or Claude Desktop version
      * How a role policy inherits the base `desktop` block
      * When a policy change reaches Claude Desktop
    * Extended context in Claude Desktop
      * Remove the 1M option
    * Precedence with other managed sources
  * `telemetry`
    * Send cumulative metrics
    * Add your own labels
    * Group changes during an open session
    * Export directly to your collector
    * When a destination fails
  * HTTP tuning
  * `load_test_mode`
* Complete example
* Client-side managed settings
* Related

#### [claude-apps-gateway-spend-limits](https://code.claude.com/docs/en/claude-apps-gateway-spend-limits.md)

* Set a cap
  * Authenticate to the admin API
* How enforcement works
  * How requests are priced
    * Long-prompt rates
  * Postgres availability
  * Usage warnings in Claude Code
* Admin API reference
  * `/effective`
  * `/audit`
  * Pagination
* Data lifecycle
* Related

#### [claude-apps-gateway-deploy](https://code.claude.com/docs/en/claude-apps-gateway-deploy.md)

* Identity provider setup
* Deployment
  * Choose an address for the gateway
  * Container image
  * Kubernetes
  * Cloud Run
  * Push the gateway URL to developer machines
  * Large rollouts
* Operations
  * Logs
    * Write operational logs as JSON
  * Health
  * Concurrent upstream requests
  * Keep `API_TIMEOUT_MS` above the gateway's time to first byte
  * Retry an unanswered request sooner with the first-byte deadline
  * Outage behavior
    * Readiness grace period
  * JWT secret rotation
  * Postgres
    * Size the connection pool
  * Upgrades
* Security
  * Data flow
  * Threat model summary
  * User-code brute-force resistance
  * Compliance posture
  * Plugin marketplace requests
* Troubleshooting
  * Request headers too large after sign-in
  * Long thinking ends in proxy timeouts
    * Confirm the cause
    * Pick a value
    * Deliver the value in a policy
  * Long thinking on an Anthropic API upstream
* Related

#### [claude-apps-gateway-on-aws](https://code.claude.com/docs/en/claude-apps-gateway-on-aws.md)

* Architecture
* Prerequisites
  * Set your environment variables
* Deploy the gateway
* Terraform reference
* Troubleshooting
* Telemetry
  * Client metrics, logs, and traces
  * Gateway logs
  * Container metrics
  * Spend
* Cost attribution
  * Per developer with `assume_role`
  * Per team with application inference profiles
    * Let a developer choose which team to bill
* Next steps

#### [claude-apps-gateway-on-gcp](https://code.claude.com/docs/en/claude-apps-gateway-on-gcp.md)

* What you'll build
* Prerequisites
* Deploy the gateway
* Terraform reference
* Troubleshooting
* Next steps

### Gateways > Other gateways

#### [llm-gateway](https://code.claude.com/docs/en/llm-gateway.md)

* What a gateway provides
* Roll out a gateway
* Subscriptions and gateways
* Related pages

#### [llm-gateway-connect](https://code.claude.com/docs/en/llm-gateway-connect.md)

* Check for an existing configuration
* Configure Claude Code yourself
  * Set the credential variable
  * Set the base URL and credential
    * Set as shell environment variables
    * Set in a settings file
  * Verify the connection
    * Confirm in Claude Code
  * How the credential variable maps to a header
  * Conflicts with an existing login
* Configure each surface
  * VS Code extension
  * Desktop app
  * GitHub Actions
  * Agent SDK
  * Slack, cloud sessions, and Remote Control
* Additional configuration
  * Send additional headers
  * Add gateway models to the model picker
  * Rotate credentials with apiKeyHelper
  * Turn off traffic outside the gateway path
  * Route to a cloud provider through a gateway
    * Amazon Bedrock
    * Google Cloud's Agent Platform
    * Microsoft Foundry
    * Claude Platform on AWS
    * Confirm the provider route
* Troubleshoot gateway errors
* Related resources

#### [llm-gateway-rollout](https://code.claude.com/docs/en/llm-gateway-rollout.md)

* Prerequisites
  * Gateway requirements
* Rollout steps
  * Confirm the gateway routes your models
  * Issue developer credentials
  * Test Claude Code against the gateway
  * Distribute the configuration
    * What to distribute
    * Distribute through managed settings
    * The HIPAA configuration behind a gateway
    * Hand developers the values to set themselves
  * Verify the rollout
* Maintain the gateway
  * Plan Claude Code version upgrades
* Related resources

#### [llm-gateway-protocol](https://code.claude.com/docs/en/llm-gateway-protocol.md)

* API formats
  * Foundry and Claude Platform on AWS
  * Optional endpoints and startup traffic
  * Streaming
  * Format mismatch with the upstream
* How the connection method changes client behavior
  * Requests and defaults by connection method
  * Settings for unrecognized model IDs
* Request headers
  * Gateway hint headers
  * Forward as open lists
* Response headers
* System prompt attribution block
* Feature pass-through
  * Beta header and body field pairs
  * Automatic retry and error forwarding
    * Retry without a rejected beta value
    * How long a rejected beta value stays out
    * Retry without tool search
  * Disable pre-release capabilities
* Model discovery
  * When discovery runs
  * Request and response
  * Picker entries and caching
* Related resources

## Usage and costs

### [monitoring-usage](https://code.claude.com/docs/en/monitoring-usage.md)

* Quick start
* Administrator configuration
  * How managed settings lock the OTLP destination
* Configuration details
  * Common configuration variables
  * mTLS authentication
  * Metrics cardinality control
  * Traces (beta)
    * Span hierarchy
    * Span attributes
  * Dynamic headers
    * Settings configuration
    * Script requirements
    * Refresh behavior
  * Multi-team organization support
  * Attribute telemetry to Desktop SSH sessions
  * Example configurations
* Telemetry from cloud sessions and Claude Tag
  * Attribute telemetry to cloud sessions
* Available metrics and events
  * Standard attributes
    * Repository attributes
  * Metrics
  * Metric details
    * Session counter
    * Lines of code counter
    * Pull request counter
    * Commit counter
    * Cost counter
    * Token counter
    * Code edit tool decision counter
    * Active time counter
  * Events
    * Event correlation attributes
    * User prompt event
    * Assistant response event
    * Tool result event
    * API request event
    * API error event
    * API refusal event
    * API request body event
    * API response body event
    * Tool decision event
    * Safety event
      * Safety event categories
      * Calls without a safety event
      * Prompts with no category
    * Permission mode changed event
    * Auth event
    * MCP server connection event
    * Internal error event
    * Plugin installed event
    * Plugin loaded event
    * Skill activated event
    * At mention event
    * API retries exhausted event
    * Hook registered event
    * Hook execution start event
    * Hook execution complete event
    * Hook plugin metrics event
    * Compaction event
    * Subagent completed event
    * Feedback survey event
    * Retention sweep event
    * Managed settings resolved event
* Interpret metrics and events data
  * Usage monitoring
  * Cost monitoring
  * Alerting and segmentation
  * Detect retry exhaustion
  * Event analysis
  * Map input tokens to OpenTelemetry GenAI semantic conventions
* Audit security events
  * Attribute actions to users
  * Audit MCP activity
  * Map security questions to events
  * Map egress paths to managed controls and events
  * Check the retention sweep
  * Send events to a SIEM
* Backend considerations
  * Backends for metrics
  * Backends for events and logs
  * Backends for traces
* Service information
* ROI measurement resources
* Security and privacy
* Monitor Claude Code on Amazon Bedrock

### [costs](https://code.claude.com/docs/en/costs.md)

* Track your costs
  * Using the `/usage` command
    * Prompt cache statistics
    * Plan usage breakdown
    * Apply recommendations with the fix shortcut
    * Check your usage-credits spend
    * When the usage request fails
  * Read the token count beside the spinner
  * Analyze your usage patterns
  * Add usage credits to your subscription
* Manage costs for your organization
  * Report spend at your contracted rates
  * Claude for Teams and Enterprise
  * Claude Console
    * Rate limit recommendations
  * Cloud providers
  * When a developer asks about a limit
  * Agent team token costs
* Reduce token usage
  * Manage context proactively
  * Choose the right model
  * Reduce MCP server overhead
  * Install code intelligence plugins for typed languages
  * Offload processing to hooks and skills
  * Move instructions from CLAUDE.md to skills
  * Adjust extended thinking
  * Delegate verbose operations to subagents
  * Manage agent team costs
  * Write specific prompts
  * Work efficiently on complex tasks
* Background token usage
* Why usage climbs in a long session
* Understanding changes in Claude Code behavior

### [analytics](https://code.claude.com/docs/en/analytics.md)

* Access analytics for Team and Enterprise
  * Enable contribution metrics
  * Review summary metrics
  * Explore the charts
    * Measure PRs per user
    * View pull requests breakdown
    * Find top contributors
  * PR attribution
    * Attribution process
    * Time window
    * Excluded files
    * Attribution notes
  * Get the most from analytics
    * Monitor adoption
    * Measure ROI
    * Identify power users
    * Access data programmatically
* Access analytics for API customers
  * View team insights
* Related resources

## Security and data

### [security](https://code.claude.com/docs/en/security.md)

* How we approach security
  * Security foundation
  * Permission-based architecture
  * Built-in protections
  * User responsibility
* Protect against prompt injection
  * Core protections
  * Privacy safeguards
  * Additional safeguards
* MCP security
* IDE security
* Cloud execution security
* Security best practices
  * Working with sensitive code
  * Team security
  * Reporting security issues
* Related resources

### [data-usage](https://code.claude.com/docs/en/data-usage.md)

* Data policies
  * Data training policy
  * Development Partner Program
  * Feedback using the `/feedback` command
  * Session quality surveys
  * Data retention
* Data access
* Local Claude Code: Data flow and dependencies
  * Cloud execution: Data flow and dependencies
* Telemetry services
* Default behaviors by API provider
  * WebFetch domain safety check

### [zero-data-retention](https://code.claude.com/docs/en/zero-data-retention.md)

* ZDR scope
  * Route Claude Code traffic to your ZDR organization
  * What ZDR covers
  * What ZDR does not cover
* Features disabled under ZDR
  * Model availability under ZDR
* Data retention for policy violations
* Request ZDR

### [hipaa-setup](https://code.claude.com/docs/en/hipaa-setup.md)

* Prepare computers before the HIPAA configuration is applied
  * Check how developers sign in and connect
    * Check how a computer connects
  * Update Claude Code and Claude Desktop
    * What developers see on an older version
  * Allow network access
  * Deploy managed settings
    * What each key does
    * Confirm the settings loaded
    * Sessions the managed settings keys don't block
  * Restrict Claude Desktop sign-in
* Confirm the configuration on a computer
* What developers see in Claude Code
  * Anthropic credentials in commands, hooks, and MCP servers
* Manage local session data
  * Claude Code data
  * Code tab data
  * Cowork data
  * Delete session data right away
  * Offboard a developer
* Related resources

## Adoption

### [communications-kit](https://code.claude.com/docs/en/communications-kit.md)

* Launch communications
  * Before you send
  * The announcement
  * Executive sponsor variant
  * Pilot group variant
  * Champion recruitment DM
* Tips and tricks campaign
  * Get started
  * Project memory
  * Control and safety
  * Connect your tools
  * Automate your workflows
  * Day-to-day development
  * Share and scale
  * Security and admin
* Quick reference
  * FAQ responses
  * Prompt templates

### [champion-kit](https://code.claude.com/docs/en/champion-kit.md)

* The champion role
  * What this should cost you
* Share what you discover
  * What is worth sharing
  * Where to share it
  * The format that works
* Be the person people ask
  * Answer with a prompt rather than an explanation
  * Point at the feature rather than the documentation
  * Questions you are likely to hear
* Grow the circle
  * Patterns that tend to work
  * Thirty-day playbook
  * When someone wants to go deeper
* Respond to common concerns
* Quick-reference sheet

## Settings

### [settings](https://code.claude.com/docs/en/settings.md)

* Settings files and who they affect
  * Compare the scope of each settings file
  * Find or create your settings files
  * Share settings with your team
  * Keep personal settings out of a repository
    * Where Claude Code keeps the local file in a git repository
  * Check what your organization enforces
* Change a setting
  * Use the /config menu
  * Edit a settings file
  * Change a setting for one session
  * When edits take effect
  * Confirm what loaded
  * Fix a broken settings file
* Settings precedence
  * Lists merge instead of overriding
  * Precedence examples
    * Team settings override personal settings
    * Organization settings override everything
    * The command line overrides your files for one session
    * A flag or environment variable sets the same thing
  * Troubleshoot a setting that doesn't apply
    * A value you set is ignored
    * A change you made in Claude Code is lost in new sessions
    * A managed change hasn't reached you
    * A committed key doesn't reach teammates
    * Permission rules combine differently than you expected
  * Exceptions to managed settings precedence
* Settings in cloud sessions
* What's next

### [settings-reference](https://code.claude.com/docs/en/settings-reference.md)

* Settings index
* Model and responses
  * `advisorModel`
  * `alwaysThinkingEnabled`
  * `availableModels`
  * `availableModelsMatch`
  * `deniedModels`
  * `effortLevel`
  * `enforceAvailableModels`
  * `fallbackModel`
  * `fastMode`
  * `fastModePerSessionOptIn`
  * `language`
  * `maxEffortLevel`
  * `model`
  * `modelOverrides`
  * `modelPicker`
    * Fields for `modelPicker`
  * `modelPricing`
    * Fields for `modelPricing`
    * Which models a `modelPricing` row applies to
  * `modelSettings`
  * `outputStyle`
  * `promptCacheTtl`
  * `showThinkingSummaries`
  * `subagentPromptCacheTtl`
  * `switchModelsOnFlag`
  * `ultracode`
* Permission settings
  * `allowManagedPermissionRulesOnly`
  * `autoMode`
  * `autoMode.classifyAllShell`
  * `disableAutoMode`
  * `permissions`
  * `useAutoModeDuringPlan`
  * `permissions.allow`
    * Permission rule syntax
  * `permissions.ask`
  * `permissions.deny`
  * `permissions.additionalDirectories`
  * `permissions.blockReadsOutsideWorkingDirectories`
    * Sandboxed commands under the block
  * `permissions.blockWritesOutsideWorkingDirectories`
    * What the write block refuses and what stays writable
    * Let one directory through the read or write block
  * `permissions.defaultMode`
  * `permissions.denyInsteadOfPrompting`
    * What else `denyInsteadOfPrompting` stops
    * Messages from `denyInsteadOfPrompting`
  * `permissions.disableBypassPermissionsMode`
  * `skipAutoPermissionPrompt`
  * `skipDangerousModePermissionPrompt`
* Sandbox settings
  * `sandbox`
  * `sandbox.enabled`
  * `sandbox.failIfUnavailable`
  * `sandbox.autoAllowBashIfSandboxed`
  * `sandbox.excludedCommands`
  * `sandbox.allowUnsandboxedCommands`
  * `sandbox.filesystem`
    * Sandbox path prefixes
      * Where wildcards work in sandbox paths
      * Directory names with brackets, braces, or parentheses
  * `sandbox.filesystem.allowWrite`
  * `sandbox.filesystem.denyWrite`
  * `sandbox.filesystem.denyRead`
  * `sandbox.filesystem.allowRead`
  * `sandbox.filesystem.allowManagedReadPathsOnly`
  * `sandbox.filesystem.disabled`
  * `sandbox.ignoreViolations`
  * `sandbox.enableWeakerNestedSandbox`
  * `sandbox.enableWeakerNetworkIsolation`
  * `sandbox.allowAppleEvents`
  * `sandbox.allowNestedUserNamespaces`
  * `sandbox.ripgrep`
  * `sandbox.bwrapPath`
  * `sandbox.socatPath`
  * `sandbox.credentials`
    * Invalid credential entries in managed settings
  * `sandbox.credentials.files`
    * Mask fields for files
  * `sandbox.credentials.envVars`
    * Mask fields for environment variables
  * `sandbox.credentials.allowPlaintextInject`
  * `sandbox.credentials.awsPairs`
  * `sandbox.credentials.sigv4`
  * `sandbox.network`
  * `sandbox.network.allowUnixSockets`
  * `sandbox.network.allowAllUnixSockets`
  * `sandbox.network.allowLocalBinding`
  * `sandbox.network.allowMachLookup`
  * `sandbox.network.allowedDomains`
  * `sandbox.network.deniedDomains`
  * `sandbox.network.strictAllowlist`
  * `sandbox.network.allowManagedDomainsOnly`
  * `sandbox.network.httpProxyPort`
  * `sandbox.network.socksProxyPort`
  * `sandbox.network.tlsTerminate`
* Memory and context
  * `autoCompactEnabled`
  * `autoCompactWindow`
  * `autoMemoryDirectory`
  * `autoMemoryEnabled`
  * `bashOutputMaxChars`
  * `claudeMd`
  * `claudeMdExcludes`
  * `env`
    * How `env` values interact with your shell
    * When Claude Code applies `env` values
    * Variables Claude Code ignores in `env`
  * `fileCheckpointingEnabled`
  * `idleCompaction`
    * Change the idle compaction threshold
    * Idle compaction in VS Code and the desktop app
  * `plansDirectory`
  * `skillListingBudgetFraction`
  * `skillListingMaxDescChars`
  * `taskOutputMaxChars`
* Interface and terminal
  * `askUserQuestionTimeout`
  * `autoContinueAtUsageLimit`
  * `autoScrollEnabled`
  * `axScreenReader`
  * `bashEditDiffEnabled`
  * `companyAnnouncements`
  * `defaultShell`
  * `dialogExpiry`
  * `editorMode`
  * `emojiCompletionEnabled`
  * `fileSuggestion`
    * Command input and output
  * `footerLinksRegexes`
    * Badge constraints
  * `keybindingFlavor`
  * `maxProseWidth`
  * `prefersReducedMotion`
  * `promptSuggestionEnabled`
  * `respectGitignore`
  * `respondToBashCommands`
  * `showClearContextOnPlanAccept`
  * `showTurnDuration`
  * `spellcheck`
  * `spinnerTipsEnabled`
  * `spinnerTipsOverride`
  * `spinnerVerbs`
  * `statusLine`
  * `syntaxHighlightingDisabled`
  * `terminalProgressBarEnabled`
  * `terminalTitleFromRename`
  * `theme`
  * `timeFormat`
  * `timeZone`
  * `tui`
  * `verbose`
  * `viewMode`
  * `vimInsertModeRemaps`
  * `voice`
  * `voiceEnabled`
  * `wheelScrollAccelerationEnabled`
* Git and attribution
  * `attribution`
  * `includeCoAuthoredBy`
  * `includeGitInstructions`
  * `prUrlTemplate`
  * `attribution.commit`
  * `attribution.pr`
  * `attribution.sessionUrl`
* Hooks and automation
  * `allowedHttpHookUrls`
  * `allowManagedHooksOnly`
    * What runs under `allowManagedHooksOnly`
  * `disableAllHooks`
    * Status line and file suggestion gates
  * `disableWorkflows`
  * `enableWorkflows`
  * `hooks`
  * `httpHookAllowedEnvVars`
  * `workflowKeywordTriggerEnabled`
  * `workflowSizeGuideline`
* Plugins and skills
  * `disableBundledSkills`
  * `disableSkillShellExecution`
  * `skillOverrides`
  * `syncClaudeAiSkills`
  * `syncClaudeAiPlugins`
  * `allowedChannelPlugins`
  * `blockedMarketplaces`
  * `channelsEnabled`
  * `disableCommandPluginSources`
  * `pluginSuggestionMarketplaces`
  * `pluginTrustMessage`
  * `strictKnownMarketplaces`
    * Allowed source types
    * Owner wildcards
    * Exact matching
    * Allow only the official marketplace
    * Combine with `extraKnownMarketplaces`
  * `strictPluginOnlyCustomization`
  * `strictPluginOnlyCustomization.skills`
  * `strictPluginOnlyCustomization.agents`
  * `strictPluginOnlyCustomization.hooks`
  * `strictPluginOnlyCustomization.mcp`
  * `enabledPlugins`
  * `extraKnownMarketplaces`
    * Marketplace source types
    * Marketplace key aliases
  * `pluginConfigs`
  * `prependPlugins`
  * `appendPlugins`
* MCP
  * `allowAllClaudeAiMcps`
  * `allowClaudeInChromeWithManagedMcp`
  * `allowedMcpServers`
  * `allowManagedMcpServersOnly`
  * `deniedMcpServers`
  * `disableClaudeAiConnectors`
  * `disabledMcpjsonServers`
  * `enableAllProjectMcpServers`
  * `enabledMcpjsonServers`
  * `managedMcpServers`
* Agents, sessions, and worktrees
  * `agent`
  * `crossSessionInbound`
  * `disableAgentView`
  * `isolatePeerMachines`
  * `processWrapper`
  * `teammateMode`
  * `worktree`
  * `worktree.baseRef`
  * `worktree.symlinkDirectories`
  * `worktree.sparsePaths`
  * `worktree.bgIsolation`
  * `worktree.location`
* Remote, desktop, and notifications
  * `agentPushNotifEnabled`
  * `awaySummaryEnabled`
  * `disableArtifact`
  * `disableDeepLinkRegistration`
  * `disableDesktopLocalSessions`
  * `disableRemoteControl`
  * `disableRemotePreviewScripts`
  * `enableArtifact`
  * `inputNeededNotifEnabled`
  * `preferredNotifChannel`
  * `remote.defaultEnvironmentId`
  * `remoteControlAtStartup`
  * `sshConfigs`
  * `sshHostAllowlist`
  * `sshHostCommands`
* Authentication and providers
  * `allowedProviders`
    * Endpoints that need a pin in managed `env`
  * `apiKeyHelper`
  * `awsAuthRefresh`
  * `awsCredentialExport`
  * `forceLoginMethod`
  * `forceLoginGatewayUrl`
  * `forceLoginOrgUUID`
  * `gatewayInternalNetworks`
  * `gcpAuthRefresh`
  * `otelHeadersHelper`
* Updates and versioning
  * `autoUpdatesChannel`
  * `minimumVersion`
  * `requiredMaximumVersion`
  * `requiredMinimumVersion`
* Tools
  * `browserExternalPageTools`
  * `disableBrowserExternalNavigation`
  * `disableMobileSimulatorTools`
* Privacy and telemetry
  * `cleanupPeriodDays`
  * `desktopSessionCleanupPeriodDays`
  * `feedbackDrafts`
  * `feedbackSurveyRate`
  * `skipWebFetchPreflight`
* Enterprise and managed settings
  * `disableSideloadFlags`
  * `forceRemoteSettingsRefresh`
  * `managedSourcesBehavior`
  * `parentSettingsBehavior`
  * `policyHelper`
    * Write the helper output
    * Helper failures
  * `policyHelper.path`
  * `policyHelper.timeoutMs`
  * `policyHelper.refreshIntervalMs`
  * `wslInheritsWindowsSettings`
* Global config settings
  * `autoConnectIde`
  * `autoInstallIdeExtension`
  * `claudeInChromeDefaultEnabled`
  * `copyFullResponse`
  * `copyOnSelect`
  * `defaultToAgentsView`
  * `diffTool`
  * `externalEditorContext`
  * `leftArrowOpensAgents`
  * `permissionExplainerEnabled`
  * `prStatusFooterEnabled`
  * `teammateDefaultModel`
* See also

### [settings-example](https://code.claude.com/docs/en/settings-example.md)

* Your own settings
* A team's shared settings
* An organization's managed settings

## Permissions and sandboxing

### [permissions](https://code.claude.com/docs/en/permissions.md)

* Permission system
  * Add a comment when you answer a permission prompt
* Manage permissions
* Permission modes
* Permission rule syntax
  * Match all uses of a tool
  * Use specifiers for fine-grained control
  * Match by input parameter
  * Wildcard patterns
  * Tool name wildcards
* Tool-specific permission rules
  * Bash
    * Compound commands
    * Wrappers
    * Exec wrappers and `find` actions
    * What a Bash rule doesn't match
    * Read-only commands
    * Redirections
  * PowerShell
  * Read and Edit
    * What `Read` and `Edit` rules cover
    * `Write(path)`, `Glob(path)`, and `Grep(path)` rules don't match
    * How path patterns match
      * Where a pattern anchors
      * How deep a pattern matches
    * Special characters and `!` negation
    * Symlinks
      * How rules match a symlinked path
      * Attachments through a symlink
      * Writes through a symlink
      * Paths that can't be resolved or that change
    * Network paths
  * WebFetch
    * Allow or deny every fetch
  * MCP
  * Agent (subagents)
  * Cd
* Extend permissions with hooks
  * Precedence among rules, hooks, and mods
  * Hook approvals in plan mode
* Working directories
  * Block file-tool reads and writes outside the working directories
  * Move the session to another directory
  * Additional directories grant file access, not configuration
    * Where output styles, hooks, and local settings load from
* How permissions interact with sandboxing
* Managed settings
* Settings precedence
* Project allow rules and workspace trust
  * When your local settings file needs trust
  * What runs before you trust a folder
* Example configurations
* See also

### [permission-modes](https://code.claude.com/docs/en/permission-modes.md)

* Available modes
  * Actions no mode auto-approves
* Common setups
* Which mode a session starts in
  * Tool calls denied in `claude -p` and Agent SDK runs
  * Start in a different permission mode
  * Permission modes with the HIPAA configuration
* Switch permission modes
* Auto-approve file edits with acceptEdits mode
* Analyze before you edit with plan mode
  * Review and approve a plan
  * Set plan mode as the default
* Eliminate permission prompts with auto mode
  * Auto mode on Bedrock, Agent Platform, or Foundry
  * Server-side classifier review
  * Default classifier model
  * Choose the classifier model
    * When your model doesn't review
    * Check which model the classifier used
  * What the classifier blocks by default
  * The first read outside the working directories
  * Boundaries you state in conversation
  * Approvals you state in conversation
  * When auto mode falls back
    * Repeated-block thresholds
  * How auto mode evaluates actions
* Allow only pre-approved tools with dontAsk mode
* Skip all checks with bypassPermissions mode
  * Bypass permissions ignored in a background session
  * `claude agents` shows the bypass permissions warning that interactive sessions skip
* Protected paths
* Critical paths
  * Which paths are critical
  * Other targets that count as critical paths
  * Removals inside nested commands and inline scripts
  * Rewrite a flagged command
  * The `Dangerous rm operation not ruled out` prompt
  * The mounted drive prompt
    * Paths that get the mounted drive prompt
    * Turn off the mounted drive prompt
    * Removals that still prompt with the mounted drive prompt off
  * Critical-path removals in each permission mode
  * Time limits and denials in auto and bypassPermissions modes
  * Turn off the critical-path removal prompt in bypassPermissions mode
    * Startup notices about the critical-path removal prompt
    * Why the critical-path removal prompt stays on
  * Remove-Item in PowerShell
* See also

### [auto-mode-classifier-billing](https://code.claude.com/docs/en/auto-mode-classifier-billing.md)

* Respond to the notice
* Make the session eligible
* Why the notice appears
* Related resources

### [sandboxing](https://code.claude.com/docs/en/sandboxing.md)

* What the sandbox restricts
  * What runs outside the sandbox
* Get started
  * Confirm commands run inside the sandbox
  * Set up Linux and WSL2
    * Add an AppArmor profile for bubblewrap
  * Sandbox modes
    * Auto-allow mode
    * Regular permissions mode
    * The unsandboxed retry escape hatch
    * Turn off the retry with strict sandbox mode
    * Temporary directories
* Configure sandboxing
  * Run commands outside the sandbox with `excludedCommands`
  * Disable filesystem isolation
    * Which settings can disable it
    * What changes when filesystem isolation is off
  * Protect credentials
  * Mask credentials
    * Mask environment variables
    * Re-sign AWS requests
    * Mask credential files
* How sandboxing works
  * Filesystem isolation
  * Protected paths
    * When the sandbox deletes `HEAD`, `objects`, or `refs`
    * Denied paths that pass through a symlink
  * Network isolation
    * Hosts outside your allowed domains
    * Hostnames that resolve to local addresses
    * Per-command allowed domains in auto mode
    * IPv6 addresses in domain lists
  * OS-level enforcement
* How sandboxing relates to permissions and permission modes
  * Permission rules
  * Permission modes
* Configure the sandbox for your organization
  * Enforce sandboxing with managed settings
  * Keep developers from widening the policy
    * Repository settings under an admin-required sandbox
    * Locks that apply without an admin-required sandbox
  * Custom proxy configuration
* Troubleshooting
  * Commands fail with a host-not-allowed error
  * `jest` hangs or fails
  * Go-based CLIs fail TLS verification on macOS
  * `open`, `osascript`, or browser-based auth flows fail with error `-600` on macOS
  * `docker` commands fail
  * Chromium or rootless Podman fails inside the sandbox on Linux
  * `pbcopy`, `xclip`, or `wl-copy` doesn't update the clipboard
  * A git command fails with `unable to unlink old`
  * A git command fails with `Unable to create '…/index.lock'`
  * A folder named `objects` or `refs` disappears after a command
  * Bubblewrap fails to start inside a container
  * Ubuntu's AppArmor restriction stops bubblewrap
  * Sandboxed commands fail with `bwrap: setting up uid map: Permission denied`
  * 0-byte read-only files appear at `.claude` settings paths, and "Yes, and don't ask again" doesn't save
  * `git` over SSH fails with the sandbox on
  * A database client or other non-HTTP tool fails to reach an allowed host
  * A command fails to reach a server on localhost
  * An allowed hostname is refused with `resolved to a loopback address`
  * Commands are refused with `Sandbox is required`
  * `/sandbox` fails with `Sandbox settings are overridden by a higher-priority configuration`
  * `/sandbox` prints `Sandbox settings not changed`
* Limitations
  * Security limitations
  * Scope
* See also

### [sandbox-environments](https://code.claude.com/docs/en/sandbox-environments.md)

* Compare sandboxing approaches
* Choose an approach
  * How isolation relates to permission modes
* Sandboxed Bash tool
* Sandbox runtime
  * Set up and launch the runtime
  * What the runtime blocks on its own
  * After unattended runs
* Dev containers
* Custom container
* Virtual machine
* Cloud sessions
* Enforce isolation across an organization
* See also

## Environments

### [cloud-environments](https://code.claude.com/docs/en/cloud-environments.md)

* The Default environment
* Configure your environment
  * Set environment variables
  * Add network secrets
    * Requirements
    * Add a secret
    * Add a secret without an organization admin role
    * Which requests get the secret
    * Requests that never get the secret
  * Select an environment from the CLI
  * Archive an environment
  * Organization-shared environments
  * Set the environment a Claude Tag channel uses
* Network access
  * Access levels
  * Allow specific domains
  * GitHub proxy
  * Security proxy
* What's available in cloud sessions
  * What carries over from your setup
    * Add personal preferences without committing to the repo
  * Installed tools
  * Work with GitHub issues and pull requests
  * Link output back to the session
  * Run tests, start services, and add packages
    * Run tests
    * Start services
    * Add packages
  * Resource limits
  * Time limits
* Setup scripts
  * Add a setup script
  * Script requirements
  * Environment caching
  * Setup scripts vs. SessionStart hooks
  * Install dependencies with a SessionStart hook
    * Limitations in cloud sessions
* Default allowed domains
* Related resources

### Environments > Self-hosted environments

#### [self-hosted-environments](https://code.claude.com/docs/en/self-hosted-environments.md)

* How self-hosted environments work
* Availability and limitations
* Why self-host
* Environments, runners, and sessions
  * Key concepts
  * Session lifecycle
  * Runner lifecycle
  * Network paths
* What stays on your infrastructure
* Get started

#### [self-hosted-environments-quickstart](https://code.claude.com/docs/en/self-hosted-environments-quickstart.md)

* Prerequisites
  * Organization and roles
  * Host and network
  * Software on the runner host
* Set up an environment and runner
  * Run the guided setup
  * Set up manually
  * If the runner exits
* Send a follow-up message to a running session
* What's next

#### [self-hosted-environments-deploy](https://code.claude.com/docs/en/self-hosted-environments-deploy.md)

* Harden your deployment
* Network requirements
  * Default-deny egress
  * Authenticate to an egress proxy
    * Choose where the `Proxy-Authorization` value comes from
    * Configurations the runner refuses to start with
    * What the runner changes while a proxy-authorization flag is set
* Configure git
  * Let the runner configure git
  * Ship git config in your image
  * Use the Anthropic git proxy
    * Turn the Anthropic git proxy on
    * How Anthropic serves git for a session
    * When sessions fail to start on a runner with the git proxy
    * Turn the Anthropic git proxy off
    * GitHub API access without the GitHub CLI
    * GitHub API access with the GitHub CLI
    * Trust a private certificate authority with Anthropic-managed git
  * Add github.com repositories to Claude Tag channel sessions
  * Rewrite git URLs for private networks
  * Start a session on a repository outside GitHub
* Build the runner image
* Size CPU and memory for sessions
  * Give each session its own memory limit
  * Leave room under process and thread limits
    * Where to set each limit
    * Measure one session's peak
    * Check a `pids.max` limit
* Kubernetes
* Docker Compose
* Shutdown timing
  * Let running turns finish before a restart
  * Post a status message before a restart
  * Defer the drain past the first signal
    * What happens to the sessions the runner holds after the first signal
    * Size the stop timeout
  * What reaches a running post-session hook
* Keep the base directory and capacity identical across runners
* Reuse a pre-warmed checkout
  * Confirm that the runner uses your clone
* Pin the version
* Scale the fleet
  * Release idle sessions on a fixed fleet
  * Keep an idle session while its processes run
* Known issues and limitations
  * Connector traffic leaves your network
  * Some sessions don't count as idle
  * Resumed sessions lose unpushed work
  * Additional limitations
  * Report an issue
* Troubleshooting
  * When the runner exits
    * Recognize a failed start
    * Restart with a wait that grows
    * Check why the runner keeps exiting
  * A session is picked up, but Claude never answers its first message
    * Confirm the cause in the runner's log
    * Stop the session from trying again
* What's next

#### [self-hosted-environments-configuration](https://code.claude.com/docs/en/self-hosted-environments-configuration.md)

* Wrapper scripts
  * Give a default to variables that can be unset
  * Quote the arguments and variables your script expands
  * Keep stdin and file descriptor 3 attached
  * Pass the system prompt flags through
    * Fix `Argument list too long` at session start
  * Provision credentials scoped to the session creator
* Lifecycle hooks
  * checkout
    * Checkout folder names
    * Get git credentials in the hook
    * When the hook fails
  * post-session
    * Hook timing when the runner releases a session
  * Git configuration inside lifecycle hooks
  * command
* On-demand runners
  * The spawn-runner hook
    * Fix re-opened sessions that stay Queued or show Failed
    * Make on-demand runners exit when idle
    * Send a background process's output to a file
    * Exit the hook without waiting for the runner
    * Keep transient failures retryable in a shell hook
    * Find out why a spawn request was sent
  * Stop or restart the orchestrator
    * Size `--shutdown-drain-sec` and the orchestrator's stop timeout
* Send model requests to Bedrock or Agent Platform
  * What differs from sessions on the Anthropic API
* MCP servers
  * Wait for MCP servers before the first turn
  * Turn off built-in session tools
* Prompt sessions to push their work
  * Submodules and the Stop hook
  * Replace an earlier copy of the Stop hook script
* Permissions and tool approval
  * Pin a permission mode from your wrapper
  * Pre-approve specific tools
  * How each session's config is assembled
  * Stop sessions that fail to fetch server-managed settings
  * Repository settings in sessions with several repositories
  * Repository-committed permission rules
* What's next

#### [self-hosted-environments-testing](https://code.claude.com/docs/en/self-hosted-environments-testing.md)

* Install the capture hook on your test runner
  * Save the hook files
  * Before you start the runner
* Run the test loop
  * `--environment` dispatch behavior
* Example script
* Remote test runners
* Authenticate from CI
  * Long-lived CI host
  * Ephemeral CI runners
* Create a dedicated test environment
  * Mint the admin token
  * Create the environment
  * Delete the environment

#### [self-hosted-environments-reference](https://code.claude.com/docs/en/self-hosted-environments-reference.md)

* Runner CLI flags
  * Session startup timeout
  * Auto mode rule lists
* Orchestrator CLI flags
  * SCM connector flags
* Environment-variable-only settings
* Telemetry
* Health endpoint
* Prometheus metrics
  * Sample alert rules
  * Alert on lost runners and waiting sessions
    * Alert when a fixed fleet loses runners
    * Alert when sessions wait for on-demand runners
    * Alert when the orchestrator is down
  * Pass through session-child metrics
    * Join a session's metrics to the runner's
  * Session lifecycle counter semantics
* What's next

#### [self-hosted-environments-identity](https://code.claude.com/docs/en/self-hosted-environments-identity.md)

* The session token
  * What the token proves
  * Token format
* Verify the token
  * Verify the token from your service
  * Verify the token inside the session
* Claims reference
  * The `act` chain
* Scope derived credentials
* Related environment variables
* What's next

## Model and responses

### [model-config](https://code.claude.com/docs/en/model-config.md)

* Available models
  * Model aliases
  * Work with Fable
    * Fable and usage credits
  * Setting your model
    * Fix a mistyped model name
    * Set a default model for new sessions
    * A new session starts on a different model than you picked
* Restrict model selection
  * Surface coverage
  * Default model behavior
  * Enforce the allowlist for the Default model
  * Control the model users run on
  * Merge behavior
  * Mantle model IDs
  * Block specific models or versions
  * Organization model restrictions
* Organization default model
* Organization effort limits
* Special model behavior
  * `default` model setting
  * `opusplan` model setting
  * Fallback model chains
    * Which entries Claude Code tries
  * Automatic model fallback
    * Effort level after a fallback
    * Check what triggered fallback
    * Ask before switching
    * Subagents switch or fail without asking
    * Enable fallback on Bedrock, Agent Platform, and Foundry
    * Security research and biology workloads
  * Adjust effort level
    * Choose an effort level
    * Use ultrathink for one-off deep reasoning
    * Set the effort level
    * Effort level of subagents and teammates
    * Check the effort level you set
    * When a new effort level starts
    * Send no effort level
    * Adaptive reasoning and fixed thinking budgets
  * Extended thinking
    * Where you can't turn thinking off
  * Extended context
    * Select 1M context for Opus 4.6 or Sonnet 4.6
    * Context window behind an LLM gateway
    * Turn off 1M context
    * Haiku 5.5 context window and pricing
* Context window and auto-compaction
  * Set the auto-compact window
    * Values and warnings for `CLAUDE_CODE_AUTO_COMPACT_WINDOW`
  * Default auto-compact thresholds
  * Correct the window for a gateway or custom model ID
    * Which IDs `CLAUDE_CODE_MAX_CONTEXT_TOKENS` applies to
* Checking your current model
* Add a custom model option
* Environment variables
  * Pin models for third-party deployments
  * Customize pinned model display and capabilities
  * Override model IDs per version
  * Prompt caching configuration
* Version history

### [fast-mode](https://code.claude.com/docs/en/fast-mode.md)

* Toggle fast mode
  * Switch models while fast mode is on
  * Use fast mode in cloud sessions
* Understand the cost tradeoff
  * See where fast mode spend appears
* Decide when to use fast mode
  * Fast mode vs effort level
* Requirements
  * Enable fast mode for your organization
  * Use fast mode on Agent Platform
  * Use fast mode behind proxies and LLM gateways
    * Fast mode unavailable due to network connectivity issues
    * Fast mode is currently unavailable
    * Fast mode has been disabled by your organization
  * Require per-session opt-in
* Handle rate limits
* Research preview
* See also

### [advisor](https://code.claude.com/docs/en/advisor.md)

* When to use the advisor
* Enable the advisor
  * Use the `/advisor` command
  * Set `advisorModel` in settings
  * Use the `--advisor` flag
* Choose an advisor model
  * Fable advisor and usage credits
  * Common model pairings
* When Claude consults the advisor
* What you see during a session
* Cost
* Impact on prompt caching
* Requirements
* Turn the advisor off
* Compare with related features
* See also

### [code-mode](https://code.claude.com/docs/en/code-mode.md)

* How Code Mode works
  * When to use Code Mode
  * Code Mode limitations
* Requirements
* Try Code Mode
  * Turn off Code Mode
  * Block Code Mode for your organization
* Permissions and long-running code
  * Permission checks
  * Long-running code
* Troubleshooting
  * Code Mode doesn't start
  * Permission prompt with a countdown
  * Tool call refused by a hook
  * Code output withheld by a hook
* Related resources

### [output-styles](https://code.claude.com/docs/en/output-styles.md)

* Built-in output styles
  * Default
  * Proactive
  * Concise
  * Explanatory
  * Learning
* Change your output style
* Create a custom output style
  * Frontmatter reference
* Choose between an output style and other features
* How output styles work
* Related resources

## Interface

### [terminal-config](https://code.claude.com/docs/en/terminal-config.md)

* Enter multiline prompts
* Enable Option key shortcuts on macOS
* Get a terminal bell or notification
  * Play a sound with a Notification hook
* See session status in your terminal
* Configure tmux
* Fix Backspace deleting a whole word on Windows
* Match the color theme
  * Create a custom theme
    * Text and accent colors
    * Status colors
    * Input box and mode indicators
    * Diff rendering
    * Fullscreen mode
    * Usage meter and speaker labels
    * Shimmer variants and subagent colors
* Switch to fullscreen rendering
* Cap response width in wide terminals
* Paste large content
  * How Claude treats pasted text
  * Delete and restore a collapsed paste
  * Recall a prompt that had pasted text
* Edit prompts with Vim keybindings
* Related resources

### [fullscreen](https://code.claude.com/docs/en/fullscreen.md)

* Enable fullscreen rendering
  * Fullscreen by default
* What changes
* Use the mouse
* Scroll the conversation
  * Auto-follow
  * Mouse wheel scrolling
  * Scroll in the JetBrains IDE terminal
* Search and review the conversation
* Watch your changes in the diff panel
* Clear the conversation
* Use with tmux
* Keep native text selection
* Troubleshooting
  * Stale or misplaced text on screen
  * `Claude Code's fullscreen renderer didn't finish starting last time` appears at startup
    * How Claude Code counts failed starts
* Research preview

### [accessibility](https://code.claude.com/docs/en/accessibility.md)

* Turn on screen reader mode
  * Project settings can't turn on screen reader mode
* Turn off screen reader mode
* Accessibility settings
* What your screen reader hears
  * Read earlier output without losing your place
  * Jump between turns
* Answer menus and prompts
* Hear when Claude Code needs you
* Known limitations
* Report an issue

### [voice-dictation](https://code.claude.com/docs/en/voice-dictation.md)

* Requirements
* Enable voice dictation
* Hold to record
* Tap to record and send
* Cancel a recording
* Change the dictation language
* Rebind the dictation key
* Troubleshooting
  * Terminal not listed in macOS Microphone settings
* See also

### [statusline](https://code.claude.com/docs/en/statusline.md)

* Set up a status line
  * Use the /statusline command
  * Manually configure a status line
  * Disable the status line
* Build a status line step by step
* How status lines work
  * When the status line updates
  * What your script can output
  * Size output to the terminal
* Available data
  * Context window fields
  * Spend limit fields
  * Prompt cache fields
    * Last miss cause
* Examples
  * Context window usage
  * Git status with colors
  * Cost and duration tracking
  * Display multiple lines
  * Clickable links
  * Rate limit usage
  * Cache expensive operations
  * Windows configuration
* Tips
* Troubleshooting
  * Status line not appearing
  * Status line shows `--` or empty values
  * Context percentage shows unexpected values
  * OSC 8 links not clickable
  * Display glitches with escape sequences
  * Workspace trust required
  * Script errors or hangs
  * Notifications share the status line row

### [keybindings](https://code.claude.com/docs/en/keybindings.md)

* Configuration file
* Contexts
* Available actions
  * App actions
  * History actions
  * Chat actions
  * Autocomplete actions
  * Confirmation actions
  * Permission actions
  * Transcript actions
  * History search actions
  * Task actions
  * Theme actions
  * Help actions
  * Tabs actions
  * Attachments actions
  * Footer actions
  * Message selector actions
  * Diff actions
  * Diff panel actions
  * Model picker actions
  * Effort slider actions
  * Select actions
  * Plugin actions
  * Above-prompt actions
  * Pane actions
  * Settings actions
  * Agents actions
  * Voice actions
  * Scroll actions
* Keystroke syntax
  * Modifiers
  * Uppercase letters
  * Non-US keyboard layouts
  * Chords
  * Special keys
* Unbind default shortcuts
* Reserved shortcuts
* Terminal conflicts
* Text fields
* Vim mode interaction
  * Cancel a question with one key press
* Validation

## Reference

### [cli-reference](https://code.claude.com/docs/en/cli-reference.md)

* CLI commands
* CLI flags
  * System prompt flags
    * System prompt flags in resumed conversations
* See also

### [commands](https://code.claude.com/docs/en/commands.md)

* Commands across a typical workflow
* All commands
* How the command menu matches what you type
* MCP prompts
* See also

### [env-vars](https://code.claude.com/docs/en/env-vars.md)

* Set environment variables
  * Set variables in your shell
  * Set variables in settings files
* Precedence
* Variables
* What the subprocess environment scrub removes
* Features that need feature-flag fetching
  * First session after an install or upgrade
* See also

### [tools-reference](https://code.claude.com/docs/en/tools-reference.md)

* Configure tools with permission rules and hooks
* Agent tool behavior
* AskUserQuestion tool behavior
  * Question auto-continue timeout
* Bash tool behavior
  * What persists between commands
  * Timeout and output limits
    * Output limits
  * Background commands
    * When a background command stops
    * Time limit for background commands
    * Raise the time limit for background commands
    * Foreground commands that move to the background
  * Memory limit on Linux and WSL
* Edit tool behavior
  * Protect read-only files in Perforce
  * Non-UTF-8 files
* EndConversation tool behavior
* EnterWorktree tool behavior
* Glob tool behavior
* Grep tool behavior
* LSP tool behavior
* Monitor tool
  * WebSocket source
    * Addresses and hosts denied to WebSocket watches
    * Bash rules that deny or prompt for WebSocket watches
* NotebookEdit tool behavior
  * Replacing a cell clears its saved outputs in the file
* PowerShell tool
  * Enable the PowerShell tool
  * Bash deny rules also turn off the PowerShell tool
  * Shell selection in settings, hooks, and skills
  * Exit code 1 from searches and `git diff` in PowerShell
  * Windows encoding and exit codes
  * Preview limitations
* Read tool behavior
  * Large files
* SendFeedback tool behavior
  * What you see when Claude drafts
  * Review and edit a draft
  * Send a draft
  * Discard or keep a draft
  * Turn Claude-drafted feedback off
  * Sessions without Claude-drafted feedback
* Task tool availability
  * Task-tracking tools in subagents and agent teams
* WebFetch tool behavior
  * WebFetch availability
* WebSearch tool behavior
  * Session search limit
* Write tool behavior
* Check which tools are available
* See also

### [interactive-mode](https://code.claude.com/docs/en/interactive-mode.md)

* Keyboard shortcuts
  * General controls
  * Text editing
  * Word boundaries in editing shortcuts
  * Theme and display
  * Multiline input
  * Quick commands
  * Transcript viewer
  * Voice input
* Commands
  * Complete a command mid-prompt
* Vim editor mode
  * Mode switching
  * Remap INSERT-mode key sequences
  * Navigation (NORMAL mode)
  * Editing (NORMAL mode)
  * Text objects (NORMAL mode)
  * Visual mode
  * Cancel a question in vim mode
* Command history
  * Bring back a cleared draft
  * Reverse search with Ctrl+R
* Background Bash commands
  * How backgrounding works
  * Shell mode with `!` prefix
* Queue messages while Claude works
  * When Claude Code sends what you queued
  * Background a session with messages queued
  * Take back what you queued
* Prompt suggestions
  * When Claude Code skips suggestions
  * Turn prompt suggestions off
* You should know suggestions
  * Cost of checks
  * Answer a note
  * Turn off You should know
* Emoji shortcodes
* Check spelling as you type
  * Prerequisites
  * Turn spell checking on or off
  * What Claude Code underlines
  * When Claude Code underlines nothing
* Invisible characters in prompts
* Review changes with /diff
  * Diff panel
  * Diff dialog
* Side questions with /btw
  * Ask /btw about a subagent
* Task list
* Session recap
* Wait for a usage limit to reset
  * Cancel the wait
  * Start a wait yourself
  * Turn automatic continue off
* PR review status
  * GitLab merge requests
* Issue reference links
* See also

### [checkpointing](https://code.claude.com/docs/en/checkpointing.md)

* How checkpoints work
  * Automatic tracking
  * Rewind and summarize
    * Rewound messages can return if you exit before your next prompt
    * Rewind past a cleared conversation
    * Guide a summary
* Common use cases
* Limitations
  * Bash command changes not tracked
  * Subagent edits not restored
  * External changes not tracked
  * Messages sent mid-turn not checkpointed
  * Symlinked and hard-linked paths not restored
  * Not a replacement for version control
* See also

### [hooks](https://code.claude.com/docs/en/hooks.md)

* Hook lifecycle
  * How a hook resolves
* Configuration
  * Hook locations
  * Matcher patterns
    * Match MCP tools
    * Match Monitor commands
  * Hook handler fields
    * Common fields
    * How `if` patterns match Bash commands
    * Command hook fields
      * Exec form and shell form
    * HTTP hook fields
    * MCP tool hook fields
      * How the tool's result is read
      * When the server is still connecting
      * Events that fire before MCP servers are available
    * Prompt and agent hook fields
  * Reference scripts by path
  * Hooks in skills and agents
    * Limits on skill hooks
  * The `/hooks` menu
  * Disable or remove hooks
* Hook input and output
  * Common input fields
  * Exit code output
    * Exit code 0
    * Exit code 2
    * Other exit codes
    * Timeouts
    * Hooks that start a background process
    * Block the action when a hook fails
    * Failed hooks on Windows without Git Bash
    * PowerShell started no program
    * Exit code 2 behavior per event
  * HTTP response handling
  * JSON output
    * Emit terminal notifications
    * Get terminal notifications inside tmux or GNU screen
    * Add context for Claude
    * Decision control
* Hook events
  * SessionStart
    * SessionStart input
    * SessionStart decision control
    * Reload skills that a hook installs
    * Persist environment variables
      * Persisted variables in PowerShell commands
  * Setup
    * Setup input
    * Setup decision control
  * InstructionsLoaded
    * InstructionsLoaded input
    * InstructionsLoaded decision control
  * UserPromptSubmit
    * `Esc` during a prompt check
    * UserPromptSubmit input
    * UserPromptSubmit decision control
    * What a blocked prompt leaves behind
  * UserPromptExpansion
    * UserPromptExpansion input
    * UserPromptExpansion decision control
  * MessageDisplay
    * MessageDisplay input
    * MessageDisplay output
  * PreToolUse
    * PreToolUse input
      * Bash
      * PowerShell
      * Write
      * Edit
      * Read
      * Glob
      * Grep
      * WebFetch
      * WebSearch
      * Agent
      * AskUserQuestion
      * ExitPlanMode
    * PreToolUse decision control
    * PreToolUse `updatedInput` in auto mode
    * PreToolUse `ask` decisions in auto mode
    * Tools that require user interaction
    * Defer a tool call for later
      * Resume when a deferred tool is unavailable
  * PermissionRequest
    * PermissionRequest input
    * PermissionRequest decision control
    * Permission update entries
  * PostToolUse
    * PostToolUse after an interrupt
    * PostToolUse input
    * PostToolUse decision control
    * Annotate a result for the auto mode classifier
  * PostToolUseFailure
    * PostToolUseFailure input
    * PostToolUseFailure decision control
  * PostToolBatch
    * PostToolBatch input
    * PostToolBatch decision control
  * PermissionDenied
    * PermissionDenied input
    * PermissionDenied decision control
  * Notification
    * Notification input
  * SubagentStart
    * SubagentStart input
  * SubagentStop
    * SubagentStop input
  * TaskCreated
    * TaskCreated input
    * TaskCreated decision control
  * TaskCompleted
    * TaskCompleted input
    * TaskCompleted decision control
  * Stop
    * Stop input
    * Stop decision control
  * StopFailure
    * StopFailure input
  * TeammateIdle
    * TeammateIdle input
    * TeammateIdle decision control
  * ConfigChange
    * ConfigChange input
    * ConfigChange decision control
  * CwdChanged
    * CwdChanged input
    * CwdChanged output
  * DirectoryAdded
    * DirectoryAdded input
  * FileChanged
    * FileChanged input
    * FileChanged output
  * WorktreeCreate
    * WorktreeCreate input
    * WorktreeCreate output
  * WorktreeRemove
    * WorktreeRemove input
  * PreCompact
    * PreCompact input
    * PreCompact output
  * PostCompact
    * PostCompact input
  * PreModelSwitch
    * PreModelSwitch input
    * PreModelSwitch decision control
    * PreModelSwitch timeouts and other exit codes
  * PostModelSwitch
    * PostModelSwitch input
    * PostModelSwitch decision control
  * SessionEnd
    * SessionEnd input
  * Elicitation
    * Elicitation input
    * Elicitation output
    * Other ways to decline an elicitation
    * Answer a form request from a script
  * ElicitationResult
    * ElicitationResult input
    * ElicitationResult output
* Prompt-based hooks
  * How prompt-based hooks work
  * Prompt hook configuration
  * Response schema
  * Check multiple conditions before stopping
* Agent-based hooks
  * How agent hooks work
  * Agent hook configuration
* Run hooks in the background
  * Configure an async hook
  * How async hooks execute
  * Run tests after file changes
  * Limitations
* Security considerations
  * Disclaimer
  * Workspace trust
  * Security best practices
* Windows PowerShell tool
  * Reference scripts by path in PowerShell hooks
* Debug hooks

### [channels-reference](https://code.claude.com/docs/en/channels-reference.md)

* Overview
* What you need
* Example: build a webhook receiver
* Test during the research preview
* Server options
* Notification format
* Expose a reply tool
* Gate inbound messages
* Relay permission prompts
  * How relay works
  * Permission request fields
  * Add relay to a chat bridge
  * Full example
* Package as a plugin
* See also

## Glossary

### [glossary](https://code.claude.com/docs/en/glossary.md)

* A
  * AGENTS.md
  * Agent teams
  * Agentic coding
  * Agentic harness
  * Agentic loop
  * Artifact
  * Auto memory
  * Auto mode
* B
  * Bare mode
  * Bundled skills
* C
  * Channel
  * Checkpoint
  * `.claude` directory
  * CLAUDE.md
  * Cloud session
  * Command
  * Compaction
  * Connector
  * Context window
* D
  * Dispatch
* E
  * Effort level
  * Extended thinking
* F
  * Frontmatter
* H
  * Hook
* M
  * Managed settings
  * MCP (Model Context Protocol)
  * MCP server
  * MCP Tool Search
* N
  * Non-interactive mode
* O
  * Output style
* P
  * Permission mode
  * Permission rule
  * Plan mode
  * Plugin
  * Project trust
  * Prompt injection
* R
  * Remote Control
  * Rules
* S
  * Sandboxing
  * Session
  * Settings layers
  * Skill
  * Subagent
  * Surface
  * System prompt
  * System reminder
* T
  * Teleport
  * Tool
  * Transcript
  * Turn
* V
  * Verification loop
* W
  * Worktree isolation
* Deprecated and renamed terms

## Agent SDK

### [overview](https://code.claude.com/docs/en/agent-sdk/overview.md)

* Compare the Agent SDK to other Claude tools
* Capabilities
* Get started
* Changelog
* Report bugs
* Branding guidelines
* License and terms
* Next steps

### [quickstart](https://code.claude.com/docs/en/agent-sdk/quickstart.md)

* Prerequisites
* Setup
* Create a buggy file
* Build an agent that finds and fixes bugs
  * Run your agent
  * Try other prompts
  * Customize your agent
* Key concepts
* Next steps

### [migration-guide](https://code.claude.com/docs/en/agent-sdk/migration-guide.md)

* Overview
* What's Changed
* Migration Steps
  * Migrate a TypeScript or JavaScript project
  * Migrate a Python project
* Breaking changes
  * Python: ClaudeCodeOptions renamed to ClaudeAgentOptions
  * System prompt no longer default
  * Settings sources default
* Next Steps

### [troubleshooting](https://code.claude.com/docs/en/agent-sdk/troubleshooting.md)

* CLI startup
  * CLINotFoundError: Claude Code not found
  * CLIConnectionError: Refusing to execute batch script
  * CLIConnectionError: Failed to start Claude Code
  * CLIConnectionError: Not connected
* CLI process exit
  * ProcessError: Command failed with exit code
  * Claude Code process exited with code N
  * Claude Code returned an error result
* Large tool calls and results
  * CLIJSONDecodeError: JSON message exceeded maximum buffer size
* Streaming input
  * Operation aborted
  * Prompt stream failed; closing stdin
  * Image could not be processed
* Structured outputs
  * structured\_output is None but the result says success
* Report a new issue

## Build agents

### [configuration](https://code.claude.com/docs/en/agent-sdk/configuration.md)

* Pass options to a session
* Load settings files
* Choose a model
* Set environment variables
* Set the working directory
* Limit turns and spend
* Change configuration mid-session
* Configure specific features
* Next steps

### [examples](https://code.claude.com/docs/en/agent-sdk/examples.md)

* Run a minimal agent first
* Explore a demo application
* Fork a complete project
* Work through a Python recipe

## Core concepts

### [agent-loop](https://code.claude.com/docs/en/agent-sdk/agent-loop.md)

* The loop at a glance
* Turns and messages
* Message types
  * Handle messages
* Tool execution
  * Built-in tools
  * Tool permissions
  * Parallel tool execution
* Control how the loop runs
  * Turns and budget
    * Budget headroom
  * Effort level
  * Permission mode
  * Model
* The context window
  * What consumes context
  * Automatic compaction
  * Keep context efficient
* Sessions and continuity
* Handle the result
* Hooks
* Put it all together
* Next steps

### [claude-code-features](https://code.claude.com/docs/en/agent-sdk/claude-code-features.md)

* Control filesystem settings with settingSources
  * What settingSources does not control
* Project instructions (CLAUDE.md and rules)
  * CLAUDE.md load locations
* Skills
* Hooks
  * When to use which hook type
* Choose the right feature
* Related resources

### [sessions](https://code.claude.com/docs/en/agent-sdk/sessions.md)

* Choose an approach
  * Continue, resume, and fork
* Automatic session management
  * Python: `ClaudeSDKClient`
  * TypeScript: `continue: true`
* Use session options with `query()`
  * Capture the session ID
  * Resume by ID
  * Fork to explore alternatives
* Resume across hosts
* Related resources

### [session-storage](https://code.claude.com/docs/en/agent-sdk/session-storage.md)

* The `SessionStore` interface
* Quick start
* Write your own adapter
* Reference implementations
  * Validate your adapter
* Behavior notes
  * Dual-write architecture
  * Resume from the store
  * Mirror writes are best-effort
  * `getSessionMessages` returns the post-compaction chain
  * `forkSession` is not a byte copy
  * Subagent transcripts
  * Retention
* Supported on
* Related resources

## Input and output

### [streaming-vs-single-mode](https://code.claude.com/docs/en/agent-sdk/streaming-vs-single-mode.md)

* Choose single-shot or streaming input
* Send more than one message to a session
  * Send a follow-up with an image
  * Feed messages from a chat interface in TypeScript
* Read each response
* Interrupt Claude's response
* Next steps

### [user-input](https://code.claude.com/docs/en/agent-sdk/user-input.md)

* Detect when Claude needs input
* Handle tool approval requests
  * Respond to tool requests
* Handle clarifying questions
  * Question format
    * Option previews (TypeScript)
  * Response format
    * Support free-text input
  * Complete example
* Limitations
* Other ways to get user input
  * Streaming input
  * Custom tools
* Related resources

### [streaming-output](https://code.claude.com/docs/en/agent-sdk/streaming-output.md)

* Enable streaming output
* StreamEvent reference
* Message flow
  * Handle a stream that's cut off
* Stream tool calls
* Build a streaming UI
* Known limitations
* Next steps

### [structured-outputs](https://code.claude.com/docs/en/agent-sdk/structured-outputs.md)

* Why structured outputs?
* Quick start
* Type-safe schemas with Zod and Pydantic
* Output format configuration
* Example: TODO tracking agent
* Recognize the StructuredOutput tool call
* Error handling
* Related resources

## Extend with tools

### [custom-tools](https://code.claude.com/docs/en/agent-sdk/custom-tools.md)

* Quick reference
* Create a custom tool
  * Weather tool example
  * Make a parameter optional
  * Call a custom tool
  * Add more tools
  * Add tool annotations
* Control tool access
  * Configure allowed tools
  * Require approval for specific tools
* Handle errors
* Return images and resources
  * Images
  * Resources
* Return structured data
* Example: unit converter
* Next steps

### [mcp](https://code.claude.com/docs/en/agent-sdk/mcp.md)

* Quickstart
* Add an MCP server
  * Add a server in code
  * Add a server from a config file
* Connection timing
  * Named servers
  * Set the first-turn wait yourself
  * Make startup wait for servers
* Allow MCP tools
  * Tool naming convention
  * Auto-approve with allowedTools
  * Discover available tools
* Transport types
  * stdio servers
  * HTTP/SSE servers
  * SDK MCP servers
* MCP tool search
* Authentication
  * Pass credentials via environment variables
  * HTTP headers for remote servers
  * OAuth2 authentication
* Examples
  * List issues from a repository
  * Query a database
* Error handling
* Troubleshooting
  * Server shows "failed" status
  * Tools not being called
  * A tool is missing from an SDK MCP server
  * Connection timeouts
  * Tool output exceeds maximum allowed tokens
* Related resources

### [tool-search](https://code.claude.com/docs/en/agent-sdk/tool-search.md)

* How tool search works
* Configure tool search
* Optimize tool discovery
* Limits
* Related documentation

### [subagents](https://code.claude.com/docs/en/agent-sdk/subagents.md)

* Overview
* Benefits of using subagents
* Create subagents
  * Programmatic definition (recommended)
  * AgentDefinition configuration
    * Choose whether Claude waits for subagents
  * Filesystem-based definition (alternative)
* What subagents inherit
* Invoke subagents
  * Automatic invocation
  * Explicit invocation
  * Forked subagents
  * Dynamic agent configuration
* Detect subagent invocation
* Resume subagents
* Tool restrictions
  * Common tool combinations
* Cap subagent depth, concurrency, and spend
  * Run Opus 5 with subagents
* Scale up with dynamic workflows
* Troubleshooting
  * Claude not delegating to subagents
  * Filesystem-based agents not loading
* Related documentation

## Customize behavior

### [modifying-system-prompts](https://code.claude.com/docs/en/agent-sdk/modifying-system-prompts.md)

* How system prompts work
  * Decide on a starting point
* Customize agent behavior
  * CLAUDE.md files for project-level instructions
    * Load CLAUDE.md with the SDK
  * Output styles for persistent configurations
    * Create an output style
    * Activate an output style
  * Append to the `claude_code` preset
    * Improve prompt caching across users and machines
  * Custom system prompts
    * Cache the static part of a custom prompt
  * Change the prompt of an existing session
    * Update Claude's instructions mid-session
    * Turn recording off while you iterate on wording
* Context Claude Code adds outside the system prompt
  * Reminders Claude Code adds to the conversation
  * Turn off the context your agent replaces
  * See what Claude received
* Compare the four approaches
* Combine approaches
  * Combine an output style with session-specific additions
* See also

### [skills](https://code.claude.com/docs/en/agent-sdk/skills.md)

* How skills work with the Agent SDK
* Use skills with the Agent SDK
  * Set up skills in a session
  * Confirm skills loaded
  * Allow only specific skills
* Commands in Agent SDK sessions
  * Discover available commands
  * Dispatch commands by name
  * Compact history with `/compact`
  * Reset context with `/clear`
* Create skills
  * Choose a discovery level
  * Create and dispatch your first skill
* Pre-approve tools for skills
* Troubleshooting
  * Skills not found
  * Skill not being used
  * Invalid skill name error
  * Additional troubleshooting
* Next steps
* Related resources

### [plugins](https://code.claude.com/docs/en/agent-sdk/plugins.md)

* Loading plugins
  * Path specifications
  * Reload plugins in a running session
  * Add plugins to a running session
* Verifying plugin installation
* Use plugin skills
* Complete example
* Plugin structure reference
* Multiple plugin sources
* Troubleshooting
  * Plugin not loading
  * Skills not appearing
* See also

## Control and observability

### [permissions](https://code.claude.com/docs/en/agent-sdk/permissions.md)

* How permissions are evaluated
* Allow and deny rules
  * Path patterns in rules
* Permission modes
  * Available modes
  * Set permission mode
  * Mode details
    * Accept edits mode (`acceptEdits`)
    * Don't ask mode (`dontAsk`)
    * Bypass permissions mode (`bypassPermissions`)
    * Plan mode (`plan`)
    * Auto mode (`auto`)
* Related resources

### [hooks](https://code.claude.com/docs/en/agent-sdk/hooks.md)

* How hooks work
* Available hooks
* Configure hooks
  * Matchers
  * Callback functions
    * Inputs
    * Outputs
    * Asynchronous output
  * Block the action when a callback fails
    * Events that behave differently
    * Startup errors for `onFailure`
* Examples
  * Modify tool input
  * Add context and block a tool
  * Auto-approve specific tools
  * Register multiple hooks
  * Filter with multi-tool matchers
  * Track subagent activity
  * Make HTTP requests from hooks
  * Forward notifications to Slack
* Fix common issues
  * Hook not firing
  * Matcher not filtering as expected
  * Hook timeout
  * Tool blocked unexpectedly
  * Modified input not applied
  * Session hooks not available in Python
  * Subagent permission prompts multiplying
  * Recursive hook loops with subagents
  * systemMessage not appearing in output
* Related resources

### [file-checkpointing](https://code.claude.com/docs/en/agent-sdk/file-checkpointing.md)

* How checkpointing works
* Implement checkpointing
* Common patterns
  * Checkpoint before risky operations
  * Multiple restore points
* Try it out
* Limitations
* Troubleshooting
  * Checkpointing options not recognized
  * User messages don't have UUIDs
  * "No file checkpoint found for this message" error
  * "File rewinding is not enabled" error
  * "ProcessTransport is not ready for writing" error
* Next steps

### [cost-tracking](https://code.claude.com/docs/en/agent-sdk/cost-tracking.md)

* Understand token usage
* Track costs in streaming input mode
* Get the total cost of a query
* Track per-step and per-model usage
  * Track per-step usage
  * Break down usage per model
* Accumulate costs across multiple calls
* Handle errors, caching, and output token counts
  * Read output tokens from the result message
  * Track costs on failed conversations
  * Recover totals after a session crash
  * Track cache tokens
  * Extend the prompt cache TTL to one hour
* Related documentation

### [observability](https://code.claude.com/docs/en/agent-sdk/observability.md)

* How telemetry flows from the SDK
* Enable telemetry export
  * Flush telemetry from short-lived calls
* Read agent traces
* Link traces to your application
* Tag telemetry from your agent
* Attribute actions to your end users
* Control sensitive data in exports
* Related documentation

### [todo-tracking](https://code.claude.com/docs/en/agent-sdk/todo-tracking.md)

* Model availability
* Todo lifecycle
* When Claude creates todos
* Examples
  * Monitor todo changes
  * Display progress in real time
* Related documentation

## Deployment

### [hosting](https://code.claude.com/docs/en/agent-sdk/hosting.md)

* The subprocess model
  * State that lives on local disk
* Choose a session pattern
  * Ephemeral sessions
  * Long-running sessions
  * Hybrid sessions
  * Multi-agent container
* Provision the container
  * Container-based sandboxing
  * Runtime dependencies
  * Resources
  * Network
* Handle production concerns
  * Session and state persistence
  * Observability
  * Auth and secrets
  * Scaling and concurrency
  * Cost
  * Multi-tenant isolation
* Known limitations
* Troubleshoot deployment failures
* Next steps

### [secure-deployment](https://code.claude.com/docs/en/agent-sdk/secure-deployment.md)

* Threat model
* Built-in security features
* Security principles
  * Security boundaries
  * Least privilege
  * Defense in depth
* Isolation technologies
  * Sandbox runtime
  * Containers
  * gVisor
  * Virtual machines
  * Cloud deployments
* Credential management
  * The proxy pattern
  * Configuring Claude Code to use a proxy
  * Implementing a proxy
  * Credentials for other services
    * Custom tools
    * Traffic forwarding
* Filesystem configuration
  * Read-only code mounting
  * Writable locations
* Further reading

## SDK references

### [typescript](https://code.claude.com/docs/en/agent-sdk/typescript.md)

* Installation
  * Compile to a single executable
  * Import the `/core` entry when you bundle the Agent SDK
* Functions
  * `query()`
    * Parameters
    * Returns
  * `startup()`
    * Parameters
    * Returns
    * Example
  * `prewarm()`
    * Parameters
    * Returns
    * How a spare works
    * Example
  * `tool()`
    * Parameters
    * `ToolAnnotations`
  * `createSdkMcpServer()`
    * Parameters
  * `listSessions()`
    * Parameters
    * Return type: `SDKSessionInfo`
    * Example
  * `getSessionMessages()`
    * Parameters
    * Return type: `SessionMessage`
    * Example
  * `getSessionInfo()`
    * Parameters
  * `renameSession()`
    * Parameters
  * `tagSession()`
    * Parameters
  * `forkSession()`
    * Parameters
  * `resolveSettings()`
    * Parameters
    * Return type: `ResolvedSettings`
    * Example
  * `matchDeniedModels()`
* Types
  * `Options`
    * Handle slow or stalled API responses
  * `Query` object
    * Methods
    * `setMcpPermissionModeOverride()`
    * `seedReadState()`
    * `backgroundTasks()`
    * `applyFlagSettings()`
    * `updateSettings()`
    * `toggleMcpServer()`
  * `WarmQuery`
    * Methods
  * `SpareProcess`
    * Members
  * `SDKControlInitializeResponse`
  * `SDKControlInterruptResponse`
  * `SDKControlGetContextUsageResponse`
    * Find a row by ID, a server's instruction tokens, or an entry's plugin and file
  * `SDKControlReadFileResponse`
    * What `readFile()` can read
  * `SDKControlReloadPluginsResponse`
    * Load more plugin folders with `addPlugins`
      * When `reloadPlugins()` doesn't load the `addPlugins` folders
  * `SDKControlReloadSkillsResponse`
  * `SDKControlReloadOutputStylesResponse`
  * `SDKControlMcpReadResourceResponse`
  * `AgentDefinition`
  * `AgentMcpServerSpec`
  * `SettingSource`
    * Default behavior
    * Why use settingSources
    * Settings precedence
  * `PermissionMode`
  * `CanUseTool`
  * `PermissionResult`
  * `ToolConfig`
  * `McpServerConfig`
    * `McpStdioServerConfig`
    * `McpSSEServerConfig`
    * `McpHttpServerConfig`
    * `McpSdkServerConfigWithInstance`
    * `McpServerToolPolicy`
      * `permission_policy` values
      * Permission modes that can approve an `always_ask` call
    * `McpClaudeAIProxyServerConfig`
  * `SdkPluginConfig`
* Message Types
  * `SDKMessage`
  * `SDKAssistantMessage`
  * `SDKUserMessage`
  * `SDKUserMessageReplay`
  * `SDKResultMessage`
    * `user_message_uuid`
    * `user_message_uuids`
    * `resume_reason`
    * `queued_turn_count`
    * `startup_failure_reason`
  * `SDKSystemMessage`
  * `SDKPartialAssistantMessage`
  * `SDKCompactBoundaryMessage`
  * `SDKInformationalMessage`
  * `SDKWorkerShuttingDownMessage`
  * `SDKPluginInstallMessage`
  * `SDKPermissionDeniedMessage`
  * `SDKPermissionDenial`
  * `SDKContextUsage`
  * `SDKContextUsageCategory`
  * `SDKUsageReport`
  * `SDKMessageOrigin`
  * Task-notification subkinds
    * Declare a scheduled run
  * Peer origin fields
* Hook Types
  * `HookEvent`
  * `HookCallback`
  * `HookCallbackMatcher`
  * `HookInput`
  * `BaseHookInput`
    * `PreToolUseHookInput`
    * `PostToolUseHookInput`
    * `PostToolUseFailureHookInput`
    * `PostToolBatchHookInput`
    * `PermissionDeniedHookInput`
    * `NotificationHookInput`
    * `UserPromptSubmitHookInput`
    * `UserPromptExpansionHookInput`
    * `SessionStartHookInput`
    * `SessionEndHookInput`
    * `StopHookInput`
    * `StopFailureHookInput`
    * `SubagentStartHookInput`
    * `SubagentStopHookInput`
    * `PreCompactHookInput`
    * `PostCompactHookInput`
    * `PreModelSwitchHookInput`
    * `PostModelSwitchHookInput`
    * `PermissionRequestHookInput`
    * `SetupHookInput`
    * `TeammateIdleHookInput`
    * `TaskCreatedHookInput`
    * `TaskCompletedHookInput`
    * `ElicitationHookInput`
    * `ElicitationResultHookInput`
    * `ConfigChangeHookInput`
    * `InstructionsLoadedHookInput`
    * `DirectoryAddedHookInput`
    * `WorktreeCreateHookInput`
    * `WorktreeRemoveHookInput`
    * `CwdChangedHookInput`
    * `FileChangedHookInput`
    * `MessageDisplayHookInput`
  * `HookJSONOutput`
    * `AsyncHookJSONOutput`
    * `SyncHookJSONOutput`
* Tool Input Types
  * `ToolInputSchemas`
  * Agent
  * AskUserQuestion
  * Bash
  * Monitor
  * TaskOutput
  * Edit
  * Read
  * Write
  * Glob
  * Grep
  * TaskStop
  * NotebookEdit
  * WebFetch
  * WebSearch
  * Workflow
  * TodoWrite
  * TaskCreate
  * TaskUpdate
  * TaskGet
  * TaskList
  * ExitPlanMode
  * ListMcpResources
  * ReadMcpResource
  * EnterWorktree
  * ExitWorktree
  * EnterPlanMode
  * CronCreate
  * CronDelete
  * CronList
  * ScheduleWakeup
  * RemoteTrigger
  * PushNotification
  * REPL
  * ReportFindings
  * Artifact
  * Projects
  * ReadMcpResourceDir
  * RefreshMcpTools
  * ShowOnboardingRolePicker
  * McpInput
* Tool Output Types
  * `ToolOutputSchemas`
  * Agent
  * AskUserQuestion
  * Bash
  * Monitor
  * Edit
  * Read
  * Write
  * Glob
  * Grep
  * TaskStop
  * NotebookEdit
  * WebFetch
  * WebSearch
  * Workflow
  * TodoWrite
  * TaskCreate
  * TaskUpdate
  * TaskGet
  * TaskList
  * ExitPlanMode
  * ListMcpResources
  * ReadMcpResource
  * EnterWorktree
  * ExitWorktree
  * EnterPlanMode
  * CronCreate
  * CronDelete
  * CronList
  * ScheduleWakeup
  * RemoteTrigger
  * PushNotification
  * ReportFindings
  * Artifact
  * Projects
  * ReadMcpResourceDir
  * RefreshMcpTools
  * ShowOnboardingRolePicker
  * McpOutput
* Permission Types
  * `PermissionUpdate`
  * `PermissionBehavior`
  * `PermissionUpdateDestination`
  * `PermissionRuleValue`
* Other Types
  * `ApiKeySource`
  * `SdkBeta`
  * `SlashCommand`
  * `ModelInfo`
  * `AgentInfo`
  * `McpServerProvenance`
  * `McpServerStatus`
    * When a tool's `_meta.ui` holds only `visibility`
  * `McpServerStatusConfig`
  * `AccountInfo`
  * `ModelUsage`
  * `ConfigScope`
  * `NonNullableUsage`
  * `Usage`
  * `CallToolResult`
  * `SDKMcpResourceLink`
  * `ThinkingConfig`
  * `SpawnedProcess`
  * `SpawnOptions`
  * `McpSetServersResult`
  * `RewindFilesResult`
  * `SDKStatusMessage`
  * `SDKTaskNotificationMessage`
  * `SDKToolUseSummaryMessage`
  * `SDKHookStartedMessage`
  * `SDKHookProgressMessage`
  * `SDKHookResponseMessage`
  * `SDKToolProgressMessage`
  * `SDKAuthStatusMessage`
  * `SDKTaskStartedMessage`
  * `SDKTaskProgressMessage`
  * `SDKTaskUpdatedMessage`
  * `SDKBackgroundTasksChangedMessage`
  * `SDKThinkingTokensMessage`
  * `SDKSessionStateChangedMessage`
  * `SDKFilesPersistedEvent`
  * `SDKRateLimitEvent`
  * `SDKLocalCommandOutputMessage`
  * `SDKCommandsChangedMessage`
  * `SDKPromptSuggestionMessage`
  * `SDKConversationResetMessage`
  * `BUILTIN_TOOL_NAMES` and `LEGACY_TOOL_NAME_ALIASES`
  * `AbortError`
* Sandbox Configuration
  * `SandboxSettings`
    * Example usage
  * `SandboxNetworkConfig`
  * `SandboxFilesystemConfig`
  * Permissions Fallback for Unsandboxed Commands
* See also

### [typescript-v2-preview](https://code.claude.com/docs/en/agent-sdk/typescript-v2-preview.md)

* Installation
* Quick start
  * One-shot prompt
  * Basic session
  * Multi-turn conversation
  * Session resume
  * Cleanup
* API reference
  * `unstable_v2_createSession()`
  * `unstable_v2_resumeSession()`
  * `unstable_v2_prompt()`
  * SDKSession interface
* Feature availability
* See also

### [python](https://code.claude.com/docs/en/agent-sdk/python.md)

* Installation
* Choosing between `query()` and `ClaudeSDKClient`
* Functions
  * `query()`
    * Parameters
    * Returns
    * Example - With options
  * `tool()`
    * Parameters
    * Input schema options
    * Returns
    * Example
    * `ToolAnnotations`
  * `create_sdk_mcp_server()`
    * Parameters
    * Returns
    * Example
  * `list_sessions()`
    * Parameters
    * Return type: `SDKSessionInfo`
    * Example
  * `get_session_messages()`
    * Parameters
    * Return type: `SessionMessage`
    * Example
  * `get_session_info()`
    * Parameters
    * Example
  * `rename_session()`
    * Parameters
    * Example
  * `tag_session()`
    * Parameters
    * Example
  * `fork_session()`
    * Parameters
    * Example
* Classes
  * `ClaudeSDKClient`
    * Methods
    * Context Manager Support
    * Example - Continuing a conversation
    * Example - Streaming input with ClaudeSDKClient
    * Example - Using interrupts
    * Example - Advanced permission control
* Types
  * `SdkMcpTool`
  * `Transport`
  * `ClaudeAgentOptions`
    * Handle slow or stalled API responses
  * `OutputFormat`
  * `SystemPromptPreset`
  * `SystemPromptCustom`
  * `SystemPromptFile`
  * `SettingSource`
    * Default behavior
    * Why use setting\_sources
    * Settings precedence
  * `AgentDefinition`
  * `PermissionMode`
  * `EffortLevel`
  * `CanUseTool`
  * `ToolPermissionContext`
  * `PermissionResult`
  * `PermissionResultAllow`
  * `PermissionResultDeny`
  * `PermissionUpdate`
  * `PermissionRuleValue`
  * `ToolsPreset`
  * `ThinkingConfig`
  * `TaskBudget`
  * `SdkBeta`
  * `McpSdkServerConfig`
  * `McpServerConfig`
    * `McpStdioServerConfig`
    * `McpSSEServerConfig`
    * `McpHttpServerConfig`
  * `McpServerStatusConfig`
  * `McpStatusResponse`
  * `McpServerStatus`
  * `ContextUsageResponse`
  * `SdkPluginConfig`
* Message Types
  * `Message`
  * `UserMessage`
  * `AssistantMessage`
  * `AssistantMessageError`
  * `SystemMessage`
  * `ResultMessage`
  * `StreamEvent`
  * `RateLimitEvent`
  * `RateLimitInfo`
  * `ConversationResetMessage`
  * `TaskStartedMessage`
  * `TaskUsage`
  * `TaskProgressMessage`
  * `TaskNotificationMessage`
* Content Block Types
  * `ContentBlock`
  * `TextBlock`
  * `ThinkingBlock`
  * `ToolUseBlock`
  * `ToolResultBlock`
* Error Types
  * `ClaudeSDKError`
  * `CLINotFoundError`
  * `CLIConnectionError`
  * `ProcessError`
  * `ResultError`
  * `CLIJSONDecodeError`
* Hook Types
  * `HookEvent`
  * `HookCallback`
  * `HookContext`
  * `HookMatcher`
  * `HookInput`
  * `BaseHookInput`
  * `PreToolUseHookInput`
  * `PostToolUseHookInput`
  * `PostToolUseFailureHookInput`
  * `UserPromptSubmitHookInput`
  * `StopHookInput`
  * `SubagentStopHookInput`
  * `PreCompactHookInput`
  * `NotificationHookInput`
  * `SubagentStartHookInput`
  * `PermissionRequestHookInput`
  * `HookJSONOutput`
    * `SyncHookJSONOutput`
    * `HookSpecificOutput`
    * `AsyncHookJSONOutput`
  * Hook Usage Example
* Tool Input/Output Types
  * Agent
  * AskUserQuestion
  * Bash
  * Monitor
  * Edit
  * Read
  * Write
  * Glob
  * Grep
  * NotebookEdit
  * WebFetch
  * WebSearch
  * TodoWrite
  * TaskCreate
  * TaskUpdate
  * TaskGet
  * TaskList
  * TaskOutput
  * TaskStop
  * ExitPlanMode
  * ListMcpResources
  * ReadMcpResource
* Build a continuous conversation interface
* Error handling
* Sandbox Configuration
  * `SandboxSettings`
    * Example usage
  * `SandboxNetworkConfig`
  * `SandboxIgnoreViolations`
  * Permissions Fallback for Unsandboxed Commands
* See also

## Resources

### [legal-and-compliance](https://code.claude.com/docs/en/legal-and-compliance.md)

* Legal agreements
  * License
  * Commercial agreements
  * Can customers offer Claude Code in their products?
* Compliance
  * Healthcare compliance (BAA)
* Usage policy
  * Acceptable use
  * Authentication and credential use
* Security and trust
  * Trust and safety
  * Security vulnerability reporting
