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. | |||
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%.
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.
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.
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.
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.
| Failure mode | Agent-caused failures | Made work look done |
|---|---|---|
| Wrong premise | 192 | 24 |
| Rule violation | 140 | 12 |
| False success | 58 | 58 |
| Execution slip | 50 | 4 |
| Other | 21 | 4 |
| Coordination | 18 | 1 |
| Check weakening | 5 | 5 |
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.
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.
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.
What it suggests
- Most reported failures did not make work look done. About three in four reported agent failures had no effect toward looking finished. The coding cannot say whether those were confusion or errors aimed at some other goal, and single field reports cannot measure variance across repeated attempts, which is what the "hot mess" view of AI failure means by incoherence. So the log is consistent with that view without testing it, and the two small lab tests below found errors that were mostly one wrong answer repeated.
- A minority pointed toward "done", and that minority may hide. A false success claim is invisible until someone checks it, so these may be the failures a busy operator is least likely to see. That is reasoning; the log cannot test it.
- Written rules did not stop these failures. Half of agent failures mention a rule already in place, partly because of how they were coded, and seven in ten repeat failures do. The log cannot show how many failures rules prevented. Where the reports say who noticed, detection came mostly from agents and the operator, and 14% from mechanical checks; 40% of reports don't say.
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
- One workflow. One operator, two coding-agent tools and three and a half months. The shares describe this log, not coding agents in general.
- Self-reports. Most reports were written by the agent involved, often after a correction. A failure nobody noticed never got a report, and shortcuts may be the failures most likely to go unnoticed.
- What got written down changed. The agent-caused share rose from 16% of July's reports to 65% of September's. Over the same months the share of reports filed under a failure trigger (a misdiagnosis, a repeat, a broken instruction) rose from 21% to 73%, so what got written down changed, and I don't read the rise as a trend in agent behaviour.
- A model coded the reports. The blind check's sample will be small and coded by the same person who ran the workflow.
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.
Higher minus lower effort
Longer minus shorter answers on the same question
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
| Model | Tier | Correct, low | Correct, high | Incoherence, low | Incoherence, high | Incoherence, high minus low | Incoherence, longer minus shorter half (output tokens, efforts pooled) |
|---|---|---|---|---|---|---|---|
| Claude Haiku 5.5 | hard | 43% | 44% | 0.17 | 0.14 | −0.03 | +0.05 |
| Claude Sonnet 5.5 | hard | 50% | 50% | 0.05 | 0.07 | +0.02 | +0.02 |
| Claude Opus 5.5 | hard | 49% | 50% | 0.07 | 0.02 | −0.05 | +0.01 |
| GPT-6 Luna | middle | 49% | 55% | 0.22 | 0.13 | −0.09 | +0.04 |
| GPT-5.6 Terra | hard | 37% | 44% | 0.24 | 0.23 | −0.01 | −0.04 |
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.
| Model | Steps | Correct | Wrong answers | Incoherence (95% interval) | Output tokens |
|---|---|---|---|---|---|
| Claude Haiku 5.5 | 384 | 67% | 24 of 72 | 0.47 | 4,868 |
| Claude Haiku 5.5 | 512 | 56% | 32 of 72 | 0.46 | 6,429 |
| Claude Haiku 5.5 | 1,024 | 28% | 52 of 72 | 0.49 | 12,552 |
| Claude Sonnet 5.5 | 384 | 99% | 1 of 72 | 0.83 | 3,905 |
| Claude Sonnet 5.5 | 512 | 96% | 3 of 72 | 0.72 | 5,427 |
| Claude Sonnet 5.5 | 1,024 | 96% | 3 of 72 | 0.78 | 10,535 |
| Claude Opus 5.5 | 384 | 100% | 0 of 72 | no errors | 5,338 |
| Claude Opus 5.5 | 512 | 99% | 1 of 72 | 0.83 | 7,437 |
| Claude Opus 5.5 | 1,024 | 100% | 0 of 72 | no errors | 13,584 |
Intervals come from resampling tasks. The design and per-cell numbers are in pilot/results.json.
How these runs differ from the paper
- Length. The paper measures length as the model's own reasoning length, and its cleanest test splits each question's samples at the median length. The arithmetic run set length by task size, so difficulty grew with it; both runs also report the paper's same-question split.
- Samples. The paper used at least 30 samples per question; the arithmetic run used 6, the multiple-choice run 30.
- Tasks. The paper covered multiple-choice science and general-knowledge questions, agentic coding, safety questions and a synthetic optimizer; the runs here used synthetic arithmetic and multiple-choice calculation questions.
- Answer space. The arithmetic run's answers are integers from 0 to 96, the multiple-choice run's questions have 10 options, against 4 in the paper's main multiple-choice set. More possible answers can push incoherence up at the same error rate, so levels cannot be compared across the runs or with the paper; directions can.
- Randomness. The paper set a seed for every sample and, for its multiple-choice sets, varied the few-shot examples. The command-line tools used here cannot set a seed or a temperature, and every sample saw the same prompt.
- Reasoning budget. The paper set reasoning budgets; the arithmetic run used the tool's default effort, the multiple-choice run low and high effort.
- Scale. The paper's size axis is open model families with known sizes, Qwen3 in its main text; here it is product tiers whose sizes are not public.
- Errors. At the arithmetic run's lengths the two larger models made 8 errors in 432 samples, so their incoherence numbers say little; the multiple-choice run set difficulty per model so every model erred.
- Scoring. Directions are comparable: the paper reports qualitatively the same picture under its three scoring rules and both answer formats it tried; both runs use the Brier score on one answer per sample.
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.
- Code it twice. Run a second, independent coding pass, ideally with a model from another family, and report how often the two agree next to every share.
- Measure hidden shortcuts directly. Audit a random sample of sessions that reported success, not only the ones that produced an incident report.
- Test a rule against a check. For one failure mode, compare a written instruction with a mechanical check in matched sessions, and count repeats.
- Follow direction over task length. Check whether long, multi-agent runs drift toward "done" more often than short ones.
- Join the lab and the field. Scale the bias and variance measurement to agentic coding tasks on current models, and test whether the incoherent share in the lab matches the share of field failures with no effect toward done.
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/