Interact with Claude Code sessions from Slack, Discord, and Telegram.
- CLI:
src/cli/- Commands likeafk-code run,afk-code slack,afk-code discord,afk-code telegram - Slack:
src/slack/- Slack bot integration - Discord:
src/discord/- Discord bot integration - Telegram:
src/telegram/- Telegram bot integration via grammY
# Slack setup (first time)
afk-code slack setup
# Start the Slack bot
afk-code slack
# Discord setup (first time)
afk-code discord setup
# Start the Discord bot
afk-code discord
# Telegram setup (first time)
afk-code telegram setup
# Start the Telegram bot
afk-code telegram
# Start a monitored Claude Code session (in another terminal)
afk-code claudesrc/cli/index.ts- CLI entry pointsrc/cli/run.ts- Session runner (PTY + JSONL watching)src/cli/slack.ts- Slack setup and run commandssrc/cli/discord.ts- Discord setup and run commandssrc/cli/telegram.ts- Telegram setup and run commandssrc/slack/session-manager.ts- JSONL watching and session tracking (shared)src/slack/slack-app.ts- Slack Bolt app and event handlerssrc/discord/discord-app.ts- Discord.js app and event handlerssrc/telegram/telegram-app.ts- Telegram grammY app and event handlersslack-manifest.json- Slack app manifest for easy setup