Kent C. Dodds: build a feedback loop before letting agents ship

Maps of reusable components, verifiable pull requests and tested recovery help coding agents work with less human review.

KCKent C. DoddsVortrag · Kody
Kanal
AI Engineer
Veröffentlicht
2. Dez. 2026
Video
1:02:59
Lesezeit
10 Min.
Folien
8
Original
Englisch
Auf YouTube öffnen
Beim Scrollen schrumpft das Video in die rechte untere Ecke und läuft weiter. Untertitel folgen Ihrer Lesesprache.
LesespracheIn 2 Sprachen verfügbar
Diesen Artikel gibt es noch nicht auf Deutsch, daher wird das Original (Englisch) angezeigt.
ZUSAMMENFASSUNG

In 30 Sekunden

Kent C. Dodds lets agents merge much of the work on his 1.5-million-line product, but he describes that autonomy as a trust earned through good changes, verification and limits on production damage. A map of existing components and decision records gives agents context; a state-driven shipping script presents the next action when needed. Low- and medium-risk changes can merge after checks, while high-risk work waits for him. He also has agents report friction and turns those reports into fixes, with feature flags and tested backups to make mistakes cheaper.

  1. 1Autonomy grows as agents earn trust at each stepDodds delegates more when he repeatedly approves the prior step. His three pillars are good pull requests, review and verification, and limiting the damage of mistakes.
  2. 2A component map helps agents reuse what already existsA structured catalog points to code, documentation and decisions for each reusable system component. Dodds says it saves time and tokens in a large codebase and helps agents spot components to extend, combine or remove.
  3. 3A short agent instruction file points to details on demandHis build checks the length of AGENTS.md, which explains the project, local verification and where to find relevant documentation. More detailed instructions appear when needed.
  4. 4A PR declares whether the change is easy to reverseDodds contrasts changing a footer with combining first and last names in a way that loses information. His policy can let agents merge reversible work while reserving harder-to-undo changes for review.
  5. 5A script gives the agent one shipping step at a timeThe agent repeatedly asks a state-aware script what to do next, from moving a draft to ready through handling failed checks and reviews. Dodds prefers deterministic code where possible, with AI used where judgment is needed.
  6. 6Agents turn their own friction into the next fixesAfter shipping, an agent records difficulties such as slow tests or cumbersome setup. Other agents group related reports and work on them, creating a feedback loop to improve the development environment.
  7. 7Feature flags and tested backups make mistakes cheaperDodds describes a production volume loss where backups were stored on the same volume. His advice is to separate backups, test recovery and make changes reversible where possible.

Das Wichtigste

  1. Give agents a map of reusable system components and the decisions behind them so they can find and extend what already exists.
  2. Make the next shipping step depend on the current state of tests and reviews instead of relying on a long instruction the agent must remember.
  3. Classify changes by risk and reversibility; Dodds holds high-risk changes for human approval.
  4. Ask agents to log friction after shipping, then group and resolve recurring obstacles.
  5. Use feature flags and independently stored, tested backups to reduce the cost of production mistakes.
VOLLTEXT

Den bearbeiteten Text nach Kapiteln lesen

Nur das Transkript
01

The three pillars of agent autonomy

Dodds delegates after agents consistently earn trust. Good pull requests, verification and limiting the damage of mistakes support that autonomy.

I asked the audience how autonomous their codebases are, from autocomplete and reading all code to letting agents merge without looking. In my own workflow, agents can merge without my review, but reaching that point required building a system around them.

I am building a solo product with roughly 1.5 million lines of code. That number is easy to count but is not itself the goal: an agent could generate millions of lines or pull requests. What matters is whether the product fits a useful purpose.

Over the past months I have built what people call a software factory: a loop in which agents can do implementation autonomously while I focus on product and architectural decisions. I do not know where the ceiling for agents will be, but today the surrounding system can make them more effective.

I sometimes take a walk and discuss priorities and decisions with an agent through my phone. After a weekend of conversations about adding organization support to my product, I told it to proceed and it implemented the feature.

The way to increase autonomy is to let agents earn trust. Start with a task you review and approve; when you are consistently saying yes, move that decision to the agent and identify the next thing you can delegate.

Three pillars for agent autonomy
FOLIE 1 / 8Three pillars for agent autonomyDodds pairs good pull requests with review and verification, then limits the damage of mistakes.

I organize this around three pillars: agents should make good pull requests, verify and review their work, and limit the damage if a mistake still reaches production. These are familiar concerns for engineering managers; the job shifts from writing each line toward product outcomes and technical decisions.

02

What the codebase and its tokens cost

Dodds estimates the value of donated model credits used to build his product and explains why he does not run local inference. He treats lines of code as a poor measure of product value.

Asked about token spending, I estimate that the credits used over several months were worth $20,000–$25,000. Cursor, Devin and GitHub donated some tokens in exchange for feedback, so it is difficult to calculate the cost precisely.

The codebase has also had a great deal of code removed as it evolved. Good engineering includes finding components that can be combined or deleted, not simply growing the line count. I do not run local inference, partly because of donated tokens, though others may have good reasons to do so.

03

Map the components agents can reuse

A structured catalog maps components to code, documentation and decisions. It helps agents find, extend, combine and remove existing building blocks.

I have a command that an agent can run to audit a codebase against an autopilot ladder: the practices that support a more autonomous workflow. Among them are a map of components, architectural decision records, self-verification and a pull request template.

The most important piece in my codebase is a catalog of primitives: the reusable pieces agents combine into features. Mine is structured as YAML so deterministic checks can inspect it, but the format itself is not the important choice.

The primitives map
FOLIE 2 / 8The primitives mapA structured catalog points agents toward the existing components of the system.

The catalog groups application entry points, authentication, assistant features, runtime, storage and UI components. It points to relevant code, documentation and decision records so an agent can discover what is already available.

For example, if I want code to run on a user’s machine instead of in the cloud, an agent can inspect the existing desktop shell and other relevant pieces. We can then discuss missing capabilities and trade-offs rather than starting from a blank slate.

An agent can search the codebase without a map, but finding the right things in 1.5 million lines takes time and tokens and may still miss something. Documentation can become stale, so I use a friction log to help identify places where the map needs attention.

The map helps us decide whether to extend a primitive, combine overlapping ones or remove one that exists only for a feature nobody uses. That gives the agent context while leaving me free to make the decisions I am responsible for.

04

Record architectural decisions and keep instructions short

Decision records explain context, choices and consequences. A concise AGENTS.md points implementing agents to verification and the relevant documentation.

Architectural decision records are not new. Each records the context, trade-offs and affected stakeholders, the decision itself and its consequences, including circumstances that might prompt us to revisit it.

An architectural decision record
FOLIE 3 / 8An architectural decision recordThe example records context and a decision about explicit state machines.

The records also have a date and a status such as accepted or superseded. Linking a decision to the primitives it affects helps an agent understand why the system has its current shape and build the intended change.

I define a software factory as a way to work at the highest level where my particular human abilities are useful. Agents can implement, but I own the product and its long-term vision and remain responsible for the decisions, even when I ask an agent for advice.

Asked whether unread decision records are just AI-generated slop, I distinguish authorship from outcome. To me the problem is an undesired result, often caused by poor communication of intent or failure to equip the agent to verify it, not simply the fact that an agent wrote the document.

I no longer read every decision record. I create decisions through conversations with an agent, and the process is documented so another agent knows when to produce a record. I expect more people to move toward that level of abstraction, though it is not yet common.

Old decisions can become distracting when newer ones supersede them. I am considering having agents maintain those records, leaving a brief explanation and relying on Git history for obsolete details; a full change in direction can merit a new record.

My AGENTS.md is short enough that a static check fails the build if it exceeds my 21-line limit. It describes the project, how to verify locally and where to find relevant guidance. An agent coordinating the work can also tell an implementing agent which primitives matter.

A short agent index
FOLIE 4 / 8A short agent indexThe instruction file directs agents to local verification and task-specific documentation.

An audience member asks whether decisions should be enforced with deterministic checks. I expect verification to evolve as models improve; if implementations become more reliable, expressing intent and getting the agent to draw out that intent become increasingly important.

05

What remains valuable as agents improve

Dodds is uncertain about the limits of AI, but advises understanding a problem domain deeply enough to recognize new opportunities. For now he sees product vision and systems decisions as human responsibilities.

Nobody can predict whether agents will eventually design their own optimal loops or what work will remain for people. As an educator, I have been thinking about what I can teach that will last rather than another tool that may change next week.

Communicating intent and understanding systems matter now, but I cannot rule out agents becoming good at those too. Models are trained on more of the ways people use them, and I am still working through what that means for human work.

My practical answer is to understand a problem domain deeply and stay close to new opportunities. I use the idea of antifragility—getting stronger under pressure—and the adjacent possible: a new capability opens doors that were not available before.

For now agents do not have my product vision or understand the problem in the same way. A competitor could copy features, but a collection of copied features is not itself a long-term product vision.

06

Make pull requests explain intent and reversibility

The PR template asks about intent, reversibility, cleanup and verification. Deferred cleanup becomes an issue checked later rather than a permanent TODO.

My pull request template begins with intent: what is the change for? I rarely read every PR, so agents send a summary to Discord. When something surprises me or needs more context, I can investigate it.

Pull request intent, reversibility and cleanup
FOLIE 5 / 8Pull request intent, reversibility and cleanupThe template asks agents to classify a change as a one-way or two-way door and record cleanup.

The template also asks whether a change is a two-way door, cheap to reverse, or a one-way door. Changing a footer is easy to undo; combining first and last names into one field can lose information because names themselves can contain spaces.

Depending on the risk policy, an agent can merge a reversible change and revert it if necessary, while a costly-to-reverse change can wait for my review. Other factors can also affect the decision.

The template asks explicitly about cleanup. Agents like adding code and fallbacks, so this prompt can make them notice something they can delete before opening the PR. The instruction arrives at the moment it is relevant instead of relying on the agent to remember a long list from the start.

When cleanup must wait, I have the agent open an issue describing what to remove and under what conditions. Another agent checks those issues weekly, including production data where appropriate, instead of leaving a TODO to linger for years.

The template asks why the change is needed, what it does, whether it may break packages, which issues it addresses and how it was manually verified. My release process can also use screenshots of user-facing changes.

Agents often write tests, but an immediate verification test is not always worth keeping permanently. For example, an agent removing a footer might first assert that the old text is absent, see the test fail, remove the text and see it pass.

That test confirms the intended change, which is useful, even though a permanent assertion that a particular string is absent may add little value. Rather than forbid the verification, I have another agent clean up such tests at night.

07

Verify changes and inspect their system effects

Dodds distinguishes useful immediate verification from tests that should live forever. System diagrams and a component recap encourage agents to use existing primitives.

A pull request can also describe which primitives it touches and include a sequence or system diagram. I used to inspect these more often; even when I do not, producing the recap prompts the agent to consider whether existing pieces can be reused or simplified.

A pull request change-flow diagram
FOLIE 6 / 8A pull request change-flow diagramThe visual recap helps an agent consider the system components affected by a change.
08

Run a state-driven shipping loop

A script tells an agent its next shipping action based on PR state. Risk policy governs merges and the loop continues until production health is checked.

For shipping, I prefer to put repeatable work into deterministic scripts where possible. Agents are slower, cost money and are nondeterministic, so a script can provide a more reliable next action without requiring a very long skill document.

The Ship PR skill
FOLIE 7 / 8The Ship PR skillThe agent repeatedly calls a state-aware process and follows the next step it returns.

My Ship PR process works in ticks. The agent asks what to do next; the code examines the PR state and might tell it to mark a draft ready, wait for CI, fix a failed check or address an AI review. The agent repeats the process as the state changes.

A small decision model can still help with judgment, such as distinguishing a review comment from a thank-you. The principle is to combine inference with deterministic software, and scripts can implement the approach without my product.

My risk policy lets agents merge low- and medium-risk work after CI is green. High-risk work waits for me unless I explicitly authorize it; authentication, secrets, billing, data migrations, destructive changes and hard-to-reverse decisions are examples.

A merge is not the end of the job. The agent should make sure the change reaches production and check the health endpoint to confirm that the intended version is running.

09

Turn friction and production signals into improvements

Agents report obstacles, group related issues and fix them. Feature flags, tested independent backups, error monitoring and user feedback close the loop.

Afterward I ask the agent to complain: what made the work difficult? A person might notice that preparing test data takes too many clicks and write a seeding script, or notice an unrelated test failure. Agents need to be prompted to surface that friction.

I also ask whether the agent loaded unnecessary information into its context and how the workflow could be improved. Agents file friction reports, another agent groups related reports, and agents work on the resulting issues, often while I sleep.

For example, an agent reported that tests took 17 minutes. That gives me a concrete improvement to pursue. Once the work is finished, a report goes to Discord so I have a convenient place to see what happened.

Feature flags make changes easier to reverse, which matters when agents are shipping and experimenting. The aim is to make mistakes cheap rather than assume no mistake will ever pass the earlier checks.

Backups and recovery tests are equally important. A company I know of had an agent meant to work in staging, but it used another token and dropped a production volume; the database backups were on that same volume, so they disappeared too.

Store backups separately and test recovery. In that example, the company later realized that its recovery process would not have worked even if the backup files had survived.

One agent noticed an unrelated page displaying an object instead of a readable expiry date. It filed an issue with reproduction steps, user impact and a preliminary investigation rather than getting distracted from its current task; another agent later fixed it.

A friction issue filed by an agent
FOLIE 8 / 8A friction issue filed by an agentThe report records an unreadable expiry date, expected behavior and reproduction steps.

Error monitoring and user feedback can feed the same loop. An agent can inspect an error or report, fix a straightforward problem, and hold work that requires a product decision until I can answer. I remain responsible for those product choices.

Mehr aus diesem Kanal

4 Folien15:43EN
AI Engineer· 2. Dez. 2026Use Fast Decisions for the Routine Parts of Agent WorkflowsChibi Vikram, Kevin Bernstein · UiPathUiPath combines fixed steps, Jev decisions, and deeper agents, then uses evaluations to discover faster reranking and email-classification designs.Workflow automationAgent EngineeringEvals+2
4 Folien27:21EN
AI Engineer· 1. Dez. 2026George Fraser: Give AI Agents a Map of Your Business DataGeorge Fraser · FivetranFivetran’s CEO argues that AI agents need the cleaned data and business definitions already maintained by data teams.Natural-language database queriesData quality & curationAI agents+2
4 Folien29:13EN
AI Engineer· 1. Dez. 2026Mihail Eric: Building Sales Judgment Into AgentsMihail Eric · MonacoMonaco pairs sales data and evolving memory with expert-guided evaluations, then embeds salespeople in the product team to refine its agents.Enterprise-KIAgent memoryAgent Engineering+2
3 Folien29:31EN
AI Engineer· 30. Nov. 2026Sydney Runkle: Proactive Agents Must Learn When to Stay QuietSydney Runkle · LangChainAgents that pursue goals can overwhelm their users. Runkle outlines how memory and review interfaces can make their interruptions useful.Personal agentsAgent memoryAgent Engineering+2
4 Folien27:30EN
AI Engineer· 30. Nov. 2026Netflix Learned That Connecting AI Tools Can Make Answers ClashUtkarsh Shrivastava · NetflixUtkarsh Shrivastava explains how evaluations, data owners and user context help an assistant choose among overlapping sources.Enterprise-KIAI platform engineeringMCP+2
4 Folien26:53EN
AI Engineer· 29. Nov. 2026Scott Tolinski: AI Coding Makes It Harder to Stop WorkingScott Tolinski · SyntaxA developer survey and Tolinski’s experience point to longer hours, pressure to produce and fatigue from managing parallel agents.Coding-AgentenMental HealthWork-Life Balance+1