# Bug Fix Agent

> The Bug Fix Agent turns a diagnosed ticket into a pull request your engineers can review, test included.

Canonical: https://www.decimal.app/agents/bug-fix-agent · Last reviewed: 2026-09-23

## How it gets from a cause to a fix.

- **Starts from the investigation**: Begins with the root cause, never a guess.
- **Confirms the bug is real**: Checks the source and stops if the bug isn’t there.
- **Learns your conventions**: Reads your contributor guide and the code nearby.
- **Makes the smallest change**: A few files, a few lines and a test.
- **Gets reviewed first**: A second agent reviews the diff and sends it back if needed.
- **Opens the pull request**: On its own branch, with reviewers and the ticket linked.

## Looks like one of yours.

- **A branch you can spot**: Every change lands on a decimal/ branch. Never main.
- **Says what and why**: A summary of the change and the reasoning.
- **Links the ticket**: The customer report is one click away.
- **Tests included**: Written in the style of the tests beside it.
- **Takes follow-ups**: Ask for a change and it updates the same pull request.
- **One fix per bug**: Duplicate reports join the open pull request.

## A second agent reads every diff.

- **Is the problem real?**: The bug has to exist in the source.
- **No invented APIs**: Everything the change calls has to exist.
- **No regressions**: It reads the callers of what changed.
- **Your conventions**: Style and naming match the code around it.
- **Security**: Auth, input handling and secrets get a closer read.
- **Minimal scope**: Anything beyond the fix is sent back.

## Your engineers still merge.

- **Never merges**: Your engineers review and merge every change.
- **Only the repos you grant**: Write access is granted repository by repository.
- **A daily cap**: A limit on pull requests per day.
- **One page for all of them**: Every pull request Decimal opened, with its state and diff.
- **Ask for a fix in Slack**: Tag the agent on a thread.
- **Free until it merges**: You pay only for the pull requests you merge.

## From the report to the release note.

One agent finds the cause, this one opens the fix, and the customer hears back in the same thread.

## FAQ

### Can it merge its own pull requests?

No. An engineer on your team reviews and merges every change.

### Which repositories can it touch?

Only the ones you grant write access to, and only through pull requests on a branch it creates.

### What kinds of fixes does it attempt?

Contained ones: a wrong condition, a missed edge case, a bad default. Anything larger goes to engineering with the investigation attached.

### How does it know our conventions?

It reads your contributor guide and the surrounding code, and the review agent rejects changes that don’t match.

### What does it cost?

Opening a pull request is free. You pay when one merges, which means you only pay for fixes your engineers accepted.

---

Decimal · Book a demo: https://cal.com/decimal-demo/30m · Markdown index: https://www.decimal.app/llms.txt
