TLDR Design · MISCELLANEOUS

DESIGNING AGENTIC LOOPS

simonwillison.net8 min read

Summary from the TLDR Design newsletter

Coding agents like Claude Code can brute force solutions by running tools in loops, but require carefully designed "agentic loops" with appropriate tools and credentials to be effective. Running agents in YOLO mode (auto-approving commands) within sandboxed environments like GitHub Codespaces balances productivity with security risks, including data loss and exfiltration attacks. This approach works best for problems with clear success criteria involving trial and error, such as debugging, performance optimization, or dependency upgrades, especially when supported by solid automated test suites.