Control theory

Loop Engineering from First Principles — Kyle Mistele, HumanLayer

Loop Engineering from First Principles — Kyle Mistele, HumanLayer

Kyle Mistele, in this presentation, argues that fixing the problem of unreviewable 40,000-line pull requests generated by coding agents doesn't lie in better prompts but in better, control theory-inspired loops. He details how to build agentic control loops with distinct sensors, controllers, and actuators, ensuring incremental, verifiable code changes. Using a practical example of RPC API migration, he demonstrates how to implement these loops with tools like ASGrep, integrate them into CI/CD, enable human feedback, and manage workflow to prevent overwhelming reviewers, ultimately leading to more robust and readable agent-generated code.