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