Issue 18 · Nov 30 – Dec 6, 2026Agent Age home · Agent Age News magazine · Other editions · Search · Method · HU / ENG

Code

“Every line a machine writes still waits for someone willing to answer for it.”

Essay

Whoever lets agent-written code into the codebase is responsible for it

With coding agents, the bottleneck of development shifts from writing to reading, and the lack of understanding shows up in maintenance and in security flaws. Responsibility remains with the human, so the team's work routine protects understanding.

Edited by Zoltán Varga · 2026-11-21 · 12 min read

How this was made: this essay was written by the author's own research and analysis system from the cited sources; Zoltán Varga edited the topic, structure and final text. The cited works are the source of its factual claims.

In code review, approval functions as a signature: whoever presses the button asserts that they have read the change, understood it, and accept that it becomes part of the shared codebase. What concerns me is what backs this signature when the change was written by an AI agent, that is, a software system that independently produces working code in several steps from a task description. The agent writes faster than a human can read, and its text is orderly, consistent, and confident. The reviewer thus ends up in a situation where the outward features of the code inspire trust, while the time needed to understand it is the same as before.

The questions of reading and responsibility belong together. The person who can answer for the code is the one who has read it through and can explain it; mere approval just puts a name next to the change. From the organisation's perspective, the difference becomes visible when the system fails and someone has to say why it works the way it does.

The reviewer's attention is the bottleneck of the process

The throughput of a development process is determined by its slowest step. As long as code was written by humans, the pace of writing and the pace of review roughly matched, because in a day the author produced about as much as a colleague could think through in a reasonable time. The agent breaks this match: producing changes becomes cheap, while the reviewer's attention stays the same. The queue of waiting changes can then clear in two ways. In one case, merging slows down, and the team feels the congestion directly. In the other, reading becomes more superficial, and this path is more dangerous because it shows on no metric: the number of approvals, the lead time, and the volume of merged lines all improve, while the proportion of lines that a human has actually thought through decreases.

In this, I see a feedback loop that reinforces itself in an unfavourable direction. The more code the agent produces, the greater the pressure on the reviewer to decide quickly; the faster they decide, the less they know the codebase; and the less they know it, the harder it is for them to spot errors in the next change.

What the productivity measurements see

Claims about acceleration often rely on what is easiest to count. The second edition of The DevOps Handbook presents the SPACE framework, which describes developer productivity in five dimensions: satisfaction and well-being, performance, activity, communication and collaboration, and efficiency and flow. According to the book, an organisation that measures only with shallow metrics loses the full picture, so it is advisable to choose metrics from at least three dimensions; for someone already counting commits, the number of pull requests says nothing new, because that too is an activity metric 1. It is precisely the activity dimension that the agent inflates. More commits, more pull requests and more lines are produced, yet by the logic of the framework, no conclusion follows from this about either performance or the state of the system.

Roger S. Pressman and Bruce Maxim's textbook, Software Engineering: A Practitioner’s Approach, formulates this more generally. Software metrics are typically indirect and therefore debatable; measurement serves to understand the process, the project, and the product, and according to the authors, it should never be used to evaluate, reward, or punish individual performance 2.

Giorgio Amasanti and Jasmin Jahic's 2025 preprint, The Impact of AI-Generated Solutions on Software Architecture and Productivity, is based on a survey of professionals using AI tools. Based on the responses, the authors report a significant productivity advantage that decreases as project complexity grows. The survey showed no significant negative impact on software quality as long as the generated solution was limited to smaller code snippets; for larger, more complex tasks, the solutions were of lower quality, leading the authors to conclude that decomposing the task and fitting the solutions together remain the designer's job 3. The survey records the participants' own assessments, that is, the perceived speed-up. For my part, I treat this separately from measured speed-up, because the developer working with the agent directly experiences the time saved during writing, while the time spent on review, debugging, and later understanding is paid for on other days, often by other people.

The theory behind the program: Naur and Brooks

I find the most precise description of what is lost when no one reads the code through in a thought from 1985. Cyrille Martraire's book Living Documentation recalls Peter Naur's study, Programming as Theory Building, which argues that the essence of programming is the construction of a theory about the matters being handled, and that the program text is more a consequence of this theory living in minds than a description of it. In Martraire's summary, the programmer who possesses the theory can explain how the solution corresponds to the matters in the world it handles, can justify why every part of the program is as it is, and can respond constructively if the program needs to be adapted to new requirements. Much of the theory is tacit, and according to Naur, for a new programmer, familiarity with the program text and documentation is insufficient to take possession of the existing theory 4.

With code written by an agent, this observation gains new weight. The code is produced, it runs, the tests pass, and meanwhile no one on the team builds up the theory of which the code would be the consequence. The deliberations on the basis of which the agent chose one solution over another are lost to the team when the session ends, unless someone has them written down and actually reads them.

In the handbook Code Complete, Steve McConnell, drawing on Fred Brooks's 1987 paper No Silver Bullet, distinguishes the essential and accidental difficulties of software development, and cites Brooks's observation that the profession dealt with the larger accidental difficulties long ago 5. In Modern Software Engineering, David Farley applies the same distinction to complexity: essential is what stems from the problem to be solved, for example calculating the balance of a bank account, and accidental is everything else that the use of a computer forces on the developer, from persistent data storage to display on the screen 6. As I see it, the agent takes over a large share of the accidental part from the developer, but does not do the work of understanding the essential complexity on anyone's behalf. Whoever does not understand the essence of the task cannot judge from the finished code whether it really solves that task.

Understanding debt falls due in maintenance

I call the difference between the code running in the system and the code the team actually understands 'understanding debt'. Like technical debt, it accrues interest, and repayment falls due at maintenance time. According to Pressman and Maxim, it is common for a software organisation to spend as much as 60 to 70 per cent of its resources on maintaining products that have been in use for several years, and they define maintainability as a qualitative indicator of how easily existing software can be corrected, adapted or extended 2. The larger part of the cost of development is therefore work that begins with understanding existing code, and faster writing affects this part only indirectly.

Martraire describes the price of missing knowledge in two items: wasted time and poorer decisions. The two reinforce each other, because the time spent searching for missing knowledge is taken away from better decisions, and poorer decisions accumulate until the team deems the software unmaintainable and starts over 4.

Consider a typical situation. A team has an agent write the retry logic for calls to an external service, the reviewer approves it because the tests pass, and the module runs flawlessly for months. When the behaviour of the external service changes, the on-call developer opens code that, in Naur's sense, never had an owner: no one on the team can say why the wait time is exactly this long, or what happens to partially processed requests. The cost of the fix is then the reading work that was saved at review time, plus the duration of the outage and the risk that a hastily made fix adds another layer that nobody understands on top of the old one.

Security flaws under repeated machine fixing

Security is the area where the cost of superficial reading becomes measurable most quickly. Sivana Hamer and colleagues' 2024 preprint, Just another copy and paste? Comparing the security vulnerabilities of ChatGPT generated code and StackOverflow answers, examined 108 Java code snippets from each source with a static analyser, that is, a tool that checks code without running it. It found 248 vulnerabilities in the snippets generated by ChatGPT and 302 in the StackOverflow answers, and the difference was statistically significant. The authors' conclusion, however, concerns what the two sources have in common: pasted code, whether written by a human or by AI, cannot be blindly trusted, and the risk is reduced by established software engineering practice 7.

Shivani Shukla and colleagues' 2025 preprint, Security Degradation in Iterative AI Code Generation, examined a way of working that is routine in agentic development: the developer repeatedly asks the language model for corrections. In a controlled experiment, 400 code samples were taken through 40 "correction" rounds using four prompting strategies, and after just five iterations 37.6 per cent more critical vulnerabilities were found. The authors conclude that repeated machine refinement alone does not improve security, and that human review is needed between iterations 8. I read the result as meaning that leaving intermediate versions unread carries a measurable cost. A developer who does not read the intermediate versions sets off an unchecked change with every new request, and errors pile up on one another while the code looks more polished in every round.

Tests, types and static analysis as machine checkers

An obvious response is that the machine should take over the burden of reading. Tests check behaviour, the type system checks how parts fit together, and the static analyser checks for known bug patterns; all three do so tirelessly and at the agent's pace. Mikhail Surikov's 2026 preprint, Securing AI-Generated Code: A Just-in-Time Vulnerability Detection and Remediation Pipeline, presents such an automated pipeline. The generated Python code is examined by two static analysers and an independent verifier language model; the pipeline enriches the findings with known attack techniques and weakness types; the model that writes the code makes corrections, and then the analysers run again. In 80 runs across 26 tasks with four models, the findings of the static analysers decreased in both configurations examined, by between 9 and 54 per cent depending on the model in one, and by between 29 and 69 per cent in the other. However, the correction introduced a new vulnerability in 15 to 22 per cent of cases, and according to Surikov, the security of the first version and the result achieved in the pipeline are separate properties: the model that wrote the best first version fell behind another after correction 9.

The machine checker therefore substantially reduces the number of errors while being a source of errors itself, so someone must interpret its output. Its limitation lies even deeper. A test checks what someone had in mind, the type system checks what can be expressed in its notation, and the static analyser checks for what a rule has been written for. If the tests are written by the same agent that writes the code, the code and its checks may stem from the same misunderstanding, and a successful run then confirms only that the two agree, saying little about conformity to intent. The value of the machine checker comes from its independence, and independence is maintained by whoever reads and maintains the tests and rules.

The author blurs, the owner of the code can be named

Christoph Treude and Margaret-Anne Storey's 2025 preprint, Generative AI and Empirical Software Engineering: A Paradigm Shift, points out that in the joint creative work of humans and AI agents the boundary between social and technical actors blurs, and basic concepts such as the "developer" or the "product" created in the course of the work become uncertain 10. This research-methodology observation has an organisational counterpart: if it is uncertain who the author of the code is, the organisation must know all the more precisely who its owner is. The agent cannot bear responsibility, because it does not go on call, does not justify its decision to the customer, and once the session ends its deliberations survive only if someone recorded them. Responsibility therefore stays with the person and team who let the change into the shared codebase.

In the work routine, this means a change in the object of review. The condition for approval is that the reviewer or the developer requesting the change can give an account of the code by Naur's criterion: how it meets the task, why it is structured the way it is, and where they would modify it if the requirement changed. This criterion has a price, and the size of the changes sets that price. In Amasanti and Jahic's survey, no significant decline in quality appeared when use was limited to smaller code snippets 3, which fits the practical insight that one can understand only as much of a change as can be taken in at a single sitting. Breaking down the task is therefore also a way of scheduling understanding, and this part of the designer's work gains in value with the agent.

It follows that the time set aside for review is a separate item in planning, which the team sizes to the pace of the agent's output. Alongside activity, the metrics include at least one that describes the state of understanding, for example how many people can meaningfully work on a given module. What preserves the tacit theory is that the agent's deliberations and the team's decisions are written down next to the code, and that the review also covers the reasons behind the structure. These steps slow down merging, and that is precisely their benefit: they tie the pace of the process to the step in which knowledge is created.

Reading is the more expensive half of developer work

Agents have made writing code cheap, and this has made it visible that most of the value of development has always come from understanding. Automated checking takes over the mechanical part of this work and, according to measurements, substantially reduces the number of findings, but interpreting its output and comparing it with the intent remains a human task. A team that keeps pace with the agent's speed by speeding up approvals gives the time it saved back with interest when maintenance work and security flaws arise. A team that treats understanding as a scarce resource lets in less code and knows more about it. I consider the latter a sustainable way of working, because code that is not understood is a liability for the organisation, and counts as an asset only from the moment someone on the team can account for it.

Recommended reading

Sources

  1. [1] Gene Kim, Jez Humble, Patrick Debois, John Willis, Nicole Forsgren (2021): The DevOps Handbook (2nd edition). book
  2. [2] Roger S. Pressman, Bruce Maxim (2020): Software Engineering: A Practitioner’s Approach (9th edition). book
  3. [3] Giorgio Amasanti, Jasmin Jahic (2025): The Impact of AI-Generated Solutions on Software Architecture and Productivity: Results from a Survey Study. arXiv. preprint, not yet peer-reviewed
  4. [4] Cyrille Martraire (2019): Living Documentation: Continuous Knowledge Sharing by Design. book
  5. [5] Steve McConnell (2004): Code Complete: A Practical Handbook of Software Construction (2nd edition). book
  6. [6] David Farley (2021): Modern Software Engineering. book
  7. [7] Sivana Hamer, Marcelo d'Amorim, Laurie Williams (2024): Just another copy and paste? Comparing the security vulnerabilities of ChatGPT generated code and StackOverflow answers. arXiv. preprint, not yet peer-reviewed
  8. [8] Shivani Shukla, Himanshu Joshi, Romilla Syed (2025): Security Degradation in Iterative AI Code Generation -- A Systematic Analysis of the Paradox. arXiv. preprint, not yet peer-reviewed
  9. [9] Mikhail Surikov (2026): Securing AI-Generated Code: A Just-in-Time Vulnerability Detection and Remediation Pipeline. arXiv. preprint, not yet peer-reviewed
  10. [10] Christoph Treude, Margaret-Anne Storey (2025): Generative AI and Empirical Software Engineering: A Paradigm Shift. arXiv. preprint, not yet peer-reviewed

Essays and reviews →

Weekly email

One email a week with the main stories from the Agent Age editions. You confirm by email and can unsubscribe in one click.

Almost done: we sent you an email. Open it and press the confirm link. If it does not arrive within a few minutes, check your spam folder.

↑