Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Coding-agent incidents: a field study

An LLM labelled 1,162 incident reports from my agent workflow in one pass: 23% of reported agent-caused failures made unfinished work look done, most of those by definition.

The reports were written whenever something went wrong or a lesson was worth keeping. In 484 of them an agent's own action or claim was the main cause. Of the 473 of those whose effect was clear, 108 pushed toward looking finished: success claimed without evidence, a check loosened until it passed, a step skipped that would have exposed the problem. The labels show what an error did, not why it happened. In half of the agent-caused failures the report says a written rule already covered the problem. That share is partly built in, because the codebook assigns a report to the agent when a rule covered the behaviour; only 15% of workflow gaps mention a rule.

Key figures

Reports labelled1,162July to mid-October 2026, one operator, two coding-agent tools Agent's own action42%484 reports, pooled over months that ran from 16% in July to 65% in September as filing changed Made work look done23%108 of 473 agent-caused failures with a clear effect, in one LLM labelling pass; 63 of the 108 count by definition (false successes and weakened checks), and the other failure modes alone give 11% (45 of 410); the 95% interval, 19% to 27%, assumes reports are unrelated, which is doubtful Despite a written rule51%249 of 484 agent-caused failures, partly built in: the codebook counts rule-covered reports as agent-caused; against 15% of workflow gaps

Main limitation The reports are self-reports, mostly written by the agents, and an LLM assigned the labels in a single pass, so how much a second pass would change them is unmeasured; my blind check of the labels on a random sample is planned, not done. Only failures someone noticed got a report, so the share among all failures could be higher or lower: higher if the unnoticed ones lean toward looking done more than the reported ones, which this log cannot test.

23% of the agent-caused failures with a clear effect made unfinished work look done, most of those by definition; the other 77% had no such effect.

Share of the 473 agent-caused failures whose effect was clear (from 1,162 labelled reports); the 95% interval for looking done is 19% to 27%.

  1. Made work look done23% (108)
  2. No such effect77% (365)

The same chart, with its counts, is in the Looking done section.

In plain words

I run software and research work with AI coding agents: several agents at once, each in its own terminal session, working from written instructions, command files and mechanical checks. When something goes wrong, or a lesson is worth keeping, the agent involved or I write a short incident report into a shared log. This study codes every dated report in that log from July to mid-October 2026.

The question is what kind of failures these are. Some look like a hot mess: the agent is confused, and its errors point in no particular direction. Others look like a shortcut: the error consistently points one way, toward work that looks finished when it isn't. Shortcuts matter more for safety, because they hide themselves. The coding can see only the second kind directly: it records whether each error made the work look more finished, and an error with no such effect may be confusion or an error aimed at some other goal. The study also asks who caught each failure, how far it got, and whether a written rule had already covered it.

One operator's workflow over three and a half months; the reports were mostly written by the agents themselves and labelled in one LLM pass, and the author's blind check on a random sample is planned, not done. Only failures someone noticed got a report, so the share among all failures could be higher or lower: higher if the unnoticed ones lean toward looking done more than the reported ones, which this log cannot test. The shares describe this log, not coding agents in general.

Incident report
A short note written after something went wrong or a lesson was learned: what happened, why, and the fix.
Coded, labelled
Each report got one answer to each question in the codebook. It has nothing to do with writing software.
Agent-caused
An agent's own action, claim or omission was the main cause, and its instructions didn't require it.
Made work look done
The effect of the error, not a motive: the work looked more finished, verified or compliant than it was.
Prior safeguard
The report says a written rule or a mechanical check already covered the problem.
95% interval
The range from sampling alone, if reports were independent.

42% of reports name the agent's own action as the main cause

The rest aren't agent failures in this sense. In 35% the agent did what its instructions said and the instructions were wrong or missing, so the fix belonged in the workflow. 5% were a tool or platform behaving unexpectedly, and 16% recorded a lesson with no failure at all.

Main cause share of all 1,162 reports
  1. Agent's own action42% (484)
  2. Workflow gap35% (410)
  3. Lesson, no failure16% (190)
  4. Tool or platform5% (59)
  5. Unclear2% (19)

Wrong premises and broken rules make up most agent failures

A wrong premise is acting confidently on a wrong fact or diagnosis, such as "the file is missing" when it isn't, or the wrong cause for a failing test. A rule violation is breaking an instruction the agent had. False success is reporting something done, passing or fixed without the evidence for it. Check weakening, loosening or skipping a test or gate until the work passed, was rare: 5 reports. 36% of agent-caused failures (173 of 484) involved more than one agent or session.

Failure mode share of the 484 agent-caused failures
  1. Wrong premise40% (192)
  2. Rule violation29% (140)
  3. False success12% (58)
  4. Execution slip10% (50)
  5. Other4% (21)
  6. Coordination4% (18)
  7. Check weakening1% (5)

108 of 473 agent failures made unfinished work look done, 63 of them by definition

For each agent-caused failure, the coder asked one question about its effect: did the error make the work look more finished, verified or compliant than it was? 11 reports didn't say enough to tell and are left out.

Effect of the error share of 473 agent-caused failures with a clear effect
  1. Made work look done23% (108)
  2. No such effect77% (365)

Every false success and every check weakening counts as making work look done, by definition; together they are 63 of the 108. Leaving those two modes out, 45 of the remaining 410 failures (11%) still pointed toward done: a broken rule that hid missing work, or a wrong premise that let a check pass.

Failures that made work look done, by failure mode
Failure modeAgent-caused failuresMade work look done
Wrong premise19224
Rule violation14012
False success5858
Execution slip504
Other214
Coordination181
Check weakening55

40% of agent failures don't say who noticed; among the rest, agents noticed more than mechanical checks did

The agent that made the error, or another agent reviewing it, noticed 36% of agent-caused failures first. The operator noticed 15%, and a mechanical check (a test, a gate, a hook) 8%. 40% of reports don't say who noticed, which is a limit of the reports rather than a finding. Among the 288 reports that do say, agents noticed 60%, the operator 26% and checks 14%. Most reports were written by the agent involved, and if every unstated case had been a check, checks would lead, so the ranking is not settled.

Who noticed first share of the 484 agent-caused failures
  1. Not stated40% (196)
  2. The same agent19% (92)
  3. Another agent17% (80)
  4. The operator15% (74)
  5. A mechanical check8% (40)
  6. Someone outside0% (2)

Across agent-caused failures and workflow gaps together (894 reports), 29% left a bad artifact behind, such as a wrong commit, a damaged file or a misleading report, and 4% got outside the workflow before anyone caught them.

How far it got share of 894 agent-caused failures and workflow gaps
  1. Wasted effort only31% (280)
  2. Left a bad artifact29% (255)
  3. Caught before any effect25% (220)
  4. Not stated12% (103)
  5. Got outside the workflow4% (36)

Half of agent failures mention a written rule, partly because of how they were coded

In 249 of 484 agent-caused failures (51%), the report says a written instruction already covered the problem. Among the 229 reports flagged as a repeat of an earlier problem, 160 (70%) say so. Written rules didn't stop these failures from happening, often more than once. The study can't say how many failures rules prevented, because a prevented failure leaves no report.

Part of this share comes from the codebook. When a report says an existing instruction already covered the right behaviour, the codebook assigns it to the agent rather than to the workflow, so rule-covered reports collect among the agent-caused ones, and the 140 rule violations need a rule by definition. Among the 410 workflow gaps, 62 (15%) mention a rule.

Safeguard already in place share of the 484 agent-caused failures
  1. A written rule47% (227)
  2. None mentioned45% (218)
  3. A rule and a check5% (22)
  4. A check only4% (17)

What it suggests

Method

In the current-models section, the length result reverses once six questions are set aside, questions where every model disputed the answer key (a check added after the results). The section shows the result with and without those questions, and its headline says no link held up.

The reports

Every dated report in the log from 1 July to 16 October 2026: 1,162 reports. Before coding I left out reports outside that window or without a date, template stubs and exact duplicates. No report text is published; this page gives counts only.

The codebook

Seven questions per report: the main cause, the failure mode, the direction of the effect, who caught it, how far it got, whether more than one agent took part, and whether a safeguard already existed. When a report could be the agent's fault or the workflow's, one rule decides: if the report says an existing instruction already covered the right behaviour, it counts as agent-caused. I tuned the codebook on a pilot of 40 reports that aren't in the validation sample, then froze it. It is published as codebook.md.

The coder

An LLM coded every report, with no tools, no project files in its context and the codebook as its only instructions. It comes from the same model family as one of the two coding tools in the log, so it is not independent of every agent it labels. Each set of codes came with a quote from the report as evidence, checked mechanically against the report text: 1,161 of 1,162 matched exactly. All 1,162 reports received valid codes. This was one coding pass: no report was coded twice, so how much the codes would move on a second pass is not measured, and the 95% intervals cover only which reports were filed, not the coder.

Validation

A random sample of 60 reports is set aside for me to code blind, with the same codebook and before looking at any model code. This page reports no agreement figure.

Statistics

Shares carry 95% Wilson score intervals. Every share states its denominator. The intervals treat reports as independent, which is doubtful here: the log is a full census, 229 reports are flagged as repeats, and what got filed changed by month. The aggregate counts are in results.json.

Limits

On current models, two small tests found no link between length and incoherence that held up

This study looks at failures in the field. Its lab companion is "The Hot Mess of AI" (Hägele, Gema, Sleight, Perez and Sohl-Dickstein, ICLR 2026), which measures a model's incoherence as the share of its error that comes from variance across repeated attempts rather than from bias, and finds that the longer models reason and act, the more incoherent their errors become. I ran two small tests of that question on current models, with my own implementation of the paper's definition on the Brier score, not its code.

The arithmetic run lengthened tasks: Claude Haiku 5.5 got much less accurate but not clearly more incoherent, and the larger models barely erred. The multiple-choice run used questions at each model's own difficulty, with more samples and two reasoning efforts: errors were mostly one wrong answer repeated, largely on questions whose answer key may be wrong, and the small length and effort effects changed with the length measure and with the questions counted.

The multiple-choice run: questions at each model's own difficulty

This run uses multiple-choice questions instead of arithmetic, 30 samples per question instead of 6, two reasoning efforts, and a difficulty set for each model so the larger models also err. The questions are science and engineering calculations from SuperGPQA, an open set (ODC-BY licence). Each model got the SuperGPQA difficulty tier ("middle" or "hard", the dataset's own labels) whose error rate in a screening pass was closest to 40%, and answered 10 questions 30 times at low and at high effort, 3,000 samples in all; models on the same tier saw the same questions. The GPT models ran through their provider's client, which adds its own system prompt; the Claude models had the arithmetic run's one-line system prompt.

Incoherence is 0 when a model gives the same wrong answer in every sample, so its error is one wrong answer repeated, and it rises as its answers to a question vary, right mixed with wrong or wrong answers that scatter. Near 1 means mostly right with occasional errors; a model that is always wrong with scattered answers stays under 0.5.

Two tests per model differences in incoherence, with 95% intervals

Higher minus lower effort per model, all questions

  1. Claude Haiku 5.5−0.03−0.12 to +0.04
  2. Claude Sonnet 5.5+0.02−0.01 to +0.06
  3. Claude Opus 5.5−0.05−0.15 to 0.00
  4. GPT-6 Luna−0.09−0.17 to −0.02
  5. GPT-5.6 Terra−0.01−0.10 to +0.12

Longer minus shorter answers on the same question the longer 15 minus the shorter 15 of each question's 30 samples at one effort, by output tokens, both efforts pooled

  1. Claude Haiku 5.5+0.05+0.01 to +0.10
  2. Claude Sonnet 5.5+0.02−0.001 to +0.07
  3. Claude Opus 5.5+0.01−0.02 to +0.07
  4. GPT-6 Luna+0.04+0.001 to +0.08
  5. GPT-5.6 Terra−0.04−0.09 to +0.01

Each dot is the estimate and each line its 95% interval, from resampling questions 2,000 times; the rule marks zero, no change. The scale runs from −0.20 to +0.20. Highlighted rows have an interval that misses zero.

Show the data
Multiple-choice run by model: difficulty tier, share correct and incoherence at low and high effort, the incoherence change with effort, and the same-question length test, with 95% intervals
ModelTierCorrect, lowCorrect, highIncoherence, lowIncoherence, highIncoherence, high minus lowIncoherence, longer minus shorter half (output tokens, efforts pooled)
Claude Haiku 5.5hard43%44%0.170.14−0.03 (−0.12 to +0.04)+0.05 (+0.01 to +0.10)
Claude Sonnet 5.5hard50%50%0.050.07+0.02 (−0.01 to +0.06)+0.02 (−0.001 to +0.07)
Claude Opus 5.5hard49%50%0.070.02−0.05 (−0.15 to 0.00)+0.01 (−0.02 to +0.07)
GPT-6 Lunamiddle49%55%0.220.13−0.09 (−0.17 to −0.02)+0.04 (+0.001 to +0.08)
GPT-5.6 Terrahard37%44%0.240.23−0.01 (−0.10 to +0.12)−0.04 (−0.09 to +0.01)

Per-cell numbers, both length measures (output and thinking tokens) and every interval: pilot/v2-results.json.

Higher effort made GPT-6 Luna less incoherent (−0.09, −0.17 to −0.02), the direction the paper reports for larger reasoning budgets, though at low effort GPT-6 Luna used no reasoning tokens. Claude Opus 5.5 leaned the same way, but its interval reaches zero, so it shows no direction at this size. At low effort GPT-6 Luna gave 3 unreadable answers in 300, and these count as errors. For Claude Haiku 5.5, Claude Sonnet 5.5 and GPT-5.6 Terra the change sat within noise. On the same question, the longer-minus-shorter difference by output tokens has a 95% interval above zero for Claude Haiku 5.5 and GPT-6 Luna, by small margins (GPT-6 Luna's lower bound is +0.001); split by thinking tokens instead, it is Claude Haiku 5.5 and Claude Sonnet 5.5. With 10 intervals, chance alone would leave fewer than one missing zero on average; 3 do, and none of the 3 survives the answer-key check below. Claude Sonnet 5.5 and Claude Opus 5.5 gave one answer in all 30 samples on 7 to 9 of their 10 questions, so their incoherence rests on 1 to 3 questions.

A caution about the answer key. On each of 3 questions, all 240 samples from the 4 models that answered it, from both families, gave one same answer, and it was not the dataset's key. The measure counts that as bias, a consistent error, but a wrong key in the dataset would look identical. On 3 of GPT-6 Luna's questions (no other model shared its tier), it never gave the key and gave one same wrong answer in 177 of its 180 samples; with one model, a wrong key and a model error cannot be told apart. Without those 6 questions (a check added after seeing the data, 7 questions per model), incoherence at high effort is between 0.05 and 0.51. By output tokens no model's longer-minus-shorter difference has an interval above zero (Claude Sonnet 5.5's reaches zero); GPT-5.6 Terra's has one below zero (−0.11, −0.18 to −0.04); by thinking tokens Claude Sonnet 5.5's stays above zero (+0.06, +0.01 to +0.19); and GPT-6 Luna's change with effort is no longer clear (−0.09, −0.19 to +0.21). Across both length measures, with and without these questions, the estimate is above zero all 4 times for Claude Haiku 5.5, Claude Sonnet 5.5 and Claude Opus 5.5, and below zero all 4 times for GPT-5.6 Terra; the 4 versions share most of their data, so this is one pattern, not 4. Picking the tier where models often miss can also pick disputed keys, so a cleaner test needs an expert-validated question set. Per-question answers: pilot/v2-key-agreement.json; the check: pilot/v2-results-keycheck.json.

The arithmetic run: tasks of growing length

Synthetic modular-arithmetic tasks with a known answer at 384, 512 and 1,024 steps, 12 tasks per length and 6 independent samples per task, at the command-line tool's default reasoning effort. Claude Haiku 5.5 made no errors up to 256 steps, which is why the tasks are this long. Claude Haiku 5.5 got much less accurate as the tasks grew, from 67% correct at 384 steps to 28% at 1,024, but its incoherence barely moved, from 0.47 to 0.49, and the intervals overlap. Its errors grew in bias and in variance together. The larger models barely erred at these lengths: Claude Sonnet 5.5 got 7 of 216 wrong and Claude Opus 5.5 got 1 of 216 wrong. Their few errors read as mostly variance (0.72 to 0.83), but a single wrong answer among 6 samples of a task scores 0.83 by construction, and on its question sets the paper finds larger models more incoherent only for the hardest questions; these were easy for them, so this says nothing either way. Run on these samples, the paper's same-question test (each task's 6 samples split into the shorter and the longer 3 by output tokens) showed no clear difference for Claude Haiku 5.5: 0.37 against 0.38 (difference +0.003, 95% interval −0.06 to +0.07); with 3 samples against 3 it can miss an effect of the size the multiple-choice run saw. Both halves read lower than the table below because a 3-sample estimate understates variance by a third; the factor is the same for both halves, so it does not change which is higher. Details: pilot/median-split.json.

Arithmetic run: accuracy and incoherence by model and task length
ModelStepsCorrectWrong answersIncoherence (95% interval)Output tokens
Claude Haiku 5.538467%24 of 720.47 (0.32 to 0.62)4,868
Claude Haiku 5.551256%32 of 720.46 (0.42 to 0.55)6,429
Claude Haiku 5.51,02428%52 of 720.49 (0.45 to 0.55)12,552
Claude Sonnet 5.538499%1 of 720.83 (one wrong answer)3,905
Claude Sonnet 5.551296%3 of 720.72 (0.67 to 0.83)5,427
Claude Sonnet 5.51,02496%3 of 720.78 (0.75 to 0.83)10,535
Claude Opus 5.5384100%0 of 72no errors5,338
Claude Opus 5.551299%1 of 720.83 (one wrong answer)7,437
Claude Opus 5.51,024100%0 of 72no errors13,584

Intervals come from resampling tasks. The design and per-cell numbers are in pilot/results.json.

How these runs differ from the paper

What I would study next

The next part, runtime failures and recovery, tests whether an agent's side effects stay correct when its run crashes, is delivered twice or is cancelled.

Use this at your company

To run the same study on your own team's agent work, paste this into your AI assistant along with your incident reports or postmortems.

This method comes from Diogo Travassos's study "Coding-agent incidents" (https://diogotravassos.dev/coding-agent-incidents/). If you can open links, read it first: it works the method through end to end, with its checks. The steps below stand on their own if you can't.

Help me find out how our AI coding agents fail, using the incident notes we already keep.

Method:
1. Collect every dated incident report or postmortem about agent work in a fixed window. Leave out undated reports, empty templates and exact duplicates.
2. Write a short codebook: the main cause (the agent's own action, a workflow gap, a tool problem, unclear), the failure mode (wrong premise, broken rule, false success, slip), whether the effect made unfinished work look done, who caught it (the same agent, another agent, a person, a mechanical check), how far it got, and whether a written rule already covered it. Tune it on 40 reports, then freeze it.
3. Code every report with the frozen codebook, quoting the sentence that supports each code.

Data you need: the reports, with their dates and any tags.

Checks before trusting the result:
- Confirm every quote appears word for word in its report.
- Ask me to code a random sample of about 30 reports without seeing your codes, and report how often we agree.
- Give every share its denominator and a 95% interval.
- Before calling anything a trend, check whether the way reports were written changed over the window.

Report back: shares by cause, failure mode and who caught it, the share that made work look done, the share that happened despite a written rule, and the limits: one workflow, reports mostly written by the agents, and failures nobody noticed never reported.

In your report, say which study you followed and link it: https://diogotravassos.dev/coding-agent-incidents/