About this template
Error in. Draft PR out. You merge.
If you live in Sentry and GitHub, this Sentry AI agent turns a production error into a draft fix PR you review before anything ships.
Production errors pile up faster than anyone drafts fixes. This fork points Claude Code at a Sentry issue and hands back a draft PR: stack summary, suspect commits, minimal patch body. You merge. Nothing auto-deploys, ever.
How the Sentry AI agent works
One prompt runs the whole loop.
Fork it and your copy boots into an isolated Firecracker microVM on your own subdomain. Open the browser terminal, export your Sentry and GitHub tokens, point the vault file at your service, then paste:
Open Sentry issue <id>. Draft a minimal fix PR. Do not merge.
You get back a draft PR link, or an honest "cannot verify" report when the agent cannot reproduce the error. That blocked report is part of the design.
What you get when you fork
- The
sentry-error-to-prskill, pre-installed - Upstream
getsentry/sentry-for-aimaterial when available - A vault file at
~/vault/service.mdfor your service context (you fill it in after forking; capture scrubbing drops secrets)
What you connect
- Claude login or
ANTHROPIC_API_KEY SENTRY_AUTH_TOKENGH_TOKEN
BYOK: your keys live only inside your VM and never leave it. The VM keeps running when your laptop is closed, so a draft can be waiting when you get back.
Who this Sentry automation is for
For you if you want agent help on the tedious path from issue to patch, with a human gate before production.
Not for you if you want auto-merge to production from error volume. This template will refuse.
Fork it
Part of the Software Factory collection: eng operators with a human gate on every risky action.
From $25/mo with a 30-day money-back guarantee on your first purchase. No free tier. Fork it - your copy boots in about 3 minutes, and your first draft PR is one pasted prompt away.