-
The /goal Feature
A Practical Guide for Claude Code, Codex, and Hermes Agent The /goal command (a.k.a. goal mode or persistent goals) is one of the most important 2026 advancements in autonomous AI agents. It turns one-shot prompts into fire-and-forget, judge-verified workflows. Instead of you babysitting the loop, you declare a durable objective with a verifiable end state. The agent then plans → acts → observes → iterates across many turns (sometimes hours) until an independent judge model confirms the goal is met — or you /pause or /clear it. It first shipped in OpenAI Codex, then landed in Hermes Agent, and arrived in Claude Code. Mental model: how /goal actually works…