---
title: "Slack commands"
description: "Every Baz Slack bot task, option, management command, and channel automation."
canonical: "https://baz.ai/docs/reference/slack-commands"
---

# Slack commands

Every Baz Slack bot task, option, management command, and channel automation.

Mention `@Baz` in a Slack channel to ask about your code, review a PR, summarize recent work, or have Baz write a fix. Tasks read the whole thread as context, so you can start one under a discussion that already explains the problem. This page lists every command the bot accepts. To install the bot, see [Slack](/docs/integrations/slack).

## Tasks

| Command | Description | Example |
| --- | --- | --- |
| `@Baz ask <question>` | Quick answer from the codebase. | `@Baz ask where do we validate webhook signatures?` |
| `@Baz deep <question>` | Deeper investigation across files and repositories. | `@Baz deep why did checkout latency double last week?` |
| `@Baz review [PR link]` | Targeted review of a PR in the thread. | `@Baz review https://github.com/acme/api/pull/42` |
| `@Baz fix <instruction>` | The Fixer writes the change and opens a PR. | `@Baz fix handle a null customer id in invoice export repo=acme/billing` |
| `@Baz summary [days=7]` | Summary of recently merged PRs. | `@Baz summary days=14` |

If you leave out the verb, Baz runs `review` when the message contains a PR link and `ask` otherwise.

## Options

Add options anywhere in a task as `key=value`. Quote values with spaces: `match="deploy failed"`. Use `repo=owner/name` and `branch=name` to point any task at the right code. For `fix`, `pr=no` commits to the branch instead of opening a PR, and for `summary`, `days=N` picks how far back to look (1 to 31, default 7).

Baz picks the model and runs tasks in its managed sandbox, so `model=` and `env=` are not supported.

## In a thread

To follow up, mention `@Baz` again in the same thread. If Baz asks you something, just reply in the thread. To start a separate task in the same thread, add `new`, for example `@Baz new ask …`.

## Manage tasks

`@Baz status` lists the tasks running in the channel, and `@Baz help` shows every command. `@Baz stop` cancels the task in the thread; only the person who started it or a Baz admin can do that, and a Fixer run that already started may still open its PR. `@Baz channel [name]` moves a busy task into its own channel.

## Automate a channel

Automations run a task for you, either when a message matches or on a schedule. `@Baz automate match="deploy failed" deep investigate` runs a task whenever a message contains that text. `@Baz schedule every=mon at=9 summary` runs one on a schedule, with `every=` set to `daily` or a weekday and `at=` a whole hour in UTC. `@Baz automations` lists them, and `@Baz unautomate <id>` removes one.

The task in an automation must start with a verb: `ask`, `deep`, `review`, `fix`, or `summary`. Message automations cannot run `fix`, because anyone posting in the channel could then trigger code changes as you. Use `deep` or `ask` to investigate, then run `fix` yourself.

## Related

<CardGroup cols={2}>
  <Card title="Slack" href="/docs/integrations/slack" icon="bell">
    Install the bot and set up notifications.
  </Card>
  <Card title="Fixer" href="/docs/agents/build/fixer" icon="wrench">
    How Baz writes and validates fixes.
  </Card>
  <Card title="Sessions" href="/docs/work/sessions" icon="history">
    Follow what Baz did for each task.
  </Card>
</CardGroup>
