Set up issue detection
Turn on issue detection, tell it what to look for, and set its schedule and Slack reports.
Detection needs traces in the project and nothing else. If you went through project setup, a first run already happened and detection is on; skip to Change detection settings. You need a developer role or higher to change detection. Viewers can read Issues.
Check issue detection with your coding agent
Paste it into your agent from your repo's root.
Instructions for the coding agent
These steps need the Judgment MCP server; see Connect your coding agent. You can start the first detection run and read its Issues. The schedule, the instructions, the environments and Slack reports are set in the app, so give the user the steps for those instead of trying to set them.
- Call
list_projectsand pick the project this repo's agent sends traces to. Callget_trace_health_summary; detection needs traces, so if there are none, follow Set up Judgment first. - Call
get_onboarding_status. If no detection run has happened, callstart_onboarding_analyses, then callget_onboarding_statusevery minute or so until no run isrunningorwaiting. A detection run spends Judgment Units, so tell the user before you start one. - Call
list_issuesand summarize each Issue for the user: its title, what it means for their agent, and how much evidence it has. - Tell the user what is left to do in the app, with the steps from this
page: write Custom instructions for their agent, set a schedule, and,
once tests run in CI, limit Environments to
productionso detection doesn't read test traces.
Turn on detection
Open Issues and turn it on
If detection is off, Issues shows Discover issues autonomously. Choose Turn on.
Tell it what to look for
Under What issues have you seen?, write your Custom instructions. They're required. The Prompt suggestions chips (such as Tool call failures, User friction or Cost and tokens) add starter text you can edit.
Start the first run
Choose Start Detection.
Choose a schedule and where reports go
While Detection is running, set a Schedule, turn on Send reports to Slack, and decide whether to Mark stale issues inactive. Choose Save, or Skip to set these later.
Write instructions that find real problems
Your instructions add priorities on top of the detector's own checklist. They don't replace it, so detection still looks at errors, tool failures and outliers you didn't mention. Describe what your agent is for and which failures cost you the most. For example:
This agent books travel for business teams. A good run ends with an itinerary
that fits the traveler's dates and budget, and a confirmed booking.
Prioritize:
- Tool calls that fail or time out, and what the agent does next.
- Itineraries that ignore stated preferences.
- Users who have to repeat or correct their request.
Ignore wording and formatting preferences that don't change the booking.If you name a time window in your instructions ("look at the last 3 days"), detection uses it instead of the schedule.
Change detection settings
Open Issues and choose Configure. The Detection settings dialog has five parts:
| Section | Setting | What it does |
|---|---|---|
| What should Judgment look for? | Your instructions (required) | Show suggestions brings back the chips. |
| Scope | Environments | Detection focuses on traces, conversations, and scores from the selected environments. Select all (the default) reads every environment. Select at least one environment to save. |
| Automation | Run on a schedule | Runs detection on a recurring cadence. Choose Daily/weekly, Interval, or Advanced for a cron expression. Times are Pacific. |
| Issue lifecycle | Mark stale issues inactive | Off until you turn it on. Marks an Issue Closed after 1 to 365 days with no new occurrence (the field starts at 10). Closed Issues return to Needs review if they happen again. |
| Notifications | Send reports to Slack | Posts an issue report after each detection run to the channels you pick. Select at least one channel before saving. |
Choose Save. To run detection right away, choose Run now; it stays disabled until instructions are set and at least one environment is selected.
Slack channels come from your connected workspace. If Slack isn't connected, see Connections.
Watch a run, or stop it
The status line at the top of Issues shows where detection is: Queued for investigation…, Analyzing traces…, or when it last checked and how many Issues it created or updated. It also shows the schedule (Manual when none is set). To stop a run in progress, choose Stop. To stop future runs, turn off Run on a schedule and save.
Environments
Detection reviews traces from every environment unless you limit it. To review only production, open Configure and, under Environments, select only production. No environment stands for traces sent without one.
Test runs send their traces to the same project, stored under the Test Runs environment. Detection leaves that environment out unless you select it here.
Cost
Each detection run is an agent run and uses Judgment Units (JU), so a frequent schedule on a busy project costs more than a daily one. See Billing and plans.
If something looks wrong
- If a run finds no Issues, that can be a real result: detection only writes Issues it's confident about. Send more varied traffic, or make your instructions more specific.
- If the inbox looks empty but runs found Issues, remember that it shows only Needs review by default. Add a Status filter to see Monitoring, Closed or Archived Issues.
- If Slack reports don't arrive, check that Send reports to Slack is on, at least one channel is selected, and the Slack connection is active.