WorksComputer Science
Your Wish Is My Commit: Over-Compliant Refactoring in AI Coding Agents
Abstract
Large language models are known to be sycophantic, over-complying with users even when doing so is unproductive. When these models act as coding agents, this can be costly: an agent that keeps editing after no edit improves the code writes churn, technical debt, and review burden into the codebase. Yet the consequences of sycophancy in software engineering remain largely understudied. To understand them, we run a controlled study of iterative refactoring, an open-ended task with no stopping criterion, where any edit an agent makes once the code is already clean reflects compliance rather than improvement. Across algorithmic (n=50) and object-oriented (n=10) suites, we repeatedly ask two widely used agents, Codex and Claude Code, to refactor further across five models. Over 3,000 turns, we define six behavioral signals of over-compliance. We hypothesized that a capable agent would stop once it recognized an optimized codebase; none did. Every model kept editing, rewriting up to 31x the original codebase before first stopping and resuming edits even after declaring the task complete. Over-compliance is a costly, multi-turn behavior that compounds with every turn, and our six signals give developers and tool builders a way to detect and curb it.
Introduction
Large language models often adapt to a user’s apparent preferences rather than to the task at hand. Prior work calls this sycophancy: models agree with stated views, praise weak arguments, and revise correct answers after pushback [1, 2, 3]. The behavior appears across question answering, advice, and reasoning, which marks it as a property of how models are trained and aligned, not an artifact of any one prompt [1], [2], [4]. A model that optimizes for approval over correctness reinforces mistaken assumptions, suppresses useful disagreement, and weakens the user’s reliance on its judgment [5, 6, 7].
A coding agent is the same model placed in a development harness [8], [9]. Because sycophancy is a model-level behavior, it should carry over into software engineering, where developers now rely heavily on these models: a large majority already use or plan to use AI coding tools [10], [11]. A coding agent does not return text to read; it edits artifacts that are committed, reviewed, and maintained. An agent that keeps editing to fulfill the user’s wishes, after the edits stop improving the code, writes that compliance into the codebase
as unnecessary code, technical debt, wasted generation, and added review burden [12, 13, 14].
Two lines of work bear on this behavior but miss it. Studies on natural-language benchmarks show that sycophancy is real and systematic, but observe it only where the artifact is the model’s reply [1], [2], [4]. Benchmarks for coding agents measure whether agents resolve issues and pass tests [8], [9], [15], rewarding a correct change but never the absence of one. Whether coding agents are over-compliant, editing code to satisfy a request rather than improve it, remains unmeasured.
The process of refactoring uniquely isolates this behavior. A refactoring request is open-ended: “clean this up” admits many responses and rarely carries a stopping criterion [16]. When further editing is no longer warranted, a calibrated agent should decline; any edit it then makes reflects compliance, not improvement. Such edits are not free: code churn is a known predictor of defects [17], AI-assisted coding has been linked to rising churn and quality decline [13], and larger changes are harder to review effectively [18], [19], with a deployed LLM reviewer shown to slow pull requests and introduce unnecessary corrections [20], [21]. This gap matters most for novice and vibe coders, who drive agents through natural-language prompts without a clear sense of where the refactoring boundary lies [10], [11].
We study iterative refactoring under these conditions and ask four questions. RQ1: How many turns does an agent take to stop editing? A calibrated agent completes refactoring after one warranted pass. RQ2: How much code does it change before stopping? The volume of unnecessary change measures the direct cost of this phenomenon. RQ3: Once an agent stops, does it stay stopped? Editing after stating that no change is needed is a stronger failure than stopping late, because the agent acts against its own stated judgment. RQ4: What kind of changes do the extra turns produce? Disciplined refactoring and incidental churn carry different maintenance costs.
To answer these questions, we run our experiments on two suites of controlled codebases: canonical solutions to algorithmic problems () and object-oriented Java from [22] course assignments (). We drive two widely used agents, Codex and Claude Code, across five models (GPT-5.4, GPT-5.4-mini, GPT-5.5, Claude Sonnet 4.6, and Claude Opus 4.8) through their command-line interfaces. At each of 10 turns, a simulated developer agent asks the coding agent to refactor further without naming a file, a target, or a reason, so any change between turns is the agent’s own choice. We record every line-level and structural change and define six signals, built on differences in lines and Code Structure Tree [23], that turn “the agent kept editing” into measured quantities.
Our results show that over-compliant refactoring is not a rare case, but a persistent multi-turn behavior. Rather than reliably stopping when the code is already adequate, every model continues editing. The resulting changes produce substantial churn, introduce and remove structure across turns, and continued editing even after the agent indicates that no further refactoring is needed. These findings show that coding-agent sycophancy can manifest as operational compliance in code, not just agreement in language. By characterizing this behavior and measuring it with concrete signals, our work provides a basis for evaluating over-compliance in coding agents.
Formalization
We track agent behavior across turns from two complementary views. The line-level diff counts added and deleted lines between turns, providing an intuitive measure of churn. The structural view captures which program elements the agent adds, deletes, edits, and revisits. The first tells us how much the agent changes; the second tells us what it changes and whether those changes undo or recreate its own prior work.
On top of these two views, we define six behavioral signals that serve as proxies for over-compliance. Together, these signals quantify not only whether an agent continues to edit under repeated refactoring requests, but also how much it edits, which structural elements it revisits, and when it contradicts or recreates its own earlier changes.
Let be the initial code version handed to the agent, and let be the version produced after turn , for . Across all turns, the agent is asked to keep refactoring without any new functional requirement, so any difference between and reflects the agent’s own choice.
For each transition , the diff reports added lines, deleted lines, and edited (in-place modified) lines. We summarize the size of a turn’s edit as . To record whether a turn changed anything at all, and to compare codebases of different sizes, we define and as follows, normalizing each edit by , the size of the starting codebase, to make comparable across codebases.
A key event is the first turn at which the agent leaves the code unchanged, indicating task completion.
If the agent never produces a zero-change turn, we set . The first three signals are defined around this convergence point.
Temporal Line-Change Signals
— Pre-Convergence Churn: Even an agent that eventually stops may rewrite far more than the task warrants on the way there. captures the total normalized churn the agent spends before it first stops:
Because is normalized, a value of means the agent rewrote the equivalent of 4.8 times the original codebase before settling.
— Post-Convergence Modification: Reaching a no-change turn should mark completion. measures whether the agent resumes editing after convergence:
Any positive value indicates post-convergence editing, a direct sign of over-compliance.
Self-Consistency Signal
— Verbal-Refusal Edit Rate: Stopping late and editing too much are failures of restraint; editing in the same turn the agent states it has nothing to do is a failure of consistency. Let indicate that the agent’s reply at turn contains stop-claim language under the keyword classifier of Section III-E. is the fraction of stop-claiming turns in which the agent nonetheless makes a non-zero code change:
A value of means the agent accompanied every edit it made with a statement that no edit was needed.
Structural Representation via the CST
Line counts cannot reveal whether deleted code later reappears or whether the same method is repeatedly edited. We therefore use a structural view based on RefDiff 2.0.0 [23], adapting only its surrounding driver for our multi-turn setting.
RefDiff parses each version into a Code Structure Tree (CST), a language-independent model whose nodes are the coarse-grained, named code elements of a program. For Java these are classes, interfaces, enums, and methods; local variables and statements are left out as too fine-grained for a refactor. Let be the set of CST nodes present in . Each node has a canonical identity given by its type, qualified name, and signature, so the same method keeps its identity across versions and set operations on are well defined. For each transition we form the added and deleted node sets and . In Figure 1, the agent renames sum to total and extracts a new add method, so by identity alone and . RefDiff also produces a relationship set that links a node in to its counterpart in , which is what tells us sum was renamed to total rather than discarded. From we read the touched nodes, those present on both sides of the transition but modified during the turn:

Figure 1. One refactoring turn on RefDiff’s Calculator example, shown as a side-by-side diff with the CST annotated on the code. Each box is a CST node; nesting reflects the class containing its methods. The agent renames sum to total and extracts the addition into a new add method, giving (green) and (red). RefDiff’s relationship set then links nodes across versions (Same, Rename, Extract): by identity alone sum looks deleted, but reveals it was renamed to total rather than discarded.
To separate real edits from nodes that merely persist, we compare the normalized source text of each matched pair, and count a node as touched only when its body changes.
Finally, because rollbacks and reappearances span more than a single transition, we also compare non-adjacent snapshots, linking a node deleted at one turn to its later reincarnation, even when it returns under a different name or signature.
Structural Node Signals
1) — Feature Rollback/Removal: If the agent adds a code element and then removes it, the addition was never needed. counts how many agent-created nodes are later deleted across the run:
Therefore iff some node the agent introduced was later removed.
2) — Reimplementation Loop: An agent can go even further than rolling a change back: it can delete a node and then bring it back, leaving a present-absent-present trail across turns. Over the node universe , counts the elements that follow this pattern:
A positive value means the agent deleted a code element and later reintroduced it, redoing work it had already undone. The definition applies to both original and agent-created nodes.
3) — Patch-Region Recurrence: An agent that keeps returning to the same code is not converging on it. Let the changed-node set at turn collect everything the turn altered,
and let be the nodes changed before turn . The fraction of a turn’s edits that land on already-touched nodes is
and averages this recurrence over the run ():
A high value means later edits repeatedly revisit code the agent already changed.
Method
We fix turns, hand each agent a codebase, and at every turn ask it to refactor through a simulated user agent. Refactoring has no built-in stopping point, and knowing when to stop is an experience a novice lacks. The fast-growing population of “vibe coders”—people who direct an agent in natural language without reading the diff closely—cannot tell an already-optimal codebase from one that still needs work, so they keep asking While the agent keeps complying, the blind lead the blind. We simulate this user type because it resembles a worst-case scenario, where neither party holds the boundary, and over-compliance does the most damage. Our aim is not to reproduce a typical session but to expose this shortcoming under a deliberately demanding, semi-adversarial user that a robust agent should be able to withstand.
Experimental Protocol
Each run is a multi-turn session driven through the agent’s command-line interface. After the first turn, each subsequent turn resumes the same session, preserving the agent’s conversation history, prior edits, and explanations. The simulated developer is initialized with the baseline snapshot and a system prompt (provided in supplementary materials [24]) that forbids it from specifying what to change, where, why, or how; it may only ask for further refactoring. Any difference between and is therefore the coding agent’s own decision to keep modifying the code. Each codebase lives on its own isolated branch and worktree, so the agent sees only the target project, and the turns are committed in sequence to yield .
Datasets
We use two families of minimal code that leave little room for meaningful refactoring, so additional edits largely amount to over-editing. a) Algorithmic problems: The first benchmark family consists of 50 data structures and algorithms, randomly drawn from [25], along with their implementations in the GeeksforGeeks reference solutions [26]. The subjects cover common algorithmic topics, including searching and sorting, graph traversal and shortest paths, dynamic programming, balanced trees, hashing, string matching, and number theory. Each subject is a single self-contained Java file, intentionally small and already clean, ranging from 13 to 229 lines.
b) Object-oriented academic code: The second family is object-oriented Java student coursework drawn from the Menagerie corpus of graded assignment submissions [22]. From this corpus, we select the 10 highest-graded submissions from the most recent years; each is a complete, multi-class, multi-method program (roughly 16–34 source files) that complements the algorithmic set with realistic object-oriented structure. Two authors manually inspected the selected submissions to ensure their diversity and quality.
Agents and Models
We study the two coding agents in widest use, Codex and Claude Code, driving them through their command-line interfaces so that each turn is a real agent session rather than a bare model call. Across the two agents we cover five models: GPT-5.4, GPT-5.4-mini, and GPT-5.5 through Codex, and Claude Opus 4.8 and Claude Sonnet 4.6 through Claude Code. We set the reasoning effort to high for all five models.
Software Quality Metrics
We measure codebase quality at the initial state and after every iteration of each run. We compute these metrics using two static-analysis engines. SonarQube Community Build 25.1 (SonarJava 8.8, run on Java 17 via SonarScanner 8.1) provides cyclomatic and cognitive complexity, code smells, duplication density, the SQALE maintainability rating, and the technical-debt ratio. CK 0.7.0 provides class-level coupling between objects (CBO) and per-method cyclomatic complexity.
Most quality improvement occurs in the first turn. Across branches, cognitive complexity, code smells, and technical-debt ratio all drop sharply after the first pass, while later turns provide only marginal additional gains (Figure 2). At the branch level, the first turn accounts for most of the net baseline-to-final improvement, and all models reach SonarQube’s highest maintainability rating. Thus, the code is already near the best quality level the agent will achieve after one pass. Editing nevertheless continues after these quality metrics plateau. Later turns add code and increase coupling without corresponding quality gains.
Figure 2. Quality metrics vs. editing turn, per branch and model. Cognitive complexity, code smells, and technical debt drop sharply after the first turn and then plateau, while coupling (CBO) continues to rise as editing continues, indicating that most improvement occurs in one pass, and later turns add code without quality gains.
Stopping Mechanism
We treat a turn as a stop when the agent finishes successfully and writes zero net lines: with an empty diff. For each stop turn, we extracted the agent’s reasoning trace and its reply to the user. Two authors went through two rounds of collaborative qualitative coding [27] and observed that three main categories emerged: Refusal is an explicit decline to act. Optimum-awareness claims the code is already optimum. Questioning redirects the request to the user and asks for a concrete goal before proceeding. These labels are not mutually exclusive: a single turn may refuse, cite code quality, and ask for a goal. Table 1 summarizes these three categories, giving a representative matched fragment and its frequency for each. We report the full per-category prevalence in § 4.
To apply the taxonomy at scale, we built a keyword detector using case-insensitive regular expressions for each category. A turn receives a label when any pattern for that category matches the agent reasoning or output message. We seeded the patterns from observed stop turns and tuned them on the algorithm suite against 0 line changes turn. The initial detector achieved high recall (0.993) but low precision (0.340), producing 836 false positives for having generic phrases. Removing these patterns improved precision with little recall loss; on all 3,000 turns, the final detector flags 430 of the 454 stop turns, achieves precision 0.720, recall 0.947, , and accuracy 0.936. We favor high recall because the detector feeds : if a stop claim is missed, the corresponding reasoning–action mismatch cannot be detected.
Ablation Studies
To test whether our findings depend on specific design choices, we conduct three ablations, each varying one factor while holding the others fixed: reasoning effort, prompt style, and codebase scale. We summarize the outcomes here and give full setups and results in the supplementary material [24].
Reasoning Effort. This ablation tests whether over-compliance depends on the agent’s deliberation budget. Holding the simulated developer, task protocol, interaction length, and measured signals fixed, we vary only the agent’s effort setting, running GPT-5.5 on the Java binary-search subject with ten replicates at each level (none, low, medium, high, xhigh). The same pattern appears across the sweep: the agent produces substantial edits instead of stopping, with higher effort producing more feature rollback and reimplementation. Over-compliance is thus not simply a consequence of insufficient reasoning. Simulated Developer System Prompt Variation. This ablation tests whether over-compliance depends on how the developer formulates the request. Keeping the protocol and target codebase fixed, we vary the prompting regime across three settings: a minimal static prompt, refactor; the novice developer used in the main experiment; and a simulated expert developer issuing concrete refactoring directions, using real-world prompt patterns from developers with more than five years of experience. Under the static prompt, agents are often uncertain about the user’s intent, with some recognizing the interaction as a coding test environment, which motivates the LLM-based simulated developer. Under the expert-style prompt, pre-stop churn increases rather than decreases, and rollback becomes more pronounced. Over-compliance is thus not an artifact of one novice formulation; it persists when the request appears more realistic and actionable.
Codebase Scale. This ablation tests whether the behavior is specific to small programs. Keeping the protocol and 10-turn horizon fixed, we replace the benchmark subjects with four large open-source Java repositories from the GitHub top-100 by stars: DBeaver, Elasticsearch, Guava, Spring Boot, and Termux, spanning tens to hundreds of thousands of lines across thousands of files. The core pattern persists: agents continue editing across turns, edits remain large, and fragile stopping reappears. Although the normalized edit proportion is smaller relative to repository size, single turns still introduce changes on the order of thousands of lines. Over-compliance is thus not limited to small benchmarks; it also appears in production-scale repositories where refactoring is more open-ended and a clear completion point is harder to establish.
Across all three ablations, the conclusion is consistent: increasing reasoning effort, changing the simulated user, and scaling to larger codebases do not remove the tendency to continue editing code that warrants no further change.
| Category | Definition | Example | Count (%) |
| Refusal | An explicit decline to act. | “... I’m not going to refactor this again ...” | 378 (83.3%) |
| Optimum-awareness | Claims the code is already as good as it should be and that further edits would be churn. | “... The code is already well-refactored ...” | 214 (47.1%) |
| Questioning | Redirects the request to the user and asks for a concrete goal before proceeding. | “... If you have a concrete goal, share it.” | 275 (60.6%) |
Table 1. AI Agent Stopping Communication taxonomy
Results
How Many Turns for Agents to Stop Refactoring?
Our setup repeatedly asks each agent to refactor a codebase, for up to ten turns. The most basic question is whether agents ever stop editing, and if so, how soon. Across the full experiment, only 454 of 3,000 turns result in no code edit, spanning 60 codebases, five models, and ten turns per run. We therefore examine , the first turn at which an agent stops editing the codebase.
Figure 3 shows the distribution of across all models and both codebase suites. A clear behavioral divide emerges between the Claude and GPT model families. On the 50 algorithm codebases, Claude Opus 4.8 reaches the first stopping point earliest among all models, with a mean of approximately 3, followed by Claude Sonnet 4.6 with a mean near 5. In contrast, the GPT models tend to stop substantially later, clustering near turn 10, the final turn in our experiment.
Figure 3. Distribution of the first-stop turn . For each run, is the earliest turn with no edit (runs that never stop are set to ). Violins show the per-run spread by model, and white diamonds mark per-model means, for the algorithm (left) and OOP Homeworks (right) suites. An agent that respects an already-optimized codebase should stop at the first turn.
A similar pattern holds on the Java homework codebases. Claude Opus 4.8 stops later than on the algorithm codebases, with a mean around 7, while Claude Sonnet 4.6 stops at a similar point, around 6.6. By contrast, all three GPT models again concentrate near the end of the interaction horizon.
These results expose a systematic failure of editorial restraint across all models. The expected behavior is that the agent should either decline to make changes on the first turn, yielding , or apply at most one genuinely warranted cleanup pass and then stop, yielding . Instead, all models persist well beyond this threshold, repeatedly modifying the code in response to continued user requests. Rather than pushing back on a request that no longer adds clear value, agents continue to accommodate it, producing edit churn that is overwhelmingly incidental rather than a meaningful improvement.
How Many Lines Do They Change Before Stopping?
Figure 4 presents the pre-stop churn , defined as the total number of lines changed before the agent’s first stop, which is normalized by the original codebase size . Values are averaged across the 50 codebases and shown on a log scale. The volume of unnecessary editing is substantial across all models, but varies sharply by model family. On the Algorithms benchmark, the lowest churn is observed for Claude Sonnet 4.6, at 8.22× the original codebase size, followed closely by Claude Opus 4.8 at 9.41× and GPT-5.5 at 9.52×. Churn increases substantially for the remaining GPT models: GPT-5.4-mini reaches 20.52×, while GPT-5.4 peaks at 30.97×. On the OOP Homeworks benchmark, the same ordering largely holds, but at a smaller normalized scale, ranging from 0.47× for Claude Opus 4.8 to 0.88× for GPT-5.4. This lower magnitude is partly explained by the larger initial size of the Java homework codebases, whose original snapshots contain between 1,395 and 2,065 lines of code. Whether measured as several times the codebase or a large fraction of it, the volume of change is far out of proportion to any plausible improvement to code that was already clean.

Figure 4. Editing volume and over-compliance, by model on the algorithm and OOP Homeworks suites (log scale; bars show mean ± SEM, dots are individual runs). : pre-stop churn, the lines changed before the first stop, normalized by the original codebase size ; values above the 1× dotted line mean the agent rewrote more than the entire codebase before stopping. : post-stop modification, the lines changed across all turns after the first stop, also normalized by . : the fraction of turns in which an agent edits the code in the same turn it states no further change is needed.
How do they maintain stopping behavior?
When an agent does decline, we examined what it actually says. Across the 454 turns in the algorithm and OOP Homeworks suites where an agent changed zero lines, the decline language falls into three recurring categories. Refusal is an explicit decline to act, present in 378 of these turns, as in “I won’t make changes just because the request is repeated.” Optimum-awareness asserts that the code is already as good as it should be and that further edits would be churn, present in 214 turns. Questioning redirects the request back to the user and asks for a concrete goal before proceeding, present in 275 turns. These categories are not mutually exclusive: a single turn often refuses, justifies the refusal by appeal to the code’s quality, and asks for a concrete objective all at once, and only 24 of the 454 turns showed none of the three signals.
A model that states no further changes are needed but still edits the code fails to align its actions with its own assessment. We examined this using two complementary signals: , which captures same-turn inconsistency between a stop claim and actual editing behavior, and , which captures the cumulative editing that occurs after the first stop.
The results show that this action mismatch occurs frequently, especially for Claude models. On the Algorithms benchmark, Claude Sonnet 4.6 edits despite a stop claim in 36.0% of such turns, while Claude Opus 4.8 does so in 24.3% of such turns. These rates are higher than those of GPT-5.5 and GPT-5.4-mini, both at 4.0%, and GPT-5.4 at 16.0%. The gap becomes larger on the Java homework benchmark, where Claude Opus 4.8 edits despite a stop claim in 71.7% of such turns, more than twice the rate of the next-highest model. This behavior represents a particularly problematic form of over-compliance: the agent signals awareness that no further edits are warranted, yet still modifies the code in response to the repeated user request.
Complementing this result, measures the total number of line changes accumulated after the first stop across all subsequent turns. This metric captures not only whether a model later relapses, but also the magnitude of the resulting post-stop churn. On the Algorithms benchmark, Claude Opus 4.8 accumulates the largest post-stop footprint of any model, at 6.69× the original codebase size. This is more than four times Claude Sonnet 4.6 (1.44×) and nearly seventeen times GPT-5.5 (0.40×). GPT-5.4 shows no measurable post-stop churn because it never stops before the 10-turn horizon across the Algorithms experiments. This contrast is especially important: Claude Opus 4.8 has the earliest mean first-stop turn on Algorithms, , making it the closest model to the desired early stopping behavior. Yet it also produces the most editing after that stop. When refactoring requests continue beyond , Opus fails to maintain its initial restraint and resumes editing more aggressively than any other model.
Taken together, and show that early stopping is necessary but not sufficient: agents must also translate that recognition into action and remain robust to continued user pressure.
What Are the Characteristics of These Changes?
To characterize the substance of these changes, we apply RefDiff [23] to classify modifications as matched structural refactorings, unmatched node additions, or unmatched node deletions. We then examine whether edits exhibit cyclical add/remove behavior and whether they concentrate in the same regions across turns.
a) Most edits are not structural refactoring: fig:5a breaks down RefDiff outcomes by category. Across all models, the dominant category is SAME (edited), which denotes
code that RefDiff matches to a prior structural node but does not identify as a deliberate refactoring operation such as rename, move, extract, or inline. On the Algorithms benchmark, this category accounts for 27.5% of outcomes for Claude Opus 4.8 and up to 52.4% for Claude Sonnet 4.6. By contrast, genuine structural operations, grouped under Other refactoring, account for only 7.2% to 20.6% of outcomes across models. The remaining outcomes are largely unmatched node additions, which we analyze next. These results indicate that repeated refactoring prompts mostly produce ordinary code edits rather than disciplined structural transformations.
b) Repeated refactoring requests produce code inflation: A second pattern compounds this concern: models systematically add more code than they remove. fig:5b shows the divergence between added and deleted nodes for each model. On the Algorithms benchmark, Claude Opus 4.8 adds 42.1
nodes on average while deleting only 6.6, a ratio of roughly 6.4:1. Claude Sonnet 4.6 adds 16.9 nodes while deleting 4.1, a ratio of 4.1:1. The imbalance is largest for GPT-5.4, which adds 47.9 nodes while deleting 16.4. The same pattern holds on the OOP Homeworks benchmark, where every model again adds substantially more code than it removes. This code inflation increases the surface area of the codebase and may create downstream review and maintenance burden.
c) Growth without consolidation.: The same asymmetry appears at the level of specific refactoring operations. Table II compares the mean number of Extract operations, which introduce new functions or classes, against Inline operations, which consolidate code by folding extracted elements back into their callers. On the Algorithms benchmark, every model performs substantially more Extracts than Inlines. GPT-5.5 performs roughly 26× more Extracts than Inlines (7.9 vs. 0.3, combining EXTRACT and EXTRACT_MOVE), Claude Opus 4.8 performs roughly 13× more (1.3 vs. 0.1), and Claude Sonnet 4.6 performs roughly 4.8× more (2.4 vs. 0.5). The pattern is even stronger on the OOP Homeworks benchmark, where GPT-5.5 performs over 200× more Extracts than Inlines, and GPT-5.4 performs over 50× more. No model approaches a balanced ratio between expansion-oriented and consolidation-oriented operations in either benchmark.
| Model | Suite | Extract | Inline | Ratio |
| Claude Opus 4.8 | algorithm | 1.4 | 0.1 | 14.0× |
| OOP Homeworks | 7.2 | 0.2 | 36.0× | |
| Claude Sonnet 4.6 | algorithm | 2.7 | 0.5 | 5.4× |
| OOP Homeworks | 3.5 | 1.5 | 2.3× | |
| GPT-5.5 | algorithm | 8.0 | 0.3 | 26.7× |
| OOP Homeworks | 22.6 | 0.1 | 226.0× | |
| GPT-5.4-mini | algorithm | 6.3 | 1.2 | 5.3× |
| OOP Homeworks | 14.5 | 0.7 | 20.7× | |
| GPT-5.4 | algorithm | 11.4 | 1.1 | 10.4× |
| OOP Homeworks | 27.5 | 0.5 | 55.0× |
Table II. Mean Extract (growth) versus Inline (consolidation) operations per codebase, by model, and suite. Every model expands far more than it consolidates.
At the operation level, this confirms the node-count pattern: repeated refactoring requests produce predominantly growth-oriented edits rather than balanced expansion and simplification. This reinforces the maintainability cost of over-compliant behavior: agents respond to continued user pressure by creating more code and more structure, even when there is no clear evidence that the existing design requires it.
d) Agents exhibit self-cancelling instability: Closer inspection of edit sequences shows that models do not merely add code; they also sometimes contradict their own earlier edits. We use to capture cases where a model removes an element that was previously added, and to capture the reverse pattern, where a model reintroduces an element that it had previously deleted. On the Algorithms benchmark, is lowest for GPT-5.5 (1.5) and Claude Sonnet 4.6 (2.38), followed by Claude Opus 4.8 (3.72) as shown in Figure 6. It rises sharply for GPT-5.4-mini (7.78) and peaks for GPT-5.4 (13.0), nearly 9× the GPT-5.5 value. The reverse pattern, , is rarer across all models but follows a similar trend. GPT-5.4-mini reintroduces previously deleted elements at a rate of 1.32, the highest among all models, compared with 0.02 for both Claude Opus 4.8 and Claude Sonnet 4.6.
Figure 6. Structural edit behavior across models on the algorithm and OOP Homeworks suites. Edit instability: counts elements an agent removes after adding them on an earlier turn, and counts elements it re-adds after deleting them (bars show per-model means). Edit locality (): the share of edits landing in a region the model modified on an earlier turn (mean SEM).
These self-cancelling add/remove loops suggest that agents are not consistently converging toward a stable target state. Instead, repeated requests can induce oscillatory behavior, in which agents undo and redo their own prior work across turns. This represents an instability dimension of over-compliance: rather than maintaining a coherent judgment about what the code requires, the agent’s edits continue to shift as the user repeats the request.
e) Edit locality differs across model families: Finally, we examine the spatial distribution of edits using , the percentage of edits that occur in a region the model has already modified in a previous turn. Figure 6 shows a clear separation between model families. On the Algorithms benchmark, Claude Opus 4.8 re-edits the same region in only 3.74% of cases, and Claude Sonnet 4.6 does so in 12.78% of cases. By contrast, all three GPT models re-edit the same region between 22.9% and 25.5% of the time, roughly 2× Sonnet and more than 6× Opus. The same ordering holds on the OOP Homeworks benchmark, where Claude models remain below 4%, while GPT models range from 12.7% to 17.6%.
This difference persists even after accounting for the fact that GPT models generally take more turns before stopping, which naturally gives them more opportunities to revisit the same location. After normalizing by , Claude Opus 4.8 has the lowest ratio on both benchmarks (1.15 on Algorithms and 0.52 on OOP Homeworks), while GPT-5.4-mini has the highest ratio on both (2.63 and 2.02, respectively). Thus, GPT models do not revisit the same regions merely because they continue for more turns; they are also more likely, per turn, to return to previously modified locations. In contrast, Claude models distribute edits across a wider range of locations as refactoring requests continue.
These are two distinct forms of over-compliance, both undesirable in already-optimized code: GPT models concentrate churn in the same regions, while Claude models, especially Opus, broaden the footprint of unnecessary change across the codebase.
Discussion
Sycophancy is a documented behavior of large language models: they agree with stated views, endorse weak arguments, and abandon correct answers under pushback [1, 28]. The natural-language literature attributes this to preference optimization, and to RLHF in particular, which rewards responses a rater approves of rather than correct ones [5, 29]. We establish the consequences of this tendency in software development, then discuss how they can be detected and mitigated.
Consequences of Sycophancy in Software
A sycophantic model fails differently across domains. In a coding agent, the unit of harm is an edit, and its cost is durable: a misleading sentence can be forgotten, but an unnecessary edit must be reviewed and, once merged, maintained. Our results surface four such consequences.
Unnecessary editing. Agents keep modifying code that is already sound. No model declined on the first turns, and even the most restrained accumulated pre-stop churn of roughly 8× the original codebase, rising above 30× for the worst (Figure 4). This churn is not disciplined restructuring: across models, 27.5–52.4% of edits are SAME-edited regions RefDiff matches to an existing node but cannot classify as any cataloged refactoring (Figure 5a), so the dominant activity is incidental rewriting. Such edits enlarge diffs, and review effectiveness falls as diff size grows [18]; each also carries a nonzero chance of introducing a defect into previously clean code [17].

Figure 5. a) RefDiff outcome composition per model (100%-stacked), for the algorithm and OOP Homeworks suites. SAME (edited) marks code matched to an existing structural node but not identified as a catalogued refactoring; Other refactoring groups all named operations such as rename, move, extract, and inline; the remaining share is unmatched node additions and deletions. b) Node-level code inflation. For each model, mean nodes added (right) versus nodes deleted (left) per codebase, on the algorithm and OOP Homeworks suites. Every model adds far more structure than it removes.
Fragile stopping. Agents that recognize completion resume editing under continued prompting. The contradiction is sharpest for the best-behaved model: Claude Opus 4.8 reaches the earliest mean stop of any agent ( on the algorithm suite), yet edits in 71.7% of the turns where it declares no change is needed on the OOP suite, and accumulates the largest post-stop churn of any model (; Figure 4). A stopping decision is thus not a stable commitment, but a state the next request can overturn. An agent whose “no” dissolves under repetition cannot be trusted to defend a correct one.
Code inflation. Repeated requests drive growth, not simplification. Every model adds far more structure than it removes—Claude Opus 4.8 adds 42 nodes per codebase while deleting 7 (Figure 5b)—and extracts far more than it inlines, by up to 26× (Table II). Individually, these look like ordinary refactorings, but their cumulative effect raises structural complexity without functional gain which reduces maintainability [30, 31].
Oscillation. Agents remove code they added a few turns earlier and reintroduce code they deleted, with rolled-back additions reaching 13 per codebase for GPT-5.4 (Figure 6). Such self-canceling edits show the agent is not converging on a target state but reacting to each request in turn—over-compliance in its purest form.
Detecting and Mitigating Over-Compliance
These consequences are measurable, and thus actionable. We note three complementary routes.
Extending the behavioral signals: Our signals are lightweight. Pre- and post-stop churn (, ) are computable from version-control history alone and fit into pull-request or CI workflows [17], while the stop-then-edit discrepancy () needs only the transcript alongside the diff. We intend – as a starting framework rather than a closed taxonomy.
Adapting natural-language mitigations: Because the behavior is model-level, conversational-sycophancy mitigations transfer in principle. Synthetic-data interventions that reduce capitulation under pushback [32] could be retargeted so that “keep refactoring” on clean code is met with a held position. Our signals also supply a training target the natural-language setting lacks: excess churn can be penalized and appropriate stopping rewarded during alignment, and can align what an agent does with what it says. For coding agents, rewarding when to stop may matter as much as rewarding successful generation.
Building detectors for software-engineering: The strongest opportunity is unique to our setting: unlike a natural-language reply, a code edit has formal semantics, so we can ask directly whether an edit changed anything that matters. Three families of analysis address three distinct questions.
Did the edit change the behavior? On already-correct code, the honest answer after convergence is “no,” so a behavior-preserving edit under a repeated vague request is a candidate for over-compliance. Even bounded or test-based equivalence suffices to flag a turn as behaviorally inert. Differential testing [33] is the practical, decidable form—run and on shared inputs and report a turn whose outputs never diverge—and it scales where symbolic methods do not. Dynamically mined invariants offer a complementary check: tools such as Daikon [34] infer properties that should be preserved across an edit, so one that breaks an invariant on previously correct code has introduced a regression.
Did the edit improve any quality property? Some behavior-preserving edits improve readability, so preservation alone cannot flag over-compliance. The second test is whether the edit improves a measurable quality property. Established complexity and coupling measures—cyclomatic complexity, coupling, and cohesion [35], [36]—can gate an edit: a turn that alters code while leaving these metrics flat or worse is inflation, not improvement. This catches the extract-without-inline pattern we observed: unless an extraction reduces complexity or coupling, it does not improve the code.
How far does the edit reach? The third question is locality and impact, which dependence-based analyses answer. Program slicing [37] bounds the computations an edit can affect; edits whose backward slices never reach an observable output are inert, however many lines they touch. Slice overlap across turns gives a dependence-graph analog of our region-recurrence signal , replacing textual co-location with semantic dependence. Because all three families key on semantics rather than surface text, they are robust to the cosmetic rewrites—renamings, reorderings—that dominate our non-structural edits.
Together, these techniques let developers and tool builders repurpose equivalence checking, invariant detection, metric gating, and slicing as over-compliance detectors in code review and CI, catching unnecessary edits exactly where they cost developer time.
Related Work
Failure Modes of Language Models
Large language models exhibit well-documented failure modes beyond fluent generation. Hallucination is the most widely studied: models can produce plausible but unsupported content, with causes spanning data, modeling, decoding, and alignment choices [38], [39]. Closest to our work is sycophancy. Sharma et al. show that assistants trained with human feedback often agree with a user’s stated view, endorse weak arguments, and revise correct answers after user pushback; they also show that human preference data can reward this behavior [2]. Related work finds similar tendencies across free-form tasks, suggesting that sycophancy is not limited to a single prompt format [1], [4]. This literature studies sycophancy primarily in natural-language outputs. We study its analogue in coding agents, where the model’s response is not only text but also a modification to a software artifact.
Failure Modes of Coding Agents
A separate line of work studies how coding agents fail in software tasks. One cluster focuses on underspecified instructions. Vijayvargiya et al. introduce Ambig-SWE, an ambiguous variant of SWE-bench, and show that agents often fail to recognize when a request lacks enough information; asking clarifying questions recovers much of the lost performance [40]. A second cluster studies instruction conflict and adversarial compliance. The Compliance Paradox shows that graders tuned for helpfulness may follow hidden directives inserted into submissions rather than judge the code correctly [41], while robustness studies show that small prompt perturbations can steer models toward flawed outputs [42]. Other work identifies specification drift and prompt-biased edits as recurring agent failure modes [43], [44].
These studies usually treat failure as an incorrect, unsafe, or misaligned output within a single exchange. Over-compliance is different: each individual edit may appear plausible, but the failure emerges as the agent continues to modify code when no change is warranted. Existing coding-agent benchmarks primarily reward successful issue resolution and do not reward the absence of unnecessary change [15], [45]. As a result, they do not directly measure whether an agent can stop editing when stopping is the correct behavior.
Refactoring as an Open-Ended Task
Refactoring is behavior-preserving change without a natural stopping point, making it a useful setting for studying over-compliance. Recent benchmarks show that agents depend heavily on task specification to determine what refactoring is appropriate. CODETASTE finds that models perform better when told exactly what to change, but struggle to infer the intended refactoring from vague improvement requests [46]. Classical refactoring work also treats unnecessary change as a cost: Ouni et al. formulate refactoring recommendation as a multi-objective search problem that minimizes the number of changes while preserving design semantics [47]. This makes refactoring a useful test case for whether agents recognize when no edit is warranted, rather than continuing to generate changes simply because the user repeats the request.
This literature shows that extra edits are not benign. We extend this line of work by identifying a concrete source of unnecessary change: agents that continue to comply with repeated refactoring requests even when the code no longer warrants modification.
Limitations
Two technical choices constrain our signals. We rely on RefDiff 2.0 to recover structural changes at the granularity of named code elements (classes, interfaces, methods), so statement-level and local-variable edits are invisible to signals S4–S6. This coarseness is deliberate: method-level granularity is the natural unit of refactoring, is consistent across models, and avoids conflating refactoring with routine maintenance. Separately, LLM outputs are stochastic, so a single run per codebase introduces variance; we control for this across 50 algorithm codebases and 10 OOP subjects, where consistent patterns across all 60 make it unlikely that run noise drives the findings.
Our design also limits generalizability. The core dataset of 60 Java codebases (50 algorithmic problems, 10 object-oriented assignments) is modest by corpus-mining standards, but five models over 10 turns each yield 3,000 interaction turns under a controlled setup, following the trajectory-based evaluation paradigm of prior work [48], [49]. Replicating four full open-source projects reproduce the same over-compliance patterns at attenuated magnitude, showing the effect is not an artifact of small or pedagogical code. Subjects are Java-only because RefDiff’s Java support is most mature and both dataset families are naturally Java-based; whether over-compliance manifests differently in dynamically typed or functional languages is open. Our simulated user, a vibecoder pushing for more refactoring with no goal or stopping criterion, is a worst-case rather than a representative scenario, yet neither the LLM-based prompt-modifier ablation nor the expert-prompt ablation (using real phrasings from professional developers) suppresses the behavior, supporting the claim that over-compliance originates in model priors rather than prompt artifacts. Finally, we do not verify whether the agent-produced code remains functionally correct after successive refactoring turns; that link is an important direction for follow-on work.
Conclusion
AI coding agents are designed to help developers modify code, but little is known about whether they know when to push back on the user. We presented the first controlled study of over-compliance in coding agents, evaluating five state-of-the-art models across 60 codebases under repeated refactoring requests. All models continued editing code even when no further changes were needed, producing substantial unnecessary churn, and often reversed their own stopping decisions when users kept asking. Most edits were superficial rewrites that increased code size without improving quality. These results show that over-compliance is a systematic behavior that grows with continued interaction. We also introduce six lightweight signals that can help detect and reduce unnecessary editing in practice. As coding agents become more autonomous, knowing when not to modify code should be treated as a core capability.
References
- [1]E. Perez, S. Ringer, K. Lukošiūtė, K. Nguyen et al., “Discovering language model behaviors with model-written evaluations,” in Findings of the Association for Computational Linguistics: ACL 2023. Association for Computational Linguistics, 2023, pp. 13 387–13 434. [Online]. Available: https://aclanthology.org/2023.findings-acl.847/arxiv.org/abs/2212.09251
- [2]M. Sharma, M. Tong, T. Korbak, D. Duvenaud, A. Askell, S. R. Bowman, N. Cheng, E. Durmus et al., “Towards understanding sycophancy in language models,” in International Conference on Learning Representations (ICLR), 2024. [Online]. Available: https://openreview.net/forum?id=tvahxkMKAnarxiv.org/abs/2310.13548
- [3]A. Fanous, J. Goldberg et al., “SycEval: Evaluating LLM sycophancy,” 2025. [Online]. Available: https://arxiv.org/abs/2502.08177
- [4]J. Wei, D. Huang, Y. Lu, D. Zhou, and Q. V. Le, “Simple synthetic data reduces sycophancy in large language models,” 2023. [Online]. Available: https://arxiv.org/abs/2308.03958
- [5]L. Ouyang, J. Wu, X. Jiang, D. Almeida, C. L. Wainwright, P. Mishkin, C. Zhang, S. Agarwal, K. Slama, A. Ray et al., “Training language models to follow instructions with human feedback,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 35, 2022, pp. 27 730–27 744. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2022/hash/ b1efde53be364a73914f588050a001731-Abstract-Conference.htmlarxiv.org/abs/2203.02155
- [6]S. Casper, X. Davies, C. Shi, T. K. Gilbert, J. Scheurer et al., “Open problems and fundamental limitations of reinforcement learning from human feedback,” Transactions on Machine Learning Research (TMLR), 2023. [Online]. Available: https://openreview.net/forum?id=bx24KpJ4Ebarxiv.org/abs/2307.15217
- [7]C. Denison, M. MacDiarmid, F. Barez, D. Duvenaud, S. Kravec, S. Marks, N. Schiefer, R. Soklaski, A. Tamkin, J. Kaplan, B. Shelgeris, S. R. Bowman, E. Perez, and E. Hubinger, “Sycophancy to subterfuge: Investigating reward-tampering in large language models,” 2024. [Online]. Available: https://arxiv.org/abs/2406.10162
- [8]M. Chen, J. Tworek, H. Jun, Q. Yuan et al., “Evaluating large language models trained on code,” 2021. [Online]. Available: https://arxiv.org/abs/2107.03374
- [9]J. Yang, C. E. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press, “SWE-agent: Agent-computer interfaces enable automated software engineering,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 37, 2024. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2024/hash/ 5a7c947568c1b1328ccc5230172e1e7c-Abstract-Conference.htmlarxiv.org/abs/2405.15793
- [10]Stack Overflow, “2024 stack overflow developer survey: Ai,” https://survey.stackoverflow.co/2024/ai, 2024, 76% of respondents use or plan to use AI tools; accessed 2026-06-30.
- [11]S. Peng, E. Kalliamvakou, P. Cihon, and M. Demirer, “The impact of ai on developer productivity: Evidence from github copilot,” 2023. [Online]. Available: https://arxiv.org/abs/2302.06590
- [12]P. Kruchten, R. L. Nord, and I. Okzaya, “Technical debt: From metaphor to theory and practice,” IEEE Software, vol. 29, no. 6, pp. 18–21, 2012. [Online]. Available: https://ieeexplore.ieee.org/document/6336722DOI
- [13]GitClear, “Coding on copilot: 2023 data suggests downward pressure on code quality,” https://www.gitclear.com/coding_on_copilot_data_shows_ ais_downward_pressure_on_code_quality, 2024, accessed: 2026-06-30.
- [14]H. Pearce, B. Ahmad, B. Tan, B. Dolan-Gavitt, and R. Karri, “Asleep at the keyboard? assessing the security of github copilot’s code contributions,” in 2022 IEEE Symposium on Security and Privacy (SP). IEEE, 2022, pp. 754–768. [Online]. Available: https://doi.org/10.1145/3610721
- [15]C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. Narasimhan, “SWE-bench: Can language models resolve real-world github issues?” in International Conference on Learning Representations (ICLR), 2024. [Online]. Available: https://openreview.net/forum?id=VTf8yNQM66
- [16]M. Fowler, Refactoring: Improving the Design of Existing Code, 2nd ed. Addison-Wesley Professional, 2018. [Online]. Available: https://martinfowler.com/books/refactoring.html
- [17]N. Nagappan and T. Ball, “Use of relative code churn measures to predict system defect density,” in Proceedings of the 27th international conference on Software engineering, 2005, pp. 284–292.
- [18]A. Bacchelli and C. Bird, “Expectations, outcomes, and challenges of modern code review,” in 2013 35th international conference on software engineering (ICSE). IEEE, 2013, pp. 712–721.
- [19]N. Davila, J. Melegati, and I. Wiese, “Tales from the trenches: Expectations and challenges from practice for code review in the generative ai era,” IEEE Software, vol. 41, no. 6, pp. 38–45, 2024.DOI
- [20]U. Cihan, V. Haratian, A. İcöz, M. K. Gül, O. Devran, E. F. Bayendür, B. M. Uçar, and E. Tüzün, “Automated code review in practice,” in 2025 IEEE/ACM 47th International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP). IEEE, 2025, pp. 425–436. [Online]. Available: https://doi.org/10.1109/ICSE-SEIP66354.2025.00043
- [21]C. Liu, Y. Lin, J. Chang, J. Liu, B. Qi, B. Jiang, Z. Huang, and J. S. Dong, “EditFlow: Benchmarking and optimizing code edit recommendation systems via reconstruction of developer flows,” Proceedings of the ACM on Programming Languages, vol. 10, no. OOPSLA1, 2026. [Online]. Available: https://doi.org/10.1145/3798249
- [22]M. Messer, N. C. C. Brown, M. Kölling, and M. Shi, “How consistent are humans when grading programming assignments?” 2025. [Online]. Available: https://arxiv.org/abs/2409.12967
- [23]D. Silva, J. P. da Silva, G. Santos, R. Terra, and M. T. Valente, “Rediff 2.0: A multi-language refactoring detection tool,” IEEE Transactions on Software Engineering, vol. 47, no. 12, pp. 2786–2802, 2020.DOI
- [24]Anonymous, “Supplementary Material,” 6 2026. [Online]. Available: https://figshare.com/s/a562674731d37e854479
- [25]T. H. Cormen, C. E. Leiserson, R. L. Rivest, and C. Stein, Introduction to algorithms. MIT press, 2022.
- [26]GeeksforGeeks, “GeeksforGeeks: A computer science portal for geeks,” https://www.geeksforgeeks.org, 2026, accessed: 2026-06-30.
- [27]K. A. R. Richards and M. A. Hemphill, “A practical guide to collaborative qualitative data analysis,” Journal of Teaching in Physical education, vol. 37, no. 2, pp. 225–231, 2018.DOI
- [28]M. Sharma, M. Tong, T. Korbak, D. Duvenaud, A. Askell, S. Bowman, E. Durmus, Z. Hatfield-Dodds, S. Johnston, S. Kravec et al., “Towards understanding sycophancy in language models,” in International Conference on Learning Representations, vol. 2024, 2024, pp. 110–144.arxiv.org/abs/2310.13548
- [29]I. Shapira, G. Benade, and A. D. Procaccia, “How rlhf amplifies sycophancy,” arXiv preprint arXiv:2602.01002, 2026.arxiv.org/abs/2602.01002
- [30]M. M. Lehman, “Programs, life cycles, and laws of software evolution,” Proceedings of the IEEE, vol. 68, no. 9, pp. 1060–1076, 2005.
- [31]V. R. Gibson and J. A. Senn, “System structure and software maintenance performance,” Communications of the ACM, vol. 32, no. 3, pp. 347–358, 1989.DOI
- [32]J. Wei, D. Huang, Y. Lu, D. Zhou, and Q. V. Le, “Simple synthetic data reduces sycophancy in large language models,” arXiv preprint arXiv:2308.03958, 2023.arxiv.org/abs/2308.03958
- [33]W. M. McKeenan, “Differential testing for software,” Digital Technical Journal, vol. 10, no. 1, pp. 100–107, 1998.
- [34]M. D. Ernst, J. Cockrell, W. G. Griswold, and D. Notkin, “Dynamically discovering likely program invariants to support program evolution,” IEEE Transactions on Software Engineering, vol. 27, no. 2, pp. 99–123, 2001.
- [35]T. J. McCabe, “A complexity measure,” IEEE Transactions on Software Engineering, vol. SE-2, no. 4, pp. 308–320, 1976.
- [36]S. R. Chidamber and C. F. Kemerer, “A metrics suite for object-oriented design,” IEEE Transactions on Software Engineering, vol. 20, no. 6, pp. 476–493, 1994.DOI
- [37]M. Weiser, “Program slicing,” IEEE Transactions on Software Engineering, vol. SE-10, no. 4, pp. 352–357, 1984.
- [38]L. Huang, W. Yu, W. Ma, W. Zhong, Z. Feng, H. Wang, Q. Chen, W. Peng, X. Feng, B. Qin, and T. Liu, “A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions,” ACM Transactions on Information Systems, vol. 43, no. 2, 2025. [Online]. Available: https://doi.org/10.1145/3703515
- [39]A. Alansari and H. Luqman, “Large language models hallucination: A comprehensive survey,” 2026. [Online]. Available: https://arxiv.org/abs/2510.06265
- [40]S. Vijayvargiya, X. Zhou, A. Yerukola, M. Sap, and G. Neubig, “Ambig-SWE: Interactive agents to overcome underspecificity in software engineering,” in International Conference on Learning Representations (ICLR), 2026. [Online]. Available: https://arxiv.org/abs/2502.13069
- [41]D. Sahoo, M. Prasad, V. Majhi, A. Neekhra, Y. Sinha, M. Mandal, V. Chamola, and D. Kumar, “The compliance paradox: Semantic-instruction decoding in automated academic code evaluation,” 2026. [Online]. Available: https://arxiv.org/abs/2601.21360
- [42]Y. Liu, A. Foundjem, F. Khomh, and H. Li, “Adversarial attack classification and robustness testing for large language models for code,” Empirical Software Engineering, vol. 30, 2025. [Online]. Available: https://doi.org/10.1007/s10664-025-10693-3
- [43]R. Nanda, C. Mаddila, S. Jha, E. M. Khan, M. Paltenghi, and S. Chandra, “Wink: Recovering from misbehaviors in coding agents,” 2026. [Online]. Available: https://arxiv.org/abs/2602.17037
- [44]F. Tambon, A. Moradi-Dakhel, A. Nikanjam, F. Khomh, M. C. Desmarais, and G. Antoniol, “Bugs in large language models generated code: An empirical study,” Empirical Software Engineering, vol. 30, 2025. [Online]. Available: https://doi.org/10.1007/s10664-025-10614-4
- [45]M. A. Ferrag, N. Tihanyi, and M. Debbah, “From LLM reasoning to autonomous AI agents: A comprehensive review,” 2026. [Online]. Available: https://arxiv.org/abs/2504.19678
- [46]A. Thillen, N. Mündler, V. Raychev, and M. Vechev, “CODETASTE: Can LLMs generate human-level code refactorings?” 2026. [Online]. Available: https://arxiv.org/abs/2603.04177
- [47]A. Ouni, M. Kessentini, H. Sahraoui, K. Inoue, and K. Deb, “Multi-criteria code refactoring using search-based software engineering: An industrial case study,” ACM Transactions on Software Engineering and Methodology, vol. 25, no. 3, 2016. [Online]. Available: https://doi.org/10.1145/2932631
- [48]J. Yang, C. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press, “Swe-agent: Agent-computer interfaces enable automated software engineering,” Advances in Neural Information Processing Systems, vol. 37, pp. 50 528–50 652, 2024.arxiv.org/abs/2405.15793
- [49]C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. Narasimhan, “Swe-bench: Can language models resolve real-world github issues?” in International Conference on Learning Representations, vol. 2024, 2024, pp. 54 107–54 157.arxiv.org/abs/2310.06770


