HeadlinesBriefing favicon HeadlinesBriefing.com

Cook CLI: Workflow Loops for Claude Code, Codex, and OpenCode

Hacker News •
×

Cook is a new command-line tool that adds workflow loops to AI coding assistants like Claude Code, Codex, and OpenCode. The tool introduces loop operators such as xN for repetition, review for quality checks, and ralph for task list progression. Developers can chain these operators left to right to create complex multi-step workflows.

Three main loop operators drive the system: repeat runs work N times sequentially, review adds a quality gate that can iterate, and ralph wraps tasks with outer progression logic. The tool also supports composition operators like vN for parallel execution and vs for branching approaches. Each branch runs in isolated git worktrees, then results merge based on resolver rules like pick or merge.

Installation is straightforward via npm install -g @let-it-cook/cli, or by adding the /cook skill to Claude Code. The tool supports Docker sandboxing for security and works with various models and agents per step. A configuration file lets developers customize prompts, agents, and environment variables. This gives developers a structured way to automate repetitive coding tasks while maintaining quality through built-in review loops and parallel experimentation.