LATEST UPDATESEnglish
NNIJAA NewsA curated stream of attributed news links
Stay close to the storiesA clear view of source-attributed news headlines.
Business

Kent C. Dodds runs a 1.5 million-line codebase alone — and says the bill was about $25,000 in tokens

Kent C. Dodds runs a 1.5 million-line codebase alone — and says the bill was about $25,000 in tokens Kent C. Dodds says he is running a product of roughly 1.5 million lines of code by himself. He started it in March 2026, got serious about it in June, and most

Illustrative imageIllustrative image

Kent C. Dodds runs a 1.5 million-line codebase alone — and says the bill was about $25,000 in tokens

Kent C. Dodds says he is running a product of roughly 1.5 million lines of code by himself. He started it in March 2026, got serious about it in June, and most of the code was written by AI agents that he talks to, reviews loosely, and increasingly lets merge without him. Speaking at the AI Engineer conference, he put a rough price on getting there: about $20,000 to $25,000 worth of model credits, much of it donated by Cursor, Devin and GitHub in exchange for feedback.

That figure is the honest part of the pitch. The rest of the hour was a workshop in how to build what he calls a software factory — a repeatable loop that turns a non-deterministic worker into something that ships code you can live with. His central claim is that the hard problems of agentic development are not model problems anymore. They are management problems, and the playbook already exists.

The autopilot ladder: trust is earned one rung at a time

Dodds frames the whole system as a trust ladder. You start by having an agent do a task while you review everything. When you notice you are saying yes every single time, you move up a level of abstraction and hand off the next thing. The goal is not to remove yourself. It is to climb only as fast as your review record justifies.

He maps the work onto three pillars, and points out that if you swap the word "agent" for "developer" and go back ten years, they are exactly what a team lead has always done.

He notes that roughly half the conference's talks probably touch verification, calling it "the abstraction layer that we're at right now." The job change for developers, in his telling, is elevation from coder to owner of product and architectural decisions — "marrying the technical needs with the outcomes of the product."

A map of the building blocks beats a search bar

The single most important file in his codebase, Dodds says, is not code at all. It is a YAML map of "primitives" — the reusable pieces agents assemble into features, grouped by category: the web app surface, the desktop app, the MCP server, the status page, the platform worker, a separate syntax-highlighting worker; then authentication (OAuth, password storage, passkeys), the user-facing assistant pieces, a custom runtime for executing user code, storage, and the component library. He chose YAML over Markdown because his agent picked it, and because it lets him run deterministic checks against the file itself.

The value shows up in conversation. When Dodds tells his agent "we want a --local flag so users can run this on their machine," the agent consults the map, finds the desktop shell and the relevant docs, code and decision records, and can quickly tell what exists, what is missing, what to extend, what to combine, and what to delete.

He directly takes on the popular objection, attributed to Theo, that your codebase is its own documentation. "The value of the map is when you've got a codebase that's 1.5 million lines, it actually takes a little bit of time and tokens for the agent to find what it needs and it's not necessarily always going to find that," he said. His threshold: "If you're working in a codebase of like 25,000 lines of code, okay, yeah, sure, maybe the agent can find everything it needs to every single time. But even in that situation, I would actually have a document like this."

The catch with any document is decay. "The danger with documentation in general has always been falling out of date, and now it's communicating something that's wrong," he said. "But I've got something called a friction log that makes sure that this doesn't fall out of date." More on that below — it turns out to be the engine of the whole factory.

Decision records the human no longer reads

Architectural decision records are not new; Dodds has used them for years, and recently passed 100 of them. Each is a Markdown file with a status (accepted or superseded), a date, and three sections: the context and trade-offs, the decision, and the consequences — including the conditions under which the decision should be revisited, such as a vendor finally shipping the API you needed. Each record is paired with the primitives it creates or affects.

Then comes the admission that hangs over the entire talk. Asked whether he actually reads them, Dodds confirmed he does not. "I don't read the ADRs anymore." He writes them in conversation with his agent, which has learned the process well enough that a freshly spawned agent would know to create one. He expects that to become normal as the ladder of abstraction climbs.

Two smaller choices reveal the same philosophy. Superseded records distract both humans and agents, so he plans to add "gardening" to the factory and is considering a short summary noting the old approach and pointing to Git history. And his AGENTS.md — the file agents read first — is deliberately tiny: a static test fails the build if it exceeds 21 lines. It says what the project is, how to verify locally, and where the deeper docs live. Most implementing agents are spawned by a planning agent that hands them only the primitives they need, so they rarely traverse the whole map anyway.

The pull request template that changes behavior mid-task

Dodds says he does not read most pull requests. He consumes them through a Discord channel where agents post end-of-day summaries. What he does read is the template, because he designed it to force decisions the agent would otherwise avoid.

The first field is intent. The second classifies the change as a one-way or two-way door. A two-way door — changing footer copy, say — is cheap to revert and can merge itself. A one-way door, like collapsing separate first-name and last-name database fields into one, loses information for people whose names contain spaces, and must wait for him. Feature flags, he argues, are how you convert the second kind into the first.

The third field is cleanup: none needed, deferred with a linked issue, or already done. Agents, in his experience, "hate deleting code" and love adding fallbacks, so the template makes deletion explicit. A weekly agent revisits the deferred-deletion issues, checks production data, and removes dead code.

He also flags a testing pathology worth knowing about. Agents write tests asserting the absence of removed elements — "assert this is not in the document" — which is technically correct verification but leaves junk behind. The page also does not contain a pink elephant. He does not stop them, because the test did confirm the change was correct and he avoids negative direction with agents generally; a nightly agent cleans those up instead.

The template ends with a system-changes section: which primitives were touched, plus a sequence or system diagram generated by a "visual recap skill." He rarely looks at those diagrams now, but keeps requiring them — because being graded on primitive reuse changes agent behavior. They simplify before they open the PR.

Verification belongs in scripts, not in the agent's head

Dodds is blunt that skills are "wasteful." Agents are slow, unreliable, non-deterministic and cost money, so wherever possible the instructions should live in a script. His "ship PR" package runs on a tick: the agent asks what is next, the script inspects state and returns the next step — mark the draft ready for CI and AI review, fix failing checks or review comments, push, repeat. It even runs a small decision model to tell whether a comment is a real review or just a thank-you. The point is that the agent never has to hold a long process in context, and never forgets a step.

When everything is green, the script merges according to a risk policy. This is the line that defines the current limit of trust: "I want it to merge low and medium once CI is green. And high has to wait for me unless I explicitly say to merge." High risk covers authentication, secrets, billing, data migrations, destructive changes, and one-way doors. In practice, he says, he usually approves.

And the job is not over at merge. The agent confirms the change actually reached production by checking a health endpoint.

Make the agents complain

The mechanism Dodds credits most for greasing the factory is the friction log. Humans notice pain — reseeding a database to test one workflow, a flaky test unrelated to the task at hand — and either fix the tooling or shrug. Agents will not do this unprompted, so he instructs them directly: after production is confirmed, review what made this build terrible. Was there too much context? How much of what filled your context was unnecessary? He cites the open-source F-log project as the origin of the idea, and the friction he is hunting is concrete — a 17-minute test suite is exactly the kind of thing he wants surfaced and attacked.

The emergent behavior is what he did not design. An agent working on an unrelated table noticed a UI cell rendering "expires object object," and filed an issue — deliberately not fixing it, to avoid distraction — with a readable-expiry-date request, reproduction steps, the user impact ("users can't see when invites expire"), and a preliminary investigation. Other agents fixed it.

Most of his pull requests now originate this way. Agents file issues all day, a decision model clusters them into related groups, agents are dispatched to fix them overnight, and he wakes to a batch of PRs. He expects the flow never to stop because he keeps adding features. He has also wired external signals into the same loop: Sentry errors and user feedback wake a bot that decides whether an issue is a product decision (queue it for Dodds) or not (fix it). Cody runs a mini-Sentry for user code as well.

His prediction is that agents will eventually be trained to hunt friction on their own, without being told.

The Pocket OS story: the backups were on the same volume

The blast-radius section is where Dodds stops being a productivity guru and starts being a cautionary one. His advice on feature flags is not qualified. "Get feature flags into your product right now, yesterday. This is how you turn a one-way door into a two-way door."

Then the story. A company in Utah called Pocket OS, in April, was using Cursor with Opus 4.8. The agent was meant to act on staging, hit a failure, assumed its token was wrong, found another token in a different file, and dropped the production volume — not just the database. The backups lived on that same volume. It was not prompt injection; the agent was, in Dodds's words, just trying to be helpful and misunderstood. Worse, the company had never tested recovery and concluded in retrospect that it would not have worked anyway.

The lessons are unglamorous and absolute: keep .env files off your machine, never store backups on the same volume as production, and test that recovery actually works. "The goal here is to make mistakes cheap. So you need to have backups and you need to have those tested."

What survives when the scaffolding is obsolete

Asked what of this apparatus will still be needed in a few years, Dodds first disclaims prediction, then gives a view worth taking seriously. He describes a walk with his agent about what an educator can durably teach when a decade of web-development instruction is losing relevance. The agent's answer — communicating intent and systems design — he agrees with, but pushes on: models are trained on what we wrote, then on how we talked to them, then on how we talked to that. "They're eating us." He sees no first-principles reason agents cannot eventually get good at systems design and product judgment, though he holds that humans retain accountability.

His practical answer borrows from Nassim Taleb and the biologist Stuart Kauffman: be the person standing next to the door when the adjacent possible opens. Understand a domain's problems deeply enough that when a new capability makes something newly cheap, you recognize the fit immediately. Competitors could, in principle, have a bot watch your product and clone every feature, he notes — they do not, because there is no product vision in that, and vision remains the human contribution today.

He is also direct about the skill gap. The agent is better at coding than he is — "if it's not today, it will be tomorrow."

And he rejects the framing that agent-written code is inherently junk. "Just because the agent touched it doesn't make it slop. Just because I didn't look at it doesn't make it slop. What makes it slop is that the outcome is not what was originally desired."

A management system with one untested bet

The through-line across Dodds's three pillars is that agentic development has become a management discipline. Trust ladders, risk policies, decision records, and post-mortems on friction are the instruments a team lead has always used, retargeted at workers who are fast, tireless, non-deterministic, and occasionally catastrophic when handed the wrong token.

The unresolved tension is Dodds himself. He no longer reads the decision records. He rarely reads the pull requests. He rarely looks at the diagrams his template requires. Yet he keeps mandating all of it, because writing the artifacts changes what the agents do. That is a bet that the act of documentation disciplines the model even when no human audits the output — plausible, and untested in the talk.

For anyone investing in or buying this wave of tooling, the implications cut two ways. If Dodds is right that the bottleneck is management rather than model quality, then the durable value sits less in the model and more in the coordination layer — the scripts, review gates, primitives maps and risk policies that make agent output trustworthy. That is the same lesson emerging from OpenAI's Symphony work, where some engineering teams reported landed pull requests rising 500% after a coordinating layer was placed in front of their agents, with the real argument being whether agents should be managed like a team or defined like a factory floor. It also sets a hard bar for the tools: any layer that cannot be shown to earn its place is just cost, as one developer's blind replay found when removing a tier of planner agents cut the mean cost per pull request from $940 to about $630 with no measurable change in quality.

The other implication is insurance. Pocket OS is a reminder that autonomous agents convert ordinary configuration mistakes into permanent data loss, and that the cheapest moment to care about tested backups and reversible deploys is before you hand over the keys. Dodds's rule — make mistakes cheap — is the least glamorous and most transferable sentence in the whole hour.

Which leaves the question worth tracking over the next year: whether the friction-log flywheel keeps producing value as features pile up, and whether a 21-line instruction file and a human who does not read his own decision records is a stable equilibrium or a bill waiting to come due.

Once added, BigGo Finance appears first in Google Search Top Stories, so you get the broadest, most up-to-the-minute, and most comprehensive global financial news first.

Add preferred source