newsfilter
← Interviews
AI Engineer1h 3m

Closing the Agentic Loop — Kent C. Dodds

Kent C. Dodds

Conference Presentation, Tutorial, Keynote
  • Context and Scale

    • Speaker Kent C. Dodds manages a solo product, "Kodi," with a codebase of 1.5 million lines of code (3 million lines written, 1.5 million deleted over the project lifecycle).
    • The project was earnestly developed starting in June, utilizing an autonomous agent workflow.
    • Estimated monthly token costs for the last several months range between $20,000 and $25,000, often offset by credits received from tool providers (Cursor, Devon, GitHub) in exchange for feedback.
    • Dodds does not use local inference hardware (e.g., $100k rigs), preferring cloud-based subscription models (e.g., "Quads").
  • The "Software Factory" Philosophy

    • Definition: A system where agents handle implementation while the human retains ownership of product vision, architectural decisions, and long-term strategy.
    • Goal: Commoditize implementation tasks to maximize human focus on "outcomes" and "intent."
    • Trust Ladder: Evolution requires agents to earn trust through:
      • Building good Pull Requests (PRs) autonomously.
      • Verifying their own work.
      • Limiting the "blast radius" of production errors.
  • Core Pillars of Agent Reliability

    • Primitives Catalog: A deterministic YAML/JSON file mapping available code components (surfaces, auth, runtime, storage) to guide agents and prevent hallucination.
      • The map allows agents to quickly locate relevant documentation and code without scanning the entire 1.5M-line base.
      • Includes a "friction log" mechanism to ensure documentation stays current by flagging inconsistencies.
    • Architectural Decision Records (ADRs):
      • Standardized Markdown templates recording context, trade-offs, decisions, and consequences.
      • Dodds notes he is increasingly skipping manual review of ADRs; instead, agents are trained to generate them based on learned patterns.
      • ADRs are gated with status (Accepted/Superseded) and linked to affected primitives.
    • PR Template Structure:
      • Intent Declaration: Explicit statement of the goal before implementation.
      • Door Type Classification: Agents must classify changes as "Two-Way Doors" (easy to revert) or "One-Way Doors" (expensive to undo).
        • Policy: Agents merge Two-Way changes autonomously; One-Way changes require human review unless approved by a specific risk policy.
      • Cleanup Section: Agents must identify and delete unused code rather than adding "TODOs," preventing code bloat.
      • System Changes: Requires agents to draw sequence or system diagrams to verify adherence to existing primitives.
  • Operational Workflows

    • Deterministic "Skills" vs. Scripts:
      • Long, non-deterministic LLM skills are discouraged; logic is moved into deterministic scripts (e.g., a "Ship PR" utility).
      • Agents execute these scripts in a loop ("tick"), checking state (CI status, AI review results) at each step to ensure reliability and cost efficiency.
    • Verification and Testing:
      • Agents are encouraged to write tests that verify positive assertions (e.g., "This feature exists") rather than negative ones (e.g., "This feature does not exist").
      • A nightly agent cleans up "negative assertion" tests that persist after feature removal.
    • Friction Loops:
      • Agents are instructed to identify and report development friction (e.g., slow tests, hard-to-seed data, confusing error messages).
      • These reports trigger follow-up agents to fix the underlying workflow or infrastructure issue.
      • Example: An agent noticed a confusing "expires in object" display and filed an issue for a human-readable date, demonstrating emergent problem-solving.
  • Risk Management and Disaster Recovery

    • Feature Flags: Essential for converting "One-Way Doors" into reversible changes, enabling safe autonomous experimentation.
    • Backups:
      • Must be stored on separate volumes from production databases.
      • Recovery processes must be actively tested (citing a case where a "Pocket OS" agent accidentally deleted production data because backups were untested and co-located).
    • Error Monitoring: Integration with tools like Sentry to automatically route errors to agents for self-healing or human escalation based on whether the issue is a product decision or a bug fix.
  • Future Outlook and Human Value

    • Agents as "Students": Agents are currently trained on human data and human-agent interaction patterns; they will continue to learn from these interactions ("eating us" to get smarter).
    • Durable Skills: The speaker argues that human value lies in:
      • Deeply understanding specific problem domains.
      • Communicating intent clearly.
      • Maintaining accountability for product vision.
    • Anti-Fragility: Developers should aim to be "anti-fragile," getting stronger as chaos increases, by staying close to the "adjacent possible" (opportunities arising from technical shifts).
    • Commoditization: While agents will eventually become competent systems designers, they currently lack product ownership and long-term vision, which remains the human's primary role.
  • Tooling and Ecosystem

    • Kodi: A multi-agent workspace platform designed to avoid vendor lock-in, allowing users to switch between different agent providers (Grok, Claude, etc.) while maintaining a unified state and history.
    • CLI Tools: An "Autopilot Ladder" CLI is available to audit codebases on the path toward full autonomy.