Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · claude-code

One read of Claude Code CLIclaude-code-20261130T180701Z

16 pages moved out of 221 read.

Pages moved 16 significant first
Pages read 221 in this capture
Captured 18:07 UTC
Corpus hash 1db83efbb00f corpus-hash

What this read moved

1-16 of 16

desktop Changed · +24 / -5 lines

#### Skills, hooks, and settings from your computer #### MCP servers from `claude_desktop_config.json`

from line 673
673673 
674674To enable, disable, or uninstall plugins when the **+** menu shows **Plugins**, select **Plugins > Manage plugins**. In a local session, you can also click **Customize** or **Plugins** in the sidebar.
675675 
676You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](https://code.claude.com/docs/en/settings-reference#disablesideloadflags).
676You can scope plugins to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in local sessions the same way they are in the CLI, except the ones the desktop app [withholds under `disableSideloadFlags`](https://code.claude.com/docs/en/settings-reference#disablesideloadflags).
677677 
678678> [!NOTE]
679679>
from line 1420
14201420 Under folder restrictions, behind a [corporate launcher](https://code.claude.com/docs/en/corporate-launcher.md), or before Claude Desktop v5.11492.0, new workflows can't start while Desktop is disconnected.
14211421 
14221422 Otherwise, approve a workflow before the long task: ask Claude for one in a session on the remote machine, and [approve it](https://code.claude.com/docs/en/workflows.md#approve-the-plan-before-it-runs) if Desktop asks. Then open a new session for the long task, because the approval takes effect only in sessions that you open afterward. In the new session, choose a [permission mode](#choose-a-permission-mode) that doesn't ask before each workflow, such as Auto, and [test the remote machine](#prepare-a-long-task) first.
1423* **MCP servers**: MCP servers that Claude Code starts on the remote machine don't run through Desktop, so Claude can still call their tools. Servers from `claude_desktop_config.json` are among them only if Desktop doesn't use its [built-in SSH client](#worktree-edits-while-disconnected). Otherwise, and on [some Windows remote machines](#windows-remote-machines), Claude can't call their tools while Desktop is disconnected.
1423* **MCP servers**: MCP servers that Claude Code starts on the remote machine don't run through Desktop, so Claude can still call their tools. To keep the tools of servers from `claude_desktop_config.json` working too, update to Claude Desktop v5.11492.0 or later, because earlier versions lose them where Desktop uses its [built-in SSH client](#worktree-edits-while-disconnected). On [some Windows remote machines](#windows-remote-machines), keep Desktop connected, because Claude can't call those tools without it.
14241424 
14251425> [accordion] When edits in a worktree keep working
14261426>
from line 1629
16291629* **`mode`**: set it to `normal` wherever your jail sets it, in a `mode` line or in the brackets of a line such as `filter = sshd[mode=aggressive]`. You give up every count that only the other modes make, for example of clients that connect and leave without trying to log in.
16301630* **`ignoreip`**: set it to the addresses that people connect from, for example `ignoreip = 203.0.113.7`. fail2ban then counts nothing from those addresses, failed logins included.
16311631 
1632#### Skills, hooks, and settings from your computer
1633 
1634Desktop doesn't copy your `~/.claude/skills/` folder, or the hooks and other settings in your `~/.claude/settings.json`, to the remote machine. To use your skills, hooks, and settings in an SSH session, set them up in `~/.claude/` in your home directory on the remote machine.
1635 
1636Copy any scripts that your hooks run too, and change the hooks to the scripts' paths on that machine. For a project's own settings, copy any `.claude/` file that the project folder on the remote machine lacks, such as `settings.local.json`, which Git usually excludes. Then start a new session. If a skill, hook, or setting still does nothing, see [Debug your configuration](https://code.claude.com/docs/en/debug-your-config.md).
1637 
1638#### MCP servers from `claude_desktop_config.json`
1639 
1640In an SSH session, most MCP servers from `claude_desktop_config.json` start on the remote machine, so install the commands that they run on the remote machine. Check for these causes if a server is missing, fails to start, or stops responding:
1641 
1642* **Absolute path**: Desktop omits some servers whose command is an absolute path, such as one under `/Users/`, `/opt/homebrew/`, or `/Applications/`. Where you can, give the command as a bare name, such as `npx`, or [set the server up on the remote machine](#use-mcp-servers-set-up-on-the-remote-machine).
1643* **Environment variables**: from a server's `env` in `claude_desktop_config.json`, Desktop sends only names that start with `MCP_` and a few fixed names, such as `DEBUG` and `NODE_ENV`. If a server needs others, [set it up on the remote machine](#use-mcp-servers-set-up-on-the-remote-machine).
1644* **No server appears**: if Desktop finds a [`managed-mcp.json`](https://code.claude.com/docs/en/managed-mcp#exclusive-control-with-managed-mcp-json) file on the remote machine, it sends none of these servers. Ask your administrator to add the server to that file.
1645* **Desktop disconnected**: on some remote machines, Claude can't call these servers' tools while Desktop is disconnected. See the **MCP servers** entry under [Limits while Desktop is disconnected](#limits-while-desktop-is-disconnected).
1646 
1647Keep a secret out of these servers' arguments and `MCP_` variables in `claude_desktop_config.json` unless you trust the remote machine with it, because Desktop sends both unchanged.
1648 
16321649#### Use MCP servers set up on the remote machine
16331650 
1634To use an [MCP server](https://code.claude.com/docs/en/mcp.md) from `~/.claude.json` or a project's `.mcp.json` in an SSH session, set it up in those files on the remote machine. Claude Code starts their stdio servers there, so install the commands those servers run on the remote machine. For servers from `claude_desktop_config.json`, see [Limits while Desktop is disconnected](#limits-while-desktop-is-disconnected).
1651To use an [MCP server](https://code.claude.com/docs/en/mcp.md) from `~/.claude.json` or a project's `.mcp.json` in an SSH session, set it up in those files on the remote machine. Claude Code starts their stdio servers there, so install the commands those servers run on the remote machine. For servers from `claude_desktop_config.json`, see [MCP servers from `claude_desktop_config.json`](#mcp-servers-from-the-desktop-config-file).
16351652 
16361653#### Open an SSH session from a link
16371654 
from line 2369
23522369 
23532370### Shared configuration
23542371 
2355Desktop and CLI read the same configuration files, so your setup carries over:
2372For SSH sessions, see [Skills, hooks, and settings from your computer](#skills-hooks-and-settings-from-your-computer) and [Use MCP servers set up on the remote machine](#use-mcp-servers-set-up-on-the-remote-machine).
23562373 
2374In local sessions, Desktop and CLI read the same configuration files, so your setup carries over:
2375 
23572376* **[CLAUDE.md](https://code.claude.com/docs/en/memory.md)** and `CLAUDE.local.md` files in your project are used by both
23582377* **[MCP servers](https://code.claude.com/docs/en/mcp.md)** configured in `~/.claude.json` or `.mcp.json` work in both
23592378* **[Hooks](https://code.claude.com/docs/en/hooks.md)** and **[skills](https://code.claude.com/docs/en/skills.md)** defined in settings apply to both
from line 2381
23622381 
23632382#### MCP servers from the Claude Desktop chat app
23642383 
2365The Desktop app loads MCP servers from `claude_desktop_config.json` into local Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. The servers from `claude_desktop_config.json` also load in a [WSL session](https://code.claude.com/docs/en/desktop-wsl.md), unless the session [lacks connectors](https://code.claude.com/docs/en/desktop-wsl.md#check-for-the-terminal-and-connectors). In a WSL session, those servers run on Windows.
2384The Desktop app loads MCP servers from `claude_desktop_config.json` into local Code tab sessions, alongside servers from `~/.claude.json` and `.mcp.json`. The servers from `claude_desktop_config.json` also load in a [WSL session](https://code.claude.com/docs/en/desktop-wsl.md), unless the session [lacks connectors](https://code.claude.com/docs/en/desktop-wsl.md#check-for-the-terminal-and-connectors). In a WSL session, those servers run on Windows. In an SSH session, most of them start on the remote machine: see [MCP servers from `claude_desktop_config.json`](#mcp-servers-from-the-desktop-config-file).
23662385 
23672386> [!NOTE]
23682387>

plugins/mods/api Changed · +4 / -4 lines

from line 4
44 
55The mods API is the set of methods a mod calls to act: add commands and tools, call a model, run work between events, and reach the file system, processes, and the network. Every hook receives it as its first argument, `$`, with the methods grouped in namespaces such as `$.ui` and `$.fs`. [Events](https://code.claude.com/docs/en/plugins/mods/events.md) decide when a hook runs, and the mods API is what the hook calls once it does.
66 
7Build your [first mod](https://code.claude.com/docs/en/plugins/mods/create.md) before you start here. For every method, see [mods API methods](https://code.claude.com/docs/en/plugins/mods/reference.md#mods-api-methods) or read [the types for your build](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build).
7Build your [first mod](https://code.claude.com/docs/en/plugins/mods/create.md) before you start here. For every method, see the [type declarations](https://code.claude.com/docs/en/plugins/mods/reference.md#look-up).
88 
99## Add a command or a tool
1010 
11A mod can add a command for the user to run and a tool for Claude to call. Register both in a [`session.start`](https://code.claude.com/docs/en/plugins/mods/reference#session) hook. Claude Code waits for that hook before the first prompt, so what you register is available from the first turn.
11A mod can add a command for the user to run and a tool for Claude to call. Register both in a `session.start` hook. Claude Code waits for that hook before the first prompt, so what you register is available from the first turn.
1212 
1313### Add a command
1414 
from line 258
258258 
259259### Stop background work
260260 
261Timers stop after the module reloads. For long-running work inside a hook, [`next.signal`](https://code.claude.com/docs/en/plugins/mods/reference#the-hook-function) is an `AbortSignal` that aborts when the event your hook is handling is abandoned, for example when the user interrupts. Pass it to anything long-running.
261Timers stop after the module reloads. For long-running work inside a hook, `next.signal` is an `AbortSignal` that aborts when the event your hook is handling is abandoned, for example when the user interrupts. Pass it to anything long-running.
262262 
263263### Calls and background work after the user interrupts a turn
264264 
from line 461
461461* [React to events](https://code.claude.com/docs/en/plugins/mods/events.md): hook tool calls, prompts, and turns
462462* [Draw in the interface](https://code.claude.com/docs/en/plugins/mods/interface.md): show what your mod collects in a pane or above the prompt
463463* [Test a mod](https://code.claude.com/docs/en/plugins/mods/test.md): stub any of these calls in a test
464* [Mods reference](https://code.claude.com/docs/en/plugins/mods/reference.md): events, mods API methods, and limits
464* [Mods reference](https://code.claude.com/docs/en/plugins/mods/reference.md): where to look up a method, and the limits
465465 

plugins/mods/create Changed · +8 / -10 lines

from line 134
134134 
135135**4. Write the code**
136136 
137This file is the mod's code, called the hooks module. When the mod loads, Claude Code calls the `register` function the file exports and passes it a function named [`on`](https://code.claude.com/docs/en/plugins/mods/reference#the-hook-function). Each call to `on` registers an event handler, called a hook, for the event it names.
137This file is the mod's code, called the hooks module. When the mod loads, Claude Code calls the `register` function the file exports and passes it a function named [`on`](https://code.claude.com/docs/en/plugins/mods/events#how-a-hook-handles-an-event). Each call to `on` registers an event handler, called a hook, for the event it names.
138138 
139139Save this as `first-mod/hooks/register.js`:
140140 
from line 180
180180 
181181The file keeps a count in `calls` and registers four hooks:
182182 
183* **[`session.start`](https://code.claude.com/docs/en/plugins/mods/reference#session)** runs when the session starts, before your first prompt, and again each time the mod reloads. It adds the `/tally` command to Claude Code.
184* **[`tool.call`](https://code.claude.com/docs/en/plugins/mods/reference#tools)** runs each time Claude is about to use a tool. It adds one to `calls` and asks Claude Code to draw the interface again.
185* **[`command.run`](https://code.claude.com/docs/en/plugins/mods/reference#commands-and-configuration)** runs when you type `/tally`. It returns the text to print.
186* **[`ui.render`](https://code.claude.com/docs/en/plugins/mods/reference#interface)** runs each time Claude Code draws the spinner. It adds the count after the spinner's word.
183* **[`session.start`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command-or-a-tool)** runs when the session starts, before your first prompt, and again each time the mod reloads. It adds the `/tally` command to Claude Code.
184* **[`tool.call`](https://code.claude.com/docs/en/plugins/mods/events#guard-or-change-a-tool-call)** runs each time Claude is about to use a tool. It adds one to `calls` and asks Claude Code to draw the interface again.
185* **[`command.run`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command)** runs when you type `/tally`. It returns the text to print.
186* **[`ui.render`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw)** runs each time Claude Code draws the spinner. It adds the count after the spinner's word.
187187 
188188[How the example mod works](#how-the-example-mod-works) explains the three arguments each hook takes and what each one returns.
189189 
from line 229
229229 
230230Each function you pass to `on` is a hook, which is an event handler. Claude Code passes every hook the same three arguments:
231231 
232* **The mods API**, named `$`: every method a mod can call to reach outside itself, in [namespaces](https://code.claude.com/docs/en/plugins/mods/reference.md#mods-api-methods) such as `$.ui` and `$.command`
233* **The event**, named `e`: the [event's input](https://code.claude.com/docs/en/plugins/mods/reference.md#events) as plain data, such as a tool call's name and arguments
232* **The mods API**, named `$`: every method a mod can call to reach outside itself, in [namespaces](https://code.claude.com/docs/en/plugins/mods/api.md) such as `$.ui` and `$.command`
233* **The event**, named `e`: the [event's input](https://code.claude.com/docs/en/plugins/mods/events.md#how-a-hook-handles-an-event) as plain data, such as a tool call's name and arguments
234234* **The next handler**, named [`next`](https://code.claude.com/docs/en/plugins/mods/events#how-a-hook-handles-an-event): a function that passes the event on to the other mods and then to Claude Code's own behavior, and returns the result
235235 
236236The hooks in `first-mod` handle their events in these ways:
from line 271
271271 
272272If your mod has no `tsconfig.json` of its own, Claude Code adds one at the mod's root that extends the generated one, so your editor and `tsc -p ./first-mod` type-check the mod without more setup.
273273 
274The events and methods can change between releases, so trust these files over any page, this one included, when they disagree.
275 
276`claude-code/index.d.ts` is the fullest reference for your build, with a comment and an example for every mods API method. To look something up, search the file for its name, such as `'tool.call'`.
274Events and methods can change between releases, so use these files as the reference for your version. To look up an event or method, [search `claude-code/index.d.ts`](https://code.claude.com/docs/en/plugins/mods/reference#look-up) for its name, such as `'tool.call'`.
277275 
278276### Check what Claude Code reads from your mod
279277 

plugins/mods/events Changed · +9 / -7 lines

from line 4
44 
55A hook is an event handler: a function that Claude Code runs when a named event happens. Claude Code fires an event at each point where it's about to act, such as when it runs a tool, submits a prompt, sends a request to the model, or starts or ends a session. Your hook runs before Claude Code acts, so it can observe the event, rewrite it, or answer it in Claude Code's place. You register a hook with [`on(eventName, handler)`](https://code.claude.com/docs/en/plugins/mods/reference#the-hook-function).
66 
7Build your [first mod](https://code.claude.com/docs/en/plugins/mods/create.md) before you start here. For every event and its exact fields, see the [reference](https://code.claude.com/docs/en/plugins/mods/reference.md#events) or read [the types for your build](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build).
7Build your [first mod](https://code.claude.com/docs/en/plugins/mods/create.md) before you start here. For every event and its exact fields, see the [type declarations](https://code.claude.com/docs/en/plugins/mods/reference.md#look-up).
88 
99## How a hook handles an event
1010 
from line 66
6666})
6767```
6868 
69When Claude tries a Bash command, the command doesn't run, and Claude reads the `deny` text as the tool's result. Each event has its own result shape, which the [events reference](https://code.claude.com/docs/en/plugins/mods/reference.md#events) lists.
69When Claude tries a Bash command, the command doesn't run, and Claude reads the `deny` text as the tool's result. Each event has its own result shape, which the [type declarations](https://code.claude.com/docs/en/plugins/mods/reference.md#look-up) list.
7070 
7171### Filter which events a hook handles
7272 
from line 101
101101 
102102## Hook what Claude is doing
103103 
104Handle these events to see or change a tool call, a prompt, a turn, or a settings read as it happens. For every event and what a hook can return, see the [events reference](https://code.claude.com/docs/en/plugins/mods/reference.md#events).
104Handle these events to see or change a tool call, a prompt, a turn, or a settings read as it happens. For every event and what a hook can return, see the [type declarations](https://code.claude.com/docs/en/plugins/mods/reference.md#look-up).
105105 
106106### Guard or change a tool call
107107 
from line 193
193193 
194194#### Approve or refuse a tool call before the user is asked
195195 
196To decide whether a tool call may run, handle [`tool.check`](https://code.claude.com/docs/en/plugins/mods/reference#tools), the event where Claude Code makes that decision.
196To decide whether a tool call may run, handle `tool.check`, the event where Claude Code makes that decision.
197197 
198198For a fixed command or path, use a [permission rule](https://code.claude.com/docs/en/permissions.md#permission-rule-syntax) such as `Bash(npm test)`, which takes no code. Handle `tool.check` when the decision depends on what's true at that moment, such as the current Git branch or a value another hook recorded.
199199 
from line 300
300300 
301301#### Change system prompt, context, or skill text
302302 
303[Other events](https://code.claude.com/docs/en/plugins/mods/reference.md#prompts-and-what-claude-reads) cover the rest of what Claude reads: `prompt.section` for each section of the system prompt, `prompt.context` for the context sent with the first message, and `skill.prompt` for a skill's text. To change a section after a conversation has started, see [Send a changed system prompt section or tool description](https://code.claude.com/docs/en/plugins/mods/reference.md#break-prompt-cache). In a `skill.prompt` hook, you can also read [which plugin or file the skill came from](https://code.claude.com/docs/en/plugins/mods/reference.md#skill-prompt-fields).
303[Other events](https://code.claude.com/docs/en/plugins/mods/reference.md#prompts-and-what-claude-reads) cover the rest of what Claude reads: `prompt.section` for each section of the system prompt, `prompt.context` for the context sent with the first message, and `skill.prompt` for a skill's text. To change a section after a conversation has started, see [Send a changed system prompt section or tool description](https://code.claude.com/docs/en/plugins/mods/reference.md#break-prompt-cache).
304304 
305In a `skill.prompt` hook, you can also read which plugin or file the skill came from, in `e.pluginName` and `e.path`. Those fields require Claude Code v2.1.299 or later.
306 
305307### Follow a turn
306308 
307309A turn is everything Claude does in answer to one prompt. Handle `turn.start`, `turn.step`, and `turn.complete` to follow one:
from line 480
478480 
479481The handler has a shorter [time limit](https://code.claude.com/docs/en/plugins/mods/reference.md#limits) of its own. If the handler itself throws or times out, Claude Code skips the hook as if it had no handler. When `guard` hadn't called `next`, the command then goes on as it would without the mod.
480482 
481The same handler shape fits a guard on `prompt.submit` or `config.set`. When `next.called` is false, return the refusal that the [events reference](https://code.claude.com/docs/en/plugins/mods/reference.md#events) lists for that event: `{ drop: 'the reason' }` for `prompt.submit`, `{ deny: 'the reason' }` for `config.set`.
483The same handler shape fits a guard on `prompt.submit` or `config.set`. When `next.called` is false, return the refusal for that event: `{ drop: 'the reason' }` for `prompt.submit`, `{ deny: 'the reason' }` for `config.set`.
482484 
483485At `tool.check` and `plugin.register`, a refusal returned after `next` resolved still holds, so return it without testing `next.called`:
484486 
from line 494
492494* [Use the mods API](https://code.claude.com/docs/en/plugins/mods/api.md): add commands and tools, call a model, and run work on a timer
493495* [Draw in the interface](https://code.claude.com/docs/en/plugins/mods/interface.md): show what your hooks collect in a pane or above the prompt
494496* [Test a mod](https://code.claude.com/docs/en/plugins/mods/test.md): fire any of these events from a test
495* [Mods reference](https://code.claude.com/docs/en/plugins/mods/reference.md): every event, every mods API method, and the limits
497* [Mods reference](https://code.claude.com/docs/en/plugins/mods/reference.md): where to look up an event, and the limits
496498 

plugins/mods/gallery Changed · +3 / -3 lines

from line 4
44 
55A mod draws its interface from elements: text, boxes, buttons, fields, and a few that format content for you. The samples here show the code that draws an element, and most come with a screenshot of the result in a terminal pane, so you can pick an element by how it looks.
66 
7To learn how drawing works, start with [Draw in the interface](https://code.claude.com/docs/en/plugins/mods/interface.md). For the main props and which apps draw each element, see the [elements reference](https://code.claude.com/docs/en/plugins/mods/reference.md#elements). The [type declarations](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build) list every prop.
7To learn how drawing works, start with [Draw in the interface](https://code.claude.com/docs/en/plugins/mods/interface.md). For which apps draw each element, see [Build a tree from elements](https://code.claude.com/docs/en/plugins/mods/interface.md#build-a-tree-from-elements). The [type declarations](https://code.claude.com/docs/en/plugins/mods/reference.md#look-up) list every prop.
88 
99## Try a sample
1010 
from line 359
359359 
360360### `Image` and `Client`
361361 
362`Image` and `Client` have no sample here. `Image` draws a PNG or raw pixels in the terminal. `Client` is a region that a second file of yours draws, for animation and pointer input. The [elements reference](https://code.claude.com/docs/en/plugins/mods/reference.md#elements) lists their props.
362`Image` and `Client` have no sample here. `Image` draws a PNG or raw pixels in the terminal. `Client` is a region that a second file of yours draws, for animation and pointer input. The [type declarations](https://code.claude.com/docs/en/plugins/mods/reference.md#look-up) list their props.
363363 
364364An `Image` draws as a picture in these terminals:
365365 
from line 412
412412 
413413* [Draw in the interface](https://code.claude.com/docs/en/plugins/mods/interface.md): build a pane with tabs, step by step
414414* [Test a drawing](https://code.claude.com/docs/en/plugins/mods/test.md#test-a-drawing): press your buttons from a test
415* [Elements reference](https://code.claude.com/docs/en/plugins/mods/reference.md#elements): each element's main props and the apps that draw it
415* [Elements reference](https://code.claude.com/docs/en/plugins/mods/reference.md#elements): border styles and the props the VS Code extension ignores
416416 

plugins/mods/interface Changed · +15 / -11 lines

from line 2
22 
33> Draw panes, a band above the prompt, buttons, and text fields from a Claude Code mod, handle presses and input, and keep state between redraws and sessions.
44 
5A mod can draw its own interface in Claude Code and change parts of the interface Claude Code already draws. Each place a mod can draw is called a [render site](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites), such as a pane, the band above the prompt, or the spinner. Claude Code fires the [`ui.render`](https://code.claude.com/docs/en/plugins/mods/reference#interface) event each time it's about to draw a render site, and your hook for that event returns what to draw there.
5A mod can draw its own interface in Claude Code and change parts of the interface Claude Code already draws. Each place a mod can draw is called a [render site](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites), such as a pane, the band above the prompt, or the spinner. Claude Code fires the [`ui.render`](#pick-where-to-draw) event each time it's about to draw a render site, and your hook for that event returns what to draw there.
66 
77This map shows where a mod can draw in a terminal session:
88 
from line 14
1414 
1515> [!NOTE]
1616>
17> To look up one prop or limit, see the [reference](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites).
17> To look up one prop or limit, see the [reference](https://code.claude.com/docs/en/plugins/mods/reference.md).
1818 
1919## Build a pane with tabs
2020 
from line 284
284284 
285285A pane appears only when your mod opens it. How and when you open it decides whether it takes keyboard focus, how much room it asks for, and whether it shows at all in a narrow terminal.
286286 
287To open a pane, call [`$.ui.open`](https://code.claude.com/docs/en/plugins/mods/reference#mods-api-methods) with an `id` you choose. The `id` is the pane's name: your `ui.render` hook checks for it, and you pass it again to close the pane. If another mod has a pane open with that `id`, the call rejects.
287To open a pane, call `$.ui.open` with an `id` you choose. The `id` is the pane's name: your `ui.render` hook checks for it, and you pass it again to close the pane. If another mod has a pane open with that `id`, the call rejects.
288288 
289289```javascript theme={null}
290290await $.ui.open({ id: 'hello-tabs', title: 'Hello tabs', focus: true })
from line 335
335335 
336336### Draw in the VS Code extension
337337 
338In the VS Code extension, what a mod draws appears in the chat panel with extension version 2.1.299 or later. A session that [doesn't fetch feature flags](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching), such as one on Amazon Bedrock, needs 2.1.304 or later. In a `ui.render` hook for the panel, `e.surface` is `vscode`. To check which sites and elements the panel draws, and which props it ignores, see the [render sites](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites) and [elements](https://code.claude.com/docs/en/plugins/mods/reference.md#elements) tables.
338In the VS Code extension, what a mod draws appears in the chat panel with extension version 2.1.299 or later. A session that [doesn't fetch feature flags](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching), such as one on Amazon Bedrock, needs 2.1.304 or later. In a `ui.render` hook for the panel, `e.surface` is `vscode`. To check what the panel draws, see the [render sites](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites) and [elements](#build-a-tree-from-elements) tables and the [props it ignores](https://code.claude.com/docs/en/plugins/mods/reference.md#vs-code-ignored-props).
339339 
340340To make a mod work in the panel as well as the terminal, account for these differences:
341341 
from line 354
354354 
355355**1. Place the row**
356356 
357Call [`$.ui.place`](https://code.claude.com/docs/en/plugins/mods/reference#mods-api-methods) with an `id`. The `id` is a name you make up for the row, such as `build-status`. It can be 1 to 64 letters, digits, `_`, or `-`, and each row your mod has in the transcript needs its own.
357Call `$.ui.place` with an `id`. The `id` is a name you make up for the row, such as `build-status`. It can be 1 to 64 letters, digits, `_`, or `-`, and each row your mod has in the transcript needs its own.
358358 
359359**2. Draw the row**
360360 
from line 928
928928| `Client` | A region drawn by a second file of yours, for animation and pointer input. That file gets no mods API. It reaches your hooks by posting data, which arrives as a `ui.message` event. If it fails to load, draw, or run, your hooks receive a [`ui.fault`](https://code.claude.com/docs/en/plugins/mods/reference#interface) event. | Terminal, Desktop |
929929| `Raster`, `Image` | A [grid of colored cells](#draw-a-grid-of-colored-cells), and a picture | Terminal |
930930 
931> [!NOTE]
932>
933> Spacing step names and the `Text` props `size`, `weight`, `mono`, and `tabular` require Claude Code v2.1.299 or later. On an earlier release, a tree that uses one doesn't draw.
934 
931935If your module is a `.tsx` or `.jsx` file, you can write the tree as JSX. Destructure the elements from `$.ui.resolve(e)` first.
932936 
933937If your drawing doesn't show up, check its tree for a prop an element doesn't take or a child where none goes. A hook that returns such a tree [fails](https://code.claude.com/docs/en/plugins/mods/events.md#handle-a-hook-that-fails), and a [`hook skipped` line](https://code.claude.com/docs/en/plugins/mods/troubleshoot#a-pane-or-band-is-empty) names your mod and the rule the tree broke. For a `Text` in a pane with a prop named `bogusProp`, that line reads:
from line 954
950954 
951955In the terminal, when the file a `Client` runs fails, a dimmed line such as `my-mod: Client client/spinner.js: boom` takes the `Client`'s place, and the rest of your drawing still shows.
952956 
953If your mod handles [`ui.fault`](https://code.claude.com/docs/en/plugins/mods/reference#interface), Claude Code then [draws the site again](#when-claude-code-redraws-without-being-asked).
957If your mod handles `ui.fault`, Claude Code then [draws the site again](#when-claude-code-redraws-without-being-asked). The event requires Claude Code v2.1.289 or later.
954958 
955959### Draw a grid of colored cells
956960 
from line 1021
10171021 
10181022### Keyboard focus and hotkeys
10191023 
1020Your mod never reads the keyboard itself. The user presses a key, Claude Code decides which of your controls it's for, and that control's callback runs. Apart from a [digit hotkey on the band or an `action` binding](https://code.claude.com/docs/en/plugins/mods/reference#elements), that happens only while your pane or band has keyboard focus. The rest of the time, keys go to the prompt.
1024The user presses a key, Claude Code decides which of your controls it's for, and that control's callback runs. Apart from a [digit hotkey on the band or an `action` binding](https://code.claude.com/docs/en/plugins/mods/reference#look-up), that happens only while your pane or band has keyboard focus.
10211025 
10221026In the [VS Code extension](#draw-in-the-vs-code-extension), buttons have no hotkeys: the user clicks a button or presses Enter on it, and types into fields.
10231027 
from line 1065
10611065| With brackets, the default | `[ Add one ]`, with no hotkey shown | The label with a small key beside it | The label, and the hotkey does nothing |
10621066| With `plain: true` | `1: One` | The label with a small key beside it | The label, and the hotkey does nothing |
10631067 
1064In the terminal, name the key in a bracketed button's label, or use `plain: true`, so the user can see what to press. The [elements reference](https://code.claude.com/docs/en/plugins/mods/reference.md#elements) has the other `Button` rules: `action`, digit hotkeys on the band, and two buttons on one hotkey.
1068In the terminal, name the key in a bracketed button's label, or use `plain: true`, so the user can see what to press. The [type declarations](https://code.claude.com/docs/en/plugins/mods/reference.md#look-up) have the other `Button` rules: `action`, digit hotkeys on the band, and two buttons on one hotkey.
10651069 
10661070#### When the user collapses the band
10671071 
from line 1080
10761080▸ plugin panel hidden · ctrl+x ctrl+a or click to show
10771081```
10781082 
1079The same keys, or in fullscreen rendering a click on the row, expand the band again. Until then, nothing presses a button in it: no hotkey, no digit typed into an empty prompt, and no keybinding for a button's [`action`](https://code.claude.com/docs/en/plugins/mods/reference#elements). If the band has keyboard focus when the user collapses it, the focus returns to the prompt, and Ctrl+X then Tab skips the band while it's collapsed.
1083The same keys, or in fullscreen rendering a click on the row, expand the band again. Until then, nothing presses a button in it. If the band has keyboard focus when the user collapses it, the focus returns to the prompt, and Ctrl+X then Tab skips the band while it's collapsed.
10801084 
10811085The band stays collapsed until the user expands it, even after `/clear`, and is expanded again the next time Claude Code starts. Your mod can't expand it. Don't make the band the only place your mod shows something the user has to answer. To show that elsewhere only while the band is collapsed, read `e.props.isCollapsed` in your `ui.render` hook, which keeps running. `isCollapsed` requires Claude Code v2.1.321 or later.
10821086 
from line 1187
11831187 
11841188### When Claude Code redraws without being asked
11851189 
1186Claude Code runs your `ui.render` hook again when the site's props change or the terminal's width changes. When a `Client` in the site fails and your mod handles [`ui.fault`](https://code.claude.com/docs/en/plugins/mods/reference#interface), Claude Code runs the hook once more after your `ui.fault` hooks return, so your `ui.render` hook can leave the `Client` out. It doesn't run the hook on a timer, and it can't tell when a variable in your module changes.
1190Claude Code runs your `ui.render` hook again when the site's props change or the terminal's width changes. When a `Client` in the site fails and your mod handles [`ui.fault`](#when-a-client-fails), Claude Code runs the hook once more after your `ui.fault` hooks return, so your `ui.render` hook can omit the `Client`. It doesn't run the hook on a timer, and it can't tell when a variable in your module changes.
11871191 
11881192### Redraw when your data changes
11891193 
from line 1393
13891393* [React to events](https://code.claude.com/docs/en/plugins/mods/events.md): feed your drawing from tool calls and turns
13901394* [Use the mods API](https://code.claude.com/docs/en/plugins/mods/api.md): feed your drawing from timers and model calls
13911395* [Test a drawing](https://code.claude.com/docs/en/plugins/mods/test.md#test-a-drawing): press your buttons from a test, on more than one surface
1392* [Render sites](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites) and [elements](https://code.claude.com/docs/en/plugins/mods/reference.md#elements): each site's props and each element's props
1396* [Mods reference](https://code.claude.com/docs/en/plugins/mods/reference.md): where to look up a prop, which app draws each site, and the limits
13931397 

plugins/mods/overview Changed · +5 / -5 lines

from line 159
159159 
160160The file registers two hooks, and both use the `calls` variable at the top:
161161 
162* **The [`tool.call`](https://code.claude.com/docs/en/plugins/mods/reference#tools) hook** runs each time Claude is about to use a tool. It adds one to `calls`, asks Claude Code to draw the interface again, and lets the tool run as usual.
163* **The [`ui.render`](https://code.claude.com/docs/en/plugins/mods/reference#interface) hook** runs each time Claude Code draws the spinner. It keeps Claude Code's own spinner and adds the count after the word.
162* **The [`tool.call`](https://code.claude.com/docs/en/plugins/mods/events#guard-or-change-a-tool-call) hook** runs each time Claude is about to use a tool. It adds one to `calls`, asks Claude Code to draw the interface again, and lets the tool run as usual.
163* **The [`ui.render`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw) hook** runs each time Claude Code draws the spinner. It keeps Claude Code's own spinner and adds the count after the word.
164164 
165165This recording shows the mod at work. Watch the spinner line above the prompt box: while Claude lists a directory and reads two files, it reads `Thinking · tool calls: 1…`, then `2…`, then `3…`.
166166 
from line 185
185185| Where you run Claude Code | Hooks run | What the mod draws appears |
186186| :- | :- | :- |
187187| `claude` in a terminal, including an editor's integrated terminal and the JetBrains plugin | Yes | Yes |
188| The Code tab of the Desktop app, except in a WSL or SSH session | Yes | Yes, except elements the [elements table](https://code.claude.com/docs/en/plugins/mods/reference.md#elements) marks terminal-only |
188| The Code tab of the Desktop app, except in a WSL or SSH session | Yes | Yes, except elements the [elements table](https://code.claude.com/docs/en/plugins/mods/interface.md#build-a-tree-from-elements) marks terminal-only |
189189| A [WSL session](https://code.claude.com/docs/en/desktop-wsl.md) in the Desktop app | No, because plugins aren't available in WSL sessions | No |
190190| An [SSH session](https://code.claude.com/docs/en/desktop.md#ssh-sessions) in the Desktop app, for a mod installed only on your computer | No, because Desktop doesn't copy its hooks to the remote machine | No |
191| The VS Code extension's chat panel | Yes | Yes, with extension version 2.1.299 or later. A session that [doesn't fetch feature flags](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching), such as one on Amazon Bedrock, needs 2.1.304 or later. The [render sites](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites) and [elements](https://code.claude.com/docs/en/plugins/mods/reference.md#elements) tables mark what the panel draws. |
191| The VS Code extension's chat panel | Yes | Yes, with extension version 2.1.299 or later. A session that [doesn't fetch feature flags](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching), such as one on Amazon Bedrock, needs 2.1.304 or later. The [render sites](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites) and [elements](https://code.claude.com/docs/en/plugins/mods/interface.md#build-a-tree-from-elements) tables mark what the panel draws. |
192192| `claude -p` and the [Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview.md) | Yes | No |
193193| [Remote Control](https://code.claude.com/docs/en/remote-control.md) from claude.ai or the mobile app | Yes, in the session on your machine | In the terminal on your machine |
194194| A [cloud session](https://code.claude.com/docs/en/claude-code-on-the-web.md) | Yes, for a plugin that [reaches the cloud session](https://code.claude.com/docs/en/cloud-environments.md#what-carries-over-from-your-setup) | Not in every session |
from line 259
259259* [Test a mod](https://code.claude.com/docs/en/plugins/mods/test.md): automated tests that run without a session
260260* [Troubleshoot a mod](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md): the reasons a mod does nothing, and the debug log
261261* [Manage mods for your organization](https://code.claude.com/docs/en/plugins/mods/admin.md): defaults, managed settings, reviewing a mod, and policy mods
262* [Mods reference](https://code.claude.com/docs/en/plugins/mods/reference.md): events, methods, elements, and limits
262* [Mods reference](https://code.claude.com/docs/en/plugins/mods/reference.md): where to look up events and methods, and the limits
263263 

plugins/mods/reference Changed · +94 / -349 lines

## Look up an event, method, or prop ## Telemetry ## Send a changed system prompt section or tool description with `breakPromptCache` ## Send a changed tool list ## Subagent starts ### Resumed subagent runs ## Mods API calls ### Fields on Claude Code's own `http.fetch` requests ## Skip other mods' hooks with `next.to` ## Namespaces you add ## File writes ### Buttons with children in the Desktop app and VS Code ### Props the VS Code extension ignores ## Related resources ## 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` #### Send a changed tool list ### 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 ### `Box` spacing steps ### `Text` typography props #### Replace `bold` with `weight` ## Settings and environment variables ## Commands

The two sides of this change are more than 400 edits apart, too far apart to line up, so this is the differ's own diff of it and the words inside a line are not marked.

from line 1
11# Mods reference
22 
3> Complete reference for Claude Code mods: hooks module layout, events, mods API methods, render sites, elements by surface, limits, and settings.
4 
5Look up any event a [mod](https://code.claude.com/docs/en/plugins/mods/overview.md) can handle, mods API method it can call, or render site it can draw in. Entries cover the Claude Code CLI and the Desktop app as of v2.1.290, and the VS Code extension as of v2.1.299. Each entry gives the name and a one-line description, and links to the guide section that explains it where there is one.
6 
7> [!NOTE]
8>
9> The complete reference is Claude Code's [TypeScript declarations for mods](https://github.com/anthropics/claude-code/blob/main/mods/types/claude-code.d.ts), which describe every event, method, and element, with examples. The copy on GitHub can be older than the Claude Code version you have installed. When the two disagree, trust [the copy Claude Code writes for your version](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build).
3> Find the type declarations that list every mod event, method, and prop, and look up file layout, which app draws what, and limits.
4 
5The [type declarations on GitHub](https://github.com/anthropics/claude-code/blob/main/mods/types/claude-code.d.ts) document the events, mods API methods, and props a [mod](https://code.claude.com/docs/en/plugins/mods/overview.md) can use. Start with [how to search the declarations](#look-up), or go to a mod's [files](#files), [render sites by app](#render-sites), or [limits](#limits).
6 
7## Look up an event, method, or prop
8 
9To look up a name, open the [type declarations on GitHub](https://github.com/anthropics/claude-code/blob/main/mods/types/claude-code.d.ts) and search for the name in one of these forms:
10 
11* **An event**: its name in quotes, such as `'tool.call'`. The entry names the type that holds the event's fields, so search for that type next.
12* **A hook's `next` argument**: `type Next<`
13* **A mods API method**: its namespace, a colon, and a brace, such as `fs: {` for `$.fs.write`. The namespace's methods follow.
14* **A [render site's](#render-sites) props**: the site's name and a colon, such as `AbovePrompt:`
15* **An element's props**: the element's name and `Props`, such as `ButtonProps`
16 
17The comment above an entry says what the event, method, or prop does. If your browser's search misses a name on GitHub, search the [raw file](https://raw.githubusercontent.com/anthropics/claude-code/main/mods/types/claude-code.d.ts).
18 
19The GitHub copy can describe a newer or older Claude Code version than you run. For your version's declarations, search the [copy Claude Code writes](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build) into your mod's directory.
1020 
1121## Files
1222 
from line 32
2232 
2333`register` receives `on` and `options`. `options` holds the values of the [`userConfig`](https://code.claude.com/docs/en/plugins/components#user-configuration) fields the manifest declares, with defaults filled in.
2434 
25## The hook function
26 
27A mod registers each of its hooks, which are event handlers, by calling `on` inside `register`. `on` takes the event's name, an optional [matcher](https://code.claude.com/docs/en/plugins/mods/events.md#filter-which-events-a-hook-handles), which is a filter on the event's fields, and the hook, as in `on('tool.call', { tool: 'Bash' }, async ($, e, next) => next(e))`. `on` returns a registration with one method, `.catch(handler)`, which sets the hook's [error handler](https://code.claude.com/docs/en/plugins/mods/events.md#handle-a-hook-that-fails).
28 
29| Argument | What it is |
30| :- | :- |
31| [`$`](https://code.claude.com/docs/en/plugins/mods/events#how-a-hook-handles-an-event) | The mods API: every method in [mods API methods](#mods-api-methods). Write each call in full, namespace then method, as in `$.fs.read('notes.md')`. |
32| [`e`](https://code.claude.com/docs/en/plugins/mods/events#how-a-hook-handles-an-event) | The event's input. To change it, pass a copy to `next`. |
33| [`next(e)`](https://code.claude.com/docs/en/plugins/mods/events#how-a-hook-handles-an-event) | The next handler, as in middleware. Runs the hooks after this one, then Claude Code's behavior. Resolves to the event's result. |
34| [`next.signal`](https://code.claude.com/docs/en/plugins/mods/api#stop-background-work) | An `AbortSignal` that aborts when the event is abandoned |
35| `next.origin` | `{ plugin, tier }` of whoever fired the event. Claude Code itself is `{ plugin: 'engine', tier: 'core' }`. A mod's `tier` is its priority group in the [order mods run in](https://code.claude.com/docs/en/plugins/mods/events.md#the-order-mods-run-in): `prepend`, `user`, `append`, or `builtin`. |
36| `next.budget` | The hook's time limit in milliseconds: `next.budget.ms` is the whole limit, and `next.budget.remainingMs` is what's left now |
37| `next.to(e, tier)` | Skips to a later tier, which is `append`, `builtin`, or `core`. `next.to(e, 'append')` skips the mods a user installed. Only a mod in `prependPlugins` or `appendPlugins` can call it. |
38| `next.error` | In a `.catch` handler only. `kind` is `throw` or `timeout`, and `message` is the error's text. |
39| `next.called` | In a `.catch` handler only. `true` when the hook had called `next`. |
40 
41## Events
42 
43Events are grouped by what they concern, each with when it fires and what a hook on it can return. Hooks on `turn.step` and `process.spawn` are async generators, and other hooks are async functions.
44 
45The last column of each table uses shorthand. `next(e)` passes the event on unchanged. `next({ ...e, text })` passes on a copy with the named field changed, as in `next({ ...e, text: e.text.trim() })`. An object answers the event without calling `next`, and a word such as `reason` stands for a string you write, as in `{ deny: 'Use the file tools.' }`.
46 
47### Tools
48 
49Tool events fire around each tool call Claude makes, from the description Claude reads to the decision on whether the call runs:
50 
51| Event | Fires when | A hook can return |
52| :- | :- | :- |
53| [`tool.call`](https://code.claude.com/docs/en/plugins/mods/events#guard-or-change-a-tool-call) | A tool is about to run | `next(e)`, `{ deny: reason }`, or `{ result }` |
54| [`tool.check`](https://code.claude.com/docs/en/plugins/mods/events#where-settings-hooks-run-in-the-order) | Claude Code decides whether a tool call may run, after the `tool.call` and `PreToolUse` hooks. `next(e)` resolves to the decision the rules, the permission mode, and those hooks reached. | `next(e)` or `{ decision }`, with `decision` set to `allow`, `ask`, or `deny` and an optional `reason` |
55| `tool.judge` | [Auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode) is about to ask its classifier about a call. Requires Claude Code v2.1.326 or later. | `next(e)` or `{ decision }` |
56| `tool.run` | An allowed call is about to run. Requires Claude Code v2.1.326 or later. | `next(e)`, `{ deny: reason }`, or `{ result }` |
57| `tool.describe` | Once for each tool, when its description is first sent to Claude. A second time for an MCP tool when Claude loads it through [tool search](https://code.claude.com/docs/en/mcp.md#scale-with-mcp-tool-search), with `e.description` set to the text Claude reads for the loaded tool. | `{ description }`, optionally with `isDeferred` set to `true` to put the tool behind tool search or `false` to load it upfront. Add [`breakPromptCache: true`](#break-prompt-cache) to send a changed description on the next turn. |
58| `tool.offer` | Claude Code builds Claude's tool list, and again when Claude calls a tool. Requires Claude Code v2.1.328 or later. | `next(e)`, or `{ isOffered: false }` to withhold the tool from Claude. See [Send a changed tool list](#send-a-changed-tool-list). |
59 
60#### Agent and organization fields on `tool.check`
61 
62In a `tool.check` hook, read these fields to tell a subagent's call from the main conversation's, and to see whether your organization requires approval for a connector tool:
63 
64* **`e.agentId`**: set when a [subagent](https://code.claude.com/docs/en/sub-agents.md) or an [in-process teammate](https://code.claude.com/docs/en/agent-teams.md#choose-a-display-mode) makes the call, and absent when the main conversation does
65* **`e.ceiling`**: `ask` for a connector tool your organization set to `ask`, in [sessions where that setting reaches Claude Code](https://code.claude.com/docs/en/mcp.md#organization-controls-on-connector-tools)
66 
67On `tool.check`, `e.agentId` and `e.ceiling` require Claude Code v2.1.290 or later.
68 
69#### The `e.isReadOnly` field on `tool.check`
70 
71In a `tool.check` hook, `e.isReadOnly` is `true` when the tool reports this call as read-only. Otherwise the field is absent, not `false`. The value is the tool's own report, so read [Check whether a tool call is read-only](https://code.claude.com/docs/en/plugins/mods/events.md#check-whether-a-tool-call-is-read-only) before you approve a call on this field alone.
72 
73On `tool.check`, `e.isReadOnly` requires Claude Code v2.1.304 or later.
74 
75### Prompts and what Claude reads
76 
77Prompt events cover the text the user types and the text Claude Code sends to Claude on its own, such as the system prompt and reminders:
78 
79| Event | Fires when | A hook can return |
80| :- | :- | :- |
81| [`prompt.submit`](https://code.claude.com/docs/en/plugins/mods/events#rewrite-or-add-to-a-prompt) | A prompt is submitted | `next({ ...e, text })`, `next({ ...e, context })`, or `{ drop: reason }` |
82| `prompt.fill`, `prompt.suggest` | Text is about to go into the prompt box as a draft, or as a dim suggestion | `next(e)` with changed text |
83| `prompt.edit` | The user edits the prompt box | `next(e)` |
84| `prompt.autocomplete` | The user types in the prompt box and a word ends at the cursor. `e.token` is that word. Claude Code doesn't wait for the hook: its own autocomplete rows show first. | `{ suggestions }`, a list of `{ text, label, description }` rows shown below Claude Code's own. Choosing a row writes its `text` over the word. |
85| `prompt.compose` | Claude Code renders a system prompt | `{ sections }`, a list of `{ id, text, scope }` in the order they're sent |
86| [`prompt.section`](https://code.claude.com/docs/en/plugins/mods/events#rewrite-or-add-to-a-prompt) | Once for each named section of the system prompt. `e.name` is the section's `id` in `prompt.compose`. | `{ text }`, or `{ text: null }` to omit the section. Add [`breakPromptCache: true`](#break-prompt-cache) to send a changed section on the next turn. |
87| [`prompt.context`](https://code.claude.com/docs/en/plugins/mods/events#rewrite-or-add-to-a-prompt) | Once for each conversation, for the context sent with the first message | `{ blocks }` |
88| `prompt.attachment` | Claude Code adds a message of its own for Claude, such as a reminder. `e.type` names the kind, and for the kinds the types declare, `e.detail` holds the facts the text was written from. | `{ text }`, or `{ text: null }` to omit it |
89| `prompt.mention` | Claude Code is about to read a file that a prompt @-mentions. Requires Claude Code v2.1.290 or later. | `next({ ...e, path })` to read a different file, or `{ deny: reason }` |
90| [`skill.prompt`](https://code.claude.com/docs/en/plugins/mods/events#rewrite-or-add-to-a-prompt) | A skill's text is expanded for Claude | `{ text }` |
91| `attribution.text` | Claude Code composes commit or pull request attribution text | `{ text }` |
92 
93#### Source and frontmatter fields on `skill.prompt`
94 
95In a `skill.prompt` hook, you can read these fields along with the skill's name in `e.skill` and the text Claude reads in `e.text`:
96 
97| Field | Type | What it holds |
98| :- | :- | :- |
99| `e.source` | string | Who provides the skill: `policySettings`, `userSettings`, or `projectSettings` for a skill in the enterprise, personal, or project [location](https://code.claude.com/docs/en/skills.md#where-skills-live), respectively. Other sources give a word such as `plugin`, `mcp`, `syncedSkills`, or `built-in`. |
100| `e.pluginName` | string | The plugin's name, for a skill whose `e.source` is `plugin` |
101| `e.path` | string | The absolute path of the skill's `SKILL.md` file, or of its `.md` file for a skill written as a [command file](https://code.claude.com/docs/en/skills.md#where-skills-live). Absent when the skill has no file on this machine, as with a built-in skill. |
102| `e.frontmatter` | object | The frontmatter of the skill's file, as plain data |
103| `e.frontmatterProblem` | string | The reason `e.frontmatter` is missing the file's frontmatter or one of its keys, as in `is a list or a single value, not a table`. Absent when `e.frontmatter` holds the whole frontmatter or the skill has none. |
104 
105A hook can pass a changed `text` or `frontmatter` to `next`: the hooks after it read both, and Claude reads the final `text`. A hook that changes any other field [fails](https://code.claude.com/docs/en/plugins/mods/events.md#handle-a-hook-that-fails).
106 
107On `skill.prompt`, `e.source`, `e.pluginName`, `e.path`, `e.frontmatter`, and `e.frontmatterProblem` require Claude Code v2.1.299 or later.
108 
109#### Send a changed system prompt section or tool description with `breakPromptCache`
35## Telemetry
36 
37`telemetry.log` fires when a telemetry record is about to be logged. In your mod, give a telemetry hook the filter `{ to: 'collector' }`, as in `on('telemetry.log', { to: 'collector' }, hook)`. Without the filter, the mod fails `claude plugin validate`.
38 
39> [!NOTE]
40>
41> To run your hook in sessions that load the [built-in guard](https://code.claude.com/docs/en/plugins/mods/admin.md#know-what-happens-by-default), such as on a Team or Enterprise login, ask the organization's administrator to [install your mod as theirs](https://code.claude.com/docs/en/plugins/mods/admin.md#install-your-organizations-mods). If you or another user installs it instead, the hook [doesn't run in those sessions](https://code.claude.com/docs/en/plugins/mods/admin.md#hooks-the-guard-passes-over) on Claude Code v2.1.328 or later.
42 
43## Send a changed system prompt section or tool description with `breakPromptCache`
11044 
11145To change a section or a tool description in a running conversation, call `$.ui.invalidate('prompt.section')` or `$.ui.invalidate('tool.describe')` so your hook runs again. Return `{ text, breakPromptCache: true }` or `{ description, breakPromptCache: true }` from it. Without the field, Claude keeps reading the text [saved with the conversation](https://code.claude.com/docs/en/cli-reference.md#system-prompt-flags-in-resumed-conversations) for a section or a tool loaded upfront until a new conversation or a [compaction](https://code.claude.com/docs/en/prompt-caching.md#compacting-the-conversation).
11246 
11347The changed text reaches Claude on the next turn, and the [prompt cache](https://code.claude.com/docs/en/prompt-caching.md) starts over, so that turn is slower and more expensive. The field requires Claude Code v2.1.321 or later. From v2.1.299 until v2.1.321, a running conversation got the changed text on the next turn.
11448 
115#### Send a changed tool list
49## Send a changed tool list
11650 
11751To change the main conversation's tool list, call `$.ui.invalidate('tool.offer')` and return `{ isOffered, breakPromptCache: true }` from your `tool.offer` hook. The [prompt cache](https://code.claude.com/docs/en/prompt-caching.md) then starts over. Requires Claude Code v2.1.331 or later.
11852 
119### Commands and configuration
120 
121| Event | Fires when | A hook can return |
122| :- | :- | :- |
123| [`command.run`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command) | A command is about to run | `{ text }`, `{}`, or `next(e)` |
124| `command.describe` | Once for each command, for the command list | `{ description, argumentHint, isHidden }` |
125| `config.set` | A `/config` row is about to change | `next({ ...e, value })` or `{ deny: reason }` |
126| `config.describe` | Once for each `/config` row | `{ label, description, isHidden }` |
127| [`settings.read`](https://code.claude.com/docs/en/plugins/mods/events#settings-read-hook) | A mod calls [`$.settings.read`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network), or Claude Code builds the session's merged settings. Requires Claude Code v2.1.304 or later on Claude Code's own read and for `e.layers` | `next(e)`, `{ value }`, or `{ deny: reason }` |
128 
129#### `e.layers` and `e.source` on `settings.read`
130 
131* **`e.layers`**: one `{ source, settings }` object for each source in use that holds settings, lowest [precedence](https://code.claude.com/docs/en/settings.md#settings-precedence) first. See [What a `settings.read` hook receives](https://code.claude.com/docs/en/plugins/mods/events#settings-read-receives).
132* **`e.source`**: the one source a mod asked for, as in `$.settings.read({ source: 'policy' })`. Absent on Claude Code's own read and on a read of the merged settings
133 
134### Turns
135 
136Turn events follow one answer from start to finish, including each request to the model within it:
137 
138| Event | Fires when | A hook can return |
139| :- | :- | :- |
140| [`turn.start`](https://code.claude.com/docs/en/plugins/mods/events#follow-a-turn) | A turn begins | `next(e)` |
141| [`turn.step`](https://code.claude.com/docs/en/plugins/mods/events#follow-a-turn) | One request is about to go to the model | `yield* next(e)`, or `next({ ...e, model })`, `next({ ...e, effort })` |
142| [`turn.complete`](https://code.claude.com/docs/en/plugins/mods/events#follow-a-turn) | A turn ended | `next(e)`, or `{ text }` to show a line under the main conversation's answer |
143 
144### Session
145 
146Session events mark the session starting, ending, compacting, and exchanging messages with other sessions:
147 
148| Event | Fires when | A hook can return |
149| :- | :- | :- |
150| [`session.start`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command-or-a-tool) | Once for each loaded mod, before the first prompt, and again after a reload of that mod. Not after `/clear`, `/resume`, or `/branch`. | `next(e)` |
151| `session.end` | The session ends, or `/clear`, `/resume`, or `/branch` runs. `e.reason` is `clear`, `resume`, `logout`, `prompt_input_exit`, or `other`. `/branch` reports `resume`. | `next(e)` |
152| `session.compact` | The conversation is about to be compacted | `{ skip: reason }` |
153| [`session.receive`](https://code.claude.com/docs/en/plugins/mods/api#send-and-receive-messages-between-sessions), [`session.send`](https://code.claude.com/docs/en/plugins/mods/api#send-and-receive-messages-between-sessions) | A message arrives from, or is about to go to, another agent or session. See [Send and receive messages between sessions](https://code.claude.com/docs/en/plugins/mods/api.md#send-and-receive-messages-between-sessions). | `{ consumed: reason }` for `receive`, `{ isDelivered: false, reason }` for `send` |
154| `session.append` | Once for each row the conversation keeps, such as a prompt, a response block, a tool result, or a notice, before it's stored | `next({ ...e, message })` with a changed `message.content`, to rewrite the row's text blocks or the `content` of a `tool_result` block in it. You can't rewrite a row that holds a [skill from an MCP server](https://code.claude.com/docs/en/mcp.md#use-skills-from-mcp-servers). To change that skill's text, hook [`skill.prompt`](#prompts-and-what-claude-reads) instead. |
155| `session.attach`, `session.detach` | Another app connects to or disconnects from the session | `next(e)` |
156| `session.measure` | After each turn, and when a plan limit's percent used changes | `next(e)` |
157| `session.stop` | The user stops Claude, such as with Esc during a turn. Requires Claude Code v2.1.326 or later. | `next(e)` |
158 
159### Subagents
160 
161Subagent events fire when a subagent type is offered to Claude and when a subagent or an agent-team teammate is about to start:
162 
163| Event | Fires when | A hook can return |
164| :- | :- | :- |
165| `agent.offer` | A subagent type is offered to Claude | `{ isOffered: false }` to withhold it |
166| `agent.spawn` | A subagent or an [agent team](https://code.claude.com/docs/en/agent-teams.md) teammate is about to start, or a subagent that finished or stopped is about to run again. For a teammate, `e.isTeammate` is `true`. For a resumed run, `e.resume` is set. | `next({ ...e, model })` to choose the model of one that is starting, or `{ deny: reason }` |
53## Subagent starts
54 
55`agent.spawn` fires when a subagent or an [agent team](https://code.claude.com/docs/en/agent-teams.md) teammate is about to start. To choose the model of one that is starting, call `next({ ...e, model })`.
56 
57### Resumed subagent runs
16758 
16859Your `agent.spawn` hook also runs when a subagent that finished or stopped is about to run again, such as when Claude sends it a message with the [`SendMessage`](https://code.claude.com/docs/en/sub-agents#resume-subagents) tool. On that event, `e.resume` is `{ agentId }`. If your hook counts subagents, skip the events where `e.resume` is set, so a resumed subagent isn't counted again.
16960 
from line 64
17364>
17465> The event for a resumed run requires Claude Code v2.1.299 or later. Before v2.1.299, your `agent.spawn` hook didn't run when a subagent resumed. On those versions, to refuse the `SendMessage` calls that resume a subagent, match that tool in a [`tool.call`](https://code.claude.com/docs/en/plugins/mods/events#guard-or-change-a-tool-call) hook.
17566 
176### Interface
177 
178Interface events fire when Claude Code draws a render site and when the user uses a control a mod drew. [Draw in the interface](https://code.claude.com/docs/en/plugins/mods/interface.md) shows what a `ui.render` hook returns:
179 
180| Event | Fires when |
181| :- | :- |
182| [`ui.render`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw) | A [render site](#render-sites) is about to be drawn |
183| `ui.resolve` | Mods load, once for each app, render site, and mod. The result is the element table that `$.ui.resolve(e)` reads. |
184| [`ui.press`](https://code.claude.com/docs/en/plugins/mods/interface#respond-to-presses-and-typing), [`ui.input`](https://code.claude.com/docs/en/plugins/mods/interface#respond-to-presses-and-typing), [`ui.select`](https://code.claude.com/docs/en/plugins/mods/interface#respond-to-presses-and-typing) | A `Button`, `Input`, or `Select` a mod drew is used |
185| [`ui.pointer`](https://code.claude.com/docs/en/plugins/mods/interface#animate-a-backdrop-with-a-shader) | The user clicks a part of your mod's backdrop that the app doesn't cover. Requires Claude Code v2.1.326 or later. |
186| `ui.focus`, `ui.scroll` | The focused control or the scroll position of a pane or the band is about to change |
187| `ui.close` | A pane is about to close. `e.id` is the pane and `e.origin.kind` is `plugin`, `person`, or `unload`. |
188| [`ui.message`](https://code.claude.com/docs/en/plugins/mods/interface#build-a-tree-from-elements) | A `Client` element posts data to its mod |
189| [`ui.fault`](https://code.claude.com/docs/en/plugins/mods/interface#redraw-when-something-changes) | A `Client` element your mod drew failed to load, draw, or run. `e.phase` is `load`, `render`, or `run`, and `e.reason` is the error message. Requires Claude Code v2.1.289 or later. |
190 
191### Other mods
192 
193These events let a mod act on other mods as they load, to refuse one or change the mods API it receives:
194 
195| Event | Fires when | A hook can return |
196| :- | :- | :- |
197| [`plugin.register`](https://code.claude.com/docs/en/plugins/mods/admin#enforce-a-policy-with-a-mod-of-your-own) | A hooks module is about to load, or, on v2.1.326 or later, a plugin without one. `e.uses` lists the module's events, mods API calls, environment variables, and state, as `claude plugin validate` prints them. Each call is written without the `$.` prefix, such as `fs.read`. | `{ refuse: reason }`. On v2.1.326 or later, a refusal keeps out the whole plugin, and `next({ ...e, provides: { ...e.provides, modules: [] } })` keeps out only its hooks module. Earlier versions ignore `provides` and load the module. |
198| `engine.create` | The mods API is being built for this mod | A changed mods API, to add a namespace. A mod in the `prepend` or `append` [tier](#the-hook-function) can also withhold one. |
199 
200When another mod's hook calls a method on a namespace you added in `engine.create`, your method's `$` calls run in that hook's context until every hook on that event returns. For example, a relative path resolves against that hook's working directory, and `$.prompt.submit` rejects while the turn is waiting on that hook. Calls your method makes after that run in your mod's own context.
201 
202### Telemetry
203 
204Telemetry events fire for the usage records Claude Code logs:
205 
206| Event | Fires when | A hook can return |
207| :- | :- | :- |
208| `telemetry.log`, `telemetry.mark` | A telemetry record is about to be logged, or one use of a feature is marked. In a mod you install, give a telemetry hook the filter `{ to: 'collector' }`, as in `on('telemetry.log', { to: 'collector' }, hook)`. Without the filter, the mod fails `claude plugin validate`. `*` doesn't match these events. | `next(e)`, or `{ deny: reason }` |
209 
210### Settings hook events
211 
212Each [settings hook event](https://code.claude.com/docs/en/hooks.md#hook-events) is an event named `classic.<Event>`, such as `classic.Stop`. For the fields on `e`, see [Handle the settings hook events](https://code.claude.com/docs/en/plugins/mods/events.md#hook-the-settings-hook-events).
213 
214### Mods API calls
67## Mods API calls
21568 
21669Every [mods API method](#mods-api-methods) is also an event, named for its namespace and method, such as `fs.read`, `model.complete`, or `ui.open`. A hook on one can return `next(e)`, `{ deny: reason }`, or `{ value }`.
21770 
21871Some of these events also fire for Claude Code's own actions, so check whether `next.origin.plugin` is `engine` before you refuse one.
21972 
220#### Fields on Claude Code's own `http.fetch` requests
73### Fields on Claude Code's own `http.fetch` requests
22174 
22275In an `http.fetch` hook, a [`next.origin`](#the-hook-function) of `{ plugin: 'engine', tier: 'core' }` marks one of Claude Code's own requests, such as a model request, not a mod's `$.http.fetch` call. Where the [built-in guard](https://code.claude.com/docs/en/plugins/mods/admin.md#know-what-happens-by-default) is loaded, your hook doesn't get these events unless your mod [counts as your organization's](https://code.claude.com/docs/en/plugins/mods/admin.md#install-your-organizations-mods).
22376 
from line 83
23083 
23184These events and fields require Claude Code v2.1.321 or later.
23285 
233## Mods API methods
234 
235The mods API is the `$` argument every hook receives. Its methods are grouped in namespaces, such as `$.ui`. This table lists each namespace's methods by name, so `open` in the `$.ui` row is the call `$.ui.open(...)`. The guides show the common ones in use, and [the types for your build](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build) document every method with an example.
236 
237| Namespace | Methods |
86## Skip other mods' hooks with `next.to`
87 
88To call `next.to`, your mod has to run in the `prepend` or `append` tier. To see who can put it there, check the scope of [`prependPlugins`](https://code.claude.com/docs/en/settings-reference#prependplugins) or [`appendPlugins`](https://code.claude.com/docs/en/settings-reference#appendplugins). The `to` entry under [`type Next<`](#look-up) lists the tiers each one can skip to.
89 
90## Namespaces you add
91 
92When another mod's hook calls a method on a namespace you added in [`engine.create`](#look-up), your method's `$` calls run in that hook's context until every hook on that event returns. For example, a relative path resolves against that hook's working directory, and `$.prompt.submit` rejects while the turn is waiting on that hook. Calls your method makes after that run in your mod's own context.
93 
94## File writes
95 
96`$.fs.write` isn't atomic: it replaces the file's content in place, so another process can read a partly written file. Keep data that several sessions change in `$.store`.
97 
98## Render sites
99 
100A render site is an extension point in Claude Code's interface. Each row is a value of `e.component` in a `ui.render` hook, with the apps that render it. For a site's `e.props`, [search the type declarations](#look-up). For the VS Code extension's version requirements and differences, see [Draw in the VS Code extension](https://code.claude.com/docs/en/plugins/mods/interface.md#draw-in-the-vs-code-extension).
101 
102| Site | Rendered on |
238103| :- | :- |
239| `$.plugin` | `name`, `root`: this plugin's name and directory |
240| [`$.ui`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw) | `resolve`, `invalidate`, `open`, `close`, `panes`, [`place`](https://code.claude.com/docs/en/plugins/mods/interface#place-a-row-in-the-transcript), `focus`, `scroll`, `toast`, `notify`, `status`, `log`, `notice`, `ask`, `copy`, `selection`, `blit`, `view`. `view` requires Claude Code v2.1.300 or later and `place` v2.1.314 or later. |
241| [`$.theme`](https://code.claude.com/docs/en/plugins/mods/interface#put-a-backdrop-behind-the-conversation) | `set`, `clear`: set a backdrop for the Desktop or mobile app to draw, and take the backdrop off. Requires Claude Code v2.1.319 or later. [Message styles](https://code.claude.com/docs/en/plugins/mods/interface.md#style-messages-in-the-desktop-app) and [sound](https://code.claude.com/docs/en/plugins/mods/interface.md#add-sound-to-a-theme) require v2.1.329 or later. |
242| [`$.command`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command) | `register`, `run`, `list` |
243| [`$.tool`](https://code.claude.com/docs/en/plugins/mods/api#add-a-tool) | `register`, `call`, `check`, `list` |
244| `$.agent` | `register`, `spawn`, `call`, `list`, `limits`. `call` and `limits` require Claude Code v2.1.326 or later. `list()` returns this session's subagents and teammates, each with a `status` of `pending`, `running`, `waiting`, `idle`, `completed`, `failed`, or `killed`, where `idle` and `waiting` require Claude Code v2.1.289 or later. |
245| [`$.model`](https://code.claude.com/docs/en/plugins/mods/api#call-a-model) | `complete`, `fork`, `classify` |
246| [`$.prompt`](https://code.claude.com/docs/en/plugins/mods/api#start-a-turn-from-a-background-job) | `submit`, `read`, `fill`, `suggest`, `compose`. Claude reads text from `submit({ text })` after a sentence that names your mod as the sender. `submit({ text, asUser: true })` sends the text as the user's own words, without that sentence. |
247| `$.turn` | `abort` |
248| [`$.session`](https://code.claude.com/docs/en/plugins/mods/api#send-and-receive-messages-between-sessions) | `messages`, `cwd`, `root`, `model`, `turns`, `id`, `repo`, `surfaces`, `usage`, `version`, `info`, `compact`, `send`, `append`, `authorize`, `redact`. `info` requires Claude Code v2.1.326 or later. `redact`, a best-effort mask for credentials only, requires v2.1.331 or later. `usage()` returns `{ startedAt, context, rateLimits, cost }`: `context` has `tokens`, `window`, and `percent`, and `rateLimits` is a list of `{ kind, percentUsed, resetsAt }`. |
249| `$.config` | `list`, `set` |
250| [`$.settings`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network) | `read` |
251| [`$.env`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network) | `get`, `set`. A refused `set` either rejects or resolves to `{ deny }`. The `{ deny }` result requires Claude Code v2.1.301 or later. |
252| [`$.fs`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network) | `read`, `write`, `list`, `exists`, `stat`, `ancestors`. `write` isn't atomic: it replaces the file's content in place, so another process can read a partly written file. Keep data that several sessions change in `$.store`. |
253| [`$.store`](https://code.claude.com/docs/en/plugins/mods/interface#keep-state) | `get`, `set`, `delete`, `keys`. A key-value store that every session on the machine shares. See [Save from more than one session](https://code.claude.com/docs/en/plugins/mods/interface.md#save-from-more-than-one-session). |
254| [`$.state`](https://code.claude.com/docs/en/plugins/mods/interface#keep-a-value-in-\$-state) | Reactive state: `get`, `set`, with the helpers `atom`, `read`, `update`, `derive`, and `memberOf` imported from `claude-code` |
255| [`$.clock`](https://code.claude.com/docs/en/plugins/mods/api#run-work-in-the-background) | `now`, `sleep`, `after`, `every` |
256| [`$.http`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network) | `fetch` |
257| [`$.process`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network) | `run`, `spawn`, `hookEnv`. `hookEnv` requires Claude Code v2.1.326 or later. |
258| [`$.mcp`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network) | `call`, `connect`. `connect(server)` connects an MCP server that your own plugin's manifest lists. |
259| [`$.wasm`](https://code.claude.com/docs/en/plugins/mods/api#reach-files-processes-and-the-network) | `compile`. Requires Claude Code v2.1.326 or later. |
260| `$.audio` | `play`, `speak` |
261| `$.telemetry` | `log`, `mark`. A record is sent only when Claude Code or a built-in mod makes the call. |
262 
263In the terminal, `$.ui.view({ agentId })` shows an agent's transcript and `$.ui.view({})` switches back. Call either from a command or button. A timer's call resolves to `{ deny: 'not person-initiated' }`.
264 
265## Render sites
266 
267A render site is an extension point in Claude Code's interface. Each row is a value of `e.component` in a `ui.render` hook, with the fields of `e.props` and the apps that render it. `e.surface` names the app that's drawing, such as `terminal`, `desktop`, or `vscode`. [Change what Claude Code already draws](https://code.claude.com/docs/en/plugins/mods/interface.md#change-what-claude-code-already-draws) shows what a hook can do at a site, with an example of each choice.
268 
269Rendering in the VS Code extension requires extension version 2.1.299 or later. A session that [doesn't fetch feature flags](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching) needs 2.1.304 or later. [Draw in the VS Code extension](https://code.claude.com/docs/en/plugins/mods/interface.md#draw-in-the-vs-code-extension) lists what the extension draws differently.
270 
271| Site | `e.props` | `e.requestId` | Rendered on |
272| :- | :- | :- | :- |
273| [`Pane`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw) | `title`, `isFocused`, `bodyColumns`, `placement`, `scroll`, `view` | The pane's `id` | Terminal, Desktop, VS Code |
274| [`AbovePrompt`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw) | `hasSurvey`, [`isCollapsed`](https://code.claude.com/docs/en/plugins/mods/interface#when-the-user-collapses-the-band), `isWorking`, `maxRows`, `bodyColumns`, `scroll`, `view` | One instance | Terminal, Desktop, VS Code |
275| `AbovePromptList`, the stack of `AbovePrompt` rows | `rows`, a list with one `{ plugin, tree }` for each mod's row, plus the `AbovePrompt` props | One instance | Terminal, Desktop, VS Code. Requires Claude Code v2.1.323 or later. |
276| `BesidePrompt`, a cell to the right of the prompt | `maxColumns`, `floatRows`, `floatColumns`, `isWorking`, `view` | One instance | Terminal in [fullscreen rendering](https://code.claude.com/docs/en/fullscreen.md), Desktop. Requires Claude Code v2.1.331 or later. |
277| `Underlay`, a layer visible only where the interface is blank | `columns`, `rows`, `isWorking`, `view` | `site:underlay` | Terminal in fullscreen rendering. Requires Claude Code v2.1.331 or later. |
278| `BesidePromptList` and `UnderlayList`, the order of the `BesidePrompt` cells and `Underlay` layers | `plugins` | One instance | The same apps as the site it orders. Requires Claude Code v2.1.331 or later. |
279| [`Placed`](https://code.claude.com/docs/en/plugins/mods/interface#place-a-row-in-the-transcript) | `id`, `plugin`, `onScreen` | The `requestId` that `$.ui.place` returned | Terminal |
280| [`Backdrop`](https://code.claude.com/docs/en/plugins/mods/interface#put-a-backdrop-behind-the-conversation) | `scene`, `plugin`, `glass`, `overrideColorScheme`. Before v2.1.323, `scene` was `id` and `overrideColorScheme` was `colorScheme`. | `backdrop` | `desktop` and `mobile` surfaces. Your hook runs when the Desktop or mobile app asks to draw a backdrop. |
281| `UserMessage` | `text`, `origin`, `isExpanded`, and `task` or `from` by origin | The drawn row's id | Terminal, Desktop, VS Code |
282| `AssistantMessage` | The reply's text | The drawn row's id | Terminal, Desktop, VS Code |
283| `ToolUse`, `ToolResult`, `ToolGroup` | The tool's name, input, and result | The tool call id | Terminal, Desktop, VS Code |
284| `CommandOutput` | `command`, `text` | The drawn row's id | Terminal, Desktop |
285| [`AskUserQuestion`](https://code.claude.com/docs/en/plugins/mods/interface#change-what-claude-code-already-draws) | The question and options | The tool call id | Terminal, Desktop, VS Code |
286| `ToolProgress` | `kind` | The tool call id | Terminal |
287| [`Spinner`](https://code.claude.com/docs/en/plugins/mods/interface#change-what-claude-code-already-draws) | `word`, `message`, `suffix`, `mode` | The agent id | Terminal, Desktop, VS Code |
288| `TurnDuration` | `word`, `durationMs` | The drawn row's id | Terminal |
289| `InfoNotice` | `text`, `command` | The notice's `text` prefixed with `notice:` | Terminal |
290| `SessionMode` | `modes` | One instance | Terminal, Desktop |
291| `PromptHint` | `isDraft`, `isWorking`, `hint` | One instance | Terminal, Desktop |
292| `AgentRow` | The agent's [`$.agent.list()` fields](https://code.claude.com/docs/en/plugins/mods/create#get-the-types-for-your-build), plus `rowIds`, `columns`, `body`, and `isHidden` | The agent id | Terminal and VS Code's [Focus view](https://code.claude.com/docs/en/vs-code.md#extension-settings). Requires v2.1.326 or later of Claude Code or the extension. |
293 
294`e.viewport` holds `columns`, `rows`, and `isFullscreen`. In the terminal and the Desktop app, it's absent until the app has measured its window. There, its `rows` is the height of the whole window, not of your pane. In the VS Code extension, it's always present.
104| [`Pane`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw) | Terminal, Desktop, VS Code |
105| [`AbovePrompt`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw) | Terminal, Desktop, VS Code |
106| `AbovePromptList`, the stack of `AbovePrompt` rows | Terminal, Desktop, VS Code. Requires Claude Code v2.1.323 or later. |
107| `BesidePrompt`, a cell to the right of the prompt | Terminal in [fullscreen rendering](https://code.claude.com/docs/en/fullscreen.md), Desktop. Requires Claude Code v2.1.331 or later. |
108| `Underlay`, a layer visible only where the interface is blank | Terminal in fullscreen rendering. Requires Claude Code v2.1.331 or later. |
109| `BesidePromptList` and `UnderlayList`, the order of the `BesidePrompt` cells and `Underlay` layers | The same apps as the site it orders. Requires Claude Code v2.1.331 or later. |
110| [`Placed`](https://code.claude.com/docs/en/plugins/mods/interface#place-a-row-in-the-transcript) | Terminal |
111| [`Backdrop`](https://code.claude.com/docs/en/plugins/mods/interface#put-a-backdrop-behind-the-conversation) | `desktop` and `mobile` surfaces. Your hook runs when the Desktop or mobile app asks to draw a backdrop. |
112| `UserMessage` | Terminal, Desktop, VS Code |
113| `AssistantMessage` | Terminal, Desktop, VS Code |
114| `ToolUse`, `ToolResult`, `ToolGroup` | Terminal, Desktop, VS Code |
115| `CommandOutput` | Terminal, Desktop |
116| [`AskUserQuestion`](https://code.claude.com/docs/en/plugins/mods/interface#change-what-claude-code-already-draws) | Terminal, Desktop, VS Code |
117| `ToolProgress` | Terminal |
118| [`Spinner`](https://code.claude.com/docs/en/plugins/mods/interface#change-what-claude-code-already-draws) | Terminal, Desktop, VS Code |
119| `TurnDuration` | Terminal |
120| `InfoNotice` | Terminal |
121| `SessionMode` | Terminal, Desktop |
122| `PromptHint` | Terminal, Desktop |
123| `AgentRow` | Terminal and VS Code's [Focus view](https://code.claude.com/docs/en/vs-code.md#extension-settings). Requires v2.1.326 or later of Claude Code or the extension. |
124 
125`e.viewport` holds `columns`, `rows`, and `isFullscreen`. In the terminal and the Desktop app, it's absent until the app has measured its window. There, its `rows` is the height of the whole window.
295126 
296127To fit a tree to its site, read these props in the hook:
297128 
from line 134
303134 
304135## Elements
305136 
306Elements are the building blocks of a tree a `ui.render` hook returns, and you get them from `$.ui.resolve(e)`. [Build a tree from elements](https://code.claude.com/docs/en/plugins/mods/interface.md#build-a-tree-from-elements) shows the common ones with how the terminal draws them, and the [interface gallery](https://code.claude.com/docs/en/plugins/mods/gallery.md) has screenshots of most. A check mark means the app can draw the element.
307 
308| Element | Main props | Terminal | Desktop | VS Code |
309| :- | :- | :-: | :-: | :-: |
310| [`Box`](https://code.claude.com/docs/en/plugins/mods/interface#build-a-tree-from-elements) | `key`, flex layout, [`gap`, `padding`, `margin`](#box-spacing-steps), `width`, `height`, `minWidth`, `minHeight`, [`borderStyle`](#box-border-styles), `borderColor`, `borderDimColor`, `backgroundColor`, `position`, `top`, `left`, `right`, `bottom`, `overflow`, `display`, `hover` | ✓ | ✓ | ✓ |
311| [`Text`](https://code.claude.com/docs/en/plugins/mods/interface#build-a-tree-from-elements) | `color`, `backgroundColor`, [`bold`](#text-bold), `italic`, `underline`, `strikethrough`, `dimColor`, `inverse`, `wrap`, [`size`, `weight`, `mono`, `tabular`](#text-typography), `hover` | ✓ | ✓ | ✓ |
312| [`Button`](https://code.claude.com/docs/en/plugins/mods/interface#respond-to-presses-and-typing) | `key`, `label`, `children`, `onPress`, `hotkey`, `plain`, `dimColor`, `autoFocus`, `action`, `variant`, `role`, `hover` | ✓ | ✓ | ✓ |
313| [`Link`](https://code.claude.com/docs/en/plugins/mods/interface#link-in-the-desktop-app) | `href`, `label`. See [Limits](#limits). | ✓ | ✓ | ✓ |
314| [`Code`](https://code.claude.com/docs/en/plugins/mods/gallery#show-code-and-changes) | `source`, `language`, `path`, `startLine`, `format`, `wrap` | ✓ | ✓ | ✓ |
315| `Markdown` | `text`, `key`, `dimColor`, `onLinkPress`, `pressableLinks` | ✓ | ✓ | ✓ |
316| [`Input`](https://code.claude.com/docs/en/plugins/mods/interface#take-typed-input-and-draw-a-row-for-each-item) | `key`, `label`, `placeholder`, `value`, `submitLabel`, [`rows`](https://code.claude.com/docs/en/plugins/mods/gallery#input), `onSubmit`, `onInput`, `autoFocus` | ✓ | ✓ | ✓ |
317| `Select` | `key`, `label`, `options`, `value`, `onSelect`, `autoFocus` | ✓ | ✓ | ✓ |
318| `Svg` | a `source` of SVG markup up to 131,072 characters, `alt` text, `width`, `height`, and `isInteractive` | | ✓ | ✓ |
319| [`Shader`](https://code.claude.com/docs/en/plugins/mods/interface#animate-a-backdrop-with-a-shader) | `module`, `values`, and one `Svg` child. Draws in a [`Backdrop`](#render-sites) only. Requires Claude Code v2.1.326 or later. | | ✓ | |
320| [`Client`](https://code.claude.com/docs/en/plugins/mods/interface#build-a-tree-from-elements) | `module`, `key`, `props`, `width`, `height`, `flexGrow` | ✓ | ✓ | |
321| [`Raster`](https://code.claude.com/docs/en/plugins/mods/interface#draw-a-grid-of-colored-cells) | `key`, `columns` up to 512, `rows` up to 256, `cells`. See [Draw a grid of colored cells](https://code.claude.com/docs/en/plugins/mods/interface.md#draw-a-grid-of-colored-cells). | ✓ | | |
322| `Image` | `key`, a `source` such as PNG or RGBA bytes up to 2 MiB, or a file path, `columns` and `rows` up to 255, and `alt` text. See [which terminals draw it](https://code.claude.com/docs/en/plugins/mods/gallery.md#image-and-client). | ✓ | | |
323 
324More `Button` rules:
325 
326* **`action`**: names one of Claude Code's own [keybinding actions](https://code.claude.com/docs/en/keybindings.md), and the user's binding for it presses the button when that binding is a chord or a modified key
327* **Digit hotkeys on the band**: a digit `hotkey` on a button in the band also fires when the user types that digit alone into an empty prompt and pauses
328* **A collapsed band**: while the band is [collapsed](https://code.claude.com/docs/en/plugins/mods/interface.md#when-the-user-collapses-the-band), neither an `action` binding nor a hotkey presses a button in it
329* **Two buttons on one hotkey**: when two of your buttons in one drawing name the same `hotkey`, the later one gets it. For another mod's button on the same key, see [Hotkeys do nothing](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md#hotkeys-do-nothing).
330* **`variant`**: `primary` or `secondary`, and any other value throws. In the terminal, a `primary` button draws in the accent color unless it's `plain`.
331* **`role`**: `dismiss` marks a close button, and any other value throws. Do the closing in your `onPress`. In a band that holds text and a row of buttons, the Desktop app can draw the row's first `dismiss` button as its own close control. The terminal draws the button as it would without `role`.
332 
333A `Button` can hold `children` in place of a `label`:
334 
335* **What children can be**: strings and `Text` elements, such as a name followed by a dim detail or a colored chip. Claude Code refuses any other element inside a `Button`.
336* **Naming the button**: the `label` names the button and defaults to the text of its children. Give a button with children other than one string a `key` or a `label`.
337* **In the terminal**: the children draw where the label would be, and a press anywhere on them counts as one press, so you can make each row of a list a single button
338* **In the Desktop app and the VS Code extension**: the button draws its `label`
339 
340> [!NOTE]
341>
342> A `Button` with children other than a single string requires Claude Code v2.1.295 or later.
343 
344`autoFocus` accepts only `true` on any control, so omit the prop to leave it off.
137Elements are the building blocks of a tree a `ui.render` hook returns. For the main elements and the apps that draw them, see [Build a tree from elements](https://code.claude.com/docs/en/plugins/mods/interface.md#build-a-tree-from-elements). For an element's props, [search the type declarations](#look-up).
138 
139### Buttons with children in the Desktop app and VS Code
140 
141For a `Button` that holds `children`, the Desktop app and the VS Code extension draw its `label` in place of the children. To choose that text, set `label`, which otherwise defaults to the text of the children. A `Button` with children other than a single string requires Claude Code v2.1.295 or later.
142 
143### Props the VS Code extension ignores
345144 
346145The VS Code extension ignores some element props and draws the element as if you had left them out:
347146 
from line 150
351150* **`Code`**: `language`, `path`, `startLine`, `format`, and `wrap`, so code draws without colors or line numbers, and a `format: 'diff'` block shows the diff's raw text
352151* **`Input` and `Select`**: `autoFocus`, and `rows` on an `Input`
353152* **`Svg`**: `isInteractive`
153 
154The terminal also ignores `size`, `mono`, and `tabular` on a `Text`.
354155 
355156### `Box` border styles
356157 
from line 171
370171| `'quote'` | A bar, `▎`, down the left side and blank cells on the other three sides | Blank |
371172 
372173A `Box` whose `borderStyle` names anything else, such as `'rounded'`, draws with no border.
373 
374### `Box` spacing steps
375 
376The `Box` spacing props are `gap`, `columnGap`, `rowGap`, `padding`, `margin`, and the one-side and one-axis forms of `padding` and `margin`, such as `paddingX` and `marginTop`. Each takes a number of terminal cells such as `gap: 1`, or a step name such as `gap: 'md'`. In the terminal and the VS Code extension, each step is this many cells:
377 
378| Step | Cells across | Cells down |
379| :- | :- | :- |
380| `'xs'` | 1 | 0 |
381| `'sm'` | 1 | 0 |
382| `'md'` | 2 | 1 |
383| `'lg'` | 3 | 1 |
384| `'xl'` | 4 | 2 |
385 
386If you set `gap`, `padding`, or `margin` to a step, the step applies across and down at once. For example, in the terminal and the VS Code extension, `padding: 'md'` is two cells at each side and one row above and below.
387 
388Step names require Claude Code v2.1.299 or later. On an earlier release, a tree that uses a step name doesn't draw.
389 
390### `Text` typography props
391 
392Set `size`, `weight`, `mono`, or `tabular` on a `Text` to ask the app drawing your tree for a text size, a weight, a monospaced typeface, or equal-width digits. Before you rely on a prop, check what the terminal and the VS Code extension do with it. If an app ignores a prop you set, your tree still draws there, with the text as if you'd left that prop out.
393 
394| Prop | Values | In the terminal | In the VS Code extension |
395| :- | :- | :- | :- |
396| `size` | `'caption'`, `'footnote'`, `'body'`, `'heading'`, or `'title'` | Ignored: the terminal has one text size | Ignored |
397| `weight` | `'regular'`, `'medium'`, `'semibold'`, or `'bold'` | `semibold` and `bold` draw as bold text | `semibold` and `bold` draw as bold text |
398| `mono` | `true` to ask for the app's monospaced typeface | Ignored: the terminal is always monospaced | Ignored, so text keeps the extension's own typeface |
399| `tabular` | `true` to ask for digits of equal width, so that a number that updates in place or a column of numbers stays aligned | Ignored: the terminal's digits are already one cell wide | Ignored |
400 
401These four props require Claude Code v2.1.299 or later. On an earlier release, a tree that sets `size`, `weight`, `mono`, or `tabular` doesn't draw.
402 
403#### Replace `bold` with `weight`
404 
405`bold` on a `Text` is deprecated in favor of `weight` and still works. To replace it on a `Text` with no `weight`, change `bold: true` to `weight: 'semibold'` for the same result on Claude Code v2.1.299 or later.
406 
407On a release earlier than v2.1.299, a tree that sets `weight` doesn't draw. If you set both `bold` and `weight` on a `Text`, `bold` has no effect.
408174 
409175## Limits
410176 
from line 192
426192| Redirects one `$.http.fetch` call follows | 5 |
427193| A hook's `drop` reason or `config.set` `deny` reason | 4,096 characters. The end of a longer reason is cut, and the drop or deny still applies. The cut requires Claude Code v2.1.292 or later, and on earlier versions the hook [fails](https://code.claude.com/docs/en/plugins/mods/events.md#handle-a-hook-that-fails) instead. |
428194| All mods' elements [above the question dialog](https://code.claude.com/docs/en/plugins/mods/interface.md#change-what-claude-code-already-draws) | 12 rows in the terminal and 48 in the Desktop app or the VS Code extension, counted at a 40-column width. Over the limit, the dialog appears without your elements. |
429| A call to a method another mod added in [`engine.create`](#other-mods) | 10 seconds. After that, the call rejects with a reason that ends `did not answer within 10000ms`. |
195| A call to a method another mod added in [`engine.create`](#namespaces-you-add) | 10 seconds. After that, the call rejects with a reason that ends `did not answer within 10000ms`. |
430196| Text in one tree | The first 100,000 characters are drawn |
431197| A `Code`'s `language` or `path`, a `Select` option's `value`, or a `Client`'s `module` | 10,000 characters. If one is longer, the `ui.render` hook that returned it [fails](https://code.claude.com/docs/en/plugins/mods/events.md#handle-a-hook-that-fails). |
432198| A `Link`'s `href` | 2,048 characters. If it's longer, the `ui.render` hook that returned it [fails](https://code.claude.com/docs/en/plugins/mods/events.md#handle-a-hook-that-fails). |
from line 200
434200| Depth and size of a tree counted with its prop values | Claude Code refuses anything `nested more than 100 lists and objects deep` or with `more than 1000000 values once written out`. Requires Claude Code v2.1.326 or later. |
435201| Elements and text children in one tree | 20,000 |
436202| `Raster` cells in one tree, each `Raster`'s `columns` times its `rows` | 262,144 |
203| One `Raster` | 512 columns and 256 rows |
204| One `Image` | 255 columns and 255 rows |
205| One `Svg`'s `source` | 131,072 characters |
437206| The rows above the prompt, stacked | Elements, `Raster` cells, and `Image` bytes add up across the rows, against the limits for one tree |
438207| PNG or RGBA bytes of all the `Image`s in one tree | 2 MiB |
439208| `$.store` | 4 MiB of JSON in total |
from line 218
449218| A pane opened without the user asking | Placed from 144 terminal columns, 110 after they've opened it once |
450219| Rows from `$.ui.place` that one mod has in a conversation at one time | 500. At the limit, a call with a new `id` resolves to `{ isPlaced: false, reason: 'a plugin holds at most 500 placed rows' }`. |
451220| Nesting depth of a mods API call's arguments | 28,000 levels. Past that, the call rejects with a message ending `nesting deeper than 28000 levels is not supported`. Requires Claude Code v2.1.299 or later. |
452| Nesting depth of a changed event passed to `next`, outside `ui.render` and [async generator hooks](#events) such as one on `turn.step` | 28,000 levels. Past that, `next` rejects with a message ending `nesting deeper than 28000 levels is not supported`. Requires Claude Code v2.1.299 or later. |
221| Nesting depth of a changed event passed to `next`, outside `ui.render` and async generator hooks such as one on `turn.step` | 28,000 levels. Past that, `next` rejects with a message ending `nesting deeper than 28000 levels is not supported`. Requires Claude Code v2.1.299 or later. |
453222| Nesting depth of a hook's return value, outside `ui.render`, `ui.resolve`, and async generator hooks | 28,000 levels. Past that, the hook's result is refused, and [the notice that reports it](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md#find-out-why-a-mod-does-nothing) includes `nesting deeper than 28000 levels is not supported`. Requires Claude Code v2.1.299 or later. |
454223| Scopes, such as functions, blocks, and loops, nested inside one another in one file of a hooks module | 2,000 |
455224| Command, tool, subagent type, and pane names, the `id` of a placed row, and the `scene` of a backdrop | Letters, digits, `_`, and `-`, up to 64 characters |
456225| One `claude plugin test` test | 5 seconds unless the test sets `timeoutMs` |
457226 
458## Settings and environment variables
459 
460These are the settings and environment variables that affect mods. The Where column says which settings file or environment each one is read from:
461 
462| Name | Where | What it does |
463| :- | :- | :- |
464| `CLAUDE_CODE_PLUGIN_DIRS` | Environment, or `env` in `~/.claude/settings.json` | Plugin directories to load as `--plugin-dir` does, for apps you can't pass a flag to. Absolute paths separated by `:`, or `;` on Windows. |
465| `CLAUDE_CODE_PLUGIN_DIR_WATCH` | Environment | Whether mods reload on save. See the [environment variables reference](https://code.claude.com/docs/en/env-vars.md) for the defaults and values |
466| `prependPlugins`, `appendPlugins` | Managed settings. User settings only on a machine with no managed settings or [`managed-mcp.json`](https://code.claude.com/docs/en/managed-mcp#deploy-managed-mcp-json) file, in a session whose credential isn't a Team or Enterprise `/login`. | Lists of plugin ids, such as `acme-guard@acme-tools`. Mods in `prependPlugins` run before every mod a user installs, and mods in `appendPlugins` run after, in the listed order. See [The order mods run in](https://code.claude.com/docs/en/plugins/mods/events.md#the-order-mods-run-in). |
467| `allowManagedModsOnly` | Managed settings, as an [option on the built-in guard](https://code.claude.com/docs/en/plugins/mods/admin.md#set-options-on-the-built-in-guard) | Only mods that [count as your organization's](https://code.claude.com/docs/en/plugins/mods/admin.md#install-your-organizations-mods), and mods built into Claude Code, run their hooks. Users' settings hooks keep running. |
468| `allowModsToOverrideDenyRules` | Managed settings, as an [option on the built-in guard](https://code.claude.com/docs/en/plugins/mods/admin.md#set-options-on-the-built-in-guard) | Lets a mod a user installed approve a tool call past most of [the outcomes that stay in place by default](https://code.claude.com/docs/en/permissions.md#precedence-among-rules-hooks-and-mods), including a `deny` rule |
469| `allowManagedHooksOnly` | Managed settings | Blocks hooks and installed mods that aren't your organization's. See [what keeps running](https://code.claude.com/docs/en/settings-reference.md#what-runs-under-allowmanagedhooksonly). |
470| `disableAllHooks` | Any settings file | In managed settings, no mod or hook from an installed plugin runs. In your own settings, what your organization manages keeps running. See [`disableAllHooks`](https://code.claude.com/docs/en/settings-reference#disableallhooks). |
471| `disableSideloadFlags` | Managed settings | Rejects `--plugin-dir` and `--plugin-url` at startup |
472| `pluginConfigs` | User or managed settings | Holds `userConfig` values for a mod, keyed by the plugin's id, such as `acme-guard@acme-tools`, or its name and `@inline`, such as `first-mod@inline`, for one loaded with `--plugin-dir` |
473 
474`sec-default@builtin` is a guard built into Claude Code, listed as `cc-plugin-sec-default` in `/plugin` and the debug log. [Where it loads](https://code.claude.com/docs/en/plugins/mods/admin.md#know-what-happens-by-default), it runs ahead of every mod a person installs. If managed `prependPlugins` is set, the guard loads only when that list names it, at the position listed.
475 
476Its source is in the [`mods/sec-default` directory of the Claude Code repository](https://github.com/anthropics/claude-code/tree/main/mods/sec-default).
477 
478## Commands
479 
480These commands and flags load, inspect, and test a mod. The `claude` commands run in your shell and the `/` commands at the Claude Code prompt. In the table, `<directory>` stands for a path you type, as in `claude plugin validate ./first-mod`. Square brackets mark an optional argument.
481 
482| Command | What it does |
483| :- | :- |
484| [`/plugin`](https://code.claude.com/docs/en/plugins/mods/overview#see-which-mods-a-session-loaded) | Shows a line such as `1 mod active · first-mod` under its tabs when a mod that isn't built in has loaded |
485| [`claude plugin validate <directory>`](https://code.claude.com/docs/en/plugins/mods/create#check-what-claude-code-reads-from-your-mod) | Reads a plugin's manifest and hooks module and reports errors, the events it handles, and the mods API calls it makes. `--strict` treats warnings as errors and `--json` prints a machine-readable report. |
486| [`claude plugin test [directory]`](https://code.claude.com/docs/en/plugins/mods/test#write-a-test) | Runs every file under the directory, or the current directory when you give none, whose name ends in `.test.ts` or `.test.tsx`. Exits with status 1 when a test fails. |
487| [`claude --plugin-dir <directory>`](https://code.claude.com/docs/en/plugins/mods/create#write-a-mod-yourself) | Loads a plugin directory for one session. In an interactive terminal session, reloads the hooks module when you save. Repeat the flag to load several. |
488| `/reload-plugins` | Reloads plugins when you run it |
227## Related resources
228 
229* [React to events](https://code.claude.com/docs/en/plugins/mods/events.md) and [Draw in the interface](https://code.claude.com/docs/en/plugins/mods/interface.md): examples of the common events and elements
230* [Manage mods for your organization](https://code.claude.com/docs/en/plugins/mods/admin.md): the managed settings that control mods
231* [Plugin and skill settings](https://code.claude.com/docs/en/settings-reference.md#plugins-and-skills): scope and type for keys such as `prependPlugins` and `pluginConfigs`
232* [Environment variables](https://code.claude.com/docs/en/env-vars.md): variables such as `CLAUDE_CODE_PLUGIN_DIRS` and `CLAUDE_CODE_PLUGIN_DIR_WATCH`
233* [Plugin CLI reference](https://code.claude.com/docs/en/plugins/cli-reference.md): commands such as `claude plugin validate` and `claude plugin test`
489234 

plugins/mods/test Changed · +6 / -6 lines

from line 2
22 
33> Write automated tests for a Claude Code mod that fire events, stub Claude Code's answers, and press buttons, with no session, sign-in, or network.
44 
5You can write automated tests for a mod and run them from your shell with [`claude plugin test`](https://code.claude.com/docs/en/plugins/mods/reference#commands). A test fires the events your hooks handle and checks what the hooks did, so you catch a problem before it reaches a session. The first example tests the mod from [Create a mod](https://code.claude.com/docs/en/plugins/mods/create.md).
5You can write automated tests for a mod and run them from your shell with [`claude plugin test`](https://code.claude.com/docs/en/plugins/cli-reference#plugin-test). A test fires the events your hooks handle and checks what the hooks did, so you catch a problem before it reaches a session. The first example tests the mod from [Create a mod](https://code.claude.com/docs/en/plugins/mods/create.md).
66 
77## Write a test
88 
from line 46
4646Ran 1 test across 1 file. [0.19s]
4747```
4848 
49Each `$.tool.call` went through the mod's [`tool.call`](https://code.claude.com/docs/en/plugins/mods/reference#tools) hook, which added one to its count and passed the call on to the stub. No `ls` ran and no file was read. `$.command.run` then went to the mod's [`command.run`](https://code.claude.com/docs/en/plugins/mods/reference#commands-and-configuration) hook, and `answer` is the object that hook returned.
49Each `$.tool.call` went through the mod's [`tool.call`](https://code.claude.com/docs/en/plugins/mods/events#guard-or-change-a-tool-call) hook, which added one to its count and passed the call on to the stub. No `ls` ran and no file was read. `$.command.run` then went to the mod's [`command.run`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command) hook, and `answer` is the object that hook returned.
5050 
5151The command exits with status 1 when a test fails, so it works in CI. If your own mods can't load in the shell that runs it, it prints a line starting `claude plugin test: hooks modules are turned off` with the reason, and exits with status 1.
5252 
from line 113
113113 
114114* **Register every stub before the test's first call on `$`.** Calling `on` after that throws an error such as `on("ui.render") after the test first called $`.
115115 
116* **[`session.start`](https://code.claude.com/docs/en/plugins/mods/reference#session) doesn't run by itself.** Each test starts with your module freshly loaded and none of its hooks called, so module-level variables hold their initial values. If a hook depends on what `session.start` sets up, fire it first:
116* **[`session.start`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command-or-a-tool) doesn't run by itself.** Each test starts with your module freshly loaded and none of its hooks called, so module-level variables hold their initial values. If a hook depends on what `session.start` sets up, fire it first:
117117 
118118 ```typescript theme={null}
119119 // Answer the event after your hook passes it on with next(e)
from line 126
126126 
127127 The second stub answers the `$.command.register` call that a `session.start` hook such as the [tutorial's](https://code.claude.com/docs/en/plugins/mods/create.md#write-a-mod-yourself) makes. Without it, that call rejects with `no implementation for command.register` and the kit skips your hook, so nothing after the call in the hook runs. The test doesn't fail at that point. The skipped hook is listed under `the engine reported:` only if a later check fails.
128128 
129* **Register a `ui.render` stub to choose what `next(e)` returns.** When your [`ui.render`](https://code.claude.com/docs/en/plugins/mods/reference#interface) hook returns `next(e)`, for example to draw nothing while Claude is idle, the [mount](#test-a-drawing) succeeds with no stub. To make `next(e)` return an element you pick, register a stub that returns it as plain data:
129* **Register a `ui.render` stub to choose what `next(e)` returns.** When your [`ui.render`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw) hook returns `next(e)`, for example to draw nothing while Claude is idle, the [mount](#test-a-drawing) succeeds with no stub. To make `next(e)` return an element you pick, register a stub that returns it as plain data:
130130 
131131 ```typescript theme={null}
132132 // Stands for what Claude Code would draw at the site
from line 315
315315| `drawn()` | Returns the whole tree as last drawn |
316316| `unmount()` | Removes the drawing |
317317 
318Each method resolves after your handler has finished, so you can check the result on the next line. Set `props` to what Claude Code would pass for that site. The [render sites table](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites) lists each site's props, and [the types for your build](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build) have their types.
318Each method resolves after your handler has finished, so you can check the result on the next line. Set `props` to what Claude Code would pass for that site. The [type declarations](https://code.claude.com/docs/en/plugins/mods/reference.md#look-up) list each site's props.
319319 
320320To catch an [element tree](https://code.claude.com/docs/en/plugins/mods/interface.md#build-a-tree-from-elements) that isn't valid for the app you named in `surface`, check with `find` for an element your hook adds. The test doesn't check how the app paints a tree, so look at a new layout in a real session too.
321321 
from line 408
408408## Next steps
409409 
410410* [Troubleshoot a mod](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md): find out why a mod does nothing in a session
411* [Mods reference](https://code.claude.com/docs/en/plugins/mods/reference.md): every event's input and result, for writing stubs
411* [Type definitions for your version](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build): every event's input and result, for writing stubs
412412 

plugins/mods/troubleshoot Changed · +4 / -4 lines

from line 198
198198 
199199The line starts with your mod's name, as in `first-mod: $.agent.register refused: the hooks module that made the call is no longer loaded (it was reloaded or removed)`, and the agent isn't registered. Your mod was reloaded or unloaded before the call. A reload loads a fresh copy of the hooks module, and this call came from code still running in the old copy, such as a hook that hadn't returned yet.
200200 
201If that hook doesn't catch the rejection, it fails and Claude Code [skips it](#hook-skipped). To register the agent from the copy that stays loaded, make the call in your [`session.start`](https://code.claude.com/docs/en/plugins/mods/reference#session) hook, which runs again in each fresh copy after a reload.
201If that hook doesn't catch the rejection, it fails and Claude Code [skips it](#hook-skipped). To register the agent from the copy that stays loaded, make the call in your [`session.start`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command-or-a-tool) hook, which runs again in each fresh copy after a reload.
202202 
203203### `mods that run in the hooks worker are off for this session`
204204 
from line 212
212212 
213213### `a hook changed this call's input after the model wrote it`
214214 
215In auto mode, a denied tool call gives this reason. A hook changed the tool call's input after the [server-side classifier](https://code.claude.com/docs/en/permission-modes.md#server-side-classifier-review) reviewed it, so that review doesn't cover what would run. The hook can be a mod's [`tool.call`](https://code.claude.com/docs/en/plugins/mods/reference#tools) or [`turn.step`](https://code.claude.com/docs/en/plugins/mods/reference#turns) hook, or a [`PreToolUse`](https://code.claude.com/docs/en/hooks#pretooluse) settings hook. The message doesn't say which.
215In auto mode, a denied tool call gives this reason. A hook changed the tool call's input after the [server-side classifier](https://code.claude.com/docs/en/permission-modes.md#server-side-classifier-review) reviewed it, so that review doesn't cover what would run. The hook can be a mod's [`tool.call`](https://code.claude.com/docs/en/plugins/mods/events#guard-or-change-a-tool-call) or [`turn.step`](https://code.claude.com/docs/en/plugins/mods/events#follow-a-turn) hook, or a [`PreToolUse`](https://code.claude.com/docs/en/hooks#pretooluse) settings hook. The message doesn't say which.
216216 
217217The message tells Claude to issue the call once more as recorded. If that's denied too, the hook changes the input every time, so turn off the mod or hook, or leave auto mode and approve the call yourself.
218218 
from line 288
288288 
289289### A `ui.render` line says `threw while drawn`
290290 
291The line names the [render site](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites), then says `threw while drawn:` and the error, as in `first-mod: ui.render (ToolUse) threw while drawn: <error>; the engine drew its own`. Claude Code hit that error while drawing the tree your [`ui.render`](https://code.claude.com/docs/en/plugins/mods/reference#interface) hook returned, or while drawing the site from the [`props` your hook passed to `next`](https://code.claude.com/docs/en/plugins/mods/interface#change-what-claude-code-already-draws). The ending `the engine drew its own` means the site shows Claude Code's usual content.
291The line names the [render site](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites), then says `threw while drawn:` and the error, as in `first-mod: ui.render (ToolUse) threw while drawn: <error>; the engine drew its own`. Claude Code hit that error while drawing the tree your [`ui.render`](https://code.claude.com/docs/en/plugins/mods/interface#pick-where-to-draw) hook returned, or while drawing the site from the [`props` your hook passed to `next`](https://code.claude.com/docs/en/plugins/mods/interface#change-what-claude-code-already-draws). The ending `the engine drew its own` means the site shows Claude Code's usual content.
292292 
293293Read the error and fix the value in your hook that caused it.
294294 
from line 340
340340 
341341Either that app doesn't draw the site or element, or the session is one where the VS Code extension draws nothing for mods. The mod's other hooks still run. Check for these causes:
342342 
343* **The site or element isn't drawn in that app**: look up your site in the [render sites](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites) table and your elements in the [elements](https://code.claude.com/docs/en/plugins/mods/reference.md#elements) table. For an element the app lacks, check `e.surface` in the hook and return a tree the app can draw.
343* **The site or element isn't drawn in that app**: look up your site in the [render sites](https://code.claude.com/docs/en/plugins/mods/reference.md#render-sites) table and your elements in the [elements](https://code.claude.com/docs/en/plugins/mods/interface.md#build-a-tree-from-elements) table. For an element the app lacks, check `e.surface` in the hook and return a tree the app can draw.
344344* **The VS Code extension is older than 2.1.299**: the chat panel draws for mods from [extension version](https://code.claude.com/docs/en/vs-code.md#install-the-extension) 2.1.299. Check the version in VS Code's Extensions view and update the extension there.
345345* **The extension is older than 2.1.304 and the session doesn't fetch feature flags**: update the extension, or run `claude` in VS Code's integrated terminal instead. Sessions on Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry skip the fetch. For the others that skip it, such as a [Claude apps gateway](https://code.claude.com/docs/en/claude-apps-gateway) session, see [Features that need feature-flag fetching](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching).
346346 

skills Changed · +4 / -4 lines

from line 515
515515---
516516name: render-chart
517517description: Render a chart from a CSV file
518allowed-tools: Bash(${CLAUDE_SKILL_DIR}/scripts/render.sh *)
518allowed-tools: Bash("${CLAUDE_SKILL_DIR}/scripts/render.sh" *)
519519---
520520 
521Run `${CLAUDE_SKILL_DIR}/scripts/render.sh <csv-file>` to render the chart.
521Run `"${CLAUDE_SKILL_DIR}/scripts/render.sh" <csv-file>` to render the chart.
522522```
523523 
524524If this skill is installed at `~/.claude/skills/render-chart/`, both occurrences of `${CLAUDE_SKILL_DIR}` expand to that directory. The `allowed-tools` rule then matches the exact command the skill body tells Claude to run, so the script runs without prompting.

troubleshoot-install Changed · +19 / -13 lines

from line 353
353353 
354354If you set `XDG_DATA_HOME`, `XDG_STATE_HOME`, or `XDG_CACHE_HOME`, the install uses those in place of `~/.local/share`, `~/.local/state`, and `~/.cache`. If you set [`CLAUDE_CONFIG_DIR`](https://code.claude.com/docs/en/env-vars), the global config file lives under that directory instead of your home directory.
355355 
356Check whether the directories are writable:
356In Bash or Zsh, create missing directories and check whether each one is writable:
357357 
358358```bash theme={null}
359test -w ~/.local/bin && echo "writable" || echo "not writable"
360test -w ~/.claude && echo "writable" || echo "not writable"
359for dir in ~/.claude/downloads ~/.local/bin ~/.local/share/claude ~/.local/state/claude ~/.cache/claude; do
360 mkdir -p "$dir" && test -w "$dir" && echo "writable: $dir" || echo "not writable: $dir"
361done
361362```
362363 
363If either directory isn't writable, create the install directory and set your user as the owner:
364If a directory isn't writable, or the install error names a path inside one, take ownership of all these directories.
364365 
366The first `chown` is for `~/.local/bin` and the parent directories, and the second is for the install directories and their contents:
367 
365368```bash theme={null}
366sudo mkdir -p ~/.local/bin
367sudo chown -R $(whoami) ~/.local
369sudo mkdir -p ~/.claude/downloads ~/.local/bin ~/.local/share/claude ~/.local/state/claude ~/.cache/claude
370sudo chown -h $(whoami) ~/.claude ~/.local ~/.local/bin ~/.local/share ~/.local/state ~/.cache
371sudo chown -R $(whoami) ~/.claude/downloads ~/.local/share/claude ~/.local/state/claude ~/.cache/claude
368372```
373 
374Then run the [install command](https://code.claude.com/docs/en/setup.md#install-claude-code) again.
369375 
370376### Verify the binary works
371377 

claude-tag Changed · +1 / -1 lines

from line 469
469469<div class="tm-strip"><div class="tm-strip-head"><p class="tm-strip-title">Security review</p><a href="/docs/claude-tag/concepts/security-and-data" class="link tm-strip-all">Security and data handling</a></div><p>The security model, what admins can and can’t restrict, audit trails, and network requirements.</p></div>
470470<h2 class="flex whitespace-pre-wrap group font-semibold" id="where-to-start-with-claude-tag" aria-labelledby="_R_259deehkd74t9_"><a href="#where-to-start-with-claude-tag" class="anchor-link" aria-label="Navigate to header: Where to start with Claude Tag"></a><span id="_R_259deehkd74t9_" class="cursor-pointer">Where to start with Claude Tag</span></h2>
471471<div class="columns prose dark:prose-invert grid max-w-none gap-4 sm:grid-cols-[repeat(var(--cols),minmax(0,1fr))] @2xl/columns-container:grid-cols-[repeat(var(--cols),minmax(0,1fr))] @[0px]/columns-container:grid-cols-1 card-group dark:prose-dark gap-y-0 sm:grid-cols-[repeat(var(--cols),minmax(0,1fr))]!" style="--cols:2"><div class="card block font-normal group relative my-2 ring-2 ring-transparent rounded-2xl bg-white dark:bg-background-dark border border-gray-950/10 dark:border-white/10 overflow-hidden w-full cursor-pointer hover:border-primary! dark:hover:border-primary-light!" aria-labelledby="_R_679deehkd74t9_" tabindex="0" role="link"><div class="px-6 py-5 relative flex items-center gap-x-4" data-component-part="card-content-container"><div class="absolute text-gray-400 dark:text-gray-500 group-hover:text-primary dark:group-hover:text-primary-light top-5 right-5"><svg aria-hidden="true" width="18" height="18" stroke-width="2" class="m-0.5 size-3 shrink-0"><use href="#mi-mint-1-ExternalLink"></use></svg></div><div aria-hidden="true" class="size-6 fill-gray-800 dark:fill-gray-100 text-gray-800 dark:text-gray-100 [&amp;&gt;svg]:size-6" data-component-part="card-icon"><svg class="forced-colors:forced-color-adjust-none forced-colors:bg-[color:CanvasText]! size-6 m-0! shrink-0 bg-primary dark:bg-primary-light" aria-hidden="true" focusable="false" style="-webkit-mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/regular/gear.svg&quot;);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/regular/gear.svg&quot;);mask-repeat:no-repeat;mask-position:center"></svg></div><div class="w-full"><h2 id="_R_679deehkd74t9_" class="not-prose font-semibold text-base text-gray-800 dark:text-white" contentEditable="false" data-component-part="card-title">Set up Claude Tag</h2><div id="_R_679deehkd74t9H1_" class="prose font-normal text-base text-gray-600 dark:text-gray-400 leading-6 mt-0" data-component-part="card-content"><span data-as="p">Admins: pair your Slack workspace and launch</span></div></div></div></div><div class="card block font-normal group relative my-2 ring-2 ring-transparent rounded-2xl bg-white dark:bg-background-dark border border-gray-950/10 dark:border-white/10 overflow-hidden w-full cursor-pointer hover:border-primary! dark:hover:border-primary-light!" aria-labelledby="_R_a79deehkd74t9_" tabindex="0" role="link"><div class="px-6 py-5 relative flex items-center gap-x-4" data-component-part="card-content-container"><div class="absolute text-gray-400 dark:text-gray-500 group-hover:text-primary dark:group-hover:text-primary-light top-5 right-5"><svg aria-hidden="true" width="18" height="18" stroke-width="2" class="m-0.5 size-3 shrink-0"><use href="#mi-mint-1-ExternalLink"></use></svg></div><div aria-hidden="true" class="size-6 fill-gray-800 dark:fill-gray-100 text-gray-800 dark:text-gray-100 [&amp;&gt;svg]:size-6" data-component-part="card-icon"><svg class="forced-colors:forced-color-adjust-none forced-colors:bg-[color:CanvasText]! size-6 m-0! shrink-0 bg-primary dark:bg-primary-light" aria-hidden="true" focusable="false" style="-webkit-mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/regular/paper-plane.svg&quot;);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/regular/paper-plane.svg&quot;);mask-repeat:no-repeat;mask-position:center"></svg></div><div class="w-full"><h2 id="_R_a79deehkd74t9_" class="not-prose font-semibold text-base text-gray-800 dark:text-white" contentEditable="false" data-component-part="card-title">Hand Claude Tag your first task</h2><div id="_R_a79deehkd74t9H1_" class="prose font-normal text-base text-gray-600 dark:text-gray-400 leading-6 mt-0" data-component-part="card-content"><span data-as="p">It’s already in your channel: send your first message</span></div></div></div></div><div class="card block font-normal group relative my-2 ring-2 ring-transparent rounded-2xl bg-white dark:bg-background-dark border border-gray-950/10 dark:border-white/10 overflow-hidden w-full cursor-pointer hover:border-primary! dark:hover:border-primary-light!" aria-labelledby="_R_e79deehkd74t9_" tabindex="0" role="link"><div class="px-6 py-5 relative flex items-center gap-x-4" data-component-part="card-content-container"><div class="absolute text-gray-400 dark:text-gray-500 group-hover:text-primary dark:group-hover:text-primary-light top-5 right-5"><svg aria-hidden="true" width="18" height="18" stroke-width="2" class="m-0.5 size-3 shrink-0"><use href="#mi-mint-1-ExternalLink"></use></svg></div><div aria-hidden="true" class="size-6 fill-gray-800 dark:fill-gray-100 text-gray-800 dark:text-gray-100 [&amp;&gt;svg]:size-6" data-component-part="card-icon"><svg class="forced-colors:forced-color-adjust-none forced-colors:bg-[color:CanvasText]! size-6 m-0! shrink-0 bg-primary dark:bg-primary-light" aria-hidden="true" focusable="false" style="-webkit-mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/regular/diagram-project.svg&quot;);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/regular/diagram-project.svg&quot;);mask-repeat:no-repeat;mask-position:center"></svg></div><div class="w-full"><h2 id="_R_e79deehkd74t9_" class="not-prose font-semibold text-base text-gray-800 dark:text-white" contentEditable="false" data-component-part="card-title">How Claude Tag works</h2><div id="_R_e79deehkd74t9H1_" class="prose font-normal text-base text-gray-600 dark:text-gray-400 leading-6 mt-0" data-component-part="card-content"><span data-as="p">The session model, what it can read, and how memory follows places</span></div></div></div></div><div class="card block font-normal group relative my-2 ring-2 ring-transparent rounded-2xl bg-white dark:bg-background-dark border border-gray-950/10 dark:border-white/10 overflow-hidden w-full cursor-pointer hover:border-primary! dark:hover:border-primary-light!" aria-labelledby="_R_i79deehkd74t9_" tabindex="0" role="link"><div class="px-6 py-5 relative flex items-center gap-x-4" data-component-part="card-content-container"><div class="absolute text-gray-400 dark:text-gray-500 group-hover:text-primary dark:group-hover:text-primary-light top-5 right-5"><svg aria-hidden="true" width="18" height="18" stroke-width="2" class="m-0.5 size-3 shrink-0"><use href="#mi-mint-1-ExternalLink"></use></svg></div><div aria-hidden="true" class="size-6 fill-gray-800 dark:fill-gray-100 text-gray-800 dark:text-gray-100 [&amp;&gt;svg]:size-6" data-component-part="card-icon"><svg class="forced-colors:forced-color-adjust-none forced-colors:bg-[color:CanvasText]! size-6 m-0! shrink-0 bg-primary dark:bg-primary-light" aria-hidden="true" focusable="false" style="-webkit-mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/regular/list.svg&quot;);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/regular/list.svg&quot;);mask-repeat:no-repeat;mask-position:center"></svg></div><div class="w-full"><h2 id="_R_i79deehkd74t9_" class="not-prose font-semibold text-base text-gray-800 dark:text-white" contentEditable="false" data-component-part="card-title">Use case library</h2><div id="_R_i79deehkd74t9H1_" class="prose font-normal text-base text-gray-600 dark:text-gray-400 leading-6 mt-0" data-component-part="card-content"><span data-as="p">Prompts to paste, by team and connection</span></div></div></div></div></div></div><nav id="pagination" data-layout-item="pagination" aria-label="Pagination" class="px-0.5 flex items-center gap-6 text-sm font-semibold text-gray-700 dark:text-gray-200"><a href="/docs/claude-tag/concepts/how-it-works" rel="next" aria-label="Next: How Claude Tag works" data-component-part="pagination-next" class="group flex items-center min-w-0 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light gap-3 rounded-sm ml-auto pagination-next"><div class="truncate group-hover:text-gray-900 dark:group-hover:text-white" data-component-part="pagination-title">How Claude Tag works</div><svg viewBox="0 0 3 6" aria-hidden="true" data-component-part="pagination-chevron" class="h-1.5 shrink-0 stroke-gray-400 overflow-visible group-hover:stroke-gray-600 dark:group-hover:stroke-gray-300 rotate-180"><path d="M3 0L0 3L3 6" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg></a></nav><div data-assistant-bar="" class="left-0 right-0 sticky bottom-0 w-full overflow-hidden z-20 pointer-events-none print:hidden"><div class="chat-assistant-floating-input w-full group/assistant-bar relative translate-y-0 opacity-100"><div class="relative pb-4 sm:pb-6 max-w-2xl mx-auto"><div class="flex flex-col w-full rounded-2xl pointer-events-auto bg-background-light dark:bg-background-dark border border-gray-200 dark:border-white/10 focus-within:border-primary dark:focus-within:border-primary-light transition-colors"><div class="relative flex items-end"><textarea id="chat-assistant-textarea" aria-label="Ask a question" autoComplete="off" placeholder="Ask a question" class="chat-assistant-input w-full bg-transparent border-0 peer/input text-gray-900 dark:text-gray-100 placeholder-gray-600 dark:placeholder-gray-300 outline-hidden! focus:outline-hidden! focus:ring-0 py-2.5 pl-3.5 pr-10 font-bodyWeight text-sm" style="resize:none" rows="2"></textarea><button class="chat-assistant-send-button flex justify-center items-center rounded-full p-1 size-6 bg-primary/30 dark:bg-primary-dark/30 absolute right-2.5 bottom-2" aria-label="Send message" disabled=""><svg aria-hidden="true" width="18" height="18" stroke-width="2" class="size-2.5 shrink-0 text-white dark:text-white"><use href="#mi-mint-1-Send"></use></svg></button></div></div></div></div></div></div></div></main></div><footer id="footer" data-layout-item="footer" class="advanced-footer flex flex-col items-center mx-auto border-t border-gray-100 dark:border-gray-800/50 peer-[.is-custom]:hidden! peer-[.is-custom]:sm:hidden! peer-[.is-custom]:md:hidden! peer-[.is-custom]:lg:hidden! peer-[.is-custom]:xl:hidden!"><div class="flex w-full flex-col gap-12 justify-between px-8 py-16 md:py-20 lg:py-28 max-w-246 z-20"><div class="flex flex-col md:flex-row gap-8 justify-between min-h-19"><div class="flex md:flex-col justify-between items-center md:items-start min-w-16 md:min-w-20 lg:min-w-48 md:gap-y-24"><a href="/docs" class="select-none" style="-webkit-touch-callout:none"><span class="sr-only">Claude.ai Documentation<!-- --> home page</span><img class="nav-logo w-auto relative object-contain shrink-0 block dark:hidden max-w-48 h-[26px]" src="https://mintcdn.com/claude-ai/1fyDNLAICe3KG6rB/logo/light.svg?fit=max&amp;auto=format&amp;n=1fyDNLAICe3KG6rB&amp;q=85&amp;s=e870c19cb781d8a7c7b7d19de53b0a10" alt="light logo"/><img class="nav-logo w-auto relative object-contain shrink-0 hidden dark:block max-w-48 h-[26px]" src="https://mintcdn.com/claude-ai/1fyDNLAICe3KG6rB/logo/dark.svg?fit=max&amp;auto=format&amp;n=1fyDNLAICe3KG6rB&amp;q=85&amp;s=80cc0b06d8fd9aeefec8acb226de6866" alt="dark logo"/></a><div class="gap-4 min-w-[140px] max-w-[492px] flex-wrap h-fit flex justify-end md:justify-start"><a href="https://x.com/AnthropicAI" target="_blank" rel="noopener noreferrer" class="h-fit"><span class="sr-only">x</span><svg class="forced-colors:forced-color-adjust-none forced-colors:bg-[color:CanvasText]! w-5 h-5 bg-gray-500 dark:bg-gray-600 hover:bg-gray-600 dark:hover:bg-gray-500" aria-hidden="true" focusable="false" style="-webkit-mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/brands/x-twitter.svg&quot;);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/brands/x-twitter.svg&quot;);mask-repeat:no-repeat;mask-position:center"></svg></a><a href="https://www.linkedin.com/company/anthropicresearch" target="_blank" rel="noopener noreferrer" class="h-fit"><span class="sr-only">linkedin</span><svg class="forced-colors:forced-color-adjust-none forced-colors:bg-[color:CanvasText]! w-5 h-5 bg-gray-500 dark:bg-gray-600 hover:bg-gray-600 dark:hover:bg-gray-500" aria-hidden="true" focusable="false" style="-webkit-mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/brands/linkedin.svg&quot;);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;mask-image:url(&quot;https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/brands/linkedin.svg&quot;);mask-repeat:no-repeat;mask-position:center"></svg></a></div></div><div class="flex flex-col sm:grid max-md:grid-cols-2! gap-8 flex-1" style="grid-template-columns:repeat(4, minmax(0, 1fr))"><div class="flex flex-col gap-4 flex-1 whitespace-nowrap w-full md:items-center"><div class="flex gap-4 flex-col"><p class="text-sm font-semibold text-gray-950 dark:text-white mb-1">Company</p><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/company" target="_blank" rel="noreferrer">Anthropic</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/careers" target="_blank" rel="noreferrer">Careers</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/economic-futures" target="_blank" rel="noreferrer">Economic Futures</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/research" target="_blank" rel="noreferrer">Research</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/news" target="_blank" rel="noreferrer">News</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://trust.anthropic.com/" target="_blank" rel="noreferrer">Trust center</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/transparency" target="_blank" rel="noreferrer">Transparency</a></div></div><div class="flex flex-col gap-4 flex-1 whitespace-nowrap w-full md:items-center"><div class="flex gap-4 flex-col"><p class="text-sm font-semibold text-gray-950 dark:text-white mb-1">Help and security</p><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/supported-countries" target="_blank" rel="noreferrer">Availability</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://status.anthropic.com/" target="_blank" rel="noreferrer">Status</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://support.claude.com/" target="_blank" rel="noreferrer">Support center</a></div></div><div class="flex flex-col gap-4 flex-1 whitespace-nowrap w-full md:items-center"><div class="flex gap-4 flex-col"><p class="text-sm font-semibold text-gray-950 dark:text-white mb-1">Learn</p><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://academy.claude.com/" target="_blank" rel="noreferrer">Courses</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://claude.com/partners/mcp" target="_blank" rel="noreferrer">MCP connectors</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.claude.com/customers" target="_blank" rel="noreferrer">Customer stories</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/engineering" target="_blank" rel="noreferrer">Engineering blog</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/events" target="_blank" rel="noreferrer">Events</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://claude.com/partners/powered-by-claude" target="_blank" rel="noreferrer">Powered by Claude</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://claude.com/partners/services" target="_blank" rel="noreferrer">Service partners</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://claude.com/programs/startups" target="_blank" rel="noreferrer">Startups program</a></div></div><div class="flex flex-col gap-4 flex-1 whitespace-nowrap w-full md:items-center"><div class="flex gap-4 flex-col"><p class="text-sm font-semibold text-gray-950 dark:text-white mb-1">Terms and policies</p><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/legal/privacy" target="_blank" rel="noreferrer">Privacy policy</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/responsible-disclosure-policy" target="_blank" rel="noreferrer">Disclosure policy</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/legal/aup" target="_blank" rel="noreferrer">Usage policy</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/legal/commercial-terms" target="_blank" rel="noreferrer">Commercial terms</a><a class="text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70" href="https://www.anthropic.com/legal/consumer-terms" target="_blank" rel="noreferrer">Consumer terms</a></div></div></div></div></div></footer></div></div></div></div>
472 <template id="mint-config" data-mint="config">{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Claude.ai Documentation","colors":{"primary":"#0E0E0E","light":"#D4A27F","dark":"#0E0E0E"},"logo":{"light":"https://mintcdn.com/claude-ai/1fyDNLAICe3KG6rB/logo/light.svg?fit=max\u0026auto=format\u0026n=1fyDNLAICe3KG6rB\u0026q=85\u0026s=e870c19cb781d8a7c7b7d19de53b0a10","dark":"https://mintcdn.com/claude-ai/1fyDNLAICe3KG6rB/logo/dark.svg?fit=max\u0026auto=format\u0026n=1fyDNLAICe3KG6rB\u0026q=85\u0026s=80cc0b06d8fd9aeefec8acb226de6866"},"favicon":"https://mintcdn.com/claude-ai/N9YeVEPVxANlc2We/favicon.ico?fit=max\u0026auto=format\u0026n=N9YeVEPVxANlc2We\u0026q=85\u0026s=a22e48fa0189917f9be516d4a555898c","background":{"color":{"light":"#FDFDF7","dark":"#09090B"}},"navbar":{"links":[{"href":"https://support.anthropic.com","label":"Support"}],"primary":{"type":"button","label":"Go to Claude","href":"https://claude.ai"}},"footer":{"socials":{"x":"https://x.com/AnthropicAI","linkedin":"https://www.linkedin.com/company/anthropicresearch"},"links":[{"header":"Company","items":[{"label":"Anthropic","href":"https://www.anthropic.com/company"},{"label":"Careers","href":"https://www.anthropic.com/careers"},{"label":"Economic Futures","href":"https://www.anthropic.com/economic-futures"},{"label":"Research","href":"https://www.anthropic.com/research"},{"label":"News","href":"https://www.anthropic.com/news"},{"label":"Trust center","href":"https://trust.anthropic.com/"},{"label":"Transparency","href":"https://www.anthropic.com/transparency"}]},{"header":"Help and security","items":[{"label":"Availability","href":"https://www.anthropic.com/supported-countries"},{"label":"Status","href":"https://status.anthropic.com/"},{"label":"Support center","href":"https://support.claude.com/"}]},{"header":"Learn","items":[{"label":"Courses","href":"https://academy.claude.com/"},{"label":"MCP connectors","href":"https://claude.com/partners/mcp"},{"label":"Customer stories","href":"https://www.claude.com/customers"},{"label":"Engineering blog","href":"https://www.anthropic.com/engineering"},{"label":"Events","href":"https://www.anthropic.com/events"},{"label":"Powered by Claude","href":"https://claude.com/partners/powered-by-claude"},{"label":"Service partners","href":"https://claude.com/partners/services"},{"label":"Startups program","href":"https://claude.com/programs/startups"}]},{"header":"Terms and policies","items":[{"label":"Privacy policy","href":"https://www.anthropic.com/legal/privacy"},{"label":"Disclosure policy","href":"https://www.anthropic.com/responsible-disclosure-policy"},{"label":"Usage policy","href":"https://www.anthropic.com/legal/aup"},{"label":"Commercial terms","href":"https://www.anthropic.com/legal/commercial-terms"},{"label":"Consumer terms","href":"https://www.anthropic.com/legal/consumer-terms"}]}]},"seo":{"metatags":{"canonical":"https://claude.com/docs"}},"fonts":{"family":"Anthropic Sans"},"integrations":{"telemetry":{"enabled":false}},"contextual":{"options":["copy","view","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"claude-ai","hasAudioNarration":false,"actualSubdomain":"claude-ai","customDomains":["claude.com"],"gitSource":{"type":"github","owner":"anthropics","repo":"claude-ai-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0d88b61fede81c4af0670f","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Claude Tag","count":78},{"language":"default","tag":"For administrators","count":64},{"language":"default","tag":"Claude on third-party platforms","count":47},{"language":"default","tag":"Claude for Government","count":47},{"language":"default","tag":"Claude Science","count":42},{"language":"default","tag":"Build for Claude","count":37},{"language":"default","tag":"Set up Claude Tag","count":33},{"language":"default","tag":"Use Claude Science","count":24},{"language":"default","tag":"Customize Claude","count":23},{"language":"default","tag":"Connection guides","count":19}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/docs/_mintlify/custom/claude-ai/f864c4801ebb83ca/style.css"}]}</template>
472 <template id="mint-config" data-mint="config">{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Claude.ai Documentation","colors":{"primary":"#0E0E0E","light":"#D4A27F","dark":"#0E0E0E"},"logo":{"light":"https://mintcdn.com/claude-ai/1fyDNLAICe3KG6rB/logo/light.svg?fit=max\u0026auto=format\u0026n=1fyDNLAICe3KG6rB\u0026q=85\u0026s=e870c19cb781d8a7c7b7d19de53b0a10","dark":"https://mintcdn.com/claude-ai/1fyDNLAICe3KG6rB/logo/dark.svg?fit=max\u0026auto=format\u0026n=1fyDNLAICe3KG6rB\u0026q=85\u0026s=80cc0b06d8fd9aeefec8acb226de6866"},"favicon":"https://mintcdn.com/claude-ai/N9YeVEPVxANlc2We/favicon.ico?fit=max\u0026auto=format\u0026n=N9YeVEPVxANlc2We\u0026q=85\u0026s=a22e48fa0189917f9be516d4a555898c","background":{"color":{"light":"#FDFDF7","dark":"#09090B"}},"navbar":{"links":[{"href":"https://support.anthropic.com","label":"Support"}],"primary":{"type":"button","label":"Go to Claude","href":"https://claude.ai"}},"footer":{"socials":{"x":"https://x.com/AnthropicAI","linkedin":"https://www.linkedin.com/company/anthropicresearch"},"links":[{"header":"Company","items":[{"label":"Anthropic","href":"https://www.anthropic.com/company"},{"label":"Careers","href":"https://www.anthropic.com/careers"},{"label":"Economic Futures","href":"https://www.anthropic.com/economic-futures"},{"label":"Research","href":"https://www.anthropic.com/research"},{"label":"News","href":"https://www.anthropic.com/news"},{"label":"Trust center","href":"https://trust.anthropic.com/"},{"label":"Transparency","href":"https://www.anthropic.com/transparency"}]},{"header":"Help and security","items":[{"label":"Availability","href":"https://www.anthropic.com/supported-countries"},{"label":"Status","href":"https://status.anthropic.com/"},{"label":"Support center","href":"https://support.claude.com/"}]},{"header":"Learn","items":[{"label":"Courses","href":"https://academy.claude.com/"},{"label":"MCP connectors","href":"https://claude.com/partners/mcp"},{"label":"Customer stories","href":"https://www.claude.com/customers"},{"label":"Engineering blog","href":"https://www.anthropic.com/engineering"},{"label":"Events","href":"https://www.anthropic.com/events"},{"label":"Powered by Claude","href":"https://claude.com/partners/powered-by-claude"},{"label":"Service partners","href":"https://claude.com/partners/services"},{"label":"Startups program","href":"https://claude.com/programs/startups"}]},{"header":"Terms and policies","items":[{"label":"Privacy policy","href":"https://www.anthropic.com/legal/privacy"},{"label":"Disclosure policy","href":"https://www.anthropic.com/responsible-disclosure-policy"},{"label":"Usage policy","href":"https://www.anthropic.com/legal/aup"},{"label":"Commercial terms","href":"https://www.anthropic.com/legal/commercial-terms"},{"label":"Consumer terms","href":"https://www.anthropic.com/legal/consumer-terms"}]}]},"seo":{"metatags":{"canonical":"https://claude.com/docs"}},"fonts":{"family":"Anthropic Sans"},"integrations":{"telemetry":{"enabled":false}},"contextual":{"options":["copy","view","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"claude-ai","hasAudioNarration":false,"actualSubdomain":"claude-ai","customDomains":["claude.com"],"gitSource":{"type":"github","owner":"anthropics","repo":"claude-ai-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0db89858f4bfe72a175d7d","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Claude Tag","count":78},{"language":"default","tag":"For administrators","count":64},{"language":"default","tag":"Claude on third-party platforms","count":47},{"language":"default","tag":"Claude for Government","count":47},{"language":"default","tag":"Claude Science","count":42},{"language":"default","tag":"Build for Claude","count":37},{"language":"default","tag":"Set up Claude Tag","count":33},{"language":"default","tag":"Use Claude Science","count":24},{"language":"default","tag":"Customize Claude","count":23},{"language":"default","tag":"Connection guides","count":19}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/docs/_mintlify/custom/claude-ai/f864c4801ebb83ca/style.css"}]}</template>
473473 <template data-mint="manifest">{"page":{"pagePath":"claude-tag/overview","slug":"/claude-tag/overview","pageMetadata":{"title":"Work with Claude Tag","sidebarTitle":"Overview","description":"Claude Tag puts Claude in your Slack channels with admin-governed access. See what to hand it, how setup works, and where to start as an admin or end user.","keywords":["what is claude tag","claude in slack","claude slack app","slack bot","slack agent","@claude","tag claude","claude tag pricing","cost","how is claude tag billed","which plans include claude tag","team plan","enterprise plan","pro plan","max plan","ultra plan","personal account","claude tag vs cowork","use cases","public beta"],"mode":"wide","href":"/claude-tag/overview"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Claude Tag puts Claude in your Slack channels with admin-governed access. See what to hand it, how setup works, and where to start as an admin or end user.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,Heading}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsxs(`div`,{className:`tm-hero`,children:[_jsxs(`div`,{className:`tm-hero-copy`,children:[_jsx(`span`,{className:`tm-pill`,children:`Public Beta`}),_jsxs(`p`,{className:`tm-hero-title`,children:[`Tag `,_jsx(`span`,{className:`tm-hero-at`,children:`@Claude`}),` in. Get results back in the thread.`]}),_jsx(`p`,{className:`tm-hero-lede`,children:`Anyone in a Slack channel can tag Claude into a problem and hand it work: reproduce a bug and open a pull request, turn a decision thread into a doc, assemble the state of a project. It posts a checklist in the thread as it goes, and the whole exchange stays visible to the channel.`}),_jsxs(`div`,{className:`tm-hero-ctas`,children:[_jsx(_components.a,{className:`tm-btn tm-btn-dark`,href:`/claude-tag/admins/setup-overview`,children:`I’m setting it up →`}),_jsx(`a`,{className:`tm-btn tm-btn-light`,href:`#put-claude-tag-to-work`,children:`Use it in your channel ↓`})]})]}),_jsxs(`div`,{className:`tm-slack`,children:[_jsxs(`div`,{className:`tm-slack-head`,children:[_jsx(`span`,{className:`tm-slack-chan`,children:`# platform-eng`}),_jsx(`span`,{className:`tm-slack-members`,children:`38 members`})]}),_jsxs(`div`,{className:`tm-slack-body`,children:[_jsxs(`div`,{className:`tm-msg`,children:[_jsx(`span`,{className:`tm-avatar tm-avatar-user`,\"aria-hidden\":`true`,children:`D`}),_jsxs(`div`,{className:`tm-msg-col`,children:[_jsxs(`div`,{className:`tm-msg-meta`,children:[_jsx(`span`,{className:`tm-msg-name`,children:`Dana`}),_jsx(`span`,{className:`tm-msg-time`,children:`2:14 PM`})]}),_jsx(`p`,{children:`checkout has felt slow all morning — anyone else seeing it?`})]})]}),_jsxs(`div`,{className:`tm-msg`,children:[_jsx(`span`,{className:`tm-avatar tm-avatar-user tm-avatar-b`,\"aria-hidden\":`true`,children:`L`}),_jsxs(`div`,{className:`tm-msg-col`,children:[_jsxs(`div`,{className:`tm-msg-meta`,children:[_jsx(`span`,{className:`tm-msg-name`,children:`Leo`}),_jsx(`span`,{className:`tm-msg-time`,children:`2:15 PM`})]}),_jsxs(`p`,{children:[`same. `,_jsx(`span`,{className:`tm-mention`,children:`@Claude`}),` can you investigate? Compare latency against this morning’s deploy and find what’s causing it.`]})]})]}),_jsxs(`div`,{className:`tm-msg`,children:[_jsx(`span`,{className:`tm-avatar tm-avatar-claude`,children:_jsx(`img`,{src:`https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/logo/clay-spark.svg?fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=032101c39ca3b1af9f72fc4af8e60d12`,alt:``,noZoom:true,\"data-og-width\":`94`,width:`94`,\"data-og-height\":`94`,height:`94`,\"data-path\":`images/claude-tag/logo/clay-spark.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/logo/clay-spark.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=cfd209bc25a4794740c6ce203eb3cbd5 280w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/logo/clay-spark.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=56bcce983cd8bde205683364e24e1685 560w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/logo/clay-spark.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=336614fa9447c4f4f985d322bb667df7 840w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/logo/clay-spark.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=fb5b4831af3174e5b49abee42199b5fc 1100w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/logo/clay-spark.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=0244fb0eb9bb7dd0cf38fddeb44c41e0 1650w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/logo/clay-spark.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=5b9c8f67ae332a9922f449534d904bf7 2500w`})}),_jsxs(`div`,{className:`tm-msg-col`,children:[_jsxs(`div`,{className:`tm-msg-meta`,children:[_jsx(`span`,{className:`tm-msg-name`,children:`Claude`}),_jsx(`span`,{className:`tm-msg-app`,children:`APP`}),_jsx(`span`,{className:`tm-msg-time`,children:`2:15 PM`})]}),_jsx(`p`,{children:`On it. I’ll compare latency before and after the deploy, track down the cause, and report back here.`}),_jsxs(`div`,{className:`tm-tasklist`,children:[_jsxs(`span`,{className:`tm-task-done`,children:[_jsx(`span`,{className:`tm-sr`,children:`Done: `}),`Pulled p99 latency from Datadog`]}),_jsxs(`span`,{className:`tm-task-done`,children:[_jsx(`span`,{className:`tm-sr`,children:`Done: `}),`Diffed deploy 4f2c1 against main`]}),_jsxs(`span`,{className:`tm-task-done`,children:[_jsx(`span`,{className:`tm-sr`,children:`Done: `}),`Reproduced the slow query locally`]}),_jsxs(`span`,{className:`tm-task-doing`,children:[_jsx(`span`,{className:`tm-sr`,children:`In progress: `}),`Opening a pull request with the fix…`]})]})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`plans-that-include-claude-tag`,children:`Plans that include Claude Tag`}),`\n`,_jsxs(_components.p,{children:[`Claude Tag is available on Team and Enterprise plans, on Anthropic’s first-party service. It isn’t available on individual plans (Free, Pro, Max, or Ultra), or for third-party deployments. To use it, your organization pairs its Slack workspace with its Claude organization; see `,_jsx(_components.a,{href:`/claude-tag/admins/setup-overview`,children:`the setup overview`}),` for the full prerequisites.`]}),`\n`,_jsxs(_components.p,{children:[`If you’re choosing between Claude products for Slack-shaped work, `,_jsx(_components.a,{href:`/claude-tag/concepts/how-it-works#how-claude-tag-differs-from-cowork-and-claude-code`,children:`how Claude Tag differs from Cowork and Claude Code`}),` compares them directly: team work in shared channels is Claude Tag; personal work on your own files is Cowork or Claude Code.`]}),`\n`,_jsx(Heading,{level:`3`,id:`who-needs-a-claude-seat`,children:`Who needs a Claude seat`}),`\n`,_jsx(_components.p,{children:`Slack users don’t each need a Claude seat to work with Claude in channels.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`In channels`}),`: by default, anyone in the paired Slack workspace can tag `,_jsx(_components.code,{children:`@Claude`}),` in a channel, and an Owner can `,_jsx(_components.a,{href:`/claude-tag/admins/restrict-access#restrict-who-can-use-claude`,children:`restrict who can use Claude`}),` to people in your Claude organization or, on Enterprise, to specific roles. Channel work bills by usage to your organization’s usage balance, under a `,_jsx(_components.a,{href:`/claude-tag/admins/set-spend-limit`,children:`spend limit`}),` an Owner sets.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`In group DMs`}),`: the same restriction on who can use Claude applies, and the work bills to your organization’s usage balance. See `,_jsx(_components.a,{href:`/claude-tag/admins/restrict-access#group-dms`,children:`Group DMs`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`In one-to-one DMs`}),`: a DM from a member who has connected a Claude account runs on that account and bills to that person’s seat. For the DM to work, that person needs either a seat that includes Claude Code or, on the Enterprise plan, Cowork access on a `,_jsx(_components.strong,{children:`Standard`}),` seat or a usage-based `,_jsx(_components.strong,{children:`Chat`}),` seat. A `,_jsx(_components.a,{href:`/claude-tag/admins/restrict-access#direct-messages-from-members-without-a-claude-account`,children:`DM from a member who hasn’t connected a Claude account`}),` can bill to your organization for a limited time.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`where-claude-tag-runs`,children:`Where Claude Tag runs`}),`\n`,_jsxs(_components.p,{children:[`Claude Tag works in Slack. You interact with it by writing in a Slack channel, thread, or direct message, and it replies there. Mention `,_jsx(_components.code,{children:`@Claude`}),` in a channel to guarantee it picks the message up.`]}),`\n`,_jsxs(_components.p,{children:[`When Claude works on a task, it runs in an ephemeral sandbox, not on your computer. The sandbox is created when a conversation starts, holds any code or files Claude is working with, and is discarded when the conversation goes idle. See `,_jsx(_components.a,{href:`/claude-tag/concepts/how-it-works`,children:`how Claude Tag works`}),` for the full lifecycle.`]}),`\n`,_jsxs(_components.p,{children:[`You extend what Claude can reach, like your repositories, ticketing systems, data warehouses, and custom tools, through `,_jsx(_components.a,{href:`/claude-tag/admins/add-connections`,children:`Claude Tag connectors`}),`, `,_jsx(_components.a,{href:`/claude-tag/admins/customize`,children:`plugins, and skills`}),`. An Owner or a `,_jsx(_components.a,{href:`/claude-tag/admins/restrict-access#delegate-claude-tag-administration`,children:`Claude Tag admin`}),` configures these for all of Slack, for one workspace, or for one channel. Members’ own claude.ai connectors are separate from that configuration; Claude can use them in a channel for the member’s own requests, as `,_jsx(_components.a,{href:`/claude-tag/concepts/personal-connectors`,children:`personal connectors in channels`}),` describes.`]}),`\n`,_jsxs(`div`,{className:`tm-route-grid`,children:[_jsxs(`div`,{className:`tm-card`,children:[_jsxs(_components.a,{className:`tm-band tm-band-admins`,href:`/claude-tag/admins/setup-overview`,children:[_jsxs(`span`,{className:`tm-band-text`,children:[_jsx(`span`,{className:`tm-band-label`,children:`For administrators`}),_jsx(`span`,{className:`tm-band-title`,children:`Set up Claude Tag`})]}),_jsx(`img`,{src:`https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-Key.svg?fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=1b7a9675728f971bc7a4663c7f1ea599`,alt:``,noZoom:true,\"data-og-width\":`1000`,width:`1000`,\"data-og-height\":`1000`,height:`1000`,\"data-path\":`images/claude-tag/illustrations/Hand-Key.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-Key.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=3c3a2b136a48bc30066d77182034e131 280w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-Key.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=32f7e1b6f5c94b09b60365d1f8656e62 560w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-Key.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=07abecf209987dfae9183fbba74c2b28 840w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-Key.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=f231bfb2475e80b9edf9d688f01ac0c1 1100w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-Key.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=135090cf14a0bc55ef2236e3075d4e2d 1650w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-Key.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=faf87e19781d3005c86f661bc60a0225 2500w`})]}),_jsxs(`div`,{className:`tm-qrows`,children:[_jsx(_components.a,{className:`tm-qrow`,href:`/claude-tag/admins/setup-overview`,children:_jsxs(`span`,{className:`tm-qrow-text`,children:[_jsx(`span`,{className:`tm-qrow-q`,children:`Where do I start?`}),_jsx(`span`,{className:`tm-qrow-sub`,children:`Pair your Slack workspace, launch, and test that it works`})]})}),_jsx(_components.a,{className:`tm-qrow`,href:`/claude-tag/concepts/agent-identity`,children:_jsxs(`span`,{className:`tm-qrow-text`,children:[_jsx(`span`,{className:`tm-qrow-q`,children:`What can Claude Tag access?`}),_jsx(`span`,{className:`tm-qrow-sub`,children:`How admins set access per channel, and where credentials are stored`})]})}),_jsx(_components.a,{className:`tm-qrow`,href:`/claude-tag/admins/add-connections`,children:_jsxs(`span`,{className:`tm-qrow-text`,children:[_jsx(`span`,{className:`tm-qrow-q`,children:`How do I connect each service?`}),_jsx(`span`,{className:`tm-qrow-sub`,children:`Credential types, allowed hosts, and what each connection lets Claude reach`})]})})]})]}),_jsxs(`div`,{className:`tm-card`,children:[_jsxs(`a`,{className:`tm-band tm-band-users`,href:`#put-claude-tag-to-work`,children:[_jsxs(`span`,{className:`tm-band-text`,children:[_jsx(`span`,{className:`tm-band-label`,children:`For end users`}),_jsx(`span`,{className:`tm-band-title`,children:`Put Claude Tag to work`})]}),_jsx(`img`,{src:`https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-NodePair.svg?fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=c64df4c6d27a6da752aa32c9e0622781`,alt:``,noZoom:true,\"data-og-width\":`1000`,width:`1000`,\"data-og-height\":`1000`,height:`1000`,\"data-path\":`images/claude-tag/illustrations/Hand-NodePair.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-NodePair.svg?w=280\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=6251b24fc10f5926244a6233432ac5c5 280w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-NodePair.svg?w=560\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=33290118ade6efd057f734f4f23ab2bf 560w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-NodePair.svg?w=840\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=8d4ae134ca06a27910d5f69fec5ae319 840w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-NodePair.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=bbc86fac6a1def129e50e42ebd2603ce 1100w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-NodePair.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=9ae67cdca30ed828416c4dd86403fc3b 1650w, https://mintcdn.com/claude-ai/5JFKyLlO7sHMMf5J/images/claude-tag/illustrations/Hand-NodePair.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=5JFKyLlO7sHMMf5J\u0026q=85\u0026s=58243f7f5c95da5ff412ccd61729165f 2500w`})]}),_jsxs(`div`,{className:`tm-qrows`,children:[_jsx(_components.a,{className:`tm-qrow`,href:`/claude-tag/users/getting-started`,children:_jsxs(`span`,{className:`tm-qrow-text`,children:[_jsx(`span`,{className:`tm-qrow-q`,children:`How do I hand Claude Tag a task?`}),_jsx(`span`,{className:`tm-qrow-sub`,children:`Mention Claude in any channel it’s in, with nothing to install`})]})}),_jsx(_components.a,{className:`tm-qrow`,href:`/claude-tag/users/use-cases`,children:_jsxs(`span`,{className:`tm-qrow-text`,children:[_jsx(`span`,{className:`tm-qrow-q`,children:`What is Claude Tag good at?`}),_jsx(`span`,{className:`tm-qrow-sub`,children:`Use cases for coding, data, incidents, and go-to-market`})]})}),_jsx(_components.a,{className:`tm-qrow`,href:`/claude-tag/users/good-habits`,children:_jsxs(`span`,{className:`tm-qrow-text`,children:[_jsx(`span`,{className:`tm-qrow-q`,children:`How do I get good results?`}),_jsx(`span`,{className:`tm-qrow-sub`,children:`Good habits for scoping and reviewing work`})]})}),_jsx(_components.a,{className:`tm-qrow`,href:`/claude-tag/users/memory`,children:_jsxs(`span`,{className:`tm-qrow-text`,children:[_jsx(`span`,{className:`tm-qrow-q`,children:`What does Claude Tag remember?`}),_jsx(`span`,{className:`tm-qrow-sub`,children:`Channel memory, what’s shared across the workspace, and who can see what`})]})}),_jsx(_components.a,{className:`tm-qrow`,href:`/claude-tag/users/proactivity`,children:_jsxs(`span`,{className:`tm-qrow-text`,children:[_jsx(`span`,{className:`tm-qrow-q`,children:`Can Claude Tag run tasks on a schedule?`}),_jsx(`span`,{className:`tm-qrow-sub`,children:`Scheduled jobs, channel watching, and triggers`})]})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`billing-and-spend-limits`,children:`Billing and spend limits`}),`\n`,_jsxs(_components.p,{children:[`Adding Claude to Slack doesn’t add a per-seat charge. Channel, thread, and group DM work is billed by usage instead: it draws from a `,_jsx(_components.strong,{children:`usage balance`}),`, an amount in your organization’s billing currency that an Owner funds. A `,_jsx(_components.a,{href:`/claude-tag/admins/set-spend-limit`,children:`spend limit`}),` caps how much of that balance Claude Tag can use each billing period.`]}),`\n`,_jsxs(_components.p,{children:[`One-to-one direct messages from members who have connected a Claude account don’t draw from this balance. Such a DM runs on the sender’s own claude.ai account and follows that seat’s usual usage limits, so the organization spend limit doesn’t apply to it. A `,_jsx(_components.a,{href:`/claude-tag/admins/restrict-access#direct-messages-from-members-without-a-claude-account`,children:`DM from a member who hasn’t connected a Claude account`}),` can draw from this balance.`]}),`\n`,_jsxs(_components.p,{children:[`To learn what your team’s usage costs, run a pilot with a spend limit set and watch the per-channel breakdown on the `,_jsx(_components.a,{href:`https://claude.ai/admin-settings/usage/claude-tag`,children:`usage page in your admin settings`}),`. `,_jsx(_components.a,{href:`/claude-tag/admins/set-spend-limit`,children:`Set a spend limit`}),` covers how to fund the balance on each plan, set the limit, and what happens when usage reaches it.`]}),`\n`,_jsxs(`div`,{className:`tm-eyebrow`,children:[_jsx(`span`,{className:`tm-swatch tm-swatch-users`}),`For end users`]}),`\n`,_jsx(Heading,{level:`2`,id:`put-claude-tag-to-work`,children:`Put Claude Tag to work`}),`\n`,_jsxs(_components.p,{children:[`If Claude Tag is in your channel, you can use it now. (If it isn’t there yet, an Owner in your Claude organization runs setup: see `,_jsx(_components.a,{href:`/claude-tag/admins/setup-overview`,children:`Set up Claude Tag`}),`.) Anyone in the channel can hand it work, and channel work bills to the organization, not to you.`]}),`\n`,_jsxs(_components.p,{children:[`What it can reach starts with the channel you’re in. The fastest way to find out is to ask it: `,_jsx(_components.code,{children:`@Claude what can you access from this channel?`}),` Or, if you’re signed in to your Claude organization, click `,_jsx(_components.strong,{children:`Configure`}),` in the footer of a Claude reply in the channel to see its `,_jsx(_components.a,{href:`/claude-tag/concepts/glossary#connection`,children:`connections`}),`, the external services an admin has connected for that channel. Replies in org-shared channels have no Configure link.`]}),`\n`,_jsxs(_components.p,{children:[`For your own requests, Claude can also `,_jsx(_components.a,{href:`/claude-tag/concepts/personal-connectors`,children:`use the connectors on your claude.ai account`}),`, after you allow it.`]}),`\n`,_jsxs(_components.p,{children:[`In a one-to-one DM, Claude runs on your own claude.ai account instead of a channel’s setup. An Owner can turn off DMs for the whole organization; see `,_jsx(_components.a,{href:`/claude-tag/admins/restrict-access#allow-or-disable-direct-messages`,children:`Allow or disable direct messages`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`common-uses`,children:`Common uses`}),`\n`,_jsx(_components.p,{children:`Each link opens a guide with the prompts to paste and the connections the task needs.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/claude-tag/users/use-cases/watch-monitors`,children:`Watch monitors and alerts`}),`: scheduled dashboard checks, and alerts investigated as they arrive. Needs a monitoring connection like Datadog, Sentry, or PagerDuty.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/claude-tag/users/use-cases/triage-requests`,children:`Triage requests`}),`: an intake channel where Claude answers what it can, flags duplicates, and routes the rest. Works on Slack content alone.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/claude-tag/users/use-cases/find-answers`,children:`Find answers in your docs`}),`: policy and runbook questions answered with the source. Needs a docs connection like Google Drive, Notion, or Confluence.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/claude-tag/users/use-cases/answer-data-questions`,children:`Answer data questions`}),`: a plain-language question becomes a warehouse query and a chart. Needs a data warehouse connection.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/claude-tag/users/use-cases/track-projects`,children:`Track projects and chase approvals`}),`: standing status digests and follow-ups that run until an approval lands`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/claude-tag/users/use-cases/create-artifacts`,children:`Turn threads into docs and tickets`}),`: a settled discussion becomes the decision doc, the customer reply, or the filed tickets`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/claude-tag/users/use-cases/fix-bugs`,children:`Fix bugs`}),`: a bug reported in the channel comes back as a draft pull request. Needs GitHub.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/claude-tag/users/use-cases/your-own-channel`,children:`Work from your own channel`}),`: scratch questions, digests of channels you don’t follow, and follow-ups on what you said you’d do`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/claude-tag/users/getting-started`,children:`Get started`}),` covers your first message, what you see while Claude works, and how to shape Claude’s behavior in your channel.`]}),`\n`,_jsxs(`div`,{className:`tm-eyebrow`,children:[_jsx(`span`,{className:`tm-swatch tm-swatch-admins`}),`For administrators`]}),`\n`,_jsx(Heading,{level:`2`,id:`set-claude-tag-up-once-for-everyone`,children:`Set Claude Tag up once for everyone`}),`\n`,_jsxs(_components.p,{children:[`You set up Claude Tag once, at `,_jsx(_components.a,{href:`https://claude.ai/admin-settings/claude-tag`,children:_jsx(_components.code,{children:`claude.ai/admin-settings/claude-tag`})}),`, and you must be an Owner in your Claude organization to do it. The setup page at that URL walks you through it:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Pair your Slack workspace`}),`: send `,_jsx(_components.code,{children:`@Claude connect`}),` in Slack to get a pairing code, then enter it on the setup page.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Set a monthly spend limit, add Claude to channels, and launch`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Once you launch, everyone in a channel Claude is in can use Claude Tag immediately, with no per-user setup.`}),`\n`,_jsxs(_components.p,{children:[`Claude Tag starts with no access of its own to your external systems. After you launch, you connect the services Claude will work in, such as your issue tracker or data warehouse, and grant repositories to the Claude GitHub App. Members can also let Claude use their own `,_jsx(_components.a,{href:`/claude-tag/concepts/personal-connectors`,children:`personal connectors`}),` for their requests.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/claude-tag/admins/setup-overview`,children:`Set up Claude Tag`}),` walks through setup and connecting tools, with what to have ready, what each choice means, and how to verify Claude Tag works once you launch.`]}),`\n`,_jsxs(`div`,{className:`tm-strip`,children:[_jsxs(`div`,{className:`tm-strip-head`,children:[_jsx(`p`,{className:`tm-strip-title`,children:`Security review`}),_jsx(_components.a,{className:`tm-strip-all`,href:`/claude-tag/concepts/security-and-data`,children:`Security and data handling`})]}),_jsx(`p`,{children:`The security model, what admins can and can’t restrict, audit trails, and network requirements.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`where-to-start-with-claude-tag`,children:`Where to start with Claude Tag`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Set up Claude Tag`,icon:`gear`,href:`/claude-tag/admins/setup-overview`,horizontal:true,arrow:true,children:_jsx(_components.p,{children:`Admins: pair your Slack workspace and launch`})}),_jsx(Card,{title:`Hand Claude Tag your first task`,icon:`paper-plane`,href:`/claude-tag/users/getting-started`,horizontal:true,arrow:true,children:_jsx(_components.p,{children:`It’s already in your channel: send your first message`})}),_jsx(Card,{title:`How Claude Tag works`,icon:`diagram-project`,href:`/claude-tag/concepts/how-it-works`,horizontal:true,arrow:true,children:_jsx(_components.p,{children:`The session model, what it can read, and how memory follows places`})}),_jsx(Card,{title:`Use case library`,icon:`list`,href:`/claude-tag/users/use-cases`,horizontal:true,arrow:true,children:_jsx(_components.p,{children:`Prompts to paste, by team and connection`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Work with Claude Tag","sidebarTitle":"Overview","description":"Claude Tag puts Claude in your Slack channels with admin-governed access. See what to hand it, how setup works, and where to start as an admin or end user.","keywords":["what is claude tag","claude in slack","claude slack app","slack bot","slack agent","@claude","tag claude","claude tag pricing","cost","how is claude tag billed","which plans include claude tag","team plan","enterprise plan","pro plan","max plan","ultra plan","personal account","claude tag vs cowork","use cases","public beta"],"mode":"wide","href":"/claude-tag/overview"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Plans that include Claude Tag","slug":"plans-that-include-claude-tag","depth":2,"children":[{"title":"Who needs a Claude seat","slug":"who-needs-a-claude-seat","depth":3,"children":[]}]},{"title":"Where Claude Tag runs","slug":"where-claude-tag-runs","depth":2,"children":[]},{"title":"Billing and spend limits","slug":"billing-and-spend-limits","depth":2,"children":[]},{"title":"Put Claude Tag to work","slug":"put-claude-tag-to-work","depth":2,"children":[{"title":"Common uses","slug":"common-uses","depth":3,"children":[]}]},{"title":"Set Claude Tag up once for everyone","slug":"set-claude-tag-up-once-for-everyone","depth":2,"children":[]},{"title":"Where to start with Claude Tag","slug":"where-to-start-with-claude-tag","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/claude-ai/b857db804a3a9481/desktop-app-nav.js"],"subdomain":"claude-ai","siteName":"Claude.ai Documentation","title":"Work with Claude Tag - Claude.ai Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T19:55:52.006Z","originalFileLocation":"claude-tag/overview.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Claude Tag puts Claude in your Slack channels with admin-governed access. See what to hand it, how setup works, and where to start as an admin or end user.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Claude.ai Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Work with Claude Tag - Claude.ai Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Claude Tag puts Claude in your Slack channels with admin-governed access. See what to hand it, how setup works, and where to start as an admin or end user.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Claude.ai Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://claude.com/docs/claude-tag/overview\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://claude-ai.mintlify.site/docs/_mintlify/api/og/v2?division=+\u0026amp;title=Work+with+Claude+Tag\u0026amp;description=Claude+Tag+puts+Claude+in+your+Slack+channels+with+admin-governed+access.+See+what+to+hand+it%2C+how+setup+works%2C+and+where+to+start+as+an+admin+or+end+user.\u0026amp;theme=9a76ca0aba14a40680086237\u0026amp;signature=31330571c25b0d3e677c84835974fc0a91843e1177a2a0283ccde3cf4c1be894\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Work with Claude Tag - Claude.ai Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Claude Tag puts Claude in your Slack channels with admin-governed access. See what to hand it, how setup works, and where to start as an admin or end user.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://claude-ai.mintlify.site/docs/_mintlify/api/og/v2?division=+\u0026amp;title=Work+with+Claude+Tag\u0026amp;description=Claude+Tag+puts+Claude+in+your+Slack+channels+with+admin-governed+access.+See+what+to+hand+it%2C+how+setup+works%2C+and+where+to+start+as+an+admin+or+end+user.\u0026amp;theme=9a76ca0aba14a40680086237\u0026amp;signature=31330571c25b0d3e677c84835974fc0a91843e1177a2a0283ccde3cf4c1be894\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/claude-ai/zHw4o4W7dZma2XXV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Claude.ai Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0E0E0E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://claude.com/docs/claude-tag/overview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/claude-tag/overview.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://claude.com/#organization\",\"name\":\"Claude.ai Documentation\",\"url\":\"https://claude.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/claude-ai/1fyDNLAICe3KG6rB/logo/light.svg?fit=max\u0026auto=format\u0026n=1fyDNLAICe3KG6rB\u0026q=85\u0026s=e870c19cb781d8a7c7b7d19de53b0a10\"}},{\"@type\":\"WebSite\",\"@id\":\"https://claude.com/docs#website\",\"name\":\"Claude.ai Documentation\",\"url\":\"https://claude.com/docs\",\"publisher\":{\"@id\":\"https://claude.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://claude.com/docs/claude-tag/overview#webpage\",\"url\":\"https://claude.com/docs/claude-tag/overview\",\"name\":\"Work with Claude Tag\",\"description\":\"Claude Tag puts Claude in your Slack channels with admin-governed access. See what to hand it, how setup works, and where to start as an admin or end user.\",\"dateModified\":\"2026-11-04T19:55:52.006Z\",\"isPartOf\":{\"@id\":\"https://claude.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://claude.com/docs/claude-tag/overview#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://claude.com/docs/claude-tag/overview#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Claude.ai Documentation\",\"item\":\"https://claude.com/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Work with Claude Tag\",\"item\":\"https://claude.com/docs/claude-tag/overview\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://claude.com/docs/claude-tag/overview#article\",\"headline\":\"Work with Claude Tag\",\"name\":\"Work with Claude Tag\",\"description\":\"Claude Tag puts Claude in your Slack channels with admin-governed access. See what to hand it, how setup works, and where to start as an admin or end user.\",\"url\":\"https://claude.com/docs/claude-tag/overview\",\"mainEntityOfPage\":{\"@id\":\"https://claude.com/docs/claude-tag/overview#webpage\"},\"dateModified\":\"2026-11-04T19:55:52.006Z\",\"keywords\":\"what is claude tag, claude in slack, claude slack app, slack bot, slack agent, @claude, tag claude, claude tag pricing, cost, how is claude tag billed, which plans include claude tag, team plan, enterprise plan, pro plan, max plan, ultra plan, personal account, claude tag vs cowork, use cases, public beta\",\"publisher\":{\"@id\":\"https://claude.com/#organization\"},\"isPartOf\":{\"@id\":\"https://claude.com/docs#website\"}}]}\u003c/script>","agentPointerHref":"/docs/claude-tag/overview.md","siteName":"Claude.ai Documentation","nav":{"global":null,"tabs":[{"tab":"Welcome","pages":[{"title":"Welcome","href":""}]},{"tab":"Customize Claude","pages":[{"title":"Customize Claude","href":"/extend/overview"}]},{"tab":"Build for Claude","pages":[{"title":"Build for Claude","href":"/build/overview"}]},{"tab":"Cowork","pages":[{"title":"Cowork","href":"/cowork/overview"}]},{"tab":"Claude Tag","groups":[{"group":" ","pages":[{"title":"Work with Claude Tag","sidebarTitle":"Overview","mode":"wide","href":"/claude-tag/overview"}]},{"group":"How it works","pages":[{"title":"How Claude Tag works","description":"Each Claude Tag thread in Slack runs a working session in a sandbox. See how progress shows in the thread, how to steer mid-task, what survives between turns, and how memory is scoped.","href":"/claude-tag/concepts/how-it-works"},{"title":"Glossary","href":"/claude-tag/concepts/glossary"}]},{"group":"For administrators","pages":[{"group":"Before you install","pages":[{"title":"How agent identity works","href":"/claude-tag/concepts/agent-identity"},{"title":"Personal connectors in channels","href":"/claude-tag/concepts/personal-connectors"},{"title":"Security and data handling","href":"/claude-tag/concepts/security-and-data"},{"title":"Data lifecycle and deletion","sidebarTitle":"Data lifecycle","href":"/claude-tag/concepts/data-lifecycle"},{"title":"What the Claude Slack app can access","sidebarTitle":"For Slack admins","href":"/claude-tag/admins/for-slack-admins"}]},{"group":"Set up Claude Tag","root":{"title":"Set up Claude Tag","sidebarTitle":"Set up Claude Tag","href":"/claude-tag/admins/setup-overview"},"pages":[{"title":"Give Claude access to your tools","sidebarTitle":"Give Claude access","href":"/claude-tag/admins/add-connections"},{"title":"Configure GitHub access","sidebarTitle":"GitHub access","href":"/claude-tag/admins/configure-github"},{"title":"Configure GitLab access","sidebarTitle":"GitLab access","href":"/claude-tag/admins/configure-gitlab"},{"title":"Set a spend limit","sidebarTitle":"Set a spend limit","href":"/claude-tag/admins/set-spend-limit"},{"title":"Set up Claude Tag for on-call","sidebarTitle":"On-call setup","href":"/claude-tag/admins/setup-oncall"},{"group":"Connection guides","root":{"title":"Per-service connection guides","sidebarTitle":"Connection guides","href":"/claude-tag/admins/connections/overview"},"pages":[{"title":"Connect a service that isn't in the list","sidebarTitle":"Custom connector","href":"/claude-tag/admins/connections/custom"},{"title":"Connect Amplitude","sidebarTitle":"Amplitude","href":"/claude-tag/admins/connections/amplitude"},{"title":"Connect Asana","sidebarTitle":"Asana","href":"/claude-tag/admins/connections/asana"},{"title":"Connect Jira and Confluence","sidebarTitle":"Jira and Confluence","href":"/claude-tag/admins/connections/atlassian"},{"title":"Connect BigQuery","sidebarTitle":"BigQuery","href":"/claude-tag/admins/connections/bigquery"},{"title":"Connect Datadog","sidebarTitle":"Datadog","href":"/claude-tag/admins/connections/datadog"},{"title":"Connect GitLab","sidebarTitle":"GitLab","href":"/claude-tag/admins/connections/gitlab"},{"title":"Connect Gong","sidebarTitle":"Gong","href":"/claude-tag/admins/connections/gong"},{"title":"Connect Google Drive, Calendar, and Gmail","sidebarTitle":"Google Drive, Calendar, and Gmail","href":"/claude-tag/admins/connections/google"},{"title":"Connect HubSpot","sidebarTitle":"HubSpot","href":"/claude-tag/admins/connections/hubspot"},{"title":"Connect Linear","sidebarTitle":"Linear","href":"/claude-tag/admins/connections/linear"},{"title":"Connect Notion","sidebarTitle":"Notion","href":"/claude-tag/admins/connections/notion"},{"title":"Connect PagerDuty","sidebarTitle":"PagerDuty","href":"/claude-tag/admins/connections/pagerduty"},{"title":"Connect Salesforce","sidebarTitle":"Salesforce","href":"/claude-tag/admins/connections/salesforce"},{"title":"Connect Sentry","sidebarTitle":"Sentry","href":"/claude-tag/admins/connections/sentry"},{"title":"Connect Snowflake","sidebarTitle":"Snowflake","href":"/claude-tag/admins/connections/snowflake"},{"title":"Connect Stripe","sidebarTitle":"Stripe","href":"/claude-tag/admins/connections/stripe"},{"title":"Connect Vercel","sidebarTitle":"Vercel","href":"/claude-tag/admins/connections/vercel"}]},{"group":"Federated agent access","root":{"title":"Federated agent access","sidebarTitle":"Overview","href":"/claude-tag/admins/federated-access/overview"},"pages":[{"title":"Connect a gateway","sidebarTitle":"Connect a gateway","href":"/claude-tag/admins/federated-access/connect-a-gateway"},{"title":"Connect an AWS role","sidebarTitle":"AWS role","href":"/claude-tag/admins/federated-access/aws"},{"title":"Connect a Google Cloud identity","sidebarTitle":"Google Cloud identity","href":"/claude-tag/admins/federated-access/gcp"},{"title":"Connect an authorization server","sidebarTitle":"Authorization server","href":"/claude-tag/admins/federated-access/authorization-server"},{"title":"Identity token reference","sidebarTitle":"Token reference","href":"/claude-tag/admins/federated-access/token-reference"},{"title":"Limits for federated agent access","sidebarTitle":"Limits","href":"/claude-tag/admins/federated-access/limits"},{"title":"Troubleshoot federated agent access","sidebarTitle":"Troubleshooting","href":"/claude-tag/admins/federated-access/troubleshooting"}]}]},{"group":"Roll out","pages":[{"title":"Configure per-channel access","sidebarTitle":"Per-channel access","href":"/claude-tag/admins/attach-to-scope"},{"title":"Restrict where Claude Tag operates","href":"/claude-tag/admins/restrict-access"},{"title":"Manage workspaces and versions","sidebarTitle":"Workspaces and versions","href":"/claude-tag/admins/workspaces"},{"title":"Use Claude Tag at a healthcare organization","sidebarTitle":"Healthcare organizations","href":"/claude-tag/admins/healthcare"}]},{"group":"Customize","pages":[{"title":"Customize Claude Tag","sidebarTitle":"Customize Claude Tag","href":"/claude-tag/admins/customize"},{"title":"Claude Tag settings map","sidebarTitle":"Settings map","href":"/claude-tag/concepts/settings-map"},{"title":"Set up a skills repository Claude can update","sidebarTitle":"Add custom skills","href":"/claude-tag/admins/skills-repo"}]},{"group":"Operate","pages":[{"title":"Review what Claude Tag has done","sidebarTitle":"Audit and review","href":"/claude-tag/admins/audit"},{"title":"Attribute costs to users","sidebarTitle":"Attribute costs to users","href":"/claude-tag/admins/attribute-costs"},{"title":"Troubleshoot Claude Tag setup","sidebarTitle":"Troubleshooting","href":"/claude-tag/admins/troubleshooting"},{"title":"Network requirements","href":"/claude-tag/admins/network-requirements"},{"title":"Migrate from the earlier Claude in Slack","sidebarTitle":"Migrate from legacy Claude in Slack","href":"/claude-tag/admins/migrate-from-earlier"}]}]},{"group":"For end users","pages":[{"title":"Get started","href":"/claude-tag/users/getting-started"},{"title":"Claude Tag for Claude Code users","sidebarTitle":"For Claude Code users","href":"/claude-tag/concepts/for-claude-code-users"},{"title":"Commands Claude Tag understands","sidebarTitle":"Commands","href":"/claude-tag/users/commands"},{"title":"Control when Claude Tag responds","href":"/claude-tag/users/when-claude-responds"},{"title":"Use Claude Tag in a group DM","sidebarTitle":"Group DMs","href":"/claude-tag/users/group-dms"},{"title":"Good habits for working with Claude Tag","sidebarTitle":"Good habits","href":"/claude-tag/users/good-habits"},{"title":"Set up routines","href":"/claude-tag/users/proactivity"},{"title":"What Claude Tag remembers","href":"/claude-tag/users/memory"},{"title":"Choose the model Claude Tag uses","sidebarTitle":"Choose the model","href":"/claude-tag/users/models"},{"title":"Prompt library","href":"/claude-tag/users/prompt-library"},{"title":"Troubleshoot Claude Tag in channels and DMs","sidebarTitle":"Troubleshooting","href":"/claude-tag/users/troubleshooting"}]},{"group":"Use case library","pages":[{"title":"Use case library","sidebarTitle":"Browse the library","href":"/claude-tag/users/use-cases"},{"title":"Triage requests","href":"/claude-tag/users/use-cases/triage-requests"},{"title":"Catch up","href":"/claude-tag/users/use-cases/catch-up"},{"title":"Work from your own channel","href":"/claude-tag/users/use-cases/your-own-channel"},{"title":"Turn threads into docs and tickets","href":"/claude-tag/users/use-cases/create-artifacts"},{"title":"Track projects and chase approvals","href":"/claude-tag/users/use-cases/track-projects"},{"title":"Answer data questions","href":"/claude-tag/users/use-cases/answer-data-questions"},{"title":"Find answers in your docs","href":"/claude-tag/users/use-cases/find-answers"},{"title":"Review documents against a checklist","href":"/claude-tag/users/use-cases/review-documents"},{"title":"Pull deal and account state","href":"/claude-tag/users/use-cases/pull-deal-state"},{"title":"Claude Tag for marketing teams","sidebarTitle":"Marketing teams","href":"/claude-tag/users/use-cases/marketing-team"},{"title":"Watch monitors and alerts","href":"/claude-tag/users/use-cases/watch-monitors"},{"title":"Fix bugs","href":"/claude-tag/users/use-cases/fix-bugs"},{"title":"Work with your GitHub repositories","sidebarTitle":"Work with GitHub","href":"/claude-tag/users/use-cases/work-with-github"}]}]},{"tab":"Claude for M365","pages":[{"title":"Claude for M365","href":"/office-agents/overview"}]},{"tab":"Claude Science","pages":[{"title":"Claude Science","href":"/claude-science/overview"}]},{"tab":"Claude on third-party platforms","pages":[{"title":"Claude on third-party platforms","href":"/third-party/claude-desktop/overview"}]},{"tab":"Claude self-hosted","hidden":true,"pages":[{"title":"Claude self-hosted","href":"/third-party/claude-desktop/self-hosted/overview"}]},{"tab":"Claude for Government","pages":[{"title":"Claude for Government","href":"/government/overview"}]}]},"basePath":"","title":"Work with Claude Tag - Claude.ai Documentation","deploymentId":"dpl_BnrwKdxWnqTCMaKmLBoTuzTNCBXD","buildId":"dpl_BnrwKdxWnqTCMaKmLBoTuzTNCBXD","dynamics":[],"chunks":[]}</template>
474474 </body>
475475</html>

plugins/mods/admin Changed · +1 / -1 lines

from line 487
487487* [Plugin security](https://code.claude.com/docs/en/plugins/security.md): what any plugin can do on a user's machine, and how to review one before it's installed
488488* [Mods overview](https://code.claude.com/docs/en/plugins/mods/overview.md): what a mod is and how it compares to hooks, skills, and MCP servers
489489* [The order mods run in](https://code.claude.com/docs/en/plugins/mods/events.md#the-order-mods-run-in): how `prependPlugins` and `appendPlugins` fit with users' mods
490* [Settings and environment variables](https://code.claude.com/docs/en/plugins/mods/reference.md#settings-and-environment-variables): every setting named on this page in one table
490* [Settings reference](https://code.claude.com/docs/en/settings-reference.md): scope, type, and default for each settings key
491491 

settings-example Changed · +2 / -2 lines

from line 122
122122> "hooks": [
123123> {
124124> "type": "command",
125> "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/block-rm.sh"
125> "command": "\"${CLAUDE_PROJECT_DIR}\"/.claude/hooks/block-rm.sh"
126126> }
127127> ]
128128> }
from line 187
187187> "hooks": [
188188> {
189189> "type": "command",
190> "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/block-rm.sh"
190> "command": "\"${CLAUDE_PROJECT_DIR}\"/.claude/hooks/block-rm.sh"
191191> }
192192> ]
193193> }

terminal-config Changed · +1 / -1 lines

from line 139
139139 
140140To use Shift+Enter, keep the last two lines, then detach from tmux, attach again, and restart Claude Code. To send notifications from a visible pane to Ghostty, Kitty, or iTerm2, keep the `allow-passthrough` line and restart Claude Code. With this sample, a pane in a window you aren't viewing sends none. Before v2.1.326 or inside tmux older than 3.3, which has no `allow-passthrough`, set [`preferredNotifChannel`](https://code.claude.com/docs/en/settings-reference#preferrednotifchannel) to `"iterm2"`, `"kitty"`, or `"ghostty"`.
141141 
142A [mod's `Image`](https://code.claude.com/docs/en/plugins/mods/reference#elements) needs the `allow-passthrough` and `focus-events` lines, along with the other [requirements for drawing inside tmux](https://code.claude.com/docs/en/plugins/mods/gallery.md#draw-an-image-inside-tmux). After you add the lines, also detach from tmux, attach again, and restart Claude Code.
142A [mod's `Image`](https://code.claude.com/docs/en/plugins/mods/gallery#image-and-client) needs the `allow-passthrough` and `focus-events` lines, along with the other [requirements for drawing inside tmux](https://code.claude.com/docs/en/plugins/mods/gallery.md#draw-an-image-inside-tmux). After you add the lines, also detach from tmux, attach again, and restart Claude Code.
143143 
144144## Fix Backspace deleting a whole word on Windows
145145 
Feedback