Designing agentic loops
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Getting useful results from coding agents like Claude Code now depends on a named skill, designing agentic loops, covering sandboxing, tool selection, and tightly scoped credentials.
Simon Willison writes about coding agents such as Claude Code and Codex CLI, programs that run commands in a loop to finish coding tasks. He argues the key skill is designing that loop: pick safe tools, give limited credentials, and let the agent try many solutions by trial and error. Because these agents can run any command on your computer, he suggests running them in containers or on services like GitHub Codespaces. The advice matters most to software developers.
Willison argues that coding agents, Claude Code launched February 2025, Codex CLI, deliver most value when given unattended 'YOLO mode', which carries real risks: file deletion, data exfiltration via prompt injection, and hijacked machines. His mitigations are containers or third-party machines like GitHub Codespaces, plus tightly scoped credentials such as a Fly.io organisation with a $5 budget cap. Firms with strong automated test suites gain the most from these tools.
Willison defines an agent as a tool-running loop and frames 'designing agentic loops' as reducing problems to clear success criteria plus shell commands, often preferable to MCP tools, documented in an AGENTS.md file. Unattended mode risks deletion, exfiltration, and proxy attacks; mitigations include Docker or Apple containers with firewall allowlists of trusted hosts, per Anthropic's --dangerously-skip-permissions devcontainer guidance. Best use cases: debugging, benchmarking, dependency upgrades, and container optimisation against passing tests.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Claude Code Codex CLI GitHub Codespaces Fly.io AGENTS.md shot-scraper
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Speed improvements in speculative decoding mean agents can execute tool calls faster, reducing latency for real-time applications.
OpenGame: turn your local coding agent into a full-stack game studio
Developers with a local coding agent can now scaffold full playable 3D games, art, music, testing, publishing, instead of only refactoring code, opening a path from hobby coding to shippable mini-games.
Let Claude Code or any agent tap, type, and read your real phone
Agents can now close the mobile testing gap by driving and reading a real phone themselves, with nothing installed on the device.
n8n's open source personal agent runs on your machine and asks before it acts
Developers uneasy about cloud-based AI agents get a local, approval-gated alternative they can download today, though its research-preview status limits real reliance.