What Claude Code does for Sentry triage
- Reads unresolved Sentry issues that are new or regressed since its last run.
- Checks your board first, so a noisy error gets a comment instead of ten new issues.
- Files each new error with its impact, first and last seen, the release it started in, the top stack frames and a likely cause, marked as a guess.
- Fixes the small, obvious ones in a pull request with a test, and waits for review.
Claude Code features for Sentry triage
| Feature | What it does | How to start |
|---|---|---|
| Sentry MCP server | Issues, events, stack traces and releases from your Sentry organization | claude mcp add --transport http sentry https://mcp.sentry.dev/mcp |
/mcp | Shows connected servers and starts the OAuth sign-in | Run it in a session after adding the server |
claude -p | Runs a triage pass and exits, for cron or CI | --allowedTools "mcp__sentry" lets it use Sentry's tools |
| Scheduled tasks | Run triage at set times without opening a session | /schedule, or a desktop scheduled task |
How to set up Claude Code for Sentry triage
Connect the tools
Add Sentry's hosted server, then run
/mcpand sign in with your Sentry account in the browser. It uses OAuth, so there's no token to copy.# Add Sentry's hosted MCP server claude mcp add --transport http sentry https://mcp.sentry.dev/mcp # Then, in a session, sign in with OAuth /mcpWrite the rules in CLAUDE.md
Claude Code reads CLAUDE.md at the start of every session,
claude -pruns included. Put the job's rules there, or in a skill under.claude/skills/if they're long. See the CLAUDE.md guide.## Sentry triage rules 1. List unresolved production issues first seen or regressed since the last run. 2. Search the board for the Sentry issue ID before filing. 3. File new ones with users and events affected, first and last seen, the release, the top stack frames and a likely cause, marked as a guess. 4. Urgent if it blocks sign-up, payment or data; High above 1% of sessions; otherwise Medium. 5. Small, obvious fix: open a pull request with a test. Don't merge. 6. Never resolve, ignore or delete anything in Sentry.Run it without the interactive interface
claude -pruns one task and exits, so cron, CI or another tool can start it. Choose what it may do without asking with--allowedToolsor--permission-mode;--output-format jsonreturns the result with its cost.# A triage pass from cron, weekdays at 9:00 and 14:00 claude -p "Triage new Sentry errors with the rules in CLAUDE.md" \ --allowedTools "mcp__sentry" --output-format jsonPut it on a schedule
Make it a cloud scheduled task with
/schedule(Pro, Max, Ultra, Team and Enterprise), a desktop scheduled task, or/loopwhile a session stays open. See how to make Claude Code proactive.
Limits and safety
- It needs to read Sentry issues, not change them. Leave resolving and ignoring to people.
- Its cause is a guess from the stack trace. A person confirms it before a fix ships.
- Errors can carry user data. Keep the issues it files on a private board or repository.
- Since Claude Code v2.1.302,
claude -pstarts in Manual mode: an action that needs approval is denied unless a rule allows it. Allow only the tools the job needs.
Claude Code or Codex for Sentry triage?
The rules carry over. Write them once in AGENTS.md and put @AGENTS.md in CLAUDE.md, and both agents read the same file.
Step by step for the other agent: Sentry triage with Codex.
| Claude Code | Codex | |
|---|---|---|
| Rules file | CLAUDE.md | AGENTS.md |
| Connect tools | claude mcp add | codex mcp add or config.toml |
| Run without you | claude -p | codex exec |
| Schedule | /schedule, desktop scheduled tasks, /loop | Scheduled tasks in the ChatGPT app, cron |
| Built in for Sentry triage | Sentry MCP over HTTP, /mcp sign-in | Native HTTP MCP, codex mcp login |
Make Sentry triage someone's job
Commands run when someone remembers to run them. Crewmark turns your own Claude Code into an AI employee with a role, a goal in numbers, working hours and a heartbeat, so the work happens on schedule and shows up on a board.
Start from the role
The AI software engineer, with these rules in its brief.
Put the work on its board
Add the job as a recurring issue. The employee wakes on its heartbeat, does it and reports in a comment.
Related
The Sentry error triage page has the full brief and priority rules.
FAQ
How do I connect Sentry to Claude Code?
Run claude mcp add --transport http sentry https://mcp.sentry.dev/mcp, then /mcp in a session to sign in with OAuth.
What can Claude Code do with Sentry?
Read issues, events, stack traces and releases, find the code behind an error, file issues on your board and open fix pull requests. Keep resolving and ignoring issues in Sentry with people.
Can Claude Code triage Sentry errors automatically?
Yes, on a schedule: run claude -p from cron or CI, create a scheduled task, or make triage a recurring issue for a Crewmark employee.
Checked against Claude Code's and OpenAI's Codex documentation on November 13, 2026.