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.

Read this as

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