- Go to https://api.slack.com/apps
- Click "Create New App" → "From scratch"
- Name: "Coding Agent" (or whatever you prefer)
- Select your workspace
- Click "Create App"
- Go to Settings → Socket Mode in the left sidebar
- Toggle "Enable Socket Mode" → ON
- When prompted, create an app-level token:
- Token Name: "socket-mode"
- Scope:
connections:write - Click "Generate"
- Copy the
xapp-...token → this is yourSLACK_APP_TOKEN
- Go to Features → OAuth & Permissions
- Under "Bot Token Scopes", add:
app_mentions:read— to receive @mentionschat:write— to reply in threadschannels:history— to read thread repliesgroups:history— for private channels (optional)
- Go to Features → Event Subscriptions
- Toggle "Enable Events" → ON
- Under "Subscribe to bot events", add:
app_mention— triggers when someone @mentions the botmessage.channels— to catch thread repliesmessage.groups— to catch thread replies
- Click "Save Changes"
- Go to Settings → Install App
- Click "Install to Workspace"
- Authorize the app
- Copy the "Bot User OAuth Token" (
xoxb-...) → this is yourSLACK_BOT_TOKEN
cp .env.example .env
# Edit .env with your tokens:
# SLACK_BOT_TOKEN=xoxb-...
# SLACK_APP_TOKEN=xapp-...
# ANTHROPIC_API_KEY=sk-ant-...# First, scan your repos
uv run bot-cli scan-repos
# Start the bot
uv run bot-cli runIn any channel where the bot is added, type:
@Coding Agent fix the login tests in PMSS
To add the bot to a channel: go to the channel, click the channel name at top → "Integrations" → "Add apps" → select your bot.