---
title: "Slack"
description: "Ask Shiba for a task and review its approval request from Slack."
---

> Documentation Index
> Fetch the complete documentation index at: https://tryshiba.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack

Start a task without leaving a Slack conversation. Shiba asks for approval before starting repository work and posts the outcome back to the conversation.

## Before you start

Your administrator needs to connect the Shiba app and choose who can approve work. Invite the bot to the channel you want to use, or send it a direct message.

## Ask for a task

Mention the bot with a clear request and a GitHub repository URL:

> @shiba update the README installation steps in https://github.com/owner/repo

You can also use the slash command:

```text
/shiba https://github.com/owner/repo update the README installation steps
```

If the channel already has a default repository, a mention can use it. When Shiba needs a repository, it asks rather than choosing one for you.

## Review and approve

Read the proposed repository, task, and execution settings on the approval card. Choose **Approve** to allow that request or **Reject** to stop it. If the request is wrong, reject it and send a clearer brief.

Only people on your installation's approver list can decide. Ask your administrator if the buttons refuse your decision.

The first approval starts the run only. If approved repository work produces changes, Shiba asks for a separate publication approval before pushing those changes and opening a pull request. Rejecting publication leaves the completed work unpublished.

## Follow the result

Shiba posts progress and the outcome to Slack. A pull request link appears when publishing was requested and succeeded. Open the result and check the changes before using them.

In the legacy bot-token connection, replies in a thread with prior Shiba runs continue with that thread's latest employee and execution target; another mention is not required. New work still requires approval. Short acknowledgments such as “thanks” receive a check-mark reaction without queueing work. Threads Shiba has never worked in and ordinary top-level channel chatter are ignored. Follow-ups during active work still use next-turn buffering.

## Get files back in the thread

With the bot-token connection, a completed approved run attaches its [named deliverables](/docs/artifacts/#named-formats-and-limits) to the original Slack thread. The bot needs `files:write` in addition to its existing message permissions. Without it, replies and the dashboard link still arrive, Shiba says once in that thread that an administrator must grant the permission, and it attempts no upload; see [Slack setup](/docs/slack-setup/#attach-result-files) for the admin steps and reinstall. The Slack slash command's private reply and managed coworker handoffs do not publish file copies to a channel.

Try hiring the **Sales report** template, then mention Shiba with `employee:sales-report` and provide dates, currency, and figures or approved read sources. Review and approve the work. When it completes, look for `report.pdf` and `sales.xlsx` in that thread. You can also use [image and video requests](/docs/media-generation/#generate-media-in-slack) without creating a sandbox run.

An attachment is a copy that the people in that conversation can open. Shiba never falls back to a different channel or creates a public download link. Shiba caps attachments at 32 MiB for Slack and Telegram and 20 MiB for Discord. If a file is too large or the upload cannot be confirmed, Shiba tries to post a text notice in that same conversation. It does not resend an upload it cannot confirm, since the platform might already have received it.

Operators can set `SHIBA_CHANNEL_OUTPUT_DELIVERY=0` to turn off file delivery and Slack media requests without turning off ordinary status replies.

<span id="architecture"></span>
<span id="setup-instructions"></span>

For app permissions and installation, see [Slack setup](/docs/slack-setup/). For the decision itself, see [Approvals](/docs/approval-gates/).

## Thread mirroring (operators)

Task rooms can mirror a specific thread after the Worker has observed a signed Slack event for it. A room owner maps the exact workspace/channel/thread from the Collaboration view; only later signed messages in that thread are copied into the room. Slack user IDs remain Slack identities and are not linked to Shiba accounts. Revoking the mapping stops new room writes.

Outbound room delivery is disabled by default. An operator must set `SLACK_ROOM_OUTBOX_ENABLED=true`, configure `SLACK_BOT_TOKEN` and the exact target `SLACK_APPROVALS_CHANNEL`, and configure `DASHBOARD_APPROVERS`. Each intent needs approval from a user on that allowlist who is also an active human member of the room. The author must remain an active human room member through approval and the pre-send check. Before sending, the Worker calls Slack `auth.test` with the configured token and requires its workspace ID to match the signed, mapped thread; it then rechecks both memberships, the active link, and exact message content before using `chat.postMessage`. Removing the author or approver blocks an unsent intent. Revoking a link blocks future sends while preserving an already-started attempt's eventual receipt or unknown outcome. A successful Slack receipt is persisted. A network failure after the request begins is recorded as **unknown** and is never automatically retried.

In a channel shared outside your workspace, Shiba answers through a reviewed draft: the reply goes to one authorized approver's DM with an explicit send button, so nothing reaches the other organization unreviewed. See [Slack setup](/docs/slack-setup/#review-replies-to-shared-channels) for the scopes that decision needs.

Adding `message.channels` / `message.groups` subscriptions or the required history scopes changes the Slack app installation. A Slack workspace admin must review and approve the app manifest and reinstall or update the app. No channel mapping, app installation, scope grant, or real Slack send is performed by the code tests.

Source: https://tryshiba.dev/docs/slack/index.mdx
