How to use
Ask Codex to check the places where bugs already appear: Sentry alerts, Linear issues, GitHub issues, PR checks, deploy logs, support tickets, and Slack threads. Start with one manual sweep, tune the report in-thread, then run it on a schedule.
Use one Codex thread for the whole triage loop:
- Run an on-demand sweep and get a draft list.
- Review the list and give feedback in that same thread.
- Turn that same thread into an automation.
- Optional: ask Codex to draft Linear issues, Slack updates, GitHub comments, or handoff notes when you are confident in the report.
Before you start, install the plugins Codex needs, such as Sentry, Slack, Linear, or GitHub. In the starter prompt, replace the bracketed plugin list with real @ plugin chips. Then replace each bracketed source with the exact place to search: a Sentry project or alert URL, Slack channel or thread, Linear team, view, or query, GitHub repo, issue query, or PR check, deploy link, log file, support queue, or dashboard.
Phase 1: Run the sweep
Start Codex from the repo that owns the bugs when local context helps: tests, repo tooling, build checks, or CI failures. You can also run the sweep from any repo if your bug sources are available through plugins, connectors, MCP servers, links, exports, pasted logs, or attachments.
Run the starter prompt above first. Keep only the plugins and sources that are part of your sweep.
For example, a filled-in prompt can name the plugins and the exact queues, channels, or repos you want in the sweep.
Phase 2: Make the report useful
Before you automate, make sure the report is useful enough to read every day.
A useful first run has:
- High-signal bugs sorted from P0 to P3.
- Duplicate reports are grouped under one bug.
- Each bug has linked evidence or short citations.
- Guesses are separated from observed facts.
- Each bug has a short recommended next action.
Tune the report in the same thread before you automate it. You can ask Codex to:
- Check one more source before ranking the list.
- Drop noisy alerts that the team already knows about.
- Only return P0 and P1 bugs.
- Merge Slack reports, Sentry alerts, and GitHub failures when they point to the same bug.
- Show the single best link for each bug.
- Add enough evidence that someone else can reproduce or route the issue.
Phase 3: Automate it
When the on-demand report is useful, stay in the same thread and turn it into an automation. Codex can use what you refined in the thread to write the recurring automation prompt.
Create the automation
Phase 4: Route follow-ups
Once the scheduled report is useful, decide where the work should go next. Codex can draft a Slack update for a team channel, write Linear issues for the bugs you want to track, write GitHub comments for a failing PR, or produce a handoff for whoever is on call.