Docs
Integrations

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.

  1. In Sentry, copy the organization slug from the URL (…/organizations/<slug>/…) or from Settings → General.

  2. 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.
  3. Grant scopes on the token:

    ScopeNeeded 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:read and event:read. Add event:write only if a Beastmate should triage issues later.

  4. Note your region: US (sentry.io) or EU (de.sentry.io).

  5. In CodeBeast, open Integrations → Sentry and click Connect Sentry.

  6. Enter the org slug and Auth Token, choose the region, optionally set a display name and repository scope, then click Connect.

  7. Press Test. You should see the organization name.

Heads up

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

SettingWhat it does
OrganizationShows the org slug and region (US or EU).
RepositoriesAll or Only selected. Agents only use this connection on repos in scope.
TestChecks that the token still works.
Replace credentialPaste 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:

  1. The token has event:write, and
  2. 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".

Note

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:

  1. Open the Beastmate → Webhooks and create a webhook. See Webhooks.
  2. In Sentry, point an alert rule or notification at that URL.
Tip

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

SymptomWhat to check
Connect or Test returns 401 or 403Region (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 SentryThe repo is outside Repositories, or the Beastmate's Access step did not include Sentry.
Bot cannot resolve or commentToken needs event:write, and the Beastmate's Integrations settings must allow writes.
Card shows Needs reconnect or Needs new credentialThe token was rejected or revoked. Use Replace credential, or connect the same org slug again.