claude-threads
Open-source bot that runs Claude Code on your machine and streams sessions into Slack or Mattermost threads where teammates can steer them.
At a Glance
About claude-threads
claude-threads is an open-source Apache-2.0 project from Axolotl Systems that connects Claude Code to Slack and Mattermost. A bot runs on your own machine next to your checkout, spawns real Claude Code sessions, and streams output, diffs, task lists and permission prompts into chat threads. The latest listed release is v1.42.0.
What It Is
claude-threads is a ChatOps bridge for Claude Code. You mention the bot in a channel, for example asking it to fix a flaky test, and it starts a Claude Code session in a working directory on your machine. Teammates follow along in the thread and can reply or react with emoji to steer the session. It works with a Claude subscription or API key you already have.
How Sessions Work in Chat
Each thread maps to one session, which resumes automatically after a bot restart. Permission prompts appear as emoji reactions, with three modes: default, auto and bypass, switchable mid-session. Invited collaborators are credited with Co-Authored-By trailers on commits, and git worktrees can isolate each session's changes on a branch. Files up to 100 MB can be attached, and images and PDFs are read multimodally.
Each session also runs its own MCP server with nine chat tools, such as sending files, reading threads, reacting, editing its own posts and DMing members. Each tool has a documented guardrail, and nothing reaches beyond channels the bot can already see.
Memory, Routines and Watches
Channels can keep shared notes with !remember, and ended sessions distill durable facts. !routine schedules recurring work that posts as new threads, and !watch fires a session in the triggering thread when a matching message appears. An optional account pool routes each new session to the Claude subscription with the most headroom.
Setup Path
Install with Bun or npm, run claude-threads in your project, and a setup wizard walks through connecting Slack or Mattermost. It requires Bun 1.2.21+ or Node and the Claude Code CLI, and runs on macOS, Linux and Windows. The project says sessions stay on hardware you control, which suits self-hosted Mattermost.
Community Discussions
Be the first to start a conversation about claude-threads
Share your experience with claude-threads, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache-2.0)
Self-hosted claude-threads core under the Apache-2.0 license; runs on your own machine using your existing Claude subscription or API key (external cost).
- Apache-2.0 licensed core
- Live streaming of Claude Code sessions into Slack and Mattermost threads
- Emoji permission prompts with three permission modes
- Multiple workspaces at once
- Routines and watches
Capabilities
Key Features
- Live streaming of output, diffs and sticky task list into threads
- Slack and Mattermost support with multiple workspaces
- One session per thread with automatic resume after restart
- Emoji-based permission approval with default, auto and bypass modes
- Invite collaborators with Co-Authored-By commit attribution
- Nine MCP chat tools with per-tool guardrails
- Git worktree isolation per session
- Shared channel memory via !remember
- Scheduled routines and event-triggered watches
- File attachments up to 100 MB with multimodal image and PDF reading
- Optional multi-account pool routing
- Quiet mode and verbosity controls
- Auto-update from npm
