Skip to Content
loop.fun
Environments

Loops across environments

How today's harnesses implement goal loops, scheduled loops and multi-agent setups. They converged on a common design and diverge in the details that matter.

By late 2026, every major agent environment has a built-in goal loop and some form of scheduling. The pages in this section explain how each one works conceptually. For flags and syntax, follow the links to each tool's docs.

Side by side

Goal loopWho judges "done"Budget / capOther loop primitives
Claude Code/goal <condition>; also headless via claude -pA separate evaluator model (Haiku by default) reads the transcript after each turnEnds when met, judged impossible, or on error/loop, routines, Stop hooks, ralph-loop plugin, background sessions and Agent View, agent teams
Codex/goal with pause / resume / clear, persisted per threadThe model itself, prompted each turn by a continuation templateOptional token budget; states for achieved, unmet and budget-limitedHooks, plugins, memories, parallel sub-agents
Hermes Agent/goal, "our take on the Ralph loop"A judge model (defaults to the main model; can be routed to a cheap one)goals.max_turns = 20, then auto-pause; a broken judge defaults to continueKanban (cards with goals), cron, gateway spending limits
Google Antigravityagy /goal runs "until the goal is verified complete"Built-in verification (thinly documented)Tool permissions still apply/schedule, /boost, async sub-agents, Teamwork, Managed Agents API
OpenClawNone as such; standing goals in HEARTBEAT.mdThe agent itself (HEARTBEAT_OK = nothing to do)Heartbeat interval (30 min default)Gateway routing all channels, memory files
SDKs & frameworksWhatever you buildWhatever you buildWhatever you buildAgent SDKs, managed agents, LangGraph checkpointing

What everyone converged on

Across all of them, a goal turns into the same five parts: a natural-language condition, a judge (ideally a different, cheaper model), a budget (turns or tokens), a lifecycle (active, paused, achieved, unmet, budget-limited), and durable state (files, git, thread store). See What is a goal?.

There is a shift in investment too: vendors are building infrastructure around the model, not just improving models. OpenAI's direction is hosted shells, skills, compaction and persistent state (Shell, skills and compaction, The next evolution of the Agents SDK). Anthropic separates session log, harness and sandbox (Managed Agents). Google provisions a whole remote Linux environment per agent (Managed Agents in the Gemini API).

Where they diverge

Snapshot, not spec

These tools ship weekly. Treat this section as a conceptual snapshot from November 2026, and check the linked docs for current behaviour. Spot something outdated? "Improve this page" is at the bottom.

loop.fun

Patterns, hints and tools for designing the loops that keep agents working, and for widening the set of loops you can think of.

© 2026 loop.fun · CC BY 4.0

On this page