Loop Engineering

AI-generated summary of reporting by Oreilly AI ML Blog. Read the original for the full story.

Why it matters

Coding agent work is shifting from writing prompts per task to designing automated loops that prompt agents themselves, changing what an engineer's job becomes.

Read this as

Addy Osmani argues that instead of typing instructions to AI coding assistants one message at a time, developers can now build automated systems that do it for them. These 'loops' are scheduled routines that find work, assign it to AI helpers that code in isolated copies of the project, check each other's results, and update a ticket board. Both OpenAI's Codex app and Anthropic's Claude Code now include the required building blocks. It affects software developers, though Osmani warns humans must still review the output.

Osmani's thesis, quoting Peter Steinberger and Anthropic's Boris Cherny, is that prompt-by-prompt coding with AI agents is being replaced by designed loops that run unattended. The supporting capabilities ship natively in the Codex app and Claude Code, so adoption cost is mainly engineering time plus token spend, which varies widely between 'token rich or poor' teams. Risks scale with autonomy: verification stays on the human, comprehension of unreviewed code rots faster, and teams that stop scrutinizing output get worse. Early adopters who design loops with judgment gain leverage; passive ones compound errors.

Loop engineering composes six primitives, mapped 1:1 across Codex and Claude Code: scheduled automations (Codex Automations tab with Triage inbox; Claude /loop, cron, hooks, GitHub Actions), git worktrees for parallel isolation, SKILL.md-format skills, MCP connectors/plugins, and subagents defined in .codex/agents/ TOML or .claude/agents/. The maker/checker split is key: /goal runs until a stated condition is true, verified each turn by a separate small model. State lives outside the context window in Markdown or Linear. Limitations: 'done' is a claim not a proof, and subagents multiply token cost.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Codex Claude Code MCP GitHub Actions Linear SKILL.md

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading