Claude Almanac
Integrations

Claude Code in Slack

Delegate coding tasks from Slack by mentioning @Claude, which creates a Claude Code session on the web.

Claude Code in Slack

Delegate coding tasks directly from your Slack workspace. When you mention @Claude with a coding task, Claude detects the intent and creates a Claude Code session on the web.

Overview

Claude Code in Slack is built on the Claude for Slack app but adds intelligent routing to Claude Code on the web for coding-related requests. Instead of responding as a chat assistant, Claude creates a full coding session that can read files, run commands, and create pull requests.

Prerequisites:

RequirementDetails
Claude PlanPro, Max, Team, or Enterprise with Claude Code access
Claude Code on the webMust be enabled for your account
GitHub AccountConnected to Claude Code on the web with authenticated repos
Slack AuthenticationSlack account linked to Claude account via the Claude app

Setup

1. Install the Claude App

A workspace administrator installs the Claude app from the Slack App Marketplace.

2. Connect Your Claude Account

  1. Open the Claude app in Slack (Apps section)
  2. Navigate to the App Home tab
  3. Click "Connect" to link accounts
  4. Complete authentication in your browser

3. Configure Claude Code on the Web

  • Visit claude.ai/code
  • Connect your GitHub account
  • Authenticate at least one repository

4. Choose Routing Mode

Configure in the Claude App Home in Slack:

ModeBehavior
Code onlyAll @mentions route to Claude Code sessions
Code + ChatClaude analyzes each message and routes to Code or Chat as appropriate

In Code + Chat mode, you can click "Retry as Code" if Claude routes to Chat incorrectly (and vice versa).

5. Add Claude to Channels

Claude is not automatically added to any channels. Invite it with:

/invite @Claude

Claude only responds to @mentions in channels where it has been added. It works in both public and private channels but does not work in direct messages (DMs).

How It Works

Session Flow

  1. Initiation: @mention Claude with a coding request
  2. Detection: Claude analyzes intent and detects coding task
  3. Session creation: New Claude Code session created on claude.ai/code
  4. Progress updates: Status updates posted to your Slack thread
  5. Completion: Claude @mentions you with a summary and action buttons
  6. Review: Click "View Session" for the full transcript or "Create PR" for a pull request

Context Gathering

  • In threads: Claude gathers context from all messages in the thread
  • In channels: Claude looks at recent channel messages for context

Claude may follow directions from other messages in the context. Only use Claude in trusted Slack conversations.

Message Actions

ActionDescription
View SessionOpens full session in browser
Create PRCreates pull request from session changes
Retry as CodeRe-routes a Chat response as a Claude Code task
Change RepoSelect a different repository if Claude chose wrong

Repository Selection

Claude automatically selects a repository based on conversation context. If multiple repositories could apply, a dropdown lets you choose.

Access and Permissions

User-Level

Access TypeDetails
SessionsRun under your own Claude account
Rate LimitsCount against your individual plan limits
Repository AccessOnly repos you have personally connected
Session HistoryAppear in your Claude Code history on claude.ai/code

Workspace-Level

ControlDescription
App installationWorkspace admins decide whether to install
Enterprise GridOrganization admins control which workspaces have access
App removalRemoves access for all users in the workspace immediately

Channel-Based Access Control

  • Claude must be explicitly invited to each channel
  • Admins can control usage by managing which channels Claude is invited to
  • Private channels provide additional visibility control

Best Practices

Writing Effective Requests

  • Be specific: Include file names, function names, or error messages
  • Provide context: Mention the repository if not obvious from conversation
  • Define success: Specify if Claude should write tests, update docs, or create a PR
  • Use threads: Reply in threads so Claude gathers the full discussion context

When to Use Slack vs Web

Use Slack whenUse the web when
Context already exists in a Slack discussionYou need to upload files
Kicking off a task asynchronouslyYou want real-time interaction during development
Teammates need visibility into the taskWorking on longer, more complex tasks

Troubleshooting

ProblemSolution
Sessions not startingVerify account connection in App Home, check web access, ensure repos connected
Repository not showingConnect repo at claude.ai/code, verify GitHub permissions
Wrong repository selectedClick "Change Repo" or include repo name in your request
Authentication errorsDisconnect and reconnect in App Home, verify correct account

Current Limitations

  • GitHub only: No support for GitLab, Bitbucket, or other providers
  • One PR at a time: Each session creates one pull request
  • Rate limits apply: Sessions use your individual plan limits
  • Web access required: Users without Claude Code on the web get standard chat responses
  • Channels only: Does not work in direct messages (DMs)

Sources

On this page