Sentry Integration

Terramind Documentation

Terramind's Sentry integration connects your error monitoring directly to your codebase. When Sentry detects a new issue, Terramind's AI agents automatically diagnose the root cause, locate the failing code, and open a pull request with a fix — turning your codebase into a self-driving codebase.

Features

Auto-Solve Errors

AI agents analyze the stack trace, locate the bug, and create a pull request with a fix.

Issue Enrichment

Automatically adds codebase context, ownership info, and related code to Sentry issues.

Regression Monitor

Detects when resolved issues reappear and investigates what changed since the original fix.

Error Spike Analysis

Identifies triggering changes when error rates spike and recommends immediate action.

Prerequisites

  • A Terramind account with the Nucleus desktop app installed
  • A Sentry account with at least one project
  • A GitHub repository connected to Terramind

Setup

1

Install the integration

Open the Nucleus desktop app and navigate to Settings → Connectors. Click Connect Sentry. You'll be redirected to Sentry to authorize the Terramind integration for your organization.

2

Create an automation

In Nucleus, go to the Automations tab and create a new automation. Choose one of the Sentry templates (e.g., “Auto Solve Sentry Issues”) or create a custom automation with a Sentry trigger.

3

Select a Sentry project

When configuring the trigger, select which Sentry project to monitor. This ensures only issues from that project trigger the automation. You can also select a target GitHub repository for the AI agent to work in.

4

Done

That's it. When a new issue is created in your selected Sentry project, the automation will trigger automatically. The AI agent will analyze the error, find the root cause in your codebase, and open a pull request with a fix.

How it works

1.Sentry detects a new error and creates an issue
2.Sentry sends a webhook to Terramind with the issue details
3.Terramind matches the event to your automation rules
4.An AI agent spins up in a sandboxed environment with your codebase
5.The agent analyzes the stack trace, locates the bug, and implements a fix
6.A pull request is opened on your GitHub repository

Supported triggers

TriggerDescriptionUse case
New Issue CreatedFires when Sentry groups a new error into an issue for the first timeAuto-solve, enrichment
Issue RegressionFires when a previously resolved issue reappearsRegression monitoring
Error Spike DetectedFires when a Sentry metric alert triggers due to elevated error ratesSpike analysis
Issue ResolvedFires when an issue is marked as resolvedNotifications, tracking

Permissions

The Terramind integration requests the following Sentry permissions:

  • Issue & Event — Read & Write (to read issue details and update status)
  • Organization — Read (to list projects)
  • Alerts — Read & Write (to configure alert rules)
  • Release — Admin (to correlate errors with deployments)

Disconnecting

To disconnect the integration, go to Settings → Connectors in Nucleus and click Disconnect next to the Sentry connection. This will revoke the access token and disable all Sentry automations. You can also uninstall the integration from Sentry's settings page.

Support

If you run into any issues, contact us at support@terramind.com.