Beastmates
A Beastmate is a bot you hire for a standing role, such as triaging bug reports or keeping a project moving. Each Beastmate has its own Slack channel. It reads what arrives there, looks into your code, and starts tasks on the Board when a code change is needed.
How a Beastmate works
Every top-level message in the Beastmate's channel starts a thread, and the bot answers in that thread. Replies continue the conversation. For each request the Beastmate decides what to do:
| It can… | How |
|---|---|
| Answer | Replies in the thread, using what it knows plus its integrations (Linear, Notion). |
| Investigate the code | Asks your repository questions through the org's explore workspace, the same one Chat uses. |
| Start a task | Creates a task on the Board, which then runs like any other task and ends in a pull request. |
| Do nothing | Says so, and explains what it checked. |
Work can also reach a Beastmate without anyone typing in its channel:
- Watches — it watches another Slack channel and picks up messages that match a description.
- Webhooks — any system can POST JSON to it.
Tasks a Beastmate starts carry a 🤖 Beastmate chip. The Board hides them by default: turn on Show tasks started by Beastmates in the toolbar to see them.
Templates
| Template | Default name | What it does | Requires |
|---|---|---|---|
| Bug Bot | Spot | Takes bug reports, reproduces them against the code, and starts a fix. | Slack, a connected repo |
| Project Manager | Max | Follows one Linear team or project, reports progress and blockers, and starts ready work. | Slack, Linear, a connected repo |
| Custom | You choose | Any role you describe in a sentence or two. | Slack |
The Beastmate screens call the no-approval run mode Autopilot. These docs call it Auto, which is what the Board and Chat show. It's the same setting.
Hire a Beastmate
Anyone in the organisation can hire a Beastmate.
- Open Beastmates in the sidebar and click Hire.
- Choose who sees the bot:
- Personal — "Only you see this bot". Its Slack channel must be private.
- Team — everyone in the org can see and use it.
- Pick a template card and click Hire <name>, or click Create custom for a custom Beastmate.
- Answer the short setup chat:
- Purpose — what the bot should focus on. You can rename it here ("Call me <name>").
- Access — which integrations it may use. The template lists required and recommended ones.
- Setup — Repositories (empty means every connected repository), Harness, Task run mode (Auto, or Normal (clarify + PRD gates)) and Daily budget.
- Channel — see Set up its Slack channel.
Set up its Slack channel
The setup chat suggests a channel name like cb-<name>, up to 80 characters.
- In Slack, create the channel. Make it private if the bot is Personal.
- Invite the CodeBeast app:
/invite @Codebeast. - Back in CodeBeast, enter the channel name and click Verify.
CodeBeast checks that the channel exists, that the app is a member, and that no other Beastmate owns it. If Verify can't find the channel, check the spelling. For a private channel, also make sure the app was invited: Slack only lists private channels to their members.
Slack must be connected to your org before you can finish setup.
The Beastmate hub
Open a Beastmate from Beastmates to see its hub:
| Section | What's there |
|---|---|
| Conversations | Every thread the bot has handled, from its channel, watches and webhooks. |
| Tasks | Tasks it started, with their status. |
| Triggers | Each incoming message or delivery, and what the bot did with it. |
| Watches | Other Slack channels it monitors. See Watches. |
| Webhooks | URLs other systems can POST to. See Webhooks. |
| Settings | Channel, instructions, repositories, integrations, harness and run mode, daily budget, and memory. |
Settings
- Slack channel — the channel the bot lives in.
- Instructions — extra guidance added to the bot's role, for example "Only pick up reports about the checkout flow".
- Repositories — which repos it may investigate and build on. Empty means all connected repos.
- Integrations — which connected tools it may read, and which write actions it may take (for example commenting on Linear issues).
- Harness & run mode — the harness its tasks use, and Auto or Normal. Turn on Ask before starting tasks to have the bot propose each task in the thread and wait for a person to confirm.
- Daily budget — see Budget and limits.
- Memory — notes the bot keeps across conversations. This is separate from Org Memory.
Watches
A watch lets a Beastmate monitor a Slack channel it doesn't own, such as #support. Each message there is checked against the watch description. Matching messages open a new thread in the bot's own channel: the bot never replies in the watched channel.
- In the hub, open Watches and add a watch.
- Choose the Slack workspace and channel. Invite the CodeBeast app to that channel first.
- Write a Description of what to pick up, for example "Customer reports of errors or broken pages".
- Optionally turn on Include app messages to also consider posts from other bots and integrations, such as alerting tools.
A watch evaluates at most 120 messages per hour. Messages above that are logged as Rate limited and skipped.
Webhooks
A Beastmate webhook lets any system send it work, such as an alerting tool, a form, or a script. Each delivery opens a conversation, and the bot decides what to do with it, the same as a message in its channel.
To turn an HTTP request directly into a Board task without a bot deciding, use an Automation instead. Its API is described in Create tasks via webhook.
Create a webhook
- In the hub, open Webhooks and create a webhook.
- Optionally turn on Require a secret header. The secret is shown once, so copy it now. You can rotate it later from the list.
- Copy the webhook URL.
A secret is required if the bot is allowed to start tasks without confirmation (that is, Ask before starting tasks is off).
Send a delivery
Send a POST with a JSON body of up to 1 MiB. The body can have any shape: the bot reads it as the request.
curl -X POST 'https://<your-webhook-url>' \
-H 'content-type: application/json' \
-H 'x-codebeast-webhook-secret: <secret>' \
-d '{"title":"Checkout returns 500","detail":"Since 14:02 UTC, POST /api/checkout fails for EU users"}'Leave out the x-codebeast-webhook-secret header if the webhook doesn't require a secret.
Responses
| Status | Body | Meaning |
|---|---|---|
202 | {"status":"accepted"} | The delivery was received and a conversation opened. |
202 | {"status":"duplicate"} | The same body arrived within the last 10 minutes, so it was ignored. |
401 | The secret header is missing or wrong. After a rotation, senders must use the new secret. | |
404 | Unknown webhook, or the webhook is disabled. | |
413 | The body is larger than 1 MiB. | |
429 | More than 60 deliveries in an hour. Retry after the time given in the Retry-After header. |
Budget and limits
Each Beastmate has a Daily budget in credits. It defaults to 100 credits, and 0 means no cap. The budget covers everything the bot spends in a day: its own replies, code questions, and the tasks it starts.
When the bot reaches its cap, it posts a notice and pauses. It resumes on its own after the reset at 00:00 UTC, or straight away if an admin or the bot's owner raises the cap.
- 2 of a Beastmate's tasks can run at the same time.
- A Beastmate can start at most 10 tasks per UTC day.
- Webhooks accept up to 60 deliveries per hour each.
- Watches evaluate up to 120 messages per hour each.
Beastmate tasks also count toward your org's limit of 5 running tasks, and spend credits like any other task. See Credits & billing.
Who can do what
| Action | Who |
|---|---|
| Hire a Beastmate | Any member |
| Talk to it in its channel | Anyone in the channel whose Slack email matches a CodeBeast member |
| Edit, pause or delete; manage watches, webhooks and budget | The bot's owner. For Team bots, org admins too. |
The bot acts for the person who wrote the message. CodeBeast matches the Slack user to an org member by email. People whose Slack email isn't a member's get a private reply asking them to join first.
Troubleshooting
| Symptom | Likely cause |
|---|---|
| Verify says the channel wasn't found | The name is misspelled, or the channel is private and the app wasn't invited. |
| The bot never answers in its channel | It is still a draft or is paused (check its status in the hub), or the poster's Slack email doesn't match an org member. |
| "I couldn't reach the workspace that reads this repo" | The explore workspace couldn't start. Try again in a minute. If it keeps happening, check that Chat can answer code questions for the same repo. |
| A watch never triggers | The app isn't in the watched channel, the watch is disabled, the message was from an app and Include app messages is off, or the message didn't match the description. Triggers shows the verdict for each message. |
| The bot says it hit its budget | It reached its daily cap. Raise the cap in Settings, or wait for the 00:00 UTC reset. |