Sentry × AGENA

Sentry production errors →
merged AI pull request in 12 minutes

Connect Sentry to AGENA and let AI agents auto-import issues, run an OWASP-aware code review, and ship a pull request on GitHub or Azure DevOps. When the PR merges, the Sentry issue is auto-resolved.

Start free — connect SentrySee the dashboard →

The flow, end to end

  1. 1
    Sentry → Agena auto-import
    AGENA polls your Sentry org every 5 minutes (configurable) for unresolved issues in mapped projects. Each issue becomes a task with stack trace, breadcrumbs, request meta, and the Sentry permalink.
  2. 2
    Integration Rules tag the task
    Rules you set in /dashboard/integrations/rules auto-tag tasks based on reporter, issue type, environment, or labels — e.g. tasks reported by the security team get a "security" tag and are routed to the security_developer agent.
  3. 3
    AI pipeline runs
    analyzer → planner → developer → reviewer. Code is generated against the right repo (resolved from the Sentry → repo mapping), tested, and the reviewer agent runs an OWASP-aware code review with severity + score.
  4. 4
    PR opened on GitHub or Azure DevOps
    A pull request is opened with the patch, the Sentry issue link, and the AI review summary. A comment is posted on the Sentry issue with the PR URL.
  5. 5
    Auto-resolve on merge
    When the PR is merged, GitHub / Azure DevOps webhooks tell AGENA, which marks the Sentry issue resolved and posts a final comment with the merged commit.

What you get out of the box

🛡️
OWASP-aware AI reviewer
A dedicated security_developer agent ships with AGENA. Paranoid by default, treats every input as malicious, outputs threat-model + fix plan + residual-risk note.
Fixability badge
Sentry Seer score surfaced as a coloured badge so you can scan which issues AGENA can fix with high confidence.
🔎
Inline stack trace preview
Click an issue and see file:line + ±5 lines of code context, marked in_app frames, breadcrumbs, request meta — without leaving Agena.
AI Fix Preview
Run an LLM root-cause analysis BEFORE importing as a task. Produces summary + suggested fix + likely files + confidence score.
📐
Integration Rules
Auto-tag and auto-route by reporter, issue type, environment, or labels. Same engine works for Jira and Azure DevOps.
🔄
Auto-resolve on PR merge
Webhook flips the Sentry issue to resolved when the AI-generated PR merges, and posts the merged commit hash as a comment.
📊
Per-agent review history
See every review the security agent has done across all your tasks — severity distribution, average score, click-through to the report.
🌍
7-day error sparkline
Each Sentry issue card shows a 7-day occurrence trend so you can spot regressions and traffic spikes at a glance.

Setup in 5 minutes

  1. Create a Sentry User Auth Token with org:read, project:read, event:read, event:write, issue:write scopes.
  2. In AGENA → Integrations → Sentry, paste the token + your org slug (visible in your sentry.io URL).
  3. In the Sentry page, browse projects and map each one to a target repo.
  4. Toggle Auto-import on the mappings you want AGENA to watch.
  5. Optionally add an Integration Rule: reporter = security@yourcompany.com → tag = security_review, agent = security_developer, priority = critical.

Frequently asked

How does AGENA fix Sentry errors automatically?

AGENA polls your Sentry organization for unresolved issues, parses the stack trace and reproduction context, runs the AI agent pipeline (analyzer → planner → developer → reviewer), opens a pull request on GitHub or Azure DevOps with the patch, and posts a comment back on the Sentry issue with the PR URL. When the PR is merged, the Sentry issue is auto-resolved via webhook.

Do I need to give AGENA my Sentry API token?

Yes — a User Auth Token with org:read, project:read, event:read, event:write and issue:write scopes. The token is stored encrypted server-side and used only for the configured organization slug. AGENA never reads source code through Sentry.

Which Sentry issues get imported?

By default, unresolved issues from the Sentry projects you map to Agena repos. You can scope by environment, release, fixability score (Sentry Seer), substatus (regressed / new), age window (24h / 7d / 14d / 30d) and reporter rules.

Can I send security errors to a specific reviewer agent?

Yes — define an Integration Rule that matches the Sentry issue's tags / project and routes the imported task to your security_developer agent. The rule action also lets you override priority and target repo. The security agent runs an OWASP-aware prompt and produces a threat-model + fix plan instead of writing code.

Does AGENA replace Sentry Seer?

No — AGENA complements Seer. We use Seer's fixability score (when present) as a signal for which issues to auto-fix vs. flag. AGENA actually opens the PR and routes through your code review process; Seer suggests inline fixes within Sentry.

How long does an auto-fix take?

Typical end-to-end: 8-15 minutes from "Sentry alert fires" to "AI PR opened on GitHub". The reviewer agent then runs a 30-90 second AI code review against the patch before the PR is marked ready.

Related
🧠Cross-Source Insights
"Which deploy caused this bug?" answered in 5 seconds
🔎AI Code Review
OWASP-aware reviewer agents on every pull request
⚖️AGENA vs Sentry Seer
Inline suggestions vs end-to-end auto-fix loop