Slack is the most full-featured messaging channel. Every DM thread is an isolated session with streaming replies, interactive Block Kit approval buttons, file/image/voice handling, and bidirectional sync with the dashboard.
Slack connects outbound via Socket Mode — no public URL, no inbound webhooks. It works from any machine that can reach slack.com.
- Open Settings → Messaging Channels → Slack in the dashboard
- Click Connect — the panel shows a one-click URL to create the Slack app with all scopes pre-filled
- Follow the guided steps: create the app, generate the App Token (Socket Mode → toggle OFF then ON →
connections:write→ Generate), install to workspace, copy the Bot Token - Paste both tokens and your Slack Member ID into the dashboard panel
- Click Save — the gateway restarts and connects
The dashboard validates tokens immediately and shows a green status badge when connected.
kirocrew manifest --url # opens Slack's "Create New App" page with scopes pre-filled kirocrew setup # prompts for App Token, Bot Token, and Member ID kirocrew doctor # verify kirocrew restart
Or write tokens directly to ~/.kiro/crew/.env:
SLACK_APP_TOKEN=xapp-… SLACK_BOT_TOKEN=xoxb-… KIROCREW_OWNER_ID=U0…
The Slack gateway is locked to KIROCREW_OWNER_ID. Only your Slack Member ID can interact with the bot. Non-owner messages are silently dropped.
When a tool call needs approval, Block Kit buttons appear inline:
- Approve / Reject — racing with the dashboard (first wins)
- Trust this command — session-scoped, exact match
- Trust this tool — session-scoped, any args
- YOLO — global 30-min auto-approve
| Command | Purpose |
|---|---|
/kirocrew dashboard [duration] | Presigned dashboard link (default 1h, max 6h) |
/kirocrew yolo | Toggle auto-approve |
/kirocrew agent [name] | Show/switch active agent |
/kirocrew channels | Channel management modal |
/kirocrew sessions | List sessions with resume buttons |
/kirocrew help | List all sub-commands |
The command name is configurable via slack.command (default: kirocrew).
| Command | Purpose |
|---|---|
!dashboard [duration] | Presigned dashboard link |
!yolo on|off | Toggle auto-approve |
!agent <name>|off | Switch/clear agent |
!ta <agent>|off | Thread-only agent override |
!stop | Interrupt current turn |
!compact | Compact session context |
| Command | Purpose |
|---|---|
status | Runtime stats |
spawn <task> / bg <task> | Subagent (blocking / fire-and-forget) |
spawn list | List subagents |
cron list / cron remove <id> | Manage crons |
sessions | List recent sessions |
run <path> | Run a task spec |
Beyond DMs, Kiro Crew can join group channels in three modes:
| Mode | Behavior |
|---|---|
mention | Respond only when @-mentioned; 50-msg rolling context (5-min TTL, in-memory) |
observe | Silent unless @-mentioned; 200-msg context (1-week TTL, disk-persisted) |
off | Ignore the channel |
Only messages from authorized users are recorded in observe mode.
The dashboard's 💬 button links a chat session to a Slack thread:
- A new thread appears with a summary of recent messages
- Messages sync bidirectionally in real time
- The
sessionscommand lists recent sessions with ▶️ Resume buttons
Turn on Settings → Messaging Channels → Slack → Connect new sessions to Slack automatically (slack.auto_link_sessions, off by default) to link new sessions without pressing the button. When Slack is connected, a persistent session you start in the dashboard gets a thread in your direct message with the bot after its first ordinary message, and the turn that message starts is mirrored there.
The automatic link covers only that case:
- A session whose first input runs as a slash command is never linked automatically.
- Sessions that start in Slack or another channel, sessions that run on a remote crew, incognito and temporary sessions, sessions created by an agent, a scheduled job, or an app, sessions that already have a thread, and sessions that existed before you turned the setting on are not linked.
- A failed attempt is not retried. Link the session with the 💬 button instead.
- Kiro Crew holds the first send for up to five seconds while the thread is created. If Slack takes longer, the thread is created afterward and receives only the turns that start after it exists; the first turn is not copied into it.
- A session linked this way stays where it is in the sidebar. Only conversations that start in Slack are filed as Slack sessions.
Phase-aware emoji reactions cover queued, thinking, coding, browsing, tool, done, and error. Customize:
{ "slack": { "reactions": { "done": "sparkle", "thinking": "brain" }, "reactions_enabled": true } }
Set a phase to null to suppress it. Set reactions_enabled: false to disable all.
- Images enter the session through the vision channel
- Text and supported documents are extracted within their type-specific limits
- Voice memos are transcribed automatically
- Archives, video, SVG, and otherwise-unrecognized files are downloaded as local files for the agent, up to the applicable opaque-file and Slack limits
A message can carry at most 10 attachments through the shared ingestion layer. A rejected file is reported rather than silently omitted.
The update_message tool replaces the text or Block Kit blocks of a Slack message that the Kiro Crew bot itself authored. Provide the channel ID and timestamp from the original send_message call, plus the replacement text or blocks.
The edit works in the owner's DM or in a channel listed in slack.tracking_channels. It cannot edit a message authored by any other user or bot. Replacement is whole-field: supplying only text removes existing blocks, and supplying only blocks removes existing text unless fallback text is included.
Block Kit view with live system status, cron jobs, active sessions, and recent lessons.
Credentials in ~/.kiro/crew/.env:
SLACK_APP_TOKEN=xapp-… SLACK_BOT_TOKEN=xoxb-… KIROCREW_OWNER_ID=U0…
Settings in config.json:
| Key | Default | Purpose |
|---|---|---|
slack.command | "kirocrew" | Slash command name |
slack.tracking_channels | [] | Channel IDs the bot follows; managed with /kirocrew #channel and the channels modal |
slack.auto_link_sessions | false | Open a Slack thread for each new persistent dashboard session after its first message |
slack.dm_single_session | false | Treat each 1:1 DM as one continuous session instead of one session per top-level message (threaded replies still answer in their thread) |
slack.show_thinking | true | Post the model's thinking as a thread reply; turn off for shorter threads |
slack.reactions_enabled | true | Phase emoji reactions |
slack.reactions | (defaults) | Per-phase overrides |
slack.sessions_limit | 10 | Max sessions listed by the sessions keyword and /kirocrew sessions |
slack.home_tab_sessions_per_kind | 5 | Max sessions per category (main chat / task runner) in the Home Tab |
slack.session_folder | "" | Sidebar folder for sessions that start on Slack; created on save, marked with the Slack brand |
slack.use_tunnel_url | false | Use the tunnel URL in dashboard links posted to Slack when a tunnel is active |
slack.forward_to_agent_callback | "" | callback_id of a Forward to Agent message shortcut in your app manifest; empty disables it |
slack.trusted_bot_ids | [] | Bot IDs whose messages are not dropped by the bot filter (multi-gateway mesh); the gateway's own bot is never trusted |
slack.trusted_bot_turn_limit | 5 | Consecutive turns a thread may run on trusted-bot messages before a human message is required |
slack.allowed_enterprise_ids | [] | Enterprise Grid allowlist (empty = all) |
| Problem | Fix |
|---|---|
| Install App button greyed out | Use Features → OAuth & Permissions → Install to Workspace |
| No events received | Verify Socket Mode ON, events subscribed, Home Tab enabled, reinstall |
missing_scope error | Add scope, reinstall, re-run kirocrew setup |
| Bot doesn't respond | Check kirocrew doctor; confirm gateway running |
| Dashboard shows 403 | Token expired — !dashboard for a fresh link |
Slack