# Hermes /goal is insane… just watch <!-- ref: @content/youtube/david-ondrej/hermes-goal-is-insane-just-watch tags: [autonomous agents, goal loops, judge models, Hermes Agent, Codex CLI, agent orchestration, self-hosted agents] version: 2 updated_at: 2026-11-24T07:16:25.761Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=9oOZ3PB6n4Y)** # Hermes /goal is insane… just watch *Synthesized from David Ondrej, 2026-05-16.* David Ondrej presents alone, walking through a Hermes Agent setup on a rented Linux server and demonstrating its /goal command. The transcript names no other speakers. ## Core Thesis David Ondrej argues that /goal, a command that keeps an agent working toward a stated end state, may be the most important agent feature of 2026, because it can run for hours on work with a clear finish line. He holds that Hermes' version is stronger than the one OpenAI shipped in Codex CLI, mainly because a separate judge model decides when the goal is met. ## Key Insights - **Lineage.** Earlier "Ralph Wiggum" loops from January 2026 just reran an agent against a file system, with no judge, no central control and no clear goal. OpenAI added /goal to Codex CLI on April 30, 2026, and Hermes Agent followed a couple of days later. - **Judge model.** After each turn, a separate model reads the goal text, the last 4 KB of the agent's response and its own system prompt, then judges whether the work is on track or finished. The loop stops when the goal is met or the turn budget runs out. - **Full harness.** A Hermes goal runs inside the whole agent, with checkpoint rollback, skills and MCP tools. It survives crashes and restarts, and sub-goals can be added mid-run. Status, pause and resume commands are built in. - **Setup in the demo.** A fresh Linux server, a one-line Hermes install, then a device-code sign-in that connects an existing ChatGPT subscription, so the agent runs on GPT-5.5 without a separate API key. An OpenRouter key is saved with a config-set command so it stays out of the model's context window. - **Demo one, a slide deck.** A Midjourney style image and a skill that calls an OpenRouter image model produced a five-slide, editable deck in about 17 minutes. An image download was blocked by Cloudflare; he had the agent write a skill from that failure so it would not repeat it. - **Demo two, CEO and CTO.** Hermes acted as CEO and spawned two Codex CLI sub-agents as CTO and CMO. They built a Next.js weekly-reporting app and a B2B launch document. The goal listed concrete deliverables, and both repos were committed. He suggests Opus 4.7 for front-end design and GPT-5.5 for refactors. - **Other cases cited.** A Codex goal sold a farm's surplus produce by messaging buyers. A goal tested every feature of an iOS app. A Claude Code goal cloned a camera vendor's webcam application. A user named Ken Lee ran one overnight that backfilled about 17,000 records over three hours. - **Without a measurable outcome.** He says a goal with no test of done is just a loop that keeps spending tokens. ## Actionable Takeaways 1. Write the goal as a measurable end state with a check, such as tests passing or a count of customers or records, since the judge can only track progress toward something it can see. 2. Set turn or budget limits, and use status, pause and resume to steer long runs. 3. Add sub-goals mid-run, such as a visual style requirement, rather than stopping and relaunching. 4. After a failed attempt, have the agent turn the lesson into a skill so it does not repeat the same failure. 5. Keep API keys out of prompts: store them with the agent's config command and let it read them from disk. ## Notable Quotes > "The clear outcome of the goal needs to be something like tests passing, or you have 10 new customers, something measurable." — David Ondrej > "Because with goal, you can give it the result, the desired outcome, and how to test it." — David Ondrej --- *Related: `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code` · `@content/youtube/david-ondrej/hermes-agent-is-crazy-180-000-github-stars` · `@content/youtube/david-ondrej/tailscale-clearly-explained-beginners-guide` · `@content/youtube/every-inc/ai-was-supposed-to-save-time-why-am-i-busier` · `@content/youtube/cole-medin/i-turned-claude-code-into-a-complete-video-generation-system-with-archon`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*