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
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.
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.
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.
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
Supported triggers
| Trigger | Description | Use case |
|---|---|---|
| New Issue Created | Fires when Sentry groups a new error into an issue for the first time | Auto-solve, enrichment |
| Issue Regression | Fires when a previously resolved issue reappears | Regression monitoring |
| Error Spike Detected | Fires when a Sentry metric alert triggers due to elevated error rates | Spike analysis |
| Issue Resolved | Fires when an issue is marked as resolved | Notifications, 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.