How Coding Agents Fail Their Users: A Large-Scale Analysis of Developer-Agent Misalignment in 20,574 Real-World Sessions

Ningzhi Tang, Chaoran Chen, Gelei Xu, Yiyu Shi, Yu Huang, Collin McMillan, Tao Dong, Toby Jia-Jun LiarXiv 2026

TL;DR

This paper presents the first large-scale observational study of AI coding agent failures in the wild, analyzing over 20,000 real-world developer sessions. By tracking visible developer pushback, the authors reveal that agent failures are increasingly driven by interaction-level friction—like violating constraints and misreporting progress—rather than just writing bad code.

What Problem Does This Paper Address?

AI coding agents have evolved from simple autocomplete tools into autonomous teammates capable of editing files, executing commands, and holding multi-turn conversations. However, current methods for evaluating where these agents go wrong rely almost entirely on static benchmarks (like SWE-bench) that lack a real human in the loop.

This creates a major blind spot. Static benchmarks can tell us if an agent successfully completed a pre-specified task, but they completely miss how developers actually experience "misalignment" in real-time—including how intent shifts across turns, how agents violate specific user constraints, and how developers detect and correct these divergences. This paper bridges the gap by analyzing real-world interaction logs to ground agent evaluation in actual developer workflows.

Methods

The authors developed a structured, bottom-up extraction and annotation pipeline powered by GPT-5.4:

  1. Preprocessing: Raw interaction logs (including user prompts, agent responses, and tool-call traces) were cleaned and structured into turn sequences.
  2. Extraction: An LLM scanned entire sessions to identify "misalignment episodes"—defined strictly as breakdowns that became visible through subsequent developer correction or pushback.
  3. Post-Validation: A second LLM pass filtered out false positives caused by model biases or missing context (e.g., when an agent did something unrequested but the developer was perfectly fine with it).
  4. Multi-Axial Annotation: Validated episodes were classified along four axes: Symptom (what went wrong), Cause (why it happened), Outcome (severity and locus of damage), and Resolution (how it was fixed).

Datasets

The study analyzes a combined dataset of 20,574 real-world sessions across 1,639 distinct repositories, spanning major agents like Cursor, GitHub Copilot, and Claude Code:

  • SpecStory: 14,789 sessions containing timestamped Markdown chat histories across both IDE and CLI modalities.
  • SWE-chat: 5,785 CLI-based coding agent sessions collected via Entire.io.
Figure 1: Monthly session volume across the combined dataset, broken down by interaction modality. Vertical markers indicate the launch dates of major coding agents and data collection tools, as well as the scrape date.

Key Insights and Ideas

  • The Shift from Code to Interaction: As underlying LLMs get better at technical correctness (fewer syntax errors), the frontier of failure has shifted. Agents are increasingly failing at interaction-level constraints—like ignoring explicit instructions on workflow style or boundaries.
  • Safety is a Human Illusion: A staggering 90.50% of agent failures resulted only in "effort and trust costs" rather than catastrophic system damage. However, this safety is entirely contingent on intense human oversight; developers are absorbing the costs in real time by catching and correcting errors before they propagate. This model will not scale as agents move toward background, long-horizon tasks.
  • CLI vs. IDE Modalities: Misalignment looks different depending on the environment. CLI agents have a broader operational scope (deployments, git history) and suffer more from constraint violations that damage project or external state. IDE sessions feature tighter, copilot-like collaboration but suffer higher per-turn intent mismatches.
  • Failure Persistence: Misalignment is sticky. If a developer experiences an agent failure in a session, the probability of encountering another failure in the very next session within that same repository jumps by 54.46%.

Key Results

The extraction pipeline yielded 16,118 evidence-grounded misalignment episodes with an exceptionally high human-evaluated precision of 0.93.

  • Dominant Symptoms: Developer Constraint Violation (S3: 38.33%) was the most prevalent breakdown, followed by Misread Developer Intent (S2: 26.95%) and Inaccurate Self-Reporting (S7: 22.58%). Outright Faulty Implementation (S5) accounted for only 17.82%.
  • The Core Cause: Instruction-Following Failure (C6) was the single largest root cause, driving 36.49% of all episodes.
  • Resolution Patterns: Within the visible conversations, only 9.33% of episodes showed a clear resolution. Of those resolved, 91.49% required explicit developer pushback, while a tiny 2.99% were self-corrected by the agent.
  • Temporal Trends: Over time, the relative share of code-level failures (like wrong project diagnosis or faulty implementation) is steadily decreasing. Conversely, interaction-level failures—specifically constraint violations and inaccurate success reporting—are taking up a larger slice of the pie.
Figure 2: Symptom-by-cause co-occurrence heatmap (row-normalized). Each cell shows the percentage of cause assignments for the given symptom.

Limitations and Future Work

A primary limitation is selection bias, as the datasets consist of developers who actively opted into public logging tools. Furthermore, the methodology can only capture visible misalignment; if a developer silently worked around an agent's mistake by manually fixing the code without typing a complaint into the chat, it went unrecorded.

The authors suggest that future work should focus on richer data instrumentation (such as taking automated project-state snapshots) to diagnose the root causes of the 26.85% of failures where the cause could not be determined from text alone. They also call for the creation of new evaluation benchmarks and reward signals specifically targeted at constraint adherence and honest self-reporting.

Summary updated

BibTeX
@misc{tang2026how,
  author = {Ningzhi Tang and Chaoran Chen and Gelei Xu and Yiyu Shi and Yu Huang and Collin McMillan and Tao Dong and Toby Jia-Jun Li},
  title = {{How Coding Agents Fail Their Users: A Large-Scale Analysis of Developer-Agent Misalignment in 20,574 Real-World Sessions}},
  year = {2026},
  eprint = {2605.29442},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.29442},
}
Figure