878 pages for check.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…#available-hooks). **2. The SDK collects registered hooks** The SDK checks for hooks registered for that event type. This includes callback hooks you pass in `options.hooks` and shell command hooks…
Hosting the Agent SDK
Claude Code CLI · in the page
agent-sdk/hosting
…xample workloads include a personal project manager with intermittent check-ins, deep research that pauses and resumes over hours, and a customer support agent that loads ticket history across interac…
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…# Discover available tools To see what tools an MCP server provides, check the server's documentation or inspect the `tools` array in the `system` init message. MCP tool names start with `mcp__`. Cl…
Migrate to Claude Agent SDK
Claude Code CLI · in the page
agent-sdk/migration-guide
…om/docs/en/agent-sdk/overview.md) to learn about available features * Check out the [TypeScript SDK Reference](https://code.claude.com/docs/en/agent-sdk/typescript.md) for detailed API documentation *…
Modifying system prompts
Claude Code CLI · in the page
agent-sdk/modifying-system-prompts
…--- You are an expert code reviewer. For every code submission: 1. Check for bugs and security issues 2. Evaluate performance 3. Suggest improvements 4. Rate code quality (1-10) ``` #### Activate…
Observability with OpenTelemetry
Claude Code CLI · in the page
agent-sdk/observability
…omitting `options.env` entirely. To confirm that export is working, check your collector's logs for incoming spans, metrics, and log events after the task completes. The CLI fails silently on export…
Configure permissions
Claude Code CLI · in the page
agent-sdk/permissions
…mong-rules-hooks-and-mods). When Claude requests a tool, Claude Code checks the call at these steps. Each step can decide the call, send it to your `canUseTool` callback, or pass it on: **1. Hooks**…
Plugins in the SDK
Claude Code CLI · in the page
agent-sdk/plugins
…if (message.type === "system" && message.subtype === "init") { // Check loaded plugins console.log("Plugins:", message.plugins); // Example: [{ name: "my-plugin", path: "/absolute/path/to/…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…tinue the fork. The fork doesn't include the original session's [file checkpoints](https://code.claude.com/docs/en/agent-sdk/file-checkpointing.md), so you can't rewind it to a checkpoint captured bef…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…g and each tool it calls, ending with `Done: success`. After running, check `utils.py`. You'll see defensive code handling empty lists and null users. Your agent autonomously: 1. **Read** `utils.py`…
Persist sessions to external storage
Claude Code CLI · in the page
agent-sdk/session-storage
…rror is built from. The Python SDK has no equivalent option. * **File checkpointing**, `enableFileCheckpointing` in TypeScript or `enable_file_checkpointing` in Python: writes its file backups straigh…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…system. To snapshot and revert file changes the agent made, use [file checkpointing](https://code.claude.com/docs/en/agent-sdk/file-checkpointing.md). This guide covers how to pick the right approach…
Extend agents with skills
Claude Code CLI · in the page
agent-sdk/skills
…t of the stream, the SDK yields a system message with subtype `init`. Check its `skills` array to confirm your skills loaded before Claude starts working. The array includes the user-invocable skills…
Stream responses in real-time
Claude Code CLI · in the page
agent-sdk/streaming-output
…`AssistantMessage` and `ResultMessage`. Your code then needs to: 1. Check each message's type to distinguish `StreamEvent` from other message types 2. For `StreamEvent`, extract the `event` field an…
Streaming Input
Claude Code CLI · in the page
agent-sdk/streaming-vs-single-mode
…laude Code process aborted by user` instead of the original error, so check the code inside your generator first when you see that message. The error may also be preceded by a long minified line of bu…
Get structured output from agents
Claude Code CLI · in the page
agent-sdk/structured-outputs
…bject you can use throughout your codebase with autocomplete and type checking. The example below defines a schema for a feature implementation plan with a summary, list of steps (each with complexit…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…than the sum of all of them. During a code review, you can run `style-checker`, `security-scanner`, and `test-coverage` subagents simultaneously instead of sequentially. * **Specialized instructions a…
Track todos
Claude Code CLI · in the page
agent-sdk/todo-tracking
…, under its own defaults. To see the exact set in a running session, [check which tools are available](https://code.claude.com/docs/en/tools-reference.md#check-which-tools-are-available). To opt a ses…
Scale to many tools with tool search
Claude Code CLI · in the page
agent-sdk/tool-search
…e HIPAA configuration](https://code.claude.com/docs/en/hipaa-setup.md#check-how-developers-sign-in-and-connect), tool search is off, and neither `ENABLE_TOOL_SEARCH` nor managed settings turns it back…
Troubleshoot the Agent SDK
Claude Code CLI · in the page
agent-sdk/troubleshooting
…//code.claude.com/docs/en/agent-sdk/subagents.md#troubleshooting) | | Checkpointing options not recognized, user messages without UUIDs, `No file checkpoint found`, `File rewinding is not enabled`, `P…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…tinue the fork. The fork doesn't include the original session's [file checkpoints](https://code.claude.com/docs/en/agent-sdk/file-checkpointing.md), so you can't rewind it to a checkpoint captured bef…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…sions to the SDK. While working on a task, Claude sometimes needs to check in with users. It might need permission before deleting files, or need to ask which database to use for a new project. Your…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…e directly without going through the lead. Before you set up a team, check whether a lighter option does the job. [Subagents](https://code.claude.com/docs/en/sub-agents.md) work within a single sessi…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…test investigation as three rows, keep working in another window, and check back when a row shows it needs you or has a result. When you want to work more directly in any agent's session, attach to t…
Run agents in parallel
Claude Code CLI · in the page
agents
…eview | You have several independent tasks and want to hand them off, check status at a glance, and step in only when one needs you | | [Agent teams](https://code.claude.com/docs/en/agent-teams.md) |…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…ying your credentials, and to the credential lookup before each model check. During credential verification, a check that exceeds it fails with [`Timed out after 60s waiting for AWS`](https://code.cla…
Track team usage with analytics
Claude Code CLI · in the page
analytics
…app to view contribution metrics * **"Data processing in progress"**: check back in a few days and confirm the GitHub app is installed if data doesn't appear Contribution metrics cover repositories h…
Share session output as artifacts
Claude Code CLI · in the page
artifacts
…HTML file without a link, artifacts aren't enabled for your session. Check the [Availability](#availability) requirements. If the terminal shows `Artifacts need a claude.ai login`, see [that error's…
Authentication
Claude Code CLI · in the page
authentication
…n-and-settings-across-rebuilds). If you see the login prompt anyway, [check what can cause it](#login-prompt-still-appears-after-an-earlier-sign-in). If the browser doesn't open automatically, press…
Auto mode classifier request charges
Claude Code CLI · in the page
auto-mode-classifier-billing
…n/permission-modes.md#eliminate-prompts-with-auto-mode), a classifier checks actions such as shell commands and network requests before they run. Wherever [server-side checks are on](https://code.clau…
Configure auto mode
Claude Code CLI · in the page
auto-mode-config
…ns. If Claude Code reports auto mode as unavailable for your account, check the [full requirements](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode), which also co…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…Get more out of Claude Code: tell Claude what it can't see, give it a check to run, and enforce the rules that can't have exceptions. Claude Code is built in a way that, in most cases, your first pla…
Claude Code changelog
Claude Code CLI · in the page
changelog
…s of improvements and bug fixes collapsed. Run `claude --version` to check your installed version. **2.1.322** November 10, 2026 * Added fast mode on Vertex in the global, us and eu regions, falli…
Push events into a running session with channels
Claude Code CLI · in the page
channels
…ser scope option so the plugin is available across all your projects. Check the install summary: if it reports `Run /reload-plugins to apply.`, see [Apply plugin changes without restarting](https://co…
Channels reference
Claude Code CLI · in the page
channels-reference
…ssages back * [Gate inbound messages](#gate-inbound-messages): sender checks to prevent prompt injection * [Relay permission prompts](#relay-permission-prompts): forward tool approval prompts to remot…
Use Claude Code with Chrome
Claude Code CLI · in the page
chrome
…ser to verify it matches * **Web app testing**: test form validation, check for visual regressions, or verify user flows * **Authenticated web apps**: interact with Google Docs, Gmail, Notion, or any…
Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry
Claude Code CLI · in the page
claude-apps-gateway
…RES_USER: gw, POSTGRES_PASSWORD: pw, POSTGRES_DB: gateway } healthcheck: test: ["CMD-SHELL", "pg_isready -U gw"] interval: 5s volumes: ["pgdata:/var/lib/postgresql/data"] volumes:…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…e public key matches `private_key_pem`. **4. Restart the gateway and check the boot log** Restart the gateway and find this line in the boot log: ```text theme={null} [gateway] 2026-10-01T23:07:40.…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…container, deploy on Kubernetes or Cloud Run, and operate it: health checks, secret rotation, upgrades, and security. > [!NOTE] > > **Plan your gateway's network first.** At sign-in, Claude Code ref…
Deploy Claude apps gateway on AWS
Claude Code CLI · in the page
claude-apps-gateway-on-aws
…eadiness_grace_seconds: 300 # keep passing the health check # through an RDS failover upstreams: - provider: bedrock region: <yo…
Deploy Claude apps gateway on Google Cloud
Claude Code CLI · in the page
claude-apps-gateway-on-gcp
…r the project in Model Garden; models publish to specific regions, so check each model card. **3. Build and push the image to Artifact Registry** Build the image per the [container image requirement…
Claude apps gateway spend limits
Claude Code CLI · in the page
claude-apps-gateway-spend-limits
…rates apply at any prompt length. ### Postgres availability The pre-check queries Postgres with a two-second timeout. If the store is unreachable or times out, enforcement fails open by default: the…
Use Claude Code in the cloud
Claude Code CLI · in the page
claude-code-on-the-web
…e. The session keeps running after you close your laptop, and you can check on it or steer it from any device. It counts toward your plan's usage limits alongside the rest of your Claude and Claude Co…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…from your main repository into each new worktree. Worktrees are fresh checkouts, so untracked files like <C>.env</C> are missing by default. Patterns here use <C>.gitignore</C> syntax. Only files that…
Claude Code on Claude Platform on AWS
Claude Code CLI · in the page
claude-platform-on-aws
…Claude Platform on AWS` when the provider is active. Run `/status` to check the details: the `API provider` line reads `Claude Platform on AWS`, and the output includes your `Workspace ID`, the `AWS r…
Let Claude coordinate ongoing work with Projects
Claude Code CLI · in the page
claude-projects
…tab of the [desktop app](https://code.claude.com/docs/en/desktop.md), check under **More** there. If it's missing there too, the rollout hasn't reached your account yet. You can [join the waitlist](ht…
Scan your codebase for vulnerabilities
Claude Code CLI · in the page
claude-security
…config`. * Python 3.9 or later available on your `PATH` as `python3`. Check with `python3 --version`. The plugin's tooling uses only the Python standard library, so nothing is installed. * Linux, macO…
claude-tag
Claude Code CLI · in the page
claude-tag
…scroll-m-4 first:scroll-m-20" data-title="Review documents against a checklist"><a href="/docs/claude-tag/users/use-cases/review-documents" class="group flex items-start pr-3 py-1.5 cursor-pointer ga…
CLI reference
Claude Code CLI · in the page
cli-reference
…de -c` | | `claude -c -p "query"` | Continue via SDK | `claude -c -p "Check for type errors"` | | `claude -r "<session>" "query"` | Resume session by ID or name | `claude -r "auth-refactor" "Finish th…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…rets are available on Pro, Max, Ultra, Team, and Enterprise plans. To check whether you can add one yourself, see [Requirements](#requirements). #### Requirements These requirements decide whether y…