builtin Go (infra/connectors/slack) · Socket Mode WebSocket + Web API

Connect Local Claude Code, Codex & Any Agent to Slack via Socket Mode

TagTag connects your local CLI agents to Slack using Socket Mode (xapp- + xoxb- tokens), keeping all traffic outbound from your machine with zero public webhook endpoint. It handles DMs, channel @mentions, thread_ts replies, image uploads, and automatic HTTP 429 rate-limit backoff.

Transport
Socket Mode WebSocket + Web API
Instance Env Keys
SLACK_APP_TOKEN, SLACK_BOT_TOKEN
LLM Isolation
SLACK_ stripped from LLM

Multi-Bot group chats

Drop multiple Bots into any Slack channel (#eng, #incidents, #product). Each Bot replies inside its Slack thread_ts so parallel tasks never collide, and owners can run @Bot /model use ... --effort high or @Bot /status without spending LLM tokens.

#eng-backend · Slack Channel
EngineerScoped to thread_ts

@CodexBot Reproduce the race test failure in infra/connectors and show the diff

OwnerShows elapsed time, harness & model

@CodexBot /trace

Setup & config

Generate manifest →
  1. 1. Create a Slack App Using Our Free Manifest Generator

    Generate a ready-to-paste YAML/JSON Slack Manifest on tagtag.im/tools/im-bot-setup with Socket Mode enabled, app_mentions:read, im:history, chat:write, and files:write.

  2. 2. Generate App-Level Token (xapp-) & Bot Token (xoxb-)

    Create an App-Level Token with connections:write scope for Socket Mode, install the app to your workspace, and copy the Bot User OAuth Token.

  3. 3. Add to connectors.json & Run Zero-Token Health Check

    Store tokens in your local env file, declare SLACK_APP_TOKEN and SLACK_BOT_TOKEN in env_keys, and verify with tagtag connector check.

connectors.json
{
  "id": "slack:eng",
  "type": "slack",
  "enabled": true,
  "bot_id": "eng-bot",
  "access": "send",
  "env_keys": ["SLACK_APP_TOKEN", "SLACK_BOT_TOKEN"],
  "config": {}
}

Connector recipes

Linear + GitHub + Sentry Triage into #eng

Poll Linear issues, GitHub PRs, and Sentry errors locally, correlate them with your local git repo, and post clean summaries to Slack.

Gmail Draft Assistant Reporting in Slack DM

Set Gmail to access: "draft" and default_target: "slack:eng" so the Bot drafts replies safely and pings you in Slack to review before sending.

Verified pitfalls

Rate limit bursts when posting multi-part logs

TagTag’s built-in Slack connector respects Retry-After headers with automatic 429 backoff.

Forgetting to invite the Bot into private channels

Run /invite @YourBot inside the channel and verify app_mentions:read + groups:history scopes.

FAQ

Can I swap between Claude Code and Codex inside the same Slack channel?

Yes. The bound owner can run @Bot /model harness codex (or claude / agy) directly in Slack. Already-running tasks finish on their original engine, and new tasks immediately use the updated harness.

See how 7 zero-token slash commands control harnesses in chatSlash commands
Local agents
IM platforms