Triage new errors in Sentry

New and returning errors since the last run, with users affected, the suspect commit and draft issues.

  • On a schedule: Every weekday at 9:00
  • Asks you first

What it does

The task

Open the Sentry project project and list the issues that are new or that came back since the last run. For each one, read the error message, the stack trace, the number of events and users, the release and the suspect commit. Mark the issues that affect more than min users users or that happen in the checkout or sign-in flows. Draft a Linear issue for each marked one with the stack trace, the steps from the breadcrumbs and the Sentry link. Ask me before you create the Linear issues. Do not resolve or ignore anything in Sentry.

  • It works in Sentry and Linear, in the workspace you pick, and signs in with passwords from your Cuiar vault.
  • As a routine it runs every weekday at 9:00 (cron 0 9 * * 1-5).
  • It stops for your approval before it sends, posts, pays, books or changes a record.

What you give it

BlankWhat to giveExample
projectThe Sentry projectbrightleaf-web
min usersThe number of users that makes an error important50

What you get back

An example run with the example values above. Your run uses your own data.

Sentry brightleaf-web: 6 new or returning issues since Tue 9:00

ErrorEventsUsersReleaseSuspect commit
TypeError: rows is undefined (export.js:88)412962.5.04f2c91a Fix invoice totals
ChunkLoadError: Loading chunk 812 failed77542.5.0none
StripeError: No such price (checkout.ts:41)19172.4.29b10e7d Add yearly plan

... 3 more below the limits

Marked: export, chunk load, checkout

3 Linear drafts ready. Waiting for your approval to create them.

Run it in Cuiar

  1. 01

    Open it

    Click Use in Cuiar on this page. The side panel opens with the task in the composer.

  2. 02

    Fill in 2 blanks

    Type project and min users. Tab moves to the next blank.

  3. 03

    Run it, then repeat it

    Run sends it once. To run it every weekday at 9:00, make a routine on cuiar.com/routines or with the CLI below.

As a routine, from the terminal

cuiar routines create "Triage new errors in Sentry" --schedule "0 9 * * 1-5" --time-zone Europe/Berlin \
  "Open the Sentry project brightleaf-web and list the issues that are new or that came back since the last run. For each one, read the error message, the stack trace, the number of events and users, the release and the suspect commit. Mark the issues that affect more than 50 users or that happen in the checkout or sign-in flows. Draft a Linear issue for each marked one with the stack trace, the steps from the breadcrumbs and the Sentry link. Ask me before you create the Linear issues. Do not resolve or ignore anything in Sentry."

Run it from your AI agent

Claude Code, Codex, Cursor and other MCP clients reach Cuiar at https://mcp.cuiar.com/mcp. Add the server one time, then ask for the task in plain words, or call create_routine yourself.

1. Add Cuiar to Claude Code

claude mcp add --transport http cuiar https://mcp.cuiar.com/mcp

2. Ask your agent

Use the Cuiar tool create_routine to run my "Triage new errors in Sentry" template with project = brightleaf-web; min users = 50.

Setup for other agents: AI agents.

The tool call

{
  "name": "create_routine",
  "arguments": {
    "name": "Triage new errors in Sentry",
    "task": "Open the Sentry project brightleaf-web and list the issues that are new or that came back since the last run. For each one, read the error message, the stack trace, the number of events and users, the release and the suspect commit. Mark the issues that affect more than 50 users or that happen in the checkout or sign-in flows. Draft a Linear issue for each marked one with the stack trace, the steps from the breadcrumbs and the Sentry link. Ask me before you create the Linear issues. Do not resolve or ignore anything in Sentry.",
    "schedule": "0 9 * * 1-5",
    "time_zone": "Europe/Berlin"
  }
}
All engineering templates