Use Case

AI Bug Fixing & Automated Triage

The Problem

Bug backlogs grow faster than teams can fix them. Each bug requires context-switching: reproduce, investigate, fix, test, review. When you're fixing Bug A, Bugs B through Z sit idle. Critical bugs get attention, but the long tail of medium-priority issues rarely gets addressed.

How Stoneforge solves it

AI bug fixing with Stoneforge lets you resolve bugs in parallel instead of one at a time. Import your bug backlog, set priorities, and let automated bug triage dispatch multiple agents to investigate and fix bugs simultaneously.

From backlog to fixed with parallel AI agents

Instead of having one developer cycle through bugs sequentially, Stoneforge dispatches multiple bugs to separate agents. Each agent gets its own worktree, reproduces the issue, writes a fix, adds regression tests, and submits a merge request.

# Pull bugs from GitHub Issues
sf external-sync pull --provider github

# Or create bug tasks manually
sf task create --title "Fix: Login fails with SSO redirect loop" --priority 1
sf task create --title "Fix: CSV export truncates long fields" --priority 2
sf task create --title "Fix: Dashboard chart doesn't render on Safari" --priority 2
sf task create --title "Fix: Email notification sent twice on retry" --priority 3

# Agents start fixing bugs in priority order
sf serve

Intelligent automated bug triage

The Director agent can analyze incoming bugs and estimate complexity, identify related bugs that should be fixed together, and flag bugs that might share a root cause. Related bugs are grouped into a single task to avoid duplicate fixes.

Regression tests with every fix

Every AI bug fixing result comes with a regression test. The agent writes a test that fails without the fix and passes with it. The Steward agent runs tests before merging to make sure nothing is broken — similar to the quality checks in automated code review.

Bidirectional sync with issue trackers

When an agent fixes a bug, the linked GitHub Issue or Linear ticket is updated automatically with a summary of the fix, a link to the merge request, and which tests were added.

# Bug fixed → GitHub Issue updated automatically
# Issue comment: "Fixed in MR #142. Root cause: race condition in
# session refresh. Added regression test in auth.test.ts."

Clear the backlog with AI bug fixing

Because agents work in parallel, you can make progress on multiple bugs at once instead of working through them one by one. The medium-priority bugs that tend to sit untouched at the bottom of the backlog finally get attention. Pair this with AI test generation to prevent future regressions.

Related documentation

Frequently asked questions

Can AI bug fixing tools import bugs from GitHub Issues or Linear?
Yes. Stoneforge's external sync feature connects to GitHub Issues and Linear. You can pull issues from these services and they're imported as tasks. Status updates sync bidirectionally, so when an agent fixes a bug, the linked issue is updated automatically.
How does automated bug triage diagnose and reproduce issues?
Each Worker agent reads the bug report, examines the relevant code, and tries to reproduce the issue by running existing tests or writing new ones. It then traces the root cause, applies a fix, and verifies the fix passes all tests before submitting for review.
What if an AI agent can't fix a bug?
If an agent gets stuck, it hands off the task with a diagnostic report covering what it tried, what it found, and where it got blocked. This handoff note is visible in the dashboard and the linked issue, so a human developer can pick up with full context.
How do you prioritize which bugs get AI bug fixing first?
Tasks have priority levels (1-5) that control dispatch order. You can also set dependencies so that, for example, an authentication bug is fixed before the session-related bugs that depend on it.
Does AI bug fixing include regression tests?
Yes. Agents are instructed to write regression tests that verify the fix. This ensures the same bug doesn't reappear. The Steward agent runs tests as part of the merge review.

Ready to get started?

Set up Stoneforge in under 30 seconds and start orchestrating AI agents in parallel.