1,322 pages for user.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
mitigate-jailbreaks
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks
…eat models: * **Jailbreaks and direct prompt injection**, where the *user* of your application is the adversary and crafts inputs intended to bypass your guardrails. * **Indirect prompt injection**,…
reduce-hallucinations
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/reduce-hallucinations
…title="Example: Analyzing a merger and acquisition report"> ```text User wrap As our M&A advisor, analyze this report on the potential acquisition of AcmeCo by ExampleCorp. <report> {{REPORT}…
reduce-latency
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/reduce-latency
…re on that later) and want to provide a responsive experience to your users. For a more in-depth understanding of these terms, see the [glossary](https://platform.claude.com/docs/en/about-claude/glos…
reduce-prompt-leak
Claude Developer Platform · in the page
test-and-evaluate/strengthen-guardrails/reduce-prompt-leak
…scription: Reduce the risk of prompt leaks by separating context from user queries, filtering Claude's outputs, and auditing prompts, without degrading task performance. --- Prompt leaks can expose s…
Use Claude Code with a screen reader
Claude Code CLI · in the page
accessibility
…or every session on the machine: add `"axScreenReader": true` to your user [settings file](/docs/en/settings.md). The setting applies in any terminal, including the VS Code integrated terminal. If yo…
Set up Claude Code for your organization
Claude Code CLI · in the page
admin-setup
…am Files\ClaudeCode\managed-settings.json` | Medium | All | | Windows user registry | `HKCU\SOFTWARE\Policies\ClaudeCode` | Lowest | Windows only | Claude Code fetches server-managed settings at star…
Escalate hard decisions with the advisor tool
Claude Code CLI · in the page
advisor
…advisor model name. Your selection is saved to `advisorModel` in your user settings and persists across sessions, except in the cases the [`advisorModel` entry](/docs/en/settings-reference#advisormode…
How the agent loop works
Claude Code CLI · in the page
agent-sdk/agent-loop
…sage-types) with the tool call, executes the command, then yields a [`UserMessage`](#message-types) with the output (three failures). 2. **Turn 2:** Claude calls `Read` on `auth.ts` and `auth.test.ts`…
Use Claude Code features in the SDK
Claude Code CLI · in the page
agent-sdk/claude-code-features
…`query()` reads the same filesystem settings as the Claude Code CLI: user, project, and local settings, CLAUDE.md files, and `.claude/` skills, agents, and commands. To run without these, pass `setti…
Configure your agent
Claude Code CLI · in the page
agent-sdk/configuration
…urces` / `setting_sources`**: controls which filesystem sources load: user, project, and local. Settings files and CLAUDE.md files arrive through these sources. * **`settings`**: loads a settings file…
Track cost and usage
Claude Code CLI · in the page
agent-sdk/cost-tracking
…[Claude Console](https://platform.claude.com/usage). Do not bill end users or trigger financial decisions from these fields. ## Understand token usage The TypeScript and Python SDKs expose the same…
Give Claude custom tools
Claude Code CLI · in the page
agent-sdk/custom-tools
…ourceLinks`](/docs/en/agent-sdk/typescript#sdkmcpresourcelink) on the user message's `tool_use_result`; in Python, the SDK flattens them to text before the CLI sees the result, so the Python [`resourc…
Rewind file changes with checkpointing
Claude Code CLI · in the page
agent-sdk/file-checkpointing
…before modifying them through the Write, Edit, or NotebookEdit tools. User messages in the response stream include a checkpoint UUID that you can use as a restore point. > [!NOTE] > > File rewinding…
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…e next model call | Inject conventions once for the whole batch | | [`UserPromptSubmit`](/docs/en/hooks#userpromptsubmit) | Yes | Yes | A prompt is submitted, including a turn Claude Code starts on it…
Hosting the Agent SDK
Claude Code CLI · in the page
agent-sdk/hosting
…` if set | | `CLAUDE.md` memory files | `~/.claude/CLAUDE.md` for the user tier and the session's working directory for the project tier | | Working-directory artifacts | The session's working directo…
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…vers` option. This example starts a local filesystem MCP server for `/Users/me/projects`. Replace that path with a directory on your machine: ```typescript TypeScript theme={null} import { query } fr…
Migrate to Claude Agent SDK
Claude Code CLI · in the page
agent-sdk/migration-guide
…onfiguration, Claude Agent SDK v0.1.0 introduces breaking changes for users migrating from Claude Code SDK. ### Python: ClaudeCodeOptions renamed to ClaudeAgentOptions **What changed:** The Python S…
Modifying system prompts
Claude Code CLI · in the page
agent-sdk/modifying-system-prompts
…ling loop with no agent persona, where you supply all behavior in the user prompt | No `systemPrompt` option | The minimal default: tool-calling support and nothing else | "Different from Claude Code…
Observability with OpenTelemetry
Claude Code CLI · in the page
agent-sdk/observability
…ith child spans for the permission wait (`claude_code.tool.blocked_on_user`) and the execution itself (`claude_code.tool.execution`). * **`claude_code.hook`:** wraps each [hook](/docs/en/agent-sdk/hoo…
Agent SDK overview
Claude Code CLI · in the page
agent-sdk/overview
…ts and services that you make available to your own customers and end users, except to the extent a specific component or dependency is covered by a different license as indicated in that component's…
Configure permissions
Claude Code CLI · in the page
agent-sdk/permissions
…wed automatically, and the [`canUseTool` callback](/docs/en/agent-sdk/user-input) to handle everything else at runtime. ## How permissions are evaluated When Claude requests a tool, the SDK checks p…
Plugins in the SDK
Claude Code CLI · in the page
agent-sdk/plugins
…`) * **Absolute paths**: full file system paths (for example, `"/home/user/plugins/my-plugin"`) > [!NOTE] > > The path should point to the plugin's root directory: the parent of `skills/`, `agents/`,…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…gent_sdk import tool from typing import Any @tool("greet", "Greet a user", {"name": str}) async def greet(args: dict[str, Any]) -> dict[str, Any]: return {"content": [{"type": "text", "text": f"…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…mbers: total += num return total / len(numbers) def get_user_name(user): return user["name"].upper() ``` This code has two bugs: 1. `calculate_average([])` crashes with division by…
Securely deploying AI agents
Claude Code CLI · in the page
agent-sdk/secure-deployment
…or can be influenced by the content they process: files, webpages, or user input. This is sometimes called prompt injection. For example, if a repository's README contains unusual instructions, Claude…
Persist sessions to external storage
Claude Code CLI · in the page
agent-sdk/session-storage
…fig directory, such as OAuth credentials or an `apiKeyHelper` in your user `settings.json`, copy those files into the temp directory first, or set `ANTHROPIC_API_KEY` in `env` instead. Otherwise the r…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…ready takes as many turns as it needs, and permission prompts and `AskUserQuestion` are [handled in-loop](/docs/en/agent-sdk/user-input.md) (they don't end the call). | What you're building | What to…
Extend agents with skills
Claude Code CLI · in the page
agent-sdk/skills
…ystem settings load, the SDK discovers skill metadata at startup from user and project directories, and loads the full content when Claude invokes the skill * **Model-invoked**: Claude autonomously ch…
Stream responses in real-time
Claude Code CLI · in the page
agent-sdk/streaming-output
…gent-sdk/subagents.md#detect-subagent-invocation). Claude Code sets `user_message_uuid` on the turn's first non-ping stream event, and again when the message the turn is answering changes, under the…
Streaming Input
Claude Code CLI · in the page
agent-sdk/streaming-vs-single-mode
…It allows the agent to operate as a long lived process that takes in user input, handles interruptions, surfaces permission requests, and handles session management. ### Benefits In streaming input…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…isted skills remain invocable through the Skill tool | | `memory` | `'user' \| 'project' \| 'local'` | No | Memory source for this agent | | `mcpServers` | `(string \| object)[]` | No | MCP servers av…
Track todos
Claude Code CLI · in the page
agent-sdk/todo-tracking
…mplex multi-step tasks** requiring three or more distinct actions * **User-provided task lists** when multiple items are mentioned * **Longer operations** that benefit from progress tracking * **Expli…
Troubleshoot the Agent SDK
Claude Code CLI · in the page
agent-sdk/troubleshooting
…bagents.md#troubleshooting) | | Checkpointing options not recognized, user messages without UUIDs, `No file checkpoint found`, `File rewinding is not enabled`, `ProcessTransport is not ready for writi…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…d binary out of the compiled executable's virtual filesystem to a per-user temp directory and returns the real path. Outside a compiled executable it returns the input path unchanged, so the same code…
TypeScript SDK V2 session API (removed)
Claude Code CLI · in the page
agent-sdk/typescript-v2-preview
…/docs/en/agent-sdk/sessions.md) it accepts. Pass an `AsyncIterable<SDKUserMessage>` for multi-turn conversations, or `options.resume` to continue a saved session. This page is kept for reference if yo…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…reference a [subagent](/docs/en/sub-agents.md) type from the project, user, managed, or plugin [subagent scope](/docs/en/sub-agents.md#choose-the-subagent-scope). This lets you define a role once, suc…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…nd lets you pin them. It saves the result to the `env` block of your [user settings file](/docs/en/settings.md), so you don't need to export environment variables yourself. After you've signed in, ru…
Track team usage with analytics
Claude Code CLI · in the page
analytics
…trics**: lines of code accepted, suggestion accept rate, daily active users and sessions * **Contribution metrics**: PRs and lines of code shipped with Claude Code assistance, with [GitHub integration…
Share session output as artifacts
Claude Code CLI · in the page
artifacts
…ing in, or from outside your organization, sees the label `Content is user-generated and unverified.` instead of your name. Who you can share with depends on your plan: * **Within your organization*…
Authentication
Claude Code CLI · in the page
authentication
…s multiple authentication methods depending on your setup. Individual users can log in with a claude.ai account, while teams can use Claude for Teams or Enterprise, the Claude Console, or a cloud prov…
Configure auto mode
Claude Code CLI · in the page
auto-mode-config
…on-modes.md#start-in-a-different-mode) Auto mode is available to all users on every provider, including the Anthropic API, [Claude Platform on AWS](/docs/en/claude-platform-on-aws.md), Amazon Bedrock…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…addresses"* | *"write a validateEmail function. example test cases: [user@example.com](mailto:[email protected]) is true, invalid is false, [[email protected]](mailto:[email protected]) is false. run the tests after…
Claude Code changelog
Claude Code CLI · in the page
changelog
…backend now wait 45 seconds * Fixed Claude notifying unrelated GitHub users by writing role names and placeholders as mentions in PRs, issues and comments * Linux: Fixed sandbox write denies lifting w…
Push events into a running session with channels
Claude Code CLI · in the page
channels
…) in Telegram and send `/newbot`. Give it a display name and a unique username ending in `bot`. Copy the token BotFather returns. **2. Install the plugin** Start Claude Code by running `claude` in y…
Channels reference
Claude Code CLI · in the page
channels-reference
…ect-level `.mcp.json` in the same directory, use a relative path. For user-level config in `~/.claude.json`, use the full absolute path so the server can be found from any project: ```json title=".mc…
Use Claude Code with Chrome
Claude Code CLI · in the page
chrome
…ting**: test form validation, check for visual regressions, or verify user flows * **Authenticated web apps**: interact with Google Docs, Gmail, Notion, or any app you're logged into without API conne…
Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry
Claude Code CLI · in the page
claude-apps-gateway
…ived bearer tokens, so offboarding happens in your IdP. Deprovision a user and their gateway access expires within the session lifetime, one hour by default. * **Access control**: your IdP groups map…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…-in to members of these IdP groups, matched against `groups_claim`. A user in an allowed email domain but in none of these groups is rejected. Requires the IdP to emit the groups claim. Matching is an…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…internet can't reach. > > 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 g…
Deploy Claude apps gateway on AWS
Claude Code CLI · in the page
claude-apps-gateway-on-aws
…azon RDS for PostgreSQL instance for session state. The gateway signs users in via OIDC against the corporate IdP, reads secrets from AWS Secrets Manager, forwards model requests to Amazon Bedrock usi…