Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

461 pages for hooks.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Configure auto mode Claude Code CLI · in the page auto-mode-config …that inspects the full command text, add a [PreToolUse hook](/docs/en/hooks.md#pretooluse). Pick the mechanism that matches how firm the boundary needs to be: | Boundary | Mechanism | Behavior in au… Best practices for Claude Code Claude Code CLI · in the page best-practices …luation-works). * **As a deterministic gate**: a [Stop hook](/docs/en/hooks.md#stop) runs your check as a script and blocks the turn from ending until it passes. [Stop input](/docs/en/hooks.md#stop-in… Champion kit Claude Code CLI · in the page champion-kit …ceive a desktop notification when a long-running task completes. See [Hooks](/docs/en/hooks-guide.md). | | Recover from an incorrect result | Rather than rephrasing the request, paste the failing test… Claude Code changelog Claude Code CLI · in the page changelog …even when git is set to another language * Improved the error when a hooks module is nested too deep to load: it now names the file instead of showing a bare stack-overflow message * Improved disk-fu… Push events into a running session with channels Claude Code CLI · in the page channels …ession with channels > Use channels to push messages, alerts, and webhooks into your Claude Code session from an MCP server. Forward CI results, chat messages, and monitoring events so Claude can rea… Channels reference Claude Code CLI · in the page channels-reference # Channels reference > Build an MCP server that pushes webhooks, alerts, and chat messages into a Claude Code session. Reference for the channel contract: capability declaration, notification events,… Use Claude Code with Chrome Claude Code CLI · in the page chrome …eme={null} Go to code.claude.com/docs, click on the search box, type "hooks", and tell me what results appear ``` If Claude Code asks for permission before a browser action, approve it. The dialog st… Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry Claude Code CLI · in the page claude-apps-gateway …eway-config#claude-desktop-overlay). The block's other keys, such as hooks, `env`, and scoped permission rules like `Bash(npm *)`, reach clients that sign in through `/login`. Under `code`, they also… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …`deniedMcpServers`, `blockedMarketplaces`, `deniedModels`, and every `hooks` event-type array. These take the union of base and policy, so an org-wide deny or audit hook can't be accidentally dropped… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …A Claude apps gateway can push settings to users' machines, including hooks that run shell commands. The check helps keep users from accidentally signing in to a malicious gateway on the public intern… Use Claude Code in the cloud Claude Code CLI · in the page claude-code-on-the-web …ortionately. * **Time limits**: commands Claude runs and SessionStart hooks have default timeouts you can change, and a setup script is cached only when it finishes in roughly five minutes. See [Time… Explore the .claude directory Claude Code CLI · in the page claude-directory …claude directory > Where Claude Code reads CLAUDE.md, settings.json, hooks, skills, commands, subagents, workflows, rules, and auto memory. Explore the .claude directory in your project and ~/.claude… Let Claude coordinate ongoing work with Projects Claude Code CLI · in the page claude-projects …MCP servers, and Claude Code settings on that machine, including its hooks and permission rules, instead of the project's cloud environment * Starts with the project's instructions, but not with its… claude-tag Claude Code CLI · in the page claude-tag …design replaces. The #content-container / #content-area / #header hooks are Mintlify renderer internals; if a platform update renames them the page degrades to a narrow column with a duplica… CLI reference Claude Code CLI · in the page cli-reference …| Minimal mode: skip auto-discovery of hooks, skills, custom commands, subagents, installed plugins, MCP servers, auto memory, and CLAUDE.md so scripted calls start fast… Configure cloud environments Claude Code CLI · in the page cloud-environments …md` | Yes | Part of the clone | | Your repo's `.claude/settings.json` hooks and permission rules | Yes, in a session with one repository | Part of the clone. For a session with several repositories, s… Commands Claude Code CLI · in the page commands …h as `\\server\share`. After a successful add, your [`DirectoryAdded` hooks](/docs/en/hooks#directoryadded) run. When you run it while Claude is responding, Claude Code asks you to confirm the directo… Common workflows Claude Code CLI · in the page common-workflows …de Code ignores it in project and local settings. Your [`PreToolUse` hooks](/docs/en/hooks#pretooluse) don't run when Claude Code includes a file you reference with `@`, because it makes no tool call… Communications kit Claude Code CLI · in the page communications-kit …ow morning. 📖 Skills → https://code.claude.com/docs/en/skills ``` **Hooks** ```markdown theme={null} 🔔 *Tip: Get pinged when your refactor finishes* Sitting at your desk watching Claude work throu… Explore the context window Claude Code CLI · in the page context-window …at loads automatically, what each file read costs, and when rules and hooks fire. export const ContextWindow = () => { const MAX = 200000; const STARTUP_END = 0.2; {} const EVENTS = useMemo((… Run Claude Code behind a corporate launcher Claude Code CLI · in the page corporate-launcher …e shell commands Claude runs on your behalf, such as Bash tool calls, hooks, and the commands that start stdio MCP servers, and passes each one as a single shell-quoted string in `$1` for the wrapper… Manage costs effectively Claude Code CLI · in the page costs …ement, model selection, extended thinking settings, and preprocessing hooks. Claude Code charges by API token consumption. For subscription plan pricing (Pro, Max, Team, Enterprise), see [claude.com/… Message your other Claude Code sessions Claude Code CLI · in the page cross-session-messaging …` row. The path is prefixed with `uds:`. * Claude Code exports it to [hooks](/docs/en/hooks.md) and Bash commands as the [`CLAUDE_CODE_MESSAGING_SOCKET`](/docs/en/env-vars#variables) environment varia… Debug your configuration Claude Code CLI · in the page debug-your-config # Debug your configuration > Diagnose why CLAUDE.md, settings, hooks, MCP servers, or skills aren't taking effect. Use /context, /doctor, /hooks, and /mcp to see what actually loaded. When Claude ig… Desktop application Claude Code CLI · in the page desktop …e-main-checkout) for where a worktree session reads project settings, hooks, and skills. > [!NOTE] > > Session isolation requires [Git](https://git-scm.com/downloads). Most Macs include Git by defaul… Environment variables Claude Code CLI · in the page env-vars …ode spawns (Bash and PowerShell tools, tmux sessions, [hook](/docs/en/hooks) commands, [status line](/docs/en/statusline) commands, stdio [MCP server](/docs/en/mcp) subprocesses). IDE extensions also… Error reference Claude Code CLI · in the page errors …tings contain invalid entries, including PreToolUse/PermissionRequest hooks that are NOT loaded; fix or remove each entry:` | [Configuration warnings](#managed-settings-hooks-not-loaded) | | `otelHead… Feature availability Claude Code CLI · in the page feature-availability …s/en/jetbrains.md) extensions * [Subagents](/docs/en/sub-agents.md), [hooks](/docs/en/hooks-guide.md), [commands](/docs/en/commands.md), and [skills](/docs/en/skills.md) * [CLAUDE.md memory](/docs/en/… Extend Claude Code Claude Code CLI · in the page features-overview …d Claude Code > Understand when to use CLAUDE.md, Skills, subagents, hooks, MCP, and plugins. Claude Code combines a model that reasons about your code with [built-in tools](/docs/en/how-claude-code… Fullscreen rendering Claude Code CLI · in the page fullscreen …) * Deny or ask rules that a [hook or SDK permission update](/docs/en/hooks.md#permission-update-entries) added for this session only In that case Claude Code prints [`Cannot switch renderers in this… Claude Code GitHub Actions Claude Code CLI · in the page github-actions …| | Metadata | Read | | Pull requests | Read and write | | Repository hooks | Read and write | | Statuses | Read | | Workflows | Read and write | The permission set can also change ahead of the featu… Use Claude Code GitHub Actions with cloud providers Claude Code CLI · in the page github-actions-cloud-providers …ithub-apps/registering-a-github-app/registering-a-github-app) with webhooks disabled, since this integration doesn't use them. Grant it three repository permissions: * **Contents**: read and write *… Claude Code with GitHub Enterprise Server Claude Code CLI · in the page github-enterprise-server …ders that report commit statuses instead of check runs | | Repository hooks | Read and write | Creating a webhook on a plugin marketplace repository when **Sync automatically** is turned on for a mark… Glossary Claude Code CLI · in the page glossary …ude Code terminology. Learn what agentic loop, compaction, CLAUDE.md, hooks, subagents, MCP, and other core concepts mean. This glossary defines Claude Code terminology. Each entry links to the page… Keep Claude working toward a goal Claude Code CLI · in the page goal …stop it, or Claude decides the work is done | | [Stop hook](/docs/en/hooks-guide.md#prompt-based-hooks) | The previous turn finishes | Your own script or prompt decides | `/goal` and a Stop hook bot… Claude Code on Google Cloud's Agent Platform Claude Code CLI · in the page google-vertex-ai …gs.json`, Claude Code runs it under the same [workspace trust rule as hooks in settings files](/docs/en/permissions.md#what-runs-before-you-trust-a-folder), which includes `-p` sessions in folders you… Run Claude Code programmatically Claude Code CLI · in the page headless …de Add `--bare` to reduce startup time by skipping auto-discovery of hooks, skills, custom commands, [subagents](/docs/en/sub-agents.md), installed plugins, MCP servers, auto memory, and CLAUDE.md. W… Set up Claude Code (local mode) for a HIPAA-ready organization Claude Code CLI · in the page hipaa-setup …de [removes Anthropic credentials](#anthropic-credentials-in-commands-hooks-and-mcp-servers) from the processes it starts | | Restrictions remain after `/login` to a different organization | The HIPAA… How Claude Code works Claude Code CLI · in the page how-claude-code-works …ommon-workflows.md). For extensibility features like skills, MCP, and hooks, see [Extend Claude Code](/docs/en/features-overview.md). ## The agentic loop When you give Claude a task, it works throug… Interactive mode Claude Code CLI · in the page interactive-mode …**The continuation is blocked**: a [`UserPromptSubmit` hook](/docs/en/hooks#userpromptsubmit) that blocks the continuation prompt, or a failure before it reaches the model, ends the wait. Claude Code… JetBrains IDEs Claude Code CLI · in the page jetbrains …o configure. If your organization uses a [`PreToolUse` hook](/docs/en/hooks#pretooluse) to allowlist MCP tools, though, you'll need to know it exists. **Selection and open-file context.** While conne… Set up Claude Code in a monorepo or large codebase Claude Code CLI · in the page large-codebases …* **Add a Stop hook that proposes updates**: a [`Stop` hook](/docs/en/hooks#stop) receives the path to the session transcript when Claude finishes responding, so a script can review the session and pr… Claude Code gateway compatibility guide Claude Code CLI · in the page llm-gateway-protocol …n that ran no tools * Times: each one excludes permission prompts and hooks, and parallel tool calls each report their own time, so the entries don't add up to the gap between requests ### Forward as… Roll out an LLM gateway for your organization Claude Code CLI · in the page llm-gateway-rollout …moves them](/docs/en/hipaa-setup.md#anthropic-credentials-in-commands-hooks-and-mcp-servers) from the processes Claude Code starts, and no settings key does only that Don't use `CLAUDE_CODE_DISABLE_N… Deploy managed settings Claude Code CLI · in the page managed-settings …a lower source's list entries, such as `permissions.allow` rules and hooks, to the policy, so turn it on only when every source ranked below your highest one is under an administrator's control. Thi… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …ithout depending on the working directory. This is the same directory hooks receive in their `CLAUDE_PROJECT_DIR` variable. Read it from inside your server process, for example `process.env.CLAUDE_PRO… How Claude remembers your project Claude Code CLI · in the page memory …n regardless of what Claude decides, use a [PreToolUse hook](/docs/en/hooks-guide.md) instead. The more specific and concise your instructions, the more consistently Claude follows them. | | CLAUDE.m… Model configuration Claude Code CLI · in the page model-config …ost overrides. If you or your organization configure [PreModelSwitch hooks](/docs/en/hooks.md#premodelswitch), they run before a requested switch applies and can block it or ask you to confirm. When… Monitoring Claude Code CLI · in the page monitoring-usage …ent variables to the subprocesses it spawns, including the Bash tool, hooks, MCP servers, and language servers. An OpenTelemetry-instrumented application that you run through the Bash tool doesn't inh… Output styles Claude Code CLI · in the page output-styles …rmatting after each edit or blocking a command, use a [hook](/docs/en/hooks-guide.md). > * For skills, subagents, and the other options, see [Choose between an output style and other features](#choose…
Feedback