AI AGENTS

Nightly Top-Sentry-Issues Repro Batch to GitLab MRs

Each night, an agent pulls the top unresolved Sentry issues by user impact, reproduces each one, and opens a batch of failing-test GitLab MRs ranked by blast radius.

CategoryAI Agents
Enginepaperclip
Difficultyadvanced
Triggerschedule
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNightly schedule fires the batch
  • ActionQuery top unresolved Sentry issues by user impactSentrySentry
  • ActionReproduce each issue in shell sandboxShell
  • LogicKeep only deterministically reproducible issues
  • ActionWrite a failing test per confirmed issueShell
  • OutputOpen one labeled GitLab MR per reproGitLabGitLab

What it does

Runs as a scheduled batch instead of reacting to single alerts. Every night it queries Sentry for the highest user-impact unresolved issues, attempts to reproduce each in a shell sandbox, and opens one GitLab MR per confirmed repro, each containing a failing test. MRs are labeled and ordered by how many users the error touched so the morning queue is pre-prioritized.

When to use it

Use it when you want a steady, prioritized intake of test-backed bugs each morning rather than per-alert noise during the day.

How it works

  1. 1A nightly schedule triggers the batch run.
  2. 2The agent queries Sentry for the top unresolved issues ranked by affected-user count.
  3. 3For each issue it fetches the trace and runs a shell repro in an isolated checkout.
  4. 4Logic gate: keep only issues that reproduce deterministically.
  5. 5The agent writes a failing test per confirmed issue.
  6. 6It opens a GitLab MR for each, applying impact labels and linking the Sentry issue.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect SentryErrors, performance, releases.
  2. 2
    Connect ShellRun sandboxed commands inside the workspace.
  3. 3
    Connect GitLabRepos, MRs, pipelines, registry.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.