Codex and Claude Code's /goal Command in Practice

Dev.to AI
Generative AI AI Tools

/goal is a new command that OpenAI Codex CLI (April 30) and Anthropic Claude Code (May 12) shipped within 11 days of each other. The idea is simple. You give it a completion condition, and it keeps running on its own until that condition is met. Before /goal, AI coding agents stopped after every turn and waited for you to hit Enter. Even if your prompt said "keep going until X," it would still pause. /goal is the fix. How the two implementations differ Codex s the task locally. Close your laptop, reboot - the task persists and you resume with /goal resume.