Sentry
Sentry gives CodeBeast your errors and stack traces. Once connected, Chat, tasks and Beastmates can list projects, open issues and pull events — without copying Sentry links into every thread.
The auth token stays with CodeBeast. It never reaches the agent's machine.
Sentry does not start Board tasks by itself. Use it as an error-tracking source, or wake Bug Bot when an alert fires (see Wake a Beastmate from an alert).
Connect Sentry Admin only
Only org admins can connect or change Sentry.
In Sentry, copy the organization slug from the URL (
…/organizations/<slug>/…) or from Settings → General.Create a token:
- User Settings → Auth Tokens → User Auth Token, or
- Settings → Custom Integrations (or Developer Settings) → Internal Integration, then copy a token under Tokens.
Grant scopes on the token:
Scope Needed for org:readConnect and Test project:readListing projects event:readIssues and events, including stack traces member:readOptional — looking up assignees event:writeOptional — resolve, assign and comment At minimum grant
org:read,project:readandevent:read. Addevent:writeonly if a Beastmate should triage issues later.Note your region: US (
sentry.io) or EU (de.sentry.io).In CodeBeast, open Integrations → Sentry and click Connect Sentry.
Enter the org slug and Auth Token, choose the region, optionally set a display name and repository scope, then click Connect.
Press Test. You should see the organization name.
Do not use an Organization Token (org:ci only). Do not paste a DSN. Neither can call the APIs CodeBeast needs.
To add another organization, use Connect another organization. Connecting the same slug again replaces the token on that card.
Card settings
| Setting | What it does |
|---|---|
| Organization | Shows the org slug and region (US or EU). |
| Repositories | All or Only selected. Agents only use this connection on repos in scope. |
| Test | Checks that the token still works. |
| Replace credential | Paste a new Auth Token without removing the card. |
What agents can do
Read (always, on repos in scope)
- List projects
- List issues
- Open an issue
- List and open events (including stack traces)
Available in Chat, during tasks, and on Beastmates that include Sentry under Access. In Chat you can also paste a Sentry issue URL. Use the exact project slug from Sentry when you name a project.
Write (opt-in)
By default, agents only read Sentry. Resolve, assign and comment appear only when:
- The token has
event:write, and - A Beastmate allows those actions under Settings → Integrations.
Once granted, the bot may triage the issue it investigated — it does not wait for you to say "resolve" or "comment".
Chat and ordinary Board tasks do not get Sentry write tools. Grant writes on the Beastmate that should triage (usually Bug Bot).
Wake a Beastmate from an alert
CodeBeast does not receive Sentry pushes directly. To wake a bot when an alert fires:
- Open the Beastmate → Webhooks and create a webhook. See Webhooks.
- In Sentry, point an alert rule or notification at that URL.
The webhook body can be any JSON shape — the bot reads it as the request. Include the project or issue name, severity and a Sentry link in the notification payload so the bot can act without asking which service fired.
Bug Bot (Spot) is built to pull stack traces and start a fix when the cause is clear.
Troubleshooting
| Symptom | What to check |
|---|---|
| Connect or Test returns 401 or 403 | Region (US vs EU), org slug, token type (User or Internal — not Organization Token), and scopes org:read, project:read, event:read. A DSN will not work. |
| Agents never call Sentry | The repo is outside Repositories, or the Beastmate's Access step did not include Sentry. |
| Bot cannot resolve or comment | Token needs event:write, and the Beastmate's Integrations settings must allow writes. |
| Card shows Needs reconnect or Needs new credential | The token was rejected or revoked. Use Replace credential, or connect the same org slug again. |