How it works
Analysis
Tembo retrieves the full error context (stack traces, breadcrumbs, environment details) and analyzes your codebase to understand the root cause.
Fix generated
A coding agent writes the fix in an isolated sandbox, runs tests, and opens a PR with the change and full context.
Review and merge
You review the PR and use the feedback loop to iterate if needed. Merge when ready.
Set up automatic bug fixes
1. Connect Sentry
Navigate to the Integrations page and connect your Sentry account. Map your Sentry projects to the repositories where errors occur. See the full Sentry integration guide for details.2. Create an automation
Go to Automations in your dashboard and create a new automation with a Sentry event trigger. Trigger:sentry.issue.created or sentry.issue.regression
MCP Servers: GitHub + Sentry
Example instructions:
3. Fine-tune with rule files
Add rule files to your repo so the agent follows your coding standards, test patterns, and PR conventions when generating fixes.Best practices
- Map projects accurately: Connect Sentry projects to the correct repos, especially for monorepos.
- Enable rich context: Turn on source maps, breadcrumbs, and custom tags in Sentry so the agent has more to work with.
- Review before merging: Always review the PR. Use the feedback loop to refine the fix.
- Test in staging first: Validate fixes in a staging environment before merging to production.