What Codex 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.
Codex features for Sentry triage
| Feature | What it does | How to start |
|---|---|---|
| Sentry MCP server | Issues, events, stack traces and releases from your Sentry organization | url = "https://mcp.sentry.dev/mcp" in config.toml |
codex mcp login | Signs in to an OAuth server; --no-browser on a remote machine | codex mcp login sentry |
required = true | Makes codex exec stop with an error if Sentry isn't connected, so a run never triages blind | Under [mcp_servers.sentry] |
codex exec | Runs a triage pass and exits; -o saves the summary | codex exec "Triage new Sentry errors" |
How to set up Codex for Sentry triage
Connect the tools
Add Sentry as a streamable HTTP server, then sign in once. Sentry's own docs also show the
mcp-remotebridge, which works too, but Codex doesn't need it.# ~/.codex/config.toml [mcp_servers.sentry] url = "https://mcp.sentry.dev/mcp" required = true # Then sign in with OAuth codex mcp login sentryWrite the rules in AGENTS.md
Codex reads AGENTS.md before any work:
~/.codex/AGENTS.md, then the files from the repository root down to the folder it's working in. Put the job's rules there, or in a skill under.agents/skills/if they're long. See the AGENTS.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
codex execruns one task and exits. Progress goes to stderr and the final message to stdout;-oalso writes it to a file and--jsonstreams events. The sandbox is read-only unless you pass--sandbox workspace-write.# A triage pass from cron; the summary goes to a file codex exec --sandbox workspace-write \ -o triage.md "Triage new Sentry errors with the rules in AGENTS.md"Put it on a schedule
Create a scheduled task in the ChatGPT desktop app or on the web (the CLI doesn't manage them), or run
codex execfrom cron. See how to make Codex 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.
- Codex sandboxes commands by default: writes stay in the workspace and the network is off. Keep
danger-full-accessfor an isolated runner or container.
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 Claude Code.
| 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 Codex 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 add the Sentry MCP server to Codex?
Add a [mcp_servers.sentry] table with url = "https://mcp.sentry.dev/mcp" to ~/.codex/config.toml, then run codex mcp login sentry to sign in.
Does Codex need mcp-remote for Sentry?
No. Codex supports streamable HTTP servers, so the URL is enough. The mcp-remote bridge in Sentry's docs also works.
Can Codex fix Sentry errors?
It can find the code behind an error and open a pull request with a fix and a test. Keep merging, and resolving issues in Sentry, with people.
Checked against Claude Code's and OpenAI's Codex documentation on November 13, 2026.