← Back to Leaderboard
Canneschuth

anneschuth/claude-threads

Self-hosted Claude Code bridge for collaborative Slack and Mattermost threads

Engineering Health (Methodology)
A+ · 90/100
Maintenance Activity
● Updated 2d ago
Latest Release
v1.42.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption15/25
Release Cadence20/20
License Clarity20/20
Self-HostedCLIMCP
Total Stars
★ 48
24h Growth
+0
7d Growth
+0
Forks
18

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

anneschuth/claude-threads Star History (2025-12-26 - 2026-12-03) ALL-TIME STAR HISTORY (2025-12 – 2026-12) +47 in 342d · avg +0/day 52 26 0 2025-12-26: ★ 12026-01-17: ★ 52026-02-07: ★ 82026-02-28: ★ 92026-03-21: ★ 112026-04-11: ★ 162026-05-02: ★ 212026-05-23: ★ 232026-06-13: ★ 262026-07-04: ★ 292026-07-25: ★ 362026-08-15: ★ 382026-09-05: ★ 392026-09-26: ★ 412026-10-17: ★ 432026-11-07: ★ 462026-12-03: ★ 48 ★ 48 2025-12 2026-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Claude Threads is a self-hosted TypeScript bridge between Slack or Mattermost and the Claude Code CLI. A bot mention starts a real Claude Code session in a working directory on the host. The chat thread is the control surface: it receives responses, tool calls, diffs, task lists, and approval prompts, and sends replies and reactions back into the session. Concurrent threads can have distinct working directories, and sessions resume automatically after a bot restart.

The package exposes claude-threads, claude-threads-mcp, and claude-threads-daemon. Its manifest includes cross-spawn, ws, ink, and @modelcontextprotocol/sdk. Each session runs its own MCP server for chat-specific actions, while Claude Code can still use the host’s existing MCP servers and plugins. The result is a chat interface to a working development environment, not a separate coding agent or model runtime.

Key Capabilities & Differentiators

The bot can connect multiple Slack and Mattermost workspaces concurrently. It works with a Claude subscription or API key; an optional account pool assigns new sessions to the account with the most subscription headroom and cools down rate-limited accounts. Session commands support Git worktree switching and collaborator invitations with Co-Authored-By: attribution. Channel-scoped notes, facts distilled at session end, and Claude’s per-repository auto-memory provide continuity beyond a single thread.

Each session exposes nine chat MCP tools. send_file validates paths against the working directory; permalink reads and history are scoped to the bot’s channel and public channels. History is capped at 100 messages, and Mattermost-only search returns up to 25 results. Direct messages require thread approval and are capped at three per recipient per session. For Claude tool use, default asks the thread, auto delegates low-risk approvals to Claude’s classifier, and bypass skips prompts.

Trade-offs & Limitations

The decision turns on where Claude Code needs to run. Claude Code in Slack, Codex in Slack, and Cursor in Slack run sessions in vendor clouds; Claude Threads keeps CLI execution beside your checkout and tools, and adds Mattermost as a chat option. In return, your team owns the bot host, credentials, chat permissions, and connection recovery. Apache-2.0 covers the bot, not the Claude service, and even a self-hosted Mattermost deployment does not make Claude inference offline.

Treat the bot as a remote entry point to a development machine. An empty allowlist lets anyone in the channel start a session, and bypass removes tool prompts. Use an explicit allowlist, a least-privilege host account, and default approvals for shared deployments. A Git worktree separates branch changes; it is not a filesystem sandbox. Chat MCP guardrails constrain the chat tools, not the permissions of the underlying Claude Code process or other locally configured tools.

Hardware & Deployment Guide

Run on Bun 1.2.21+ or Node 22+, with the Claude Code CLI and a Claude subscription or API key. Install globally with bun install -g claude-threads or npm install -g claude-threads, then run claude-threads from the project directory to configure the bot and test its chat credentials. Size the host for concurrent CLI sessions and their builds, tests, and worktrees rather than for local model inference; no GPU or VRAM requirement is specified.

The bot retries dropped platform connections with exponential backoff and, by default, resets the retry cycle after a minute if attempts are exhausted. Under systemd or another supervisor, reconnectPolicy: exit makes it exit nonzero so the supervisor can restart it. v1.41.1 updated security-sensitive dependencies including Hono and @hono/node-server; v1.41.2 consolidated Socket Mode connections for entries on the same Slack app; v1.42.0 fixed event reception after re-enabling a platform in the terminal UI.

Execution: One Claude Code session per chat thread, with per-session working directories and automatic resumption after a bot restart.
Visibility: Responses, tool calls, diffs, and a persistent task list stream into the originating thread.
MCP scope: Nine chat tools per session; history is capped at 100 messages, and Mattermost search at 25 results.
Approvals: Emoji reactions handle tool approvals; direct messages require thread approval and are limited to three per recipient per session.
Collaboration: Session owners can invite teammates, and Git worktrees separate branch changes from the main checkout.
Connectivity: Slack and Mattermost can run concurrently; Slack entries configured on one app share a Socket Mode connection as of v1.41.2.
Best For

Engineering teams that want to collaborate on Claude Code sessions from Slack or Mattermost while retaining their local checkout, toolchain, and MCP setup.

Skip If

You require offline inference, hard filesystem isolation between sessions, or a managed service with no bot host to operate.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedCLIMCP
# Install (pick one)
bun install -g claude-threads   # with Bun (recommended)
npm install -g claude-threads   # with npm

# Run the setup wizard
cd /your/project
claude-threads

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
claude-threads ★48—TypeScriptApache-2.0Self-hosted Claude Code bridge for collaborative Slack and Mattermost threads
cc-switch159.1k+1.7kRustMITTauri desktop manager for AI coding providers, local routing, and MCP config
herdr54.1k+871RustApache-2.0Rust terminal multiplexer for persistent, multi-machine coding-agent workspaces
claude-code-router38.5k+101TypeScriptMITLocal model gateway for routing coding agents across providers

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/anneschuth/claude-threads.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

anneschuth/claude-threads Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about claude-threads

How do chat messages reach Claude Code, and where do the tools run?

A bot mention starts a Claude Code process in a working directory on the bot host. Output, diffs, tasks, and permission prompts stream into the originating Slack or Mattermost thread. Each session has its own MCP server for chat actions, separate from any MCP servers already configured in Claude Code.

Does the bot need a GPU, and how should I size the host?

No local GPU or VRAM requirement is specified. The TypeScript bot and Claude Code CLI run on your host, while inference uses the configured Claude subscription or API credentials. Size the host for concurrent sessions and the work they trigger: builds and tests can dominate CPU and memory, and checkouts and worktrees add disk usage.

Can we self-host it at work, and what compliance checks remain?

Apache-2.0 permits commercial use of the bot subject to its license terms. Self-hosting controls where the bot and CLI execute; it does not make Claude inference offline or keep all session data on the host. Review Claude usage terms, chat retention and access policies, and whether code or tool output may be posted to the configured channels.

When should we choose it over a managed Slack coding integration?

Choose Claude Threads when sessions need a local checkout, existing MCP servers or plugins, or Mattermost. The listed Claude Code in Slack, Codex in Slack, and Cursor in Slack integrations run sessions in their providers’ clouds. A managed integration is a better fit if you want Slack-based workflows without maintaining a bot host or its local toolchain.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining anneschuth/claude-threads? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature anneschuth/claude-threads on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare