---
title: "Fix the errors your customers hit before they write in"
description: "Production error triage every morning: Dev reads Sentry, finds the cause in GitLab, drafts a tested fix and files it in Linear before customers write in."
url: https://prosyo.com/ai-agents/use-cases/dev-fix-production-errors/
type: use_case
published: 2026-11-26T11:28:35+00:00
updated: 2026-11-26T11:28:35+00:00
author: "Shubham K."
language: en-US
---

# Fix the errors your customers hit before they write in

> Production error triage every morning: Dev reads Sentry, finds the cause in GitLab, drafts a tested fix and files it in Linear before customers write in.

Most errors in a live app never become a support ticket. A customer clicks “Save”, nothing happens, they try twice and leave. Sentry caught it, of course. It sits in a list of 300 issues next to browser extension noise and a timeout from last March, and nobody has an hour to sort the real ones from the rest. By the time someone writes in, the same bug has hit forty people.

Dev, the developer on your AI team, takes the morning shift. Every weekday it reads what broke overnight, decides what is worth fixing, finds the line in your code that caused it and hands you a merge request with a test that proves the fix. You start the day reviewing two small changes instead of digging through a dashboard.

## A shift that starts at 7:00

The job runs on a schedule you pick: every weekday at 7:00 in your time zone is a common choice, so the work is ready before standup. Some teams run it every day, including weekends, for a store or a booking app that gets its busiest traffic on Saturday. You can also ask Penny in chat at any time: “Dev, look at the checkout errors from this afternoon’s release.”

The brief sets the bar. A threshold such as “more than 20 users” or “any error on the checkout or signup route” keeps Dev from spending your credits on a one-off glitch from a single old phone.

## How Dev works through the list

1. **Collects the candidates.** It pulls issues from your Sentry project that are new or regressed in the last 24 hours, with their event count, users affected, first and last seen, and the release tag.
2. **Filters the noise.** Errors thrown from browser extensions, harmless layout warnings that every modern browser logs, requests the browser aborted when someone closed the tab and crawler traffic go into an “ignored” list with the reason written next to each.
3. **Ranks what is left.** Regressions come first, then anything on a money path (signup, checkout, billing), then by users hit. Anything under your threshold is noted and skipped.
4. **Reads the evidence.** For each issue it reads the stack trace, the breadcrumbs (the clicks and requests just before the crash) and the tags for browser, route and release. A *TypeError: Cannot read properties of undefined (reading ’id’)* on the invoices page usually tells a clear story once you see that the request before it returned an empty list.
5. **Finds the code.** It opens the repository in GitLab, goes to the file and line from the trace, and reads the commits that touched it since the last good release.
6. **Reproduces and fixes.** On its own computer it clones the branch, runs the app or the test suite in a terminal, writes a test that fails the way production failed, then changes the code until the test passes and the rest of the suite stays green.
7. **Files the work.** One Linear issue per fix, with the Sentry link, users affected, the release that introduced it, the cause in two sentences and the merge request link.

When a fix would change behavior a customer sees, such as what to show when a user has no billing address, Dev writes up the options in the Linear issue and does not open a merge request until someone decides.

## The three apps and why each one is there

- **Sentry** is the source of truth for what broke and for whom. Dev reads issues, events and release data with your account; it can also mark an issue as ignored once you agree it is noise.
- **GitLab** holds the code. Dev reads the repository and commit history, pushes a branch and opens a merge request so your pipeline runs on the fix like any other change.
- **Linear** is where your team already plans work. Every fix and every decision gets an issue there, so nothing lives only in a chat.

Each app connects with your own account, so Dev sees exactly what that account can see and nothing more. If your team plans work in a different tracker, connect that one instead and the issues land there.

## What lands on your desk

A short morning note in the chat, then the work in the places you already use. The note reads like a handover from a colleague: “14 new or regressed issues. 9 ignored as noise (list below). 3 worth fixing. Two merge requests are ready, each with a test that failed first. One needs a product decision about empty billing addresses.” Each merge request has a plain description: what users saw, what caused it, what changed, how it was tested. The run ends with a report of every step and what it cost in credits.

## Where it waits for you

Reading Sentry, reading your code and running tests on Dev’s own computer start straight away. Pushing a branch, opening a merge request, creating Linear issues or changing an issue’s status in Sentry are changes in another app, so Dev asks first and shows you exactly what it will do. Once the pattern is familiar, you can let it take specific actions on its own, for example “open merge requests and Linear issues without asking”, or switch the chat to “Don’t ask”. Either way it stays inside your plan, your credit cap per run and your working hours. Merging and deploying remain yours.

## What production error triage costs you today

Doing this by hand usually means 30 to 60 minutes each morning in Sentry, plus the time to reproduce the one bug that matters. For most small teams the agent gives back around four hours a week, and more after a busy release. The bigger change is timing: the fix is in review before the first support email, not after the tenth. Your figures will depend on how noisy your project is and how good your test suite is.

## Set it up in one sitting

1. Connect Sentry, GitLab and Linear with the accounts Dev should use. A GitLab account with developer access to the one project is enough to start.
2. Write the brief: which Sentry project, the user threshold, the routes that always count, which errors to ignore and how you like branches named, for example after the Sentry issue they fix.
3. Add your team’s conventions as a skill if you have them: test framework, lint rules, commit message format, who reviews.
4. Choose the schedule, then run it once by hand and check the first merge request the way you would check a new hire’s.

## Tips from teams that run it

- **Upload source maps.** Readable traces make Dev faster and cheaper per issue.
- **Tag releases.** When every deploy sets a Sentry release, Dev can name the exact change that caused a regression.
- **Pair it with Sam.** When Sam, your support agent, gets a ticket that matches an open Sentry issue, it can tell the customer a fix is in review and hand the details to Dev.
- **Let Pia report it.** Pia can pull the week’s fixed issues from Linear into your Friday status update, so the work shows up without anyone writing it down.

---

Source: https://prosyo.com/ai-agents/use-cases/dev-fix-production-errors/ · Prosyo
