Claude Code Slack
A legacy Slack interface for a local Claude Code workspace.
Legacy resource. Built specifically for Claude Code. Review compatibility before setting it up.
Claude Code Slack lets your team talk to Claude Code directly from Slack. Claude runs locally on your machine. Check the repository’s requirements and your current Claude plan before use. Your codebase, your CLAUDE.md, your MCP tools - all accessible through a Slack message.
You (Slack): @Claude What files are in the src directory?
Bot (Slack): Found 12 files in src/: index.ts, app.ts, config.ts...
Mention @YourBot in any channel, DM it directly, or use the optional /claude slash command. Reply in threads and it remembers the full conversation.
The architecture
Two halves, deliberately separated:
- Worker (Railway, or any host) - a FastAPI webhook receiver that verifies Slack signatures, answers quick commands instantly, and writes AI tasks as JSON files into a GitHub
tasks/directory. - Daemon (your Mac, always on) - polls that GitHub directory every few seconds, picks up task files, runs
claude -p "<prompt>"locally, posts the result back to Slack, and cleans up.
Why this shape:
- The Claude Code CLI executes on your local machine.
- Claude gets full access to your codebase, CLAUDE.md, and MCP tools.
- The worker routes requests. Prompts, task details, and responses pass through external services, including Slack and GitHub.
- Thread context is preserved: the daemon fetches Slack thread history before answering.
Your repos stay separate
The daemon installs to its own directory, and a WORKSPACE_DIR setting points at wherever your project clone lives. Claude Code runs inside that workspace, so it automatically picks up the project’s CLAUDE.md - which means every Slack command inherits your project conventions. Ask @Bot how do I add a new API route? and Claude already knows your stack, your test layout, and your rules.
Features
- Slash commands:
/claude <anything>from any channel - @mentions:
@YourBot summarize the READMEin channels - DMs: private conversations with the bot
- Thread context: replies see prior messages in the thread