Claude Code Slack Bot
Description
This is a TypeScript-based Slack bot that integrates with the Claude Code SDK to provide AI-powered coding assistance directly within Slack workspaces.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Claude Code Slack Bot
This is a TypeScript-based Slack bot that integrates with the Claude Code SDK to provide AI-powered coding assistance directly within Slack workspaces.
Project Overview
The bot allows users to interact with Claude Code through Slack, providing real-time coding assistance, file analysis, code reviews, and project management capabilities. It supports both direct messages and channel conversations, with sophisticated working directory management and task tracking.
Architecture
Core Components
src/index.ts- Application entry point and initializationsrc/config.ts- Environment configuration and validationsrc/slack-handler.ts- Main Slack event handling and message processingsrc/claude-handler.ts- Claude Code SDK integration and session managementsrc/working-directory-manager.ts- Working directory configuration and resolutionsrc/file-handler.ts- File upload processing and content embeddingsrc/todo-manager.ts- Task list management and progress trackingsrc/mcp-manager.ts- MCP server configuration and managementsrc/logger.ts- Structured logging utilitysrc/types.ts- TypeScript type definitions
Key Features
1. Working Directory Management
- Base Directory Support: Configure a base directory (e.g.,
/Users/username/Code/) to use short project names - Channel Defaults: Each channel gets a default working directory when the bot is first added
- Thread Overrides: Individual threads can override the channel default by mentioning the bot
- Hierarchy: Thread-specific > Channel default > DM-specific
- Smart Resolution: Supports both relative paths (
cwd project-name) and absolute paths
2. Real-Time Task Tracking
- Todo Lists: Displays Claude's planning process as formatted task lists in Slack
- Progress Updates: Updates task status in real-time as Claude works
- Priority Indicators: Visual priority levels (🔴 High, 🟡 Medium, 🟢 Low)
- Status Reactions: Emoji reactions on original messages show overall progress
- Live Updates: Single message updates instead of spam
3. File Upload Support
- Multiple Formats: Images (JPG, PNG, GIF, WebP), text files, code files, documents
- Content Embedding: Text files are embedded directly in prompts
- Image Analysis: Images are saved for Claude to analyze using the Read tool
- Size Limits: 50MB file size limit with automatic cleanup
- Security: Secure download using Slack bot token authentication
4. Advanced Message Handling
- Streaming Responses: Real-time message updates as Claude generates responses
- Tool Formatting: Rich formatting for file edits, bash commands, and other tool usage
- Status Indicators: Clear visual feedback (🤔 Thinking, ⚙️ Working, ✅ Completed)
- Error Handling: Graceful error recovery with informative messages
- Session Management: Conversation context maintained
Related Agents
Opencode
(60.8k ⭐) - The open source AI coding agent.
Data & AI Gemini CLI
(90.5k ⭐) - An open-source AI agent that brings the power of Gemini directly into your terminal.
Data & AI Chatgpt On Wechat
CowAgent是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、拥有长期记忆并不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页
Data & AI Claude Mem
(13.1k ⭐) - A Claude Code plugin that automatically captures everything Claude does during your coding session
Data & AI Read research for Nyquist validation data
cat "$phase_dir"/*-RESEARCH.md 2>/dev/null node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" roadmap get-ph
Data & AI Multi Agent Review
| A sophisticated AI-powered code review system designed to provide comprehensive, multi-perspective a... | -
Data & AI