[AI Minor News Flash] Meet ‘Cook’: The Orchestration CLI to Command Claude Code!
📰 News Overview
- Control your AI agents: The newly launched CLI tool ‘Cook’ allows you to execute complex commands, including loops and conditional branches, on AI agents like Claude Code, Codex, and OpenCode.
- Flexible Loop Structures: By combining operators like ‘xN (execute N times)’, ‘review (quality check)’, and ‘ralph (task list progress)’, you can freely define how your agents behave.
- Parallel Execution and Comparison: It features the ability to run multiple approaches (e.g., JWT vs session authentication) in parallel and automatically select (pick) or merge the optimal results.
💡 Key Points
- Freedom of Configuration: Commands are evaluated from left to right, allowing you to intuitively build workflows like
(work×3) → review. - Custom Sandboxes: You can choose OS-level sandboxes or Docker containers for each agent, ensuring a secure execution environment.
- Integration as a Skill: You can incorporate it not just with
npm install, but as a “skill” of Claude Code itself.
🦈 Shark’s Perspective
What’s truly amazing about this tool is that it doesn’t just let AI write code; it empowers you to control the “process” itself! The ability to use the ‘vs’ operator to generate two different implementation proposals in parallel and then instruct it to “choose the most secure one” is groundbreaking. By allowing AI to handle the review-and-revise process through a loop (review-gate), development speed will literally skyrocket! The implementation is practical and leverages the existing extensibility of Claude Code exceptionally well!
🚀 What Lies Ahead?
AI agents are transitioning from a “one-time request” to a phase where they can “autonomously experiment” through tools like Cook. If humans handle the complex requirement definitions, we can envision a future where the entire implementation and revision loop is completed right within the CLI!
💬 A Shark’s Take
Programming is no longer just about “writing”; it’s about “stewing” with Cook! Now, we just have to wait for that delicious code to be ready! 🦈🔥
📚 Terminology
-
CLI: Short for Command Line Interface, it’s a system that allows users to operate computers by inputting commands via a keyboard.
-
Orchestration: The process of integrating and managing multiple systems or services to execute complex workflows cohesively.
-
Sandbox: A secure execution environment isolated from other parts of the system, minimizing the impact in case an AI makes an erroneous operation.