# "Ralph-loop 2.0? The real autonomous coder is coming..." <!-- ref: @content/youtube/ai-jason/ralph-loop-2-0-the-real-autonomous-coder-is-coming tags: [goal feature, Codex, Hermes agent, Ralph loop, long-running agents, definition of done, missions] version: 2 updated_at: 2026-11-22T13:42:44.446Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=rIs802-bXDY)** # Ralph-loop 2.0? The real autonomous coder is coming... *Synthesized from AI Jason, 2026-05-09.* AI Jason presents solo on the goal features in Codex and Hermes agent, how to use them, their limits, and his team's "mission" concept. (The transcript spells the loop as "rough loop"; this summary uses Ralph loop.) ## Core Thesis AI Jason argues that the goal feature upgrades the simple Ralph loop (a coding agent in a while loop with a max iteration count) by letting a language model judge whether the goal is satisfied. This counters agents declaring victory early and makes long, ambiguous tasks workable, but results depend on a clearly defined, verifiable "done". ## Key Insights - Problem: on large tasks, agents get lazy and stop after 10 to 15 minutes, forcing manual nudges. Ralph loop reruns an identical prompt until a limit. - Goal mechanism: after the agent finishes, a separate model call, given the definition of done, output format and goal, returns a status and reasoning. If unmet, the agent receives a "continuing toward your standing goal" message. Codex's continuation prompt says not to accept proxy signals as completion and to mark complete only after an audit; in Codex the agent marks completion itself, while Hermes uses a separate judge call. The loop carries goal context and state rather than a fixed prompt file. - Good fits: migrations, large refactors, and ambiguous goals such as cutting a Docker image size by 60%, similar to Karpathy-style auto research. - Codex usage: `codex features list`, then `codex features enable goals`, then `/goal <text>`. Rerun `/goal` for status (time, tokens), use pause or clear, and `/side` forks the conversation. He ran a migration for 9 hours overnight. - Good prompts define what to achieve, what not to change, how to validate (for example Playwright interactive and reference screens) and when to stop; for eval-driven optimization, loop until the eval suite hits a target score. - Tips from Vincent, an Open Crawl maintainer who ran goals for 3 days across 13 rounds: begin with an alignment interview where the agent asks questions, and quantify done (for example, stop after finding 20 discrete new issues, each with a proposed fix pushed to a branch and logged in a .run folder). - A tool called Go Body (`npx` command; transcript spelling) interviews you, then produces a goal.md (request, constraints, stop rules) and state.yaml of tasks; he triggers it with `/goal` pointing to goal.md and built a game from one prompt. - Limit: goals suit hours-long coding, not weeks-long targets like SEO or ad spend. His team's "mission" saves a mission.md with metrics, runs a hypothesis step, outputs artifacts, then schedules the next run in hours to weeks, with human-in-the-loop messaging. A Twitter-growth example (goal of 10,000 followers) shifted to a founder voice after observing performance. ## Actionable Takeaways 1. Enable Codex goals and write a goal with objective, constraints, verification method and stop condition. 2. Start with an interview-style alignment conversation, then quantify done. 3. Keep state in files (goal.md, state.yaml) and verify visually with Playwright where relevant. 4. For long-horizon objectives, use scheduled hypothesis-and-measure cycles instead of a continuous loop. ## Notable Quotes > "the model can sometimes get lazy and declare the victory too early." — AI Jason > "you have to define very explicitly what does done and finished means" — AI Jason --- *Related: `@content/youtube/david-ondrej/build-anything-with-tmux-here-s-how` · `@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/we-tested-claude-opus-5-its-frustrating-with-flashes-of-brilliance` · `@content/youtube/cole-medin/omnigent-the-new-meta-harness-for-every-coding-agent-claude-code-codex-pi-more`* --- *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).*