The 535K-Line Migration Everyone Cites Was a Port

Stop asking whether agents can replace engineers. Ask what the oracle is, and what it costs to build.

For six weeks my notes said Bun had ported a million lines of code with AI. The number sat on nine pages of my wiki before a lint run checked it against Bun’s own post.

The real figure is 535,496 lines of Zig in, about 780,000 lines of Rust out.

I had the number wrong. But the number was never the important part. The word I kept skipping over was port.


The Best Case Anyone Has

The Bun migration is the strongest argument for the lights-off software factory, the pipeline where no human writes or reviews the code. Most arguments for it are predictions. This one shipped.

Bun, Zig → Rust
  duration        11 days
  led by          one engineer
  commits         6,778
  token spend     ≈ $165,000 at API pricing
  humans reading every line   0

Paul Dix built his essay The end of programming on it. His claim is careful. He does not say the models got good enough. He says that if you can build a verification system and give proper direction, an agent can keep refining a complex piece of software until it works.

Read that condition again. If you can build a verification system.


What a Port Hands You for Free

A language migration is the one job in software where that system already exists before you start.

The spec exists. It is the Zig source. Nobody had to decide what Bun should do.

The oracle exists. An oracle is whatever tells you the output is right. Here it is the old implementation and its test suite. Same input, same output, answer in seconds.

The architecture exists. It was inherited, not invented. The agent never had to make a design decision that someone would regret in month three.

So “refine until it works” actually terminates. The loop has something to check against on every turn.


Now Take the Oracle Away

There is a benchmark that does exactly this. SlopCodeBench reveals requirements one checkpoint at a time. The model builds checkpoint 1, then receives checkpoint 2, which it had no way to see coming. Every earlier test runs again.

That is what real work looks like. Tickets arrive one at a time and lean on decisions made months ago.

In Dex Horthy’s run of it, the best model passed 4 of 17 checkpoints. That is 24%. No model finished a single challenge cleanly, including the one labelled easy. Complexity went up at every checkpoint, for every model.

Same generation of models. One did 535K lines in 11 days. The other could not get through a small project when the spec was withheld.


The Two Camps Are Not Disagreeing

One camp points at Bun and says review is dead. The other points at the benchmark and says agents rot a codebase in weeks. Each treats the other’s evidence as noise.

They are sampling opposite ends of the same scale. Dix shows agents can reproduce a design under a verifier. Horthy shows agents can’t be trusted to make the design. Both are true at once.

“Code” is not one point on the verifiability index. It covers most of it:

Oracle                         Example                          Autonomy
already exists                 port, migration, upgrade         high
cheap to write                 parsers, pure functions          high, once written
expensive to write             product flows, anything with UI  medium
none                           "is this the right design?"      low

So this is a per-workstream call, not a company policy. The same team can run a migration nearly hands-off on Monday and read every line of a new feature on Tuesday, and be right both times.


”No Review” Was Not “No Checking”

One more thing gets lost when the story is retold. Bun did not skip verification. It moved it.

Before any agent ran, hours went into a porting guide that mapped Zig idioms to Rust. Every generated unit went past two adversarial reviewer agents. The whole existing test suite was the merge gate.

The checking sat before the code, around the code and after the code. What disappeared was a human reading the diff. That is harness engineering at full size, not the absence of it.

Even a free oracle has a blind spot. It checks behaviour, not removal. The old tests pass just as happily when the new code still quietly calls the old code. A migration is done when the old dependency is gone, and no inherited test checks for that.


The Port on My Own Desk

A frontend team I work with is spending this month moving a marketing CMS to a new stack. It is a port in exactly this sense: the old CMS is the spec and the oracle, and the architecture is inherited.

The team decided to migrate first and add the agent harness as the code moves. The reasoning is fair. A harness written for a repo you are about to archive gets written twice.

But a port is the most verifiable work that team will get all year. It is where a harness pays back fastest. I don’t know which way was right. I’ll find out in November.

The question I can’t answer yet is the one in row three of that table. When the oracle is not free, is building it cheaper than the review it replaces? Bun never had to pay that bill. Everyone doing feature work does, and nobody has published the number.


Further Reading