AI Maestro Slack Bridge

January 25, 2026 · View on GitHub

License: MIT Node.js TypeScript Claude Code AI Maestro

Connect your Slack workspace to your Claude Code agents - Supercharge your team's AI coding workflow without additional API costs.


How is this different from Claude for Slack?

FeatureAI Maestro Slack BridgeOfficial Claude for Slack
API UsageNo extra calls - uses your running agentsCreates new API sessions per message
Agent PersistenceConnects to running Claude Code sessionsStarts new sessions each time
Context RetentionAgents keep full project contextFresh context per conversation
HostingYour machines (local/cloud)Anthropic's cloud (claude.com/code)
Claude Code SkillsFull access to custom skills & hooksLimited to web capabilities
Multi-AgentRoute to any agent in your networkSingle Claude instance
Bridge CostFree & open sourceIncluded with Pro/Team/Enterprise

Note: You still need a Claude subscription (Pro/Max) or API credits to run your Claude Code agents. The bridge itself doesn't make additional API calls - it routes messages to agents you're already running.

Bottom line: Official Claude for Slack creates new Claude sessions via API. We connect to your existing Claude Code agents - the ones already running with your codebase loaded, your skills installed, and your context intact.


The Problem

Your team wants to interact with Claude Code agents, but:

  • Not everyone has terminal access - PMs, designers, and stakeholders can't use CLI tools
  • Context switching is expensive - Developers shouldn't leave Slack to query agents
  • Claude Code agents are siloed - Each runs in its own tmux session, invisible to non-developers
  • Extra API calls - Official Slack apps create new sessions, consuming more of your quota
  • No persistent context - Official Slack apps start fresh each time

The Solution

AI Maestro Slack Bridge connects Slack directly to your running Claude Code agents:

Team Member (Slack)  →  "@AIM:backend-api check server health"

                         Your Running Claude Code Agent
                         (with full project context intact)

Team Member (Slack)  ←  "🤖 [backend-api] All services healthy..."

Your Claude Code superpowers, now in Slack:

  • Custom skills and hooks work seamlessly
  • Agents retain full codebase context
  • No additional API calls or costs
  • Route to any agent across your mesh network

Features

FeatureDescription
No Extra API CallsRoutes to running agents - no additional Claude API consumption
Full ContextAgents keep your codebase, skills, and conversation history
Agent RoutingTarget specific agents with @AIM:agent-name syntax
Skills & HooksYour Claude Code skills work through Slack
Cross-HostRoute to agents on any machine in your network
Thread ResponsesConversations stay organized in Slack threads

Architecture

┌─────────────────┐      ┌──────────────────┐      ┌─────────────────┐
│   Slack User    │      │   Slack Bridge   │      │   AI Maestro    │
│                 │      │                  │      │                 │
│  @AIM:backend   │─────▶│  Parse & Route   │─────▶│  Agent Inbox    │
│  "check health" │      │                  │      │                 │
│                 │      │  (Routes only!)  │      │  ┌───────────┐  │
│  ◀─────────────────────│  Poll Response   │◀─────│  │Claude Code│  │
│  🤖 [backend]   │      │                  │      │  │  Agent    │  │
│  "All healthy"  │      │                  │      │  │ (running) │  │
└─────────────────┘      └──────────────────┘      │  └───────────┘  │
                                                   └─────────────────┘

Prerequisites

  • AI Maestro running (v0.18.0+)
  • Claude Code agents running in tmux sessions
  • Node.js 18+
  • Slack workspace with admin access

Quick Start

1. Create a Slack App

  1. Go to api.slack.com/apps
  2. Click Create New AppFrom manifest
  3. Select your workspace
  4. Paste the manifest from slack-app-manifest.yaml
  5. Click Create and install to your workspace

2. Get Your Tokens

From your Slack app settings:

TokenLocationFormat
Bot TokenOAuth & Permissionsxoxb-...
App TokenBasic Information → App-Level Tokens → Generate (scope: connections:write)xapp-...
Signing SecretBasic Information32-char hex

3. Install & Configure

git clone https://github.com/23blocks-OS/aimaestro-slack-bridge.git
cd aimaestro-slack-bridge
npm install
cp .env.example .env

Edit .env:

SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_APP_TOKEN=xapp-your-app-token
SLACK_SIGNING_SECRET=your-signing-secret
AIMAESTRO_API=http://127.0.0.1:23000
DEFAULT_AGENT=your-default-agent

4. Register the Bridge Agent

curl -X POST http://127.0.0.1:23000/api/agents \
  -H 'Content-Type: application/json' \
  -d '{"name": "slack-bot", "description": "Slack bridge bot"}'

5. Run

# Development
npm run dev

# Production
npm start

Usage Examples

DM the Bot

Send a direct message to AI Maestro in Slack.

Mention in Channels

@AI Maestro what's the status of the project?

Route to Specific Claude Code Agents

@AIM:backend-api check the server health
@AIM:frontend-dev review the CSS changes
@AIM:data-analyst run the daily metrics report

Configuration

VariableRequiredDefaultDescription
SLACK_BOT_TOKENYes-Bot User OAuth Token
SLACK_APP_TOKENYes-App-Level Token
SLACK_SIGNING_SECRETYes-Signing secret
AIMAESTRO_APINohttp://127.0.0.1:23000AI Maestro API URL
DEFAULT_AGENTNo-Default agent for messages
DEBUGNofalseEnable debug logging

Production Deployment

npm install -g pm2
pm2 start npm --name "slack-bridge" -- start
pm2 save
pm2 startup

Using systemd

# See docs for full systemd configuration
sudo systemctl enable aimaestro-slack-bridge
sudo systemctl start aimaestro-slack-bridge

Why Use This Over Official Claude for Slack?

  1. Cost: Zero additional API costs - your agents are already running
  2. Context: Agents keep full project context, skills, and hooks
  3. Control: Self-hosted, your data stays on your infrastructure
  4. Flexibility: Route to any agent, use custom skills, integrate with your workflow
  5. Multi-Agent: Your whole team of specialized agents, accessible from Slack

Roadmap

  • Slack ↔ Claude Code agent messaging
  • DM and @mention support
  • Thread-based responses
  • Agent routing (@AIM:agent-name)
  • Cross-host agent discovery
  • Real-time agent notifications
  • Multi-workspace support
  • File/image attachments
  • Slash commands (/aim)
  • Reaction-based commands

See BACKLOG.md for detailed plans.

Security

See SECURITY.md for security policy and reporting vulnerabilities.

Contributing

Contributions welcome! Please read our contributing guidelines before submitting PRs.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Keywords

Claude Code, Slack integration, AI coding assistant, Claude Code skills, Claude Code hooks, Anthropic Claude, coding agents, AI pair programming, developer tools, team collaboration, Claude CLI, tmux, AI Maestro

Credits

Based on claude-code-slack-bot by Marcel Pociot.

License

MIT - see LICENSE


Made with ❤️ by 23blocks
Supercharge your Claude Code workflow with Slack integration