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

1,272 pages for -p.

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

Test plugins with evals Claude Code CLI · in the page plugin-evals …them with claude plugin eval, grade the results, compare against a no-plugin baseline, and gate CI on the score. The `claude plugin eval` shell command runs your [plugin](/docs/en/plugins/overview.m… Anthropic's marketplaces Claude Code CLI · in the page plugins/anthropic-marketplaces …and where to browse their plugins. Anthropic publishes three general-purpose plugin marketplaces for Claude Code: [official](https://github.com/anthropics/claude-plugins-official), [community](https… Recommend your plugin from your CLI Claude Code CLI · in the page plugins/cli-hints …ll prompt. This page applies only if your plugin is listed in `claude-plugins-official` or another marketplace with one of Anthropic's [official marketplace names](/docs/en/plugins/security.md#offici… Plugin commands reference Claude Code CLI · in the page plugins/cli-reference …> Reference for the claude plugin shell commands, /plugin and /reload-plugins in a session, and the flags that load a plugin for one session. You run plugin commands either as `claude plugin` from y… Code intelligence plugins Claude Code CLI · in the page plugins/code-intelligence …nder [Install a code intelligence plugin](#install-a-code-intelligence-plugin). The plugins in that table come from Anthropic's [official plugin marketplace](/docs/en/plugins/anthropic-marketplaces.md… Add components to a plugin Claude Code CLI · in the page plugins/components …s a default folder in the plugin, an optional manifest key in `.claude-plugin/plugin.json` that replaces or adds to that folder, and a name the user sees. For each key's full field table, see the [man… Create a Claude Code plugin Claude Code CLI · in the page plugins/create …need a plugin](/docs/en/plugins/overview.md#decide-whether-you-need-a-plugin) on the overview > * **Your plugin's users are on claude.ai or in Cowork**: the same folder installs there with a differen… Create a marketplace Claude Code CLI · in the page plugins/create-marketplace …it. A plugin marketplace is a directory or repository with a `.claude-plugin/marketplace.json` file that lists your plugins and where to fetch each one. You push the directory to a git host, and anyo… Plugin dependencies Claude Code CLI · in the page plugins/dependencies …Manage installed plugins](/docs/en/plugins/install.md#manage-installed-plugins) > * **Reading a dependency error**: see [Dependency errors](/docs/en/plugins/troubleshooting.md#dependency-errors) > * *… Host and maintain a marketplace Claude Code CLI · in the page plugins/host-marketplace …ur first release. Read [Rename or remove a plugin](#rename-or-remove-a-plugin) before you change a plugin's `name`. ## Host your marketplace You can host the marketplace on GitHub, on another git ho… Install and manage plugins Claude Code CLI · in the page plugins/install …/plugins/troubleshooting.md) Start with [Install a plugin](#install-a-plugin). If someone sent you an install command whose `@` name isn't `claude-plugins-official`, [add that marketplace](#add-a-mar… Plugin loading reference Claude Code CLI · in the page plugins/loading …aude Code applies when a session starts and each time you run `/reload-plugins`. You can also ask Claude to read this page and diagnose your setup. > [!NOTE] > > These cases are covered on other page… Plugin manifest reference Claude Code CLI · in the page plugins/manifest-reference …s. A plugin manifest is the `plugin.json` file in a plugin's `.claude-plugin/` directory. It carries the plugin's metadata and the [`userConfig`](#user-configuration) values that Claude Code prompts… Marketplace reference Claude Code CLI · in the page plugins/marketplace-reference …d it names ## Marketplace file Save the marketplace file at `.claude-plugin/marketplace.json` in your marketplace's directory. If you keep the file somewhere else in the repository, users have to de… Measure plugin cost and usage Claude Code CLI · in the page plugins/measure …Manage installed plugins](/docs/en/plugins/install.md#manage-installed-plugins) and the [context window](/docs/en/context-window.md) page Start with [Measure what a plugin costs](#measure-what-a-plug… Manage mods for your organization Claude Code CLI · in the page plugins/mods/admin …he option goes in managed settings under `pluginConfigs`, keyed by `cc-plugin-sec-default@builtin`: ```json managed-settings.json theme={null} { "pluginConfigs": { "cc-plugin-sec-default@builti… Use the mods API Claude Code CLI · in the page plugins/mods/api …l | | System prompt | A short [attribution block](/docs/en/llm-gateway-protocol.md#system-prompt-attribution-block), then your `system` if you pass one | The session's system prompt | | Messages | One… Create a mod Claude Code CLI · in the page plugins/mods/create …ds folder is a [protected path](/docs/en/permission-modes.md#protected-paths). Approve each file as it comes up. **2. Approve the mod** When Claude saves the first file, Claude Code asks whether to… React to events with a mod Claude Code CLI · in the page plugins/mods/events …check and then the tool. This hook refuses a Bash command that force-pushes, and tells Claude why: ```javascript theme={null} // The matcher limits the hook to Bash calls, so e.command is the shell… Interface gallery for mods Claude Code CLI · in the page plugins/mods/gallery …*1. Create the mod** Create a directory named `gallery` with `.claude-plugin` and `hooks` directories inside it. [Create a mod](/docs/en/plugins/mods/create.md#write-a-mod-yourself) explains the file… Draw in the interface with a mod Claude Code CLI · in the page plugins/mods/interface …explains each one. Create a directory named `hello-tabs` with `.claude-plugin` and `hooks` directories inside it, then save the first two files. Save the manifest as `hello-tabs/.claude-plugin/plugin… Mods overview Claude Code CLI · in the page plugins/mods/overview …n](#where-mods-run) for how they behave elsewhere, such as in `claude -p` and cloud sessions. If a settings hook, a skill, or an MCP server already does what you need, [compare them](#compare-mods-set… Mods reference Claude Code CLI · in the page plugins/mods/reference …ese files: | File | Required | Contents | | :- | :- | :- | | `.claude-plugin/plugin.json` | Yes | The plugin [manifest](/docs/en/plugins/manifest-reference.md). Mods add no required fields. | | `hook… Test a mod Claude Code CLI · in the page plugins/mods/test …om [Build a pane with tabs](/docs/en/plugins/mods/interface.md#build-a-pane-with-tabs), switches tabs, presses the button, and checks the count in the terminal and the Desktop app: ```typescript hell… Troubleshoot a mod Claude Code CLI · in the page plugins/mods/troubleshoot …e in the transcript. That's an interactive session you started with `--plugin-dir`, or one where you [enabled hot reloading](/docs/en/plugins/mods/create.md#ask-claude-for-a-mod) for mods Claude wrote… Manage Claude Code plugins for your organization Claude Code CLI · in the page plugins/org …ach Claude Code as [synced plugins](/docs/en/plugins/loading.md#synced-plugins). It doesn't set any of the keys on this page The sections follow the order most rollouts take: [require plugins](#pre-i… Plugins overview Claude Code CLI · in the page plugins/overview …ur own * [Decide whether you need a plugin](#decide-whether-you-need-a-plugin): whether a plugin is the right tool for what you want ## Understand what a plugin is A plugin is a directory of compone… Publish and distribute a plugin Claude Code CLI · in the page plugins/publish …know your route, go to [Prepare your plugin for release](#prepare-your-plugin-for-release), then follow your route's section for what to tell your users and how they receive your updates. ## Choose h… Recommend plugins for your org Claude Code CLI · in the page plugins/relevance …ons off**: see [Understand how plugin relevance works](#understand-how-plugin-relevance-works) Start with the sections for your role: * **Marketplace operators**: read [how suggestions work](#unders… Plugin security and trust Claude Code CLI · in the page plugins/security …arketplaces](#marketplace-tiers), and every other marketplace is third-party. A marketplace's name tells you who publishes the catalog, not what each plugin in it does, so [review a plugin before you… Troubleshoot plugins Claude Code CLI · in the page plugins/troubleshooting …` panel in: [non-interactive mode](/docs/en/headless.md) with `claude -p`, the Agent SDK, the Claude desktop app's Code tab, the VS Code extension panel, and the browser at claude.ai/code. In the VS… How Claude Code uses prompt caching Claude Code CLI · in the page prompt-caching …Code handles prompt caching for you, unless you [disable it](#disable-prompt-caching). It is still useful to know how prompt caching works, because some actions invalidate the cache and make the next… Prompt library Claude Code CLI · in the page prompt-library # Prompt library > Copy-paste prompts for Claude Code, tagged by task and role. export const PromptLibrary = ({text = {}, labels = {}, tagLabels = {}, phaseLabels = {}, sourceLabels = {}, catLabels… Quickstart Claude Code CLI · in the page quickstart …account, or access through a [supported cloud provider](/docs/en/third-party-integrations.md) > [!NOTE] > > These cases are covered on other pages: > > * **Never used a terminal before**: start with… Continue local sessions from any device with Remote Control Claude Code CLI · in the page remote-control …anization's policy`](#remote-control-is-disabled-by-your-organizations-policy). Ask an Owner to check your roles and add what's missing at [**Organization settings > Roles**](https://claude.ai/admin-s… Automate work with scheduled tasks Claude Code CLI · in the page routines …calls any connectors you include. Outside a [project](/docs/en/claude-projects.md#what-threads-pick-up-from-your-repositories)'s threads, those skills include the ones committed to the cloned reposit… Choose a sandbox environment Claude Code CLI · in the page sandbox-environments …ith `/sandbox` | | Let Claude work unattended with `--dangerously-skip-permissions` or auto mode | The preconfigured [dev container](/docs/en/devcontainer.md), any container or VM, or the [sandbox run… Configure the sandboxed Bash tool Claude Code CLI · in the page sandboxing …ies-grant-file-access-not-configuration). [Protected paths](#protected-paths) stay write-denied | [`filesystem.allowWrite`](/docs/en/settings-reference#sandbox-filesystem-allowwrite), [`filesystem.den… Run prompts on a schedule Claude Code CLI · in the page scheduled-tasks …n | | Permission prompts | [Auto mode](/docs/en/routines.md#permission-prompts-during-a-run) by default | Configurable per task | Inherits from session | | Customizable schedule | Yes | Yes | Yes | |… Security Claude Code CLI · in the page security …zation can [turn auto mode off](/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode) * **Manual mode**: Claude Code starts with read-only permissions. When it needs to edit files, run tests,… Catch security issues as Claude writes code Claude Code CLI · in the page security-guidance …or later, as do all model-backed reviews when Claude Code uses a third-party provider such as Amazon Bedrock or Google Cloud's Agent Platform. The plugin prefers the versioned interpreters `python3.13… Self-hosted environments Claude Code CLI · in the page self-hosted-environments …://mintcdn.com/claude-code/Y0sJ2uDoOVbOVZrQ/images/self-hosted-network-paths.svg?fit=max\&auto=format\&n=Y0sJ2uDoOVbOVZrQ\&q=85\&s=8056103fc1c5564c7f0ef219d260b99d) The two Claude Code boxes in the d… Customize sessions in self-hosted environments Claude Code CLI · in the page self-hosted-environments-configuration …binary, so signals and exit codes propagate correctly. Point `--exec-path`, or `SELF_HOSTED_RUNNER_EXEC_PATH`, at the wrapper when you start the runner: ```bash theme={null} claude self-hosted-runn… Deploy self-hosted environments to production Claude Code CLI · in the page self-hosted-environments-deploy …nner restarts, except in the deliberate [pre-warmed checkout](#reuse-a-pre-warmed-checkout) setup, and never across owners. * When the runner stops a session, it sends no signal to a process still r… Verify session identity in self-hosted environments Claude Code CLI · in the page self-hosted-environments-identity …_ACCESS_TOKEN` has an `sk-ant-cc-` prefix followed by a standard three-part JWT: ```text theme={null} sk-ant-cc-<base64url header>.<base64url payload>.<base64url signature> ``` Strip the prefix befo… Self-hosted environments quickstart Claude Code CLI · in the page self-hosted-environments-quickstart …orks](/docs/en/self-hosted-environments-deploy.md#rewrite-git-urls-for-private-networks). * A clock synchronized to real time, for example with NTP. Authentication fails when the clock is more than fi… Self-hosted environments reference Claude Code CLI · in the page self-hosted-environments-reference …st signal](/docs/en/self-hosted-environments-deploy.md#defer-the-drain-past-the-first-signal). `0` disables. Requires Claude Code v2.1.238 or later. | | `--drain-grace-sec <n>` | `SELF_HOSTED_RUNNER_D… Test self-hosted environments end to end Claude Code CLI · in the page self-hosted-environments-testing …(/docs/en/self-hosted-environments-configuration.md#prompt-sessions-to-push-their-work), on the runner host's `~/.claude/`, which the runner seeds into every session. ### Save the hook files Save th… Configure server-managed settings Claude Code CLI · in the page server-managed-settings …settings file in the runner image. The [settings precedence](#settings-precedence) below says when that file applies. ## Configure server-managed settings **1. Open the admin console** In the claud… Manage sessions Claude Code CLI · in the page sessions …en Claude Code conversations. Covers `--continue`, `--resume`, `--from-pr`, the `/resume` picker, session naming, exporting transcripts, and where transcripts are stored. A [session](/docs/en/glossar…
Feedback