---
id: 18829
lang: en
title: "Avito's 'Bagonetka' agent fixes 1C bugs in 2 hours instead of 16 and opens the pull request itself"
published_at: "2026-12-01 12:33:06"
source_name: "Habr AI"
source_url: "https://habr.com/ru/companies/avito/articles/1109834/?utm_campaign=1109834&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18829"
categories: ["llm", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Avito's 'Bagonetka' agent fixes 1C bugs in 2 hours instead of 16 and opens the pull request itself

> **Краткая суть (BLUF):** Previously, a small bug in Avito's 1C system could wait up to two sprints for a fix because of approvals and testing. The Bagonetka agent takes tickets of type "Bug" from Jira or Sentry, analyzes the stack trace, prepares a fix, and opens a pull request. The team estimates this takes 2 hours instead of 16, and the agent brings about 72% of bugs to a result on its own. That's why it makes sense to hand routine errors to the agent and leave verification and complex cases to people.  • Of 124 tasks in the period, 76 reached a finished branch and 54 were accepted • The changes are checked first by the AVIDA platform, then by a senior developer • The team estimates savings of 1,120 hours over 30 days across four people

Anyone who has worked with a large corporate system knows this scenario: a minor error shows up in the log, and to fix it you have to find the owner, negotiate, put the task into the plan, wait for an assignee, test, and deploy. At Avito, this was the path for bugs in 1C, and for a small fix it could take up to two sprints. At the company's internal AI hackathon, which had 314 registered participants and 70 projects that reached the final presentations, the 1C development team showed one of the most practical ideas: the Bagonetka agent, which takes a bug from ticket to a finished pull request.

## How the pipeline works

The agent pulls tickets of type "Bug" from Jira and, when needed, errors from Sentry. It then analyzes the problem, proposes a fix, and creates a pull request. Everything runs through AVIDA (Avito Developer Assistant), an internal platform that securely runs agents on a schedule or on request.

There are two checks. The first is done by AVIDA itself: if something is wrong, the code goes back to the agent for rework. The second is performed by a senior developer, and only after that do the changes go into the main branch. In effect, the human remains the last link, but no longer spends time finding the cause and writing routine fixes.

At the end, the agent writes a report: whether the solution matches the expected behavior, how confident it is in the solution, and whether the task is fully closed. The report includes a link to the finished branch. Bagonetka can be run in demo mode or on real tasks. Fixes pass security checks and quality gates.

## Why 1C, and which bugs the agent takes

1C has a particular feature: the language is dynamically typed, and some errors only reproduce at runtime under specific conditions. Add role-based access and record-level access restrictions, and testing every scenario becomes impossible.

The most common class of errors resembles a NullPointerException in Java: "The value is not a value of an object type." The code accesses a property of an object, and that property doesn't exist. Such errors appear in the registration log, the platform log. According to Maria Mikhailova, the 1C development team lead, the agent, which looks at the call graph and the stack trace, fixes them well and produces the correct fix in seven cases out of ten.

There is a second benefit. Some log entries are outdated: the error came from permissions, extensions, or an old release and is no longer relevant. The agent matches the error time against updates, checks against the current code, and can write: the problem is resolved, the ticket can be closed. For the team, this means developers focus on bugs that really need their attention.

## The numbers and an honest reading of them

The team reports that bug fix cycle time (cycle time) dropped from 16 to 2 hours, an 87.5% reduction. The agent brings about 72% of fixes to a result on its own. The freed-up time for four people over 30 days is estimated at 1,120 hours.

The operations dashboard shows where tasks drop out along the way. Of 124 tasks received, 118 reach analysis, fixes are prepared for 96, tests pass for 88, and branches are created for 76. Of the reviewed solutions, 54 were accepted and 4 rejected. The funnel narrows at each step: roughly every second or third task stays with a human or never reaches an accepted fix.

The caveats should be kept in mind. These are the team's own estimates from a hackathon, not an independent audit. The 1,120-hour figure is a savings calculation, not a measurement. Moreover, of the 76 branches created, 54 were accepted and 4 rejected as of the demo, meaning some solutions were still awaiting a human verdict. The figure of seven in ten applies only to a narrow class of errors, where the logic is clear and the stack trace points directly to the cause.

## What to take away

For teams with their own corporate platforms, the lesson is practical. First, it's better to give the agent a narrow, repetitive class of defects with a clear signal: a stack trace, a log, a ticket. Second, you need a layer that runs the agent in isolation and checks the result before a human sees it; at Avito, AVIDA plays this role. Third, the human stays on final review: the agent shortens the path to a pull request, but does not replace responsibility for the merge. Finally, funnel metrics by stage, from ticket to accepted fix, help you honestly see where the agent works and where a developer is still needed.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/companies/avito/articles/1109834/?utm_campaign=1109834&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18829
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
