SpyBara
Go Premium

Documentation 2026-06-22 23:59 UTC to 2026-06-23 22:00 UTC

4 files changed +279 −3. View all changes and history on the product overview
2026
Tue 23 22:00 Mon 22 23:59 Fri 19 22:58 Thu 18 22:00 Wed 17 17:02 Tue 16 21:57 Mon 15 23:02 Sat 13 21:59 Fri 12 22:00 Thu 11 23:01 Wed 10 23:57 Tue 9 06:34 Mon 8 06:52 Sat 6 06:24 Fri 5 06:45 Thu 4 06:52 Wed 3 06:53 Tue 2 06:51

agent-view.md +30 −3

Details

257| `#<number>` or a pull request URL | If a session is already working on that PR, select it instead of dispatching |257| `#<number>` or a pull request URL | If a session is already working on that PR, select it instead of dispatching |

258| `Shift+Enter` | Dispatch and immediately attach to the new session |258| `Shift+Enter` | Dispatch and immediately attach to the new session |

259 259 

260A small set of commands run in agent view itself instead of dispatching: `/exit` and `/quit` close agent view, and `/logout` signs you out. Every other command and skill is sent to a new background session as its first prompt.260A small set of commands run in agent view itself instead of dispatching: `/exit` and `/quit` close agent view, `/logout` signs you out, and `/model` sets the [dispatch model](#set-the-model). Skills, your own commands, and prompt-expanding built-ins such as `/init` are sent to a new background session as their first prompt. Other built-in commands show an `attach to a session to run it` hint instead.

261 261 

262Packaging a recurring task as a [skill](/en/skills) lets you start the same workflow from agent view repeatedly without retyping the prompt.262Packaging a recurring task as a [skill](/en/skills) lets you start the same workflow from agent view repeatedly without retyping the prompt.

263 263 


376 376 

377The model name shown in the agent view header is the dispatch default. New sessions you start from the input use this model, which comes from the [`model` setting](/en/settings#available-settings) in your user settings. Set it by selecting a model in the [`/model` picker](/en/model-config), or edit the setting directly. To override it for the whole agent view session, pass `--model` when opening agent view. See [Permission mode, model, and effort](#permission-mode-model-and-effort).377The model name shown in the agent view header is the dispatch default. New sessions you start from the input use this model, which comes from the [`model` setting](/en/settings#available-settings) in your user settings. Set it by selecting a model in the [`/model` picker](/en/model-config), or edit the setting directly. To override it for the whole agent view session, pass `--model` when opening agent view. See [Permission mode, model, and effort](#permission-mode-model-and-effort).

378 378 

379To change the dispatch default from inside agent view, type `/model` followed by a model name in the dispatch input and press `Enter`. The header updates to show that model with a `(session)` marker, and sessions you dispatch afterward use it. Type `/model default` to clear the override and return to the dispatch default. This override lasts for the rest of the current `claude agents` run, does not write to your settings file, and requires Claude Code v2.1.172 or later. {/* min-version: 2.1.172 */} The following example dispatches one session on Opus and the next on Sonnet:

380 

381```text theme={null}

382/model opus

383refactor auth

384/model sonnet

385run the test suite

386```

387 

379Each background session can run on a different model. To override it for one session:388Each background session can run on a different model. To override it for one session:

380 389 

381* From the shell, pass `--model` with `claude --bg`.390* From the shell, pass `--model` with `claude --bg`.


384 393 

385### Permission mode, model, and effort394### Permission mode, model, and effort

386 395 

387A background session reads its [settings](/en/settings) from the directory it runs in, the same as if you had started `claude` there.396A background session reads its [settings](/en/settings) from the directory it runs in, the same as if you had started `claude` there. This includes [`env` values](/en/settings#available-settings) in project settings, so an `ANTHROPIC_MODEL` or provider variable set there applies to background sessions in that directory.

397 

398Cloud provider selection, such as `CLAUDE_CODE_USE_BEDROCK` or `CLAUDE_CODE_USE_VERTEX`, and `ANTHROPIC_DEFAULT_*_MODEL` aliases follow the shell that dispatched the session. Gateway endpoint variables such as `ANTHROPIC_BASE_URL` and its paired `ANTHROPIC_AUTH_TOKEN` do not. See [the supervisor process](#the-supervisor-process) for how background sessions source provider settings and credentials.

388 399 

389The [permission mode](/en/permissions) depends on how you started the session. Backgrounding an existing session with `/bg` or `←` keeps the current permission mode, so a session you switched to `acceptEdits` or `auto` stays in that mode after detaching. Dispatching from the agent view input or running `claude --bg` from your shell uses the `defaultMode` from that directory's settings, or the `permissionMode` from the dispatched [subagent's frontmatter](/en/sub-agents#supported-frontmatter-fields).400The [permission mode](/en/permissions) depends on how you started the session. Backgrounding an existing session with `/bg` or `←` keeps the current permission mode, so a session you switched to `acceptEdits` or `auto` stays in that mode after detaching. Dispatching from the agent view input or running `claude --bg` from your shell uses the `defaultMode` from that directory's settings, or the `permissionMode` from the dispatched [subagent's frontmatter](/en/sub-agents#supported-frontmatter-fields).

390 401 


462 473 

463Background sessions are hosted by a per-user supervisor process, separate from your terminal and from agent view. The supervisor starts automatically the first time you background a session or open agent view, and you don't manage it directly.474Background sessions are hosted by a per-user supervisor process, separate from your terminal and from agent view. The supervisor starts automatically the first time you background a session or open agent view, and you don't manage it directly.

464 475 

465The supervisor and its sessions authenticate with the same credentials as your interactive sessions and make no additional network connections beyond the model API.476The supervisor keeps one pre-warmed worker process ready so a dispatch from agent view or `claude --bg` starts without the delay of a cold launch. When you dispatch, the supervisor assigns the pre-warmed worker to your session, applies that session's directory, settings, and credentials to it, and then starts a replacement for the next dispatch. If no healthy pre-warmed worker is available, the supervisor launches a fresh process instead.

477 

478The supervisor and its sessions authenticate with the same stored credentials as your interactive sessions and make no additional network connections beyond the model API. Provider selection variables such as `CLAUDE_CODE_USE_BEDROCK` and `ANTHROPIC_DEFAULT_*_MODEL` aliases are read from the shell that dispatched each session and are applied to its worker.

479 

480{/* min-version: 2.1.174 */}A background session does not inherit gateway endpoint variables such as `ANTHROPIC_BASE_URL`, the equivalent Bedrock, Vertex, and Foundry base URL variables, or a paired `ANTHROPIC_AUTH_TOKEN` from the shell that started the supervisor or from the dispatching shell. The session uses your stored credentials and any `env` values in the project directory's [settings](/en/settings) instead. To point background sessions in a project at an [LLM gateway](/en/llm-gateway), set `ANTHROPIC_BASE_URL` in that project's `.claude/settings.json` `env` block rather than exporting it in your shell. Before v2.1.174, a background session inherited these variables from the supervisor's launch shell, so it could use the gateway you had configured in that shell instead of the one configured for the project directory.

466 481 

467Each background session is its own Claude Code process, managed by the supervisor rather than tied to your terminal. A session that's actively working, waiting for your input, or has a terminal attached keeps its process running. A running background shell command, subagent, dynamic workflow, or monitor counts as active work, so a long-running process such as a dev server keeps the session alive.482Each background session is its own Claude Code process, managed by the supervisor rather than tied to your terminal. A session that's actively working, waiting for your input, or has a terminal attached keeps its process running. A running background shell command, subagent, dynamic workflow, or monitor counts as active work, so a long-running process such as a dev server keeps the session alive.

468 483 


535 550 

536On Windows, if the supervisor does not respond to the stop request, the command prints its process ID. End that process with `taskkill /PID <pid>` to finish the recovery. Background sessions are still preserved when you passed `--keep-workers`.551On Windows, if the supervisor does not respond to the stop request, the command prints its process ID. End that process with `taskkill /PID <pid>` to finish the recovery. Background sessions are still preserved when you passed `--keep-workers`.

537 552 

553### Dispatch fails with `Could not resolve authentication method`

554 

555{/* min-version: 2.1.174 */}If a background dispatch fails with `Could not resolve authentication method` while interactive sessions authenticate normally, the worker that received the dispatch did not pick up credentials. On v2.1.174 and later the supervisor supplies a fresh credential snapshot when it assigns a [pre-warmed worker](#the-supervisor-process), so this error means no stored credential was available to the supervisor process itself. Confirm you have run `/login` or configured an API key, then stop the supervisor:

556 

557```bash theme={null}

558claude daemon stop --any --keep-workers

559```

560 

561The next `claude agents` or `claude --bg` starts a fresh supervisor that reads your stored credentials. If you authenticate with an environment variable such as `ANTHROPIC_API_KEY` rather than `/login`, run that next command from a shell where the variable is set.

562 

563See the [error reference](/en/errors#could-not-resolve-authentication-method) for the full list of causes and fixes. Before v2.1.174, a pre-warmed worker that sat idle could surface this error when it was assigned to a dispatch even when your credentials were valid. Upgrade to recover.

564 

538### Background sessions cannot read Desktop, Documents, or Downloads on macOS565### Background sessions cannot read Desktop, Documents, or Downloads on macOS

539 566 

540On macOS, the background session host runs as its own process and requests access to protected folders separately from your terminal. If a background session reports `Operation not permitted` when reading `~/Desktop`, `~/Documents`, `~/Downloads`, or another protected location, grant access in System Settings under Privacy & Security > Files and Folders, or enable Full Disk Access for the entry.567On macOS, the background session host runs as its own process and requests access to protected folders separately from your terminal. If a background session reports `Operation not permitted` when reading `~/Desktop`, `~/Documents`, `~/Downloads`, or another protected location, grant access in System Settings under Privacy & Security > Files and Folders, or enable Full Disk Access for the entry.

Details

818* [Settings reference](/en/settings): all configuration options818* [Settings reference](/en/settings): all configuration options

819* [Security](/en/security): isolation guarantees and data handling819* [Security](/en/security): isolation guarantees and data handling

820* [Data usage](/en/data-usage): what Anthropic retains from cloud sessions820* [Data usage](/en/data-usage): what Anthropic retains from cloud sessions

821* [Claude Tag](https://claude.com/docs/claude-tag/overview): an organization-managed @Claude in Slack that runs on the same cloud environment

skills.md +1 −0

Details

848* **[Memory](/en/memory)**: manage CLAUDE.md files for persistent context848* **[Memory](/en/memory)**: manage CLAUDE.md files for persistent context

849* **[Commands](/en/commands)**: reference for built-in commands and bundled skills849* **[Commands](/en/commands)**: reference for built-in commands and bundled skills

850* **[Permissions](/en/permissions)**: control tool and skill access850* **[Permissions](/en/permissions)**: control tool and skill access

851* **[Claude Tag skills](https://claude.com/docs/claude-tag/admins/skills-repo)**: project skills committed to a repo also load when that repo is used in a Claude Tag channel

slack.md +247 −0 created

Details

1> ## Documentation Index

2> Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt

3> Use this file to discover all available pages before exploring further.

4 

5# Claude Code in Slack

6 

7> Delegate coding tasks directly from your Slack workspace

8 

9<Note>

10 Claude Code in Slack is being replaced by [Claude Tag](https://claude.com/docs/claude-tag/overview) for Team and Enterprise workspaces. Claude Tag runs @Claude as your organization's shared identity with admin-configured access, under the same Slack app, so there is nothing to reinstall and existing setups continue to work during the transition. To switch a workspace, see [Migrate from the earlier Claude in Slack](https://claude.com/docs/claude-tag/admins/migrate-from-earlier).

11</Note>

12 

13Claude Code in Slack brings the power of Claude Code directly into your Slack workspace. When you mention `@Claude` with a coding task, Claude automatically detects the intent and creates a Claude Code session on the web, allowing you to delegate development work without leaving your team conversations.

14 

15This integration is built on the existing Claude for Slack app but adds intelligent routing to Claude Code on the web for coding-related requests. Each session runs under your own Claude account, using your connected repositories and your plan limits.

16 

17## Use cases

18 

19* **Bug investigation and fixes**: Ask Claude to investigate and fix bugs as soon as they're reported in Slack channels.

20* **Quick code reviews and modifications**: Have Claude implement small features or refactor code based on team feedback.

21* **Collaborative debugging**: When team discussions provide crucial context (e.g., error reproductions or user reports), Claude can use that information to inform its debugging approach.

22* **Parallel task execution**: Kick off coding tasks in Slack while you continue other work, receiving notifications when complete.

23 

24## Prerequisites

25 

26Before using Claude Code in Slack, ensure you have the following:

27 

28| Requirement | Details |

29| :--------------------- | :------------------------------------------------------------------------------------------------ |

30| Claude Plan | Pro, Max, Team, or Enterprise with Claude Code access (premium seats or Chat + Claude Code seats) |

31| Claude Code on the web | Access to [Claude Code on the web](/en/claude-code-on-the-web) must be enabled |

32| GitHub Account | Connected to Claude Code on the web with at least one repository authenticated |

33| Slack Authentication | Your Slack account linked to your Claude account via the Claude app |

34 

35## Setting up Claude Code in Slack

36 

37<Steps>

38 <Step title="Install the Claude App in Slack">

39 A workspace administrator must install the Claude app from the Slack App Marketplace. Visit the [Slack App Marketplace](https://slack.com/marketplace/A08SF47R6P4) and click "Add to Slack" to begin the installation process.

40 </Step>

41 

42 <Step title="Connect your Claude account">

43 After the app is installed, authenticate your individual Claude account:

44 

45 1. Open the Claude app in Slack by clicking on "Claude" in your Apps section

46 2. Navigate to the App Home tab

47 3. Click "Connect" to link your Slack account with your Claude account

48 4. Complete the authentication flow in your browser

49 </Step>

50 

51 <Step title="Configure Claude Code on the web">

52 Ensure your Claude Code on the web is properly configured:

53 

54 * Visit [claude.ai/code](https://claude.ai/code) and sign in with the same account you connected to Slack

55 * Connect your GitHub account if not already connected

56 * Authenticate at least one repository that you want Claude to work with

57 </Step>

58 

59 <Step title="Choose your routing mode">

60 After connecting your accounts, configure how Claude handles your messages in Slack. Navigate to the Claude App Home in Slack to find the **Routing Mode** setting.

61 

62 | Mode | Behavior |

63 | :-------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

64 | **Code only** | Claude routes all @mentions to Claude Code sessions. Best for teams using Claude in Slack exclusively for development tasks. |

65 | **Code + Chat** | Claude analyzes each message and intelligently routes between Claude Code (for coding tasks) and Claude Chat (for writing, analysis, and general questions). Best for teams who want a single @Claude entry point for all types of work. |

66 

67 <Note>

68 In Code + Chat mode, if Claude routes a message to Chat but you wanted a coding session, you can click "Retry as Code" to create a Claude Code session instead. Similarly, if it's routed to Code but you wanted a Chat session, you can choose that option in that thread.

69 </Note>

70 </Step>

71 

72 <Step title="Add Claude to channels">

73 Claude is not automatically added to any channels after installation. To use Claude in a channel, invite it by typing `/invite @Claude` in that channel. Claude can only respond to @mentions in channels where it has been added.

74 </Step>

75</Steps>

76 

77## How it works

78 

79### Automatic detection

80 

81When you mention @Claude in a Slack channel or thread, Claude automatically analyzes your message to determine if it's a coding task. If Claude detects coding intent, it will route your request to Claude Code on the web instead of responding as a regular chat assistant.

82 

83You can also explicitly tell Claude to handle a request as a coding task, even if it doesn't automatically detect it.

84 

85<Note>

86 Claude Code in Slack only works in channels (public or private). It does not work in direct messages (DMs).

87</Note>

88 

89### Context gathering

90 

91**From threads**: When you @mention Claude in a thread, it gathers context from all messages in that thread to understand the full conversation.

92 

93**From channels**: When mentioned directly in a channel, Claude looks at recent channel messages for relevant context.

94 

95This context helps Claude understand the problem, select the appropriate repository, and inform its approach to the task.

96 

97<Warning>

98 When @Claude is invoked in Slack, Claude is given access to the conversation context to better understand your request. Claude may follow directions from other messages in the context, so users should make sure to only use Claude in trusted Slack conversations.

99</Warning>

100 

101### Session flow

102 

1031. **Initiation**: You @mention Claude with a coding request

1042. **Detection**: Claude analyzes your message and detects coding intent

1053. **Session creation**: A new Claude Code session is created on claude.ai/code

1064. **Progress updates**: Claude posts status updates to your Slack thread as work progresses

1075. **Completion**: When finished, Claude @mentions you with a summary and action buttons

1086. **Review**: Click "View Session" to see the full transcript, or "Create PR" to open a pull request

109 

110## User interface elements

111 

112### App Home

113 

114The App Home tab shows your connection status and allows you to connect or disconnect your Claude account from Slack.

115 

116### Message actions

117 

118* **View Session**: Opens the full Claude Code session in your browser where you can see all work performed, continue the session, or make additional requests.

119* **Create PR**: Creates a pull request directly from the session's changes.

120* **Retry as Code**: If Claude initially responds as a chat assistant but you wanted a coding session, click this button to retry the request as a Claude Code task.

121* **Change Repo**: Allows you to select a different repository if Claude chose incorrectly.

122 

123### Repository selection

124 

125Claude automatically selects a repository based on context from your Slack conversation. If multiple repositories could apply, Claude may display a dropdown allowing you to choose the correct one.

126 

127## Access and permissions

128 

129### User-level access

130 

131| Access Type | Requirement |

132| :------------------- | :-------------------------------------------------------------- |

133| Claude Code Sessions | Each user runs sessions under their own Claude account |

134| Usage & Rate Limits | Sessions count against the individual user's plan limits |

135| Repository Access | Users can only access repositories they've personally connected |

136| Session History | Sessions appear in your Claude Code history on claude.ai/code |

137 

138### Workspace-level access

139 

140Slack workspace administrators control whether the Claude app is available in their workspace:

141 

142| Control | Description |

143| :--------------------------- | :---------------------------------------------------------------------------------------------------------------- |

144| App installation | Workspace admins decide whether to install the Claude app from the Slack App Marketplace |

145| Enterprise Grid distribution | For Enterprise Grid organizations, organization admins can control which workspaces have access to the Claude app |

146| App removal | Removing the app from a workspace immediately revokes access for all users in that workspace |

147 

148### Channel-based access control

149 

150Claude is not automatically added to any channels after installation. Users must explicitly invite Claude to channels where they want to use it:

151 

152* **Invite required**: Type `/invite @Claude` in any channel to add Claude to that channel

153* **Channel membership controls access**: Claude can only respond to @mentions in channels where it has been added

154* **Access gating through channels**: Admins can control who uses Claude Code by managing which channels Claude is invited to and who has access to those channels

155* **Private channel support**: Claude works in both public and private channels, giving teams flexibility in controlling visibility

156 

157This channel-based model allows teams to restrict Claude Code usage to specific channels, providing an additional layer of access control beyond workspace-level permissions.

158 

159## What's accessible where

160 

161**In Slack**: You'll see status updates, completion summaries, and action buttons. The full transcript is preserved and always accessible.

162 

163**On the web**: The complete Claude Code session with full conversation history, all code changes, file operations, and the ability to continue the session or create pull requests.

164 

165For Enterprise and Team accounts, sessions created from Claude in Slack are

166automatically visible to the organization. See [Claude Code on the Web sharing](/en/claude-code-on-the-web#share-sessions)

167for more details.

168 

169## Best practices

170 

171### Writing effective requests

172 

173* **Be specific**: Include file names, function names, or error messages when relevant.

174* **Provide context**: Mention the repository or project if it's not clear from the conversation.

175* **Define success**: Explain what "done" looks like—should Claude write tests? Update documentation? Create a PR?

176* **Use threads**: Reply in threads when discussing bugs or features so Claude can gather the full context.

177 

178### When to use Slack vs. web

179 

180**Use Slack when**: Context already exists in a Slack discussion, you want to kick off a task asynchronously, or you're collaborating with teammates who need visibility.

181 

182**Use the web directly when**: You need to upload files, want real-time interaction during development, or are working on longer, more complex tasks.

183 

184## Troubleshooting

185 

186### "Claude Code is not enabled for your account"

187 

188This error means your Claude account has no cloud environment yet, not that an admin needs to enable anything. Sign in at [claude.ai/code](https://claude.ai/code) once with the same account you connected to Slack. The first visit creates your default cloud environment, and the error clears on your next mention. Each user must do this individually.

189 

190### Sessions not starting

191 

1921. Verify your Claude account is connected in the Claude App Home

1932. Check that you have Claude Code on the web access enabled

1943. Ensure you have at least one GitHub repository connected to Claude Code

195 

196### Repository not showing

197 

1981. Connect the repository in Claude Code on the web at [claude.ai/code](https://claude.ai/code)

1992. Verify your GitHub permissions for that repository

2003. Try disconnecting and reconnecting your GitHub account

201 

202### Wrong repository selected

203 

2041. Click the "Change Repo" button to select a different repository

2052. Include the repository name in your request for more accurate selection

206 

207### Authentication errors

208 

2091. Disconnect and reconnect your Claude account in the App Home

2102. Ensure you're signed into the correct Claude account in your browser

2113. Check that your Claude plan includes Claude Code access

212 

213### Session expiration

214 

2151. Sessions remain accessible in your Claude Code history on the web

2162. You can continue or reference past sessions from [claude.ai/code](https://claude.ai/code)

217 

218## Current limitations

219 

220* **GitHub only**: Currently supports repositories on GitHub.

221* **One PR at a time**: Each session can create one pull request.

222* **Rate limits apply**: Sessions use your individual Claude plan's rate limits.

223* **Web access required**: Users must have Claude Code on the web access; those without it will only get standard Claude chat responses.

224 

225## Related resources

226 

227<CardGroup>

228 <Card title="Claude Code on the web" icon="globe" href="/en/claude-code-on-the-web">

229 Learn more about Claude Code on the web

230 </Card>

231 

232 <Card title="Claude for Slack" icon="slack" href="https://claude.com/claude-and-slack">

233 General Claude for Slack documentation

234 </Card>

235 

236 <Card title="Claude Tag" icon="users" href="https://claude.com/docs/claude-tag/overview">

237 Organization-managed @Claude in Slack with admin-configured access

238 </Card>

239 

240 <Card title="Slack App Marketplace" icon="store" href="https://slack.com/marketplace/A08SF47R6P4">

241 Install the Claude app from the Slack Marketplace

242 </Card>

243 

244 <Card title="Claude Help Center" icon="circle-question" href="https://support.claude.com">

245 Get additional support

246 </Card>

247</CardGroup>