Sentry error triage and fix
This template queries Sentry for unresolved errors, traces the highest-impact one to source code, applies a fix, and opens a pull request.What it does
The automation runs four steps in sequence:- Triage — Queries Sentry for unresolved issues from the past 24 hours, sorted by event count. Selects the top unassigned issue and extracts the title, error message, stack trace, event count, and affected users.
- Root cause analysis — Locates the exact file and line in your repository using the stack trace. Identifies the error category (null reference, type error, unhandled exception, race condition, etc.) and explains the root cause.
- Fix — Applies the minimal change needed to resolve the root cause. Adds or updates tests to cover the error scenario. Runs the test suite and iterates until tests pass.
- Pull request — Opens a PR with the fix, linking back to the Sentry issue.
Prerequisites
- Ona account with automations enabled
- Sentry integration configured for your organization
- A project with a connected repository that reports errors to Sentry
Set up the automation
- Navigate to Automations in the left panel and click New Automation

- Select the Sentry error triage and fix template
- Under Trigger, the default is Manual. Keep this for your first run — you can switch to a daily schedule later
- Under Projects, select the project whose repository reports to Sentry
- Click Save
Run it
- Open the automation and click Run
- The execution view shows each step as it progresses:
- Step 1 queries Sentry and selects an error
- Step 2 traces the stack trace to your codebase
- Step 3 applies the fix and runs tests
- Step 4 opens the pull request


Review the result
The automation opens a pull request with:- The fix applied to the affected file(s)
- New or updated tests covering the error scenario
- A description linking to the Sentry issue and explaining the root cause
Tips
- Start manual. Run the automation a few times manually to build confidence in the results before scheduling it.
- Schedule daily. Once you trust the output, switch the trigger to time-based (e.g.,
0 9 * * 1-5for weekday mornings at 9 AM UTC). - Pair with Sentry to Linear issues. The “Sentry to Linear issues” template creates Linear tickets from Sentry errors. Combined with this template, you get a full pipeline: detect → ticket → fix → PR.
10x engineer
This template runs every weekday morning, picks your highest-priority Linear issue, implements it, runs tests, and opens a draft PR.What it does
The automation runs five steps:- Fetch candidates — Queries Linear for issues assigned to you in the current sprint. Sorts by priority (urgent first), then due date. Excludes issues already in progress, in review, or done. Returns the top 5 candidates.
- Evaluate feasibility — For each candidate, analyzes the repository to determine if the issue can be implemented end-to-end: clear requirements, contained scope, testable, no external infrastructure changes needed. Picks the first feasible issue.
- Implement — Updates the Linear issue status to “In Progress,” then implements the changes following existing code patterns. Writes tests for new functionality and handles edge cases from the acceptance criteria.
- Test — Runs the project’s test suite (
npm test,go test ./..., or equivalent). - Pull request — Opens a draft PR linking to the Linear issue. Updates the issue status to “In Review.”
Prerequisites
- Ona account with automations enabled
- Linear integration configured for your organization and your user account
- A project with a connected repository
- Issues assigned to you in the current sprint/cycle with clear acceptance criteria
Set up the automation
- Navigate to Automations and select the 10x engineer template
- Under Trigger, the default is Time-based: weekdays at 9 AM UTC (
0 9 * * 1-5). Adjust the time to match your morning routine - Under Projects, select the project you want the automation to work on
- Click Save
Run it
The automation fires on schedule. Each morning:- It picks your top issue from Linear
- Implements the change in your repository
- Runs tests
- Opens a draft PR

If none of the top 5 candidates are feasible (too large, unclear requirements, requires infrastructure changes), the automation stops early and reports why. This is expected — not every issue is automatable.
Tips
- Keep your backlog prioritized. The automation picks the highest-priority issue. If your backlog is unsorted, it may pick something low-value.
- Use labels to curate candidates. Add a label like
good-for-onato issues that are well-scoped and automatable, then adjust the prompt to filter by that label. This gives you explicit control over what the automation picks up. - Start with well-scoped issues. Bug fixes, small features, and refactors with clear acceptance criteria work best. Exclude epics and large issues.
- Review the draft PRs. These are drafts for a reason — treat them as a starting point, not a finished product.
How they connect
These two templates address different parts of the development cycle but complement each other naturally. The Sentry template finds and fixes production errors. If you also use the Sentry to Linear issues template, those errors become Linear tickets. The 10x engineer then picks those tickets up automatically in the next morning run. Together, they create a loop: detect → triage → fix → ship. Production errors get surfaced, tracked, and resolved without manual intervention at each step.Scaling across repositories
The templates above work on a single project and repository. As your usage grows, you can run the same automation across multiple repositories in parallel — for example, scanning and fixing Sentry errors across dozens of repos simultaneously. The number of parallel actions depends on your plan. See Plans and limits for details.
Next steps
- Creating automations — customize templates or build from scratch
- Manual triggers, pull request triggers, and time-based triggers — schedule or event-trigger your automations
- Plans and limits — per-plan caps on automations and actions
- Guardrails — control execution limits and blocked commands
- Service accounts — run automations as a team identity