Skip to main content

Slack

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.

Setup

  1. Open Settings → Messaging Channels → Slack in the dashboard
  2. Click Connect — the panel shows a one-click URL to create the Slack app with all scopes pre-filled
  3. 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
  4. Paste both tokens and your Slack Member ID into the dashboard panel
  5. Click Save — the gateway restarts and connects

The dashboard validates tokens immediately and shows a green status badge when connected.

From the CLI

bash
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…

Owner lock

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.

Interactive tool approval

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

Slash commands

CommandPurpose
/kirocrew dashboard [duration]Presigned dashboard link (default 1h, max 6h)
/kirocrew yoloToggle auto-approve
/kirocrew agent [name]Show/switch active agent
/kirocrew channelsChannel management modal
/kirocrew sessionsList sessions with resume buttons
/kirocrew helpList all sub-commands

The command name is configurable via slack.command (default: kirocrew).

Bang commands (owner-only)

CommandPurpose
!dashboard [duration]Presigned dashboard link
!yolo on|offToggle auto-approve
!agent <name>|offSwitch/clear agent
!ta <agent>|offThread-only agent override
!stopInterrupt current turn
!compactCompact session context

Keyword commands

CommandPurpose
statusRuntime stats
spawn <task> / bg <task>Subagent (blocking / fire-and-forget)
spawn listList subagents
cron list / cron remove <id>Manage crons
sessionsList recent sessions
run <path>Run a task spec

Channel modes

Beyond DMs, Kiro Crew can join group channels in three modes:

ModeBehavior
mentionRespond only when @-mentioned; 50-msg rolling context (5-min TTL, in-memory)
observeSilent unless @-mentioned; 200-msg context (1-week TTL, disk-persisted)
offIgnore the channel

Only messages from authorized users are recorded in observe mode.

Dashboard ↔ Slack sync

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 sessions command lists recent sessions with ▶️ Resume buttons

Connect new sessions automatically

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.

Reactions

Phase-aware emoji reactions cover queued, thinking, coding, browsing, tool, done, and error. Customize:

json
{ "slack": { "reactions": { "done": "sparkle", "thinking": "brain" }, "reactions_enabled": true } }

Set a phase to null to suppress it. Set reactions_enabled: false to disable all.

Files and images

  • 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.

Edit a message the agent sent

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.

Home Tab

Block Kit view with live system status, cron jobs, active sessions, and recent lessons.

Configuration

Credentials in ~/.kiro/crew/.env:

SLACK_APP_TOKEN=xapp-… SLACK_BOT_TOKEN=xoxb-… KIROCREW_OWNER_ID=U0…

Settings in config.json:

KeyDefaultPurpose
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_sessionsfalseOpen a Slack thread for each new persistent dashboard session after its first message
slack.dm_single_sessionfalseTreat 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_thinkingtruePost the model's thinking as a thread reply; turn off for shorter threads
slack.reactions_enabledtruePhase emoji reactions
slack.reactions(defaults)Per-phase overrides
slack.sessions_limit10Max sessions listed by the sessions keyword and /kirocrew sessions
slack.home_tab_sessions_per_kind5Max 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_urlfalseUse 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_limit5Consecutive turns a thread may run on trusted-bot messages before a human message is required
slack.allowed_enterprise_ids[]Enterprise Grid allowlist (empty = all)

Troubleshooting

ProblemFix
Install App button greyed outUse Features → OAuth & Permissions → Install to Workspace
No events receivedVerify Socket Mode ON, events subscribed, Home Tab enabled, reinstall
missing_scope errorAdd scope, reinstall, re-run kirocrew setup
Bot doesn't respondCheck kirocrew doctor; confirm gateway running
Dashboard shows 403Token expired — !dashboard for a fresh link
Page updated: October 22, 2026