Package Exports
- claude-threads
- claude-threads/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (claude-threads) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Claude Threads
✴ ▄█▀ ███ ✴ claude-threads
✴ █▀ █ ✴ Mattermost & Slack × Claude Code
✴ ▀█▄ █ ✴
Bring Claude Code to your team. Run Claude Code on your machine, share it live in Mattermost or Slack. Colleagues can watch, collaborate, and run their own sessions—all from chat.
Think of it as screen-sharing for AI pair programming, but everyone can type.
Features
- Real-time streaming - Claude's responses stream live to chat
- Multi-platform - Connect to multiple Mattermost and Slack workspaces
- Concurrent sessions - Each thread gets its own Claude session
- Session persistence - Sessions survive bot restarts
- Collaboration - Invite others to participate in your session
- Interactive permissions - Approve Claude's actions via emoji reactions
- Git worktrees - Isolate changes in separate branches
- Image attachments - Attach images for Claude to analyze
- Chrome automation - Control Chrome browser for web tasks
Quick Start
Install & Run
# Install
bun install -g claude-threads
# Run the setup wizard
cd /your/project
claude-threadsThe interactive setup wizard will guide you through everything:
- Configure Claude Code CLI (if needed)
- Set up your Mattermost or Slack bot
- Test credentials and permissions
- Get you up and running in minutes
Need help with platform setup? See the Setup Guide for Mattermost or Slack bot creation.
Prerequisites
- Bun 1.2.21+ - Install Bun
- Claude Code CLI working - test with
claude --version(needs API key or subscription)
Use
Mention the bot in your chat:
@claude help me fix the bug in src/auth.tsSession Commands
Type !help in any session thread:
| Command | Description |
|---|---|
!help |
Show available commands |
!context |
Show context usage |
!cost |
Show token usage and cost |
!compact |
Compress context to free up space |
!cd <path> |
Change working directory |
!worktree <branch> |
Create and switch to a git worktree |
!invite @user |
Invite a user to this session |
!kick @user |
Remove an invited user |
!escape |
Interrupt current task |
!stop |
Stop this session |
Interactive Controls
Permission approval - When Claude wants to execute a tool:
- 👍 Allow this action
- ✅ Allow all future actions
- 👎 Deny
Plan approval - When Claude creates a plan:
- 👍 Approve and start
- 👎 Request changes
Questions - React with 1️⃣ 2️⃣ 3️⃣ 4️⃣ to answer multiple choice
Cancel session - Type !stop or react with ❌
Collaboration
!invite @colleague # Let them participate
!kick @colleague # Remove accessUnauthorized users can request message approval from the session owner.
Git Worktrees
Keep your main branch clean while Claude works on features:
@claude on branch feature/add-auth implement user authenticationOr mid-session: !worktree feature/add-auth
Access Control
Restrict who can use the bot during setup (or reconfigure later with claude-threads --setup).
Leave the allowed users list empty to let anyone in the channel use the bot (be careful!)
Documentation
- Setup Guide - Step-by-step setup for Mattermost and Slack
- Configuration Reference - Technical details and architecture
Updates
bun install -g claude-threadsThe bot checks for updates automatically and notifies you when new versions are available.
License
Apache-2.0