An AI agent fixes the bugs in your applications

Each captured error opens a ticket. An agent writes the fix in your repository, then your team reviews the merge request and its preview and approves.

  • Official Sentry SDKs, pointed at the ERHA DSN
  • Every fix reviewed in merge request mode
  • A returning error reopens its task
42merge
Errors/TypeError: total is undefined
In review
Production error

TypeError: total is undefined

Activity
  • Error captured on Online storeProduction · version 2.4.1 · 12 people affected
  • Ticket opened in the Error inboxTask #128 · stack trace in the description
  • Fix automaticallyThe ticket starts with Nora · isolated session
  • Merge request openedFixes ERHA-128 · preview ready
Fix

Task #128: Nora wrote the fix, the merge request is waiting for your review

What delays a bug fix

Between an error appearing and its fix going live, several steps are done by hand, in separate tools.

A bug reported by a customer

Without error tracking, the team hears about the bug from a customer or from support, with neither the stack trace nor the affected version.

A ticket left waiting

A known error sits in the list until someone has time to read it and write the fix.

Tracking done by hand

Someone has to link the error, the ticket, the merge request and the release, then check the error does not come back.

From captured error to shipped fix

Error tracking is a tool of the application, available even when it is hosted outside ERHA.

The Sentry SDK sends the error to ERHA

Install the official Sentry SDK for your language with the DSN provided by ERHA, which has no SDK of its own. On a site with no build step (WordPress, HTML), a script tag is enough.

Grouping by fingerprint

Occurrences are grouped into a single error, which shows the versions, environments and pages involved, along with the people affected. Source maps are supported.

The ticket opens

Every new error opens a ticket in the Error inbox, off the board. It only reaches the board when a person or an agent picks it up.

An agent writes the fix

The Fix automatically button starts the ticket with an agent, which writes the fix in the repository through the runner. Select several errors to fix them in one click.

A merge request and its preview

In merge request mode, the fix lands on the ticket's branch, and every open merge request gets a preview on ERHA Cloud. Your team reviews the code and merges.

The error is resolved on delivery

A commit or a merge request that names the ticket (Fixes ERHA-128) moves it forward, and the error is marked resolved once the fix is delivered. It reopens if it comes back in a more recent version.

Online store
To handle3ResolvedIgnored
  • TypeError: Cannot read properties of undefined (reading 'price')src/checkout/summary.tsx · v2.14.0Regression214events
  • UniqueConstraintViolationException: duplicate key order_refsrc/Controller/OrderController.php · v2.14.0Task #31812events
  • ChunkLoadError: Loading chunk 412 failedapp/catalogue/page.tsx · v2.13.2New6events

How to set up AI bug fixing

Error tracking is added to an application that is already live, with no change of repository or hosting.

  1. 01Connect the applicationDeclare the application in a project and connect its GitHub or GitLab repository. A space admin adds the catalogue agents in one click.
  2. 02Install the Sentry SDKTake the official Sentry SDK for your language and give it the ERHA DSN. The installation can also be handed to an agent, as a task.
  3. 03Start the fixOn an error, click Fix automatically. The agent writes the fix, and all that is left for you is to review the merge request and merge.

Example: an error in the cart of an online store

A team maintains an online store built with Next.js and hosted on ERHA Cloud. After a release, the cart page throws a TypeError for some visitors.

  1. The Sentry SDK sends the error to ERHA, which groups it and opens a ticket in the Error inbox.
  2. A developer opens the error and finds the stack trace, the version where it first appeared and the suspect commit.
  3. They click Fix automatically. The ticket starts with Nora, the frontend agent, who writes the fix on the ticket's branch.
  4. The merge request arrives with its preview, where the developer tests the cart before merging.
  5. The fix is delivered, and the error is marked resolved.

Outcome

The developer only had one merge request to review and merge. If the error comes back in a more recent version, it reopens and the task goes back to To do.

Frequently asked questions

Do we need to change SDK if we already use Sentry?

No, only the DSN changes. You keep the official Sentry SDK and replace its DSN with the ERHA one, which then receives the errors. There is no ERHA SDK.

Can an agent ship a fix to production without a review?

Not in merge request mode, where nothing is merged without your team: the fix arrives on a branch, with its merge request. Direct delivery also exists and is set per application. The agent then commits to the working branch.

What happens if the error comes back after the fix?

A resolved error that comes back in a more recent version reopens, and the task goes back to To do. An occurrence from an older version does not reopen it.

Does error tracking work for an application hosted elsewhere?

Yes, error tracking does not depend on the host. Merge request previews, however, are only created for applications hosted on ERHA Cloud.

Which error data is kept?

Occurrences are kept for 90 days, with secrets filtered out and no IP address stored. The identity of the people affected is kept only if you turn the option on.

How much does a bug fix by an agent cost?

Every plan includes 5,000 error events per application per month. The agent's work is drawn from your plan's AI credit, and its usage is shown in euros on the Billing page.

Can we fix an error from Claude Code or Cursor?

Yes, through the MCP connector, which lets Claude Code and Cursor read an error and record the fix.

Hand your first task to an agent this week

Create your space in a few minutes, or book a demo to connect a first repository with the ERHA team.