AI Engineer Code Summit 2026

Closing the Agentic Loop — Kent C. Dodds

Kent C. Dodds1:02:59

About this talk

Kent C. Dodds lets agents merge most changes to Kody, a 1.5-million-line codebase he manages solo. His workflow makes architectural decisions discoverable, puts shipping rules into code and turns the problems agents encounter into the next round of pull requests.

  • Delegate one responsibility at a time. Repeated approvals are a reason to reconsider a manual step, provided the agent can verify its work and the team can recover from mistakes.
  • A structured primitive catalog tells agents what they can reuse. Linked ADRs explain why those pieces work the way they do. A short `AGENTS.md` helps agents find both.
  • Put instructions where they can change an agent’s behavior. Kody’s PR template prompts agents to reconsider reversibility, cleanup, verification and reuse before submitting a change.
  • Move predictable shipping decisions into scripts. Read the PR state on each invocation, reserve inference for judgments that need it, apply the project’s merge policy and confirm the deployed revision.
  • Feature flags make experiments easier to reverse. Destructive failures additionally require restricted credential access, independent backups and a restoration procedure that has actually been tested.
  • Ask agents to report friction even when a task succeeds. Combine those reports with production errors and user feedback so agents can initiate repairs and bring unresolved product decisions back to the owner.

Chapters

  1. 0:00Introduction
  2. 2:28How autonomous is your codebase?
  3. 8:03Earning trust through three pillars
  4. 11:08Token budgets and local inference
  5. 14:08Auditing and mapping your codebase
  6. 21:55Recording architectural decisions
  7. 30:09Keeping AGENTS.md small
  8. 32:54Durable human work as agents improve
  9. 38:21A pull request template for agents
  10. 40:42Reversible decisions and merge policies
  11. 42:27Cleanup and progressive disclosure
  12. 45:18Verification and test cleanup
  13. 47:05System diagrams and existing primitives
  14. 50:20A deterministic Ship PR loop
  15. 53:06Risk based merges and production checks
  16. 54:29Friction logs that improve the workflow
  17. 57:50Feature flags and tested recovery
  18. 59:55Closing the feedback loop
Transcript download
Full transcript

Loading transcript…