
Most of the time spent fixing a bug goes into the routine around the fix, not the fix itself. Hynek Braun showed a pipeline where an AI agent takes a ticket from Redmine and returns either a merge request with the fix or a documented explanation of why the bug is not in the app. This article is based on his talk at AI pivko in September 2026, an internal meetup where Ackee developers share how they actually work with AI agents.
📋 TL;DR
- Fixing a bug by hand took ten steps: open the ticket, claim it, try the repro steps, download the logs, put them in the repo, hand everything to Claude, run it, check the output, validate the fix, and open a merge request.
- In a backend-heavy app, it often turns out only at step seven or eight that the bug isn't on mobile at all. That costs a lot of time and context.
- The goal: I give the agent a ticket and get one of two things back: a merge request with a test based on the repro steps, or a Redmine comment with evidence that the bug is elsewhere.
- The pipeline is built from ready-made blocks in a shared marketplace: tool gate, fetch context, triage, implementation and merge request.
- The most important block is fetch context: the agent has to get all the material, or it won't solve even an easy bug. Every step must say clearly when to stop and what to hand back to a human.
- Humans are left with three of the ten steps: open the ticket, try the repro steps, validate the result.
- Blockers: two iOS simulators per machine, missing reproduction and fix verification, and no way to work with video.
- Autonomous work depends on proper logging to the system log, not
print.
🐛 Ten steps for one bug
Fixing bugs by hand was a long routine. When a developer got a client bug, they opened the ticket, claimed it, tried the repro steps, downloaded the logs and put them in the repository so Claude could dig through them. Then they gave Claude the repro steps and logs, let it work, checked the output, verified the fix and opened a merge request.

The mobile app of the streaming platform Hynek works on has one more catch. It depends heavily on the backend, and the logs capture only about half of its behavior. So it often turns out the bug isn't on the app side at all: the API sent the wrong text. But you only find that out at step seven or eight, after a lot of time and context have been spent.
🚀 The ideal flow: ticket in, result out
Hynek wanted it to work like this: the agent gets a ticket and returns one of two things.
- Not our bug. A reply in Redmine with an explanation and evidence, so the ticket can go straight to the backend team.
- A merge request. A description of what was wrong and a test case matching the repro steps.

The team has come quite close to this. Most of the blocks already existed, so it was a matter of gluing them together and chaining them.
🧱 A pipeline built from ready-made blocks
The pipeline starts with one command and a Redmine ticket ID, and has five steps:
- Fetch context pulls the ticket, comments, the linked record in the client's tracker, logs and screenshots.
- Triage builds a hypothesis about the cause and backs it with evidence, or states that the cause isn't confirmed.
- Decision: does the fix belong in the app? If not (the bug is on the backend, the app works as designed, the cause wasn't confirmed), the agent writes its findings into a Redmine comment and moves the ticket to Feedback.
- Implementation covers the fix and validation, with at most three attempts.
- Merge request comes with the triage attached, and the ticket moves to To be merged.

Triage is the engine of the whole pipeline, and so far the only part that really decides the outcome. Implementation uses the same skill the team uses for features. Apart from fetch context, all the blocks live in Ackee's shared marketplace.
Fetch context: the agent has to know everything
Fetch context is the most important step. If the agent is to run autonomously, it needs everything at hand. There were cases where the agent failed an easy ticket just because the right file wasn't linked.
So the skill contains basic instructions plus references for each type of flow. For feature tickets it knows to load the architecture, API and product specifications. For client bugs it always pulls the log, without which both an agent and a developer are blind. Nobody wants to let it loose in the client's tracker, though, because it could wander there forever and the result would be unpredictable. References make the step deterministic and scalable: when the type of assignment changes, you add a new reference. They just can't be allowed to sprawl. Forty references would not be ideal.
🛑 The glue: when the pipeline stops
On a diagram the pipeline looks simple, but in practice the agent has a strong urge to get stuck. So for every step the team had to decide when to stop and what to hand back to a human.

| Step | Stops when… | The human gets |
|---|---|---|
| Tool gate | an API key or the GitLab CLI is missing, the ticket isn't a bug, or the work already exists | a command to fix it; the ticket stays untouched |
| Fetch context | a source fails: a page moved, access is missing, an attachment is broken | which source failed, and the choice to retry, paste it in manually, or skip it |
| Triage | the cause isn't confirmed or isn't in the app code | a Redmine comment with evidence, status Feedback |
| Implementation | checks still fail after three attempts, or a question comes up that the evidence can't answer | the pushed branch and a comment with the output that failed |
| Merge request | the push fails or the GitLab login expires | information about what failed; if everything passes, a merge request with the triage and the ticket in To be merged |
The first step, the tool gate, is a preflight check: does the agent have the Redmine API key and everything else the flow needs? Without it, the agent would do two or three steps and then get stuck. When a source fails, the agent shouldn't get stuck but speak up: it writes to Redmine and, ideally, changes the ticket status so the team notices.
The snags tend to be unexpected. For example, the agent found test account credentials in an attached log, decided that was a reason to stop and refused to continue. The team had to describe explicitly which data it is allowed to work with. Triage, in turn, generated questions from its hypothesis and put them to a human. In the autonomous flow it was told to spin up another agent for consultation instead of returning questions to people.
“The agent can get stuck on any nonsense. And when you tell it at the start that this is an autonomous flow, it gets stuck in every phase.”
According to Hynek, the flow now practically always finishes. There aren't many steps, and the team managed to “choke” them down so they stop dropping out. People on the team did ask for a way to stop the pipeline after triage and check the hypothesis before the agent continues, so the pipeline has a switch to manual mode. By default it runs automatically.
🔬 What the pipeline handled on real tickets
Real tickets showed what the pipeline can do and where its limits are:
- Wrong order of items in settings. Settings are usually loaded from the backend, but this screen was hardcoded in the app. The agent sorted it out on its own, including the Android logs, which arrive zipped and used to have to be unpacked by hand.
- HTML entities in text. A production bug with no logs. The backend was sending HTML elements the app didn't expect. The agent found the problem itself, even though it was an iOS ticket and an Android developer ran the pipeline.
- Missing analytics event. An example of stopping early: the agent found that the backend response lacked tracking data, so the app had nothing to log. It returned the ticket to Redmine with an explanation. Ideally it would go straight to the client's tracker, but the team doesn't want to risk that yet.
- Unsupported error code. The agent started fixing nonsense because it had no reference to the list of error codes. A single link to the documentation would have been enough.

The last example teaches the most valuable lesson: don't complain that the agent did it wrong, find out why it didn't do it right. The team doesn't let the pipeline loose on more complex bugs yet, because the results aren't worth it there.
Of the ten manual steps, humans are now left with three: open the ticket, try the repro steps and validate the fix.
🚧 What's still missing: reproduction, verification and video
The target pipeline has two new steps. Reproduction goes through the repro steps from the ticket on a real build. Fix verification repeats the same steps after implementation and checks that the symptom is gone. If it isn't, the fix is repeated, at most three times. During reproduction the agent would record the state of the app so it can compare it after the fix.

Fetch context is also meant to gain video handling. Testers often attach a video to a ticket, and the pipeline currently throws it away. Hynek tried cutting the video into frames with FFmpeg and tying them to timestamps in the log, so the agent can pull a screenshot at exactly the moment it needs one.

There are three blockers at the moment:
- Two iOS simulators per machine. iOS runs can't be scaled and have to queue. Android emulators are technically easier but more resource-hungry. If every developer started the pipeline on three bugs with validation in the morning, the infrastructure couldn't take it.
- Before-and-after verification. The agent can't yet click through the app consistently. The way forward is accessibility identifiers, but it has to run somewhere reliably.
- Images and video. Claude reads screenshots, but it can't watch video.
The goal is for the pipeline to run on Ackee's internal agent infrastructure, without a developer's computer. The team is also considering:
- self-improving review rules: comments from merge requests turn into rules, so they have to be written in a way an agent can learn from, not just "I don't like this",
- small overnight refactors: one merge request for each, ready by morning,
- Crashlytics crashes straight to a fix: crash, Redmine task, fix, Slack notification.
📜 Logging: autonomous work doesn't happen without it
Rostislav Babáček, who tried the pipeline himself, shows how much logging matters. On the first day he had four bugs and the pipeline solved three. On the fourth, the agent latched onto an error that wasn't the first one in the log but followed from the original. Babáček first thought the agent couldn't read the log efficiently. Then he found that the error causing the problem was never written to the log at all. It was only printed via print, so the agent had nowhere to read it from.
For autonomous bug fixing, proper logging to the system log is one of the most important things. On the streaming project, the team logs the screen lifecycle, network communication and errors in clearly defined categories, and gives the agent a reference of what each category means. Claude can refactor logging on another project to match that pattern by itself, and quickly.
Autonomous pipelines also change what a developer's day looks like. Babáček mentions a pattern the community calls day shift / night shift: during the day people write PRDs, plans and reviews, and overnight agents implement. Instead of constantly switching between planning, checking implementations and Slack, developers would set aside focused blocks for one type of work. According to Babáček, this may be the way to keep your sanity with agentic development.
Frequently asked questions
print instead of written to the system log doesn't exist for it. Proper logging in categories is therefore a precondition for autonomous bug fixing.🎯 Key takeaways
Autonomous bug fixing doesn't rest on one clever prompt but on assembling existing blocks: a preflight check, context loading, triage, implementation and a merge request. Each step has to know when to stop and what to hand back to a human, otherwise the agent gets stuck on the first small thing.
Most of the blocks are generic and you'll find them in Ackee's shared plugin marketplace. Only fetch context is project-specific. It's worth running the pipeline on trial tickets and collecting data on what the agent can fix and what it can't. That data also lets you tell product managers which bugs the agent will handle and which to leave to people.
How AI agents are used in mobile app testing is covered in the article on QA with Claude Code and Maestro. What such an agent should and shouldn't be allowed to do is covered in the article on permissions in Claude Code. The design of the whole feature flow that the pipeline borrows its blocks from is in the article on the quality of AI agent output.
AI pivko mini-series: AI agent output quality: five layers and workflows · PRD flow: one spec for iOS and Android
More notes like this from Ackee are in our newsletter. Subscribe and the next one lands straight in your inbox.




