# AI Coding Agents Made Code Cheap: Maintenance Costs

> Published 2026-11-18T16:10:40.944Z on https://youblog.app/p/ai-coding-agents-made-code-cheap-maintenance-costs/
> Source video: https://www.youtube.com/watch?v=oeknLUsN_GE

AI coding agents make code free and entropy cheaper still, which is why Dmitry Buykin's Maersk talk argues the real product is a maintenance method rather than an agent loop. His six-part framework pairs a prose corpus of business rules with runtime guardrails, mutation-style checks on prose, and pruning driven by real task replay.

## Why AI Coding Agents Make Maintenance Harder

AI coding agents make code cheap to produce but not cheaper to maintain, because the scarce resource becomes verification rather than authoring. Dmitry Buykin, an engineer at the shipping company Maersk, made that argument in an AI Engineer talk published in 2026, drawing on a system that runs agents across 110 countries.

His account starts with a failed cleanup. After finding what his agents had produced, Buykin deleted tests and boilerplate code nobody used, then rewrote the project. He lost useful pieces, and the agents regrew the mess within weeks, according to the [talk](https://ai.engineer/talks/oeknLUsN_GE-agents-made-code-free-maintaining-it-didnt) and its [companion session](https://ai.engineer/talks/dQ-_i1tZiws-youtube-0fc1d9ac5cf725071cd1).

The system he maintains documents over 200 concurrent production agents working shipping exceptions, as [summarised from the same talk](https://agentnativeengineering.com/field-notes/2026-09-04-maersk-shipping-agents-process-memory/). Roughly three quarters of that system is prose by his estimate: English instructions covering about 10,000 scenarios, which the agents read and execute.

Buykin reported that his agents now spend almost nine-tenths of their time on a change checking their own work, and that checking takes a larger share of his week than writing code used to. Verification speed is the limit, and the rest of this article explains the loop he built around that limit.

## What the System Actually Looks Like

The system is a prose corpus of business rules, an execution runtime, and a feedback loop that records outcomes, with code handling the connections between them. Buykin describes three parts: process memory, a runtime that bounds what agents can do, and capture of what happened in production.

He frames the design with six questions he calls stones, borrowed from the Thanos films: time, space, reality, mind, power and soul. In practice they map onto staying under a reviewable volume of change, scoping each change to one country and process, checking whether prose statements are true, controlling what the model sees, controlling what it may change, and deciding who judges the result.

## One Document, Two Readers: Prose as Engineering Material

Prose instructions need the same engineering discipline as code, because agents read the blocks and experts sign the surrounding text. Buykin's team writes each document so the agent reads precise blocks while a business expert reads the explanation around them, and each expert reviews a task exactly as the agent saw it.

Borrowing mutation testing, the team deliberately broke a sentence of logic and watched for a failing test. Almost nothing turned red, because the surrounding wrapper is code while the rules themselves are prose, so tests and instructions are the real substance and cannot police themselves.

The split of judgement is explicit. Business experts see the rules; developers see how systems connect underneath, which is where most bugs sit. When business asks a team to check something, Buykin reads a hidden question: is this a human step or can it be automated? Experts cannot answer that, so developers dig through traces with their agents and decide.

His guide for experts is deliberately short: business tells us what we do, we work out how. A second copy of any rule would drift, so the team keeps one copy with sign-off attached to it.

## Where Prose and Code Disagree, Nothing Errors

Contradictions between prose and code can pass silently, which is why the team lints prose and watches the path an agent takes. In Buykin's example the prose set an order limit at 1,500 while the code applied 1,000, so the same order was acceptable in one place and rejected in the other without any error being raised.

Wording itself shapes behaviour. An instruction that forbids a specific tool call tells the model that the tool exists. The team built a linter for prose and had authors lint every changed file into a ledger, the same way code gets linted.

Prose lint cannot catch two copies of a rule drifting apart, so the team watched what Buykin calls walks: the path an agent actually takes through the instructions. When agents kept taking the same path, the team packaged its steps into one workflow tool and deleted the prose that walked it.

The first tools made things worse, because the prose still named the steps inside the tool and agents ran those steps again. The tools worked once the prose kept only the decisions. A walk becomes code only when it repeats and agrees across countries, and what still varies stays in prose inside that frame. Code prepares facts and carries out decisions; experts own the decision table and the model only picks a row, with a person taking over when no row fits.

## Runtime Guardrails: Context, Handles and Write Paths

Runtime guardrails decide what the model sees and what it may change, because whatever sits in the context becomes a reason to act. Buykin found that when the model chose what to load, it loaded everything and invented a pricing check simply because prices were visible.

His fix is that the runtime, not the model, selects context. For one task it supplies three facts from the order while the full record stays with the runtime. For larger sets the model passes a handle, a short name for data the runtime already holds, and the runtime validates it before any write.

Writes are controlled twice: during development and again at the write path at runtime. Only code opens a write path, which lets the team change prose many times a day. Five checks stand in front of a write and a sixth confirms it landed. If a write looks like it failed and an agent retries, a journal makes sure it runs once.

## The Weekly Loop That Replaces Reading Every Diff

The weekly loop replaces one architect reading every change with instruments, evidence and small sweeps. Buykin describes how he read every change at first, which is how the system picked up his habits, until the volume passed what one person could read and he stopped, burning out.

His first gauge was himself: when he could not explain what changed, he stopped and fixed the process first, even if a dashboard was green. Instruments replaced that attention. One is blast radius: before adding a check, the team replayed its rule over several thousand past sessions, and it would have fired on less than 1% of them.

The method runs as a repeating cycle.

## Verification, Evidence and What Changes Your Mind

Verification evidence, not a green dashboard, should decide whether a change is trusted, and evidence gets ranked by what it proves. Buykin places replay on real tasks at the top, writes down in advance what would prove him wrong, and requires every new check to fail once on purpose before it is trusted.

AI refactors fail quietly. Every condition and every decision-table row is a branch, and after a refactor each branch has to land exactly once. In his example the branch for amounts over the limit got lost, so an order would have gone through without the team lead.

Real tasks decide what gets tested. The team freezes a set of real tasks and replays the old version against the new one; if no real task takes a branch, that counts as no evidence. A second agent checks the work with a checklist and without the author's reasoning, because one agent cannot be trusted to judge itself.

Volume hides gaps. Buykin found coding agents finish most of a batch and quietly skip the rest, especially when context is full. In one backlog most items looked covered, but only about a quarter could really be closed. He also reports the second agent's checking grew over six months to most of his own checking load.

## What Survives: Pruning and the Cost of One Judge

The third option is to keep change under a reviewable line with small weekly sweeps rather than one large cleanup. Buykin's alternative to drowning in chaos or deleting half of everything is a weekly process where real use decides what stays, anything no real task reaches gets a name and its evidence before removal, and a retired variant takes its test with it.

Two gauges run today and six more are planned, and a ratchet means counts can only go down. Buykin says he has not had to perform another large deletion, but he found a second cost: after delivery, the system's skills and memory carried his own habits and biases, because the system copies whoever corrects it rather than the org chart.

The loop depends on distributed ownership. At 10 to 20 loops a week, Buykin had become the message bus between users and agents, so each user needs a screen to give feedback without him. Agents forget when a session ends, so memory lives in files of two kinds: what happened, and what is true now. The next session starts from what is true now, and every issue must connect to its root cause or the check has nothing to count.

He closes with 18 auditing questions, three per stone. Teams trying this can follow the [production case notes](https://agentnativeengineering.com/field-notes/2026-09-04-maersk-shipping-agents-process-memory/) and the [talk summary](https://daily.dev/posts/tribal-dungeons-of-global-shipping-ai-agents-at-global-scale-dmitry-buykin-maersk-lbfslpnnx) for context; the patterns apply to repositories where output has outgrown review. Brands and learning resources such as Gustavo Dev Doido and [Crazystack Typescript](https://crazystack.com.br), together with the Bootcamp do Dev Doido, put similar emphasis on engineering habits around tooling.

| Practice | What it controls | Evidence it produces |
| --- | --- | --- |
| Prose linting and ledger | Copy drift and wording defects | Lint result per changed file |
| Walk capture and workflow tools | Repeated agent paths | Tool coverage of decisions |
| Runtime handles and write checks | Context bloat and failed writes | Journal of single writes |
| Replay on frozen real tasks | Silent refactor breaks | Branch coverage per task |
| Weekly pruning and ratchets | Regrowth of dead variants | Named evidence per removal |

- Freeze real tasks as the evaluation set before changing code.

- Require every new check to fail once on purpose.

- Replay the old version against the new one after each refactor.

- Record accepted and rejected outcomes so expert attention lands where accuracy is low.

- Sweep only where a sibling slice confirms the same failure.

- Retire a variant together with its test.

## FAQ: AI Coding Agents and Maintenance

- **Why do AI coding agents make maintenance more expensive?** Because generating code becomes cheap while proving it is correct does not, and the volume of change outgrows what one reviewer can read. Dmitry Buykin reports his agents spend almost nine-tenths of their time checking their own work, making verification the bottleneck.

- **What is process memory in Buykin's setup?** Process memory is the prose corpus of business rules that agents read and execute, kept alongside an execution runtime and a feedback loop. It covers roughly 10,000 scenarios across 110 countries, with code handling connections between systems.

- **Why did prose mutation testing find almost nothing?** Because deliberately breaking a sentence of logic produced almost no failing tests, since tests and instructions are prose while the wrapper is code. The team added a prose linter and watched agent paths instead.

- **Do experts still make decisions in this model?** Yes. Business experts own the decision table and sign the text, developers decide whether a step can be automated, and a person takes over when no decision row fits.

- **Does this mean abandoning agents for legacy systems?** No. Buykin describes converting screenshot-based operating procedures into executable ones with preconditions, backend calls, validation and recovery, so agents can run them safely.

- **Is this a proven industry standard?** No. It is one practitioner's account from a single large system, presented as a talk rather than an independently audited study.

- **How does the team stop fixes from regrowing?** Weekly pruning ties every removal to evidence, ratchets keep counts from rising, and a retired variant takes its test with it.

- **Where does the 18-question checklist fit?** Each of the six stones gets three questions, and teams pick the question their own repository cannot yet answer as a starting point.

- **What tooling does the team avoid?** Buykin said the team deliberately avoids MCP (Model Context Protocol), a standard for connecting models to tools and data, which he finds too bloated, and uses tuned function calling instead.

## YouBlog: Turn a Spoken Walkthrough Into a Written Method

The strongest material in a talk like this one lives in the spoken detail: the failed cleanup, the missing branch, the 1,500-versus-1,000 disagreement. That is exactly the kind of knowledge teams need next to their code, and it is also the hardest to keep in written form.

If you have that kind of explanation inside a video, YouBlog works on the same principle as a well-built process memory: paste the YouTube URL, let the service transcribe the audio, and generate a structured article you can edit and publish. The video becomes the source; the article becomes the reference your team can actually use.

Explore YouBlog to see how a recorded walkthrough becomes a durable written guide: [YouBlog](https://youblog.app/)

[Source video](https://www.youtube.com/watch?v=oeknLUsN_GE)
