ENGINEERING

AI triage agent: Sentry spike to GitHub issue with suspect commit

An agent investigates a spiking Sentry issue, reads the stack trace and recent commits to the affected files, names the most likely suspect commit and owner.

CategoryEngineering
Enginepaperclip
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerSentry spike webhook delivers issue and stack traceSentrySentry
  • ActionQuery GitHub for recent commits to affected filesGitHubGitHub
  • ActionLLM ranks suspect commit and drafts root-cause hypothesisOpenAI
  • ActionCreate GitHub issue assigned to suspect author with linksGitHubGitHub
  • OutputPost agent's finding to the team Slack channelSlack

What it does

Goes beyond filing a ticket: an agent reasons over the stack trace and recent Git history to propose which commit likely caused the spike, who owns it, and what to check first, then files an assigned GitHub issue with that hypothesis.

When to use it

Use it when raw error alerts cost your team triage time and you want a first-pass investigation done before a human looks. Best for repos with clear file ownership and frequent deploys where blame-by-commit is meaningful.

How it works

  1. 1Sentry's spike alert webhook delivers the issue, stack trace, and affected release.
  2. 2The agent pulls the frames from the trace and queries GitHub for recent commits touching those files since the last good release.
  3. 3It correlates timing and changed lines to rank the most likely suspect commit and its author.
  4. 4An LLM step drafts a concise hypothesis: probable cause, suspect commit, and suggested first check.
  5. 5A GitHub issue is created, assigned to the suspect author, labeled by severity, and linked to both the Sentry issue and the suspect commit.
  6. 6A Slack note goes to the team channel summarizing the agent's finding.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect SentryErrors, performance, releases.
  2. 2
    Connect GitHubRepos, issues, pull requests, actions.
  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.