ENGINEERING

Agent-driven Sentry triage with GitLab fix branch and MR draft

A Paperclip agent investigates a new Sentry cluster end to end, traces the blame, reads the offending source in GitLab.

CategoryEngineering
Enginepaperclip
Difficultyadvanced
Triggerevent
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNew high-frequency Sentry clusterSentrySentry
  • ActionFetch trace and read source via GitLab blameGitLabGitLab
  • LogicAgent reasons about root causeOpenAI
  • ActionOpen GitLab branch and draft MR with patchGitLabGitLab
  • OutputSlack the suspected author for reviewSlack

What it does

Hands a fresh Sentry error cluster to an autonomous agent that does the full first-pass investigation. The agent reads the trace, finds the suspect commit through blame, pulls the relevant source from GitLab, reasons about the root cause, and opens a draft merge request with a candidate fix and an explanation. A human reviews and decides whether to merge.

When to use it

Use it for well-scoped, recurring error classes (null guards, off-by-one, missing validation) where a first-draft fix saves engineer time. Best when you want the agent to do the legwork but keep a human firmly in the merge loop.

How it works

  1. 1Sentry fires when a new high-frequency cluster appears.
  2. 2The agent fetches the trace and isolates the failing frame.
  3. 3It runs GitLab blame to find the suspect commit and reads the surrounding source.
  4. 4It reasons about the root cause and writes a candidate patch.
  5. 5It opens a GitLab branch and a draft merge request with the patch and rationale.
  6. 6It posts a Slack note to the suspected author asking for review.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect SentryErrors, performance, releases.
  2. 2
    Connect GitLabRepos, MRs, pipelines, registry.
  3. 3
    Connect OpenAIModels, embeddings, files.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    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.