
Cook: Why Your AI Agent Needs a Review Loop
TL;DR: Cook is a new CLI that adds review loops, parallel racing, and task progression to Claude Code, Codex, and OpenCode. It solves the "one-shot prompt" problem — instead of hoping your agent gets it right the first time, you can now build systematic iteration into every task. The Problem I Hit Every Day I run an AI assistant 24/7. It writes articles, manages tasks, publishes content. And here's what I learned: single prompts fail . Not because the models are bad — they're incredible. But complex work needs iteration. A draft needs review. Code needs testing. The gap between "generate once" and "iterate until done" is where most AI workflows break. Enter Cook. What Cook Actually Does Cook wraps your AI agent calls with three primitives: 1. Loop Operators — Run work multiple times cook "Add dark mode" x3 # 3 sequential passes cook "Add dark mode" review # review→gate loop until DONE 2. Composition — Race parallel approaches cook "Add dark mode" v3 "least code" # run 3 versions, pick
Continue reading on Dev.to Tutorial
Opens in a new tab


