Every major AI coding harness now ships native loop primitives. The shift happened in weeks, not months.
In his July 14 Pragmatic Engineer newsletter, Gergely Orosz traced “loop engineering” from a fringe bash hack to the default pattern for production agent systems. The timeline is compressed enough to qualify as an architectural inflection point: a year from concept to universal platform support.
From Bash Hack to Platform Feature
The origin story starts with software engineer Geoffrey Huntley, who published “Ralph Wiggum as a software engineer” in July 2025. The core idea was a bash loop: while :; do cat PROMPT.md | claude-code ; done. Run the agent, check the result, run it again. Huntley called it “deterministically bad in a nondeterministic world,” which turned out to be the point. The technique doesn’t need to work perfectly on any single run. It needs to converge over many runs.
The approach went viral in late 2025 when better models made ambitious multi-step projects feasible. Matt Pocock published a tutorial called “Ship working code while you sleep” that demonstrated agents clearing backlogs overnight using the Ralph technique, according to Orosz’s reporting.
Then the platforms caught up. In April 2026, Codex shipped /goal, which Orosz describes as the Ralph loop “compressed into a single command.” The Codex team built infrastructure around the pattern: state tracking, subagent coordination, budget controls, and test execution. Three days later, Hermes Agent shipped its own /goal implementation, explicitly crediting Codex’s design. Claude Code followed on May 12 with /loop and /goal commands.
The Five Pieces of a Production Loop
Addy Osmani, formerly of Google, mapped the pattern to five components plus persistent state: automations (scheduled discovery and triage), worktrees (parallel isolation), skills (codified project knowledge), plugins/connectors (tool integration), and subagents (ideation plus verification). Both Codex and Claude Code now implement all five, according to Osmani’s analysis, though the naming differs across platforms.
The critical sixth element is memory: a markdown file, a Linear board, anything that persists outside the conversation window. As Osmani put it, “the model forgets everything between runs so the memory has to be on disk and not in the context. The agent forgets, the repo doesn’t.”
OpenClaw’s architecture maps directly onto this pattern. Its cron scheduling, subagent spawning, skill files, and persistent workspace memory are loop engineering primitives that predate the term. Peter Steinberger, OpenClaw’s creator, was one of the first to explicitly advocate the approach, posting in May 2026: “You shouldn’t be prompting coding agents anymore. You should be designing loops that prompt your agents.”
The Skeptics Have a Point
Orosz’s reporting surfaces a meaningful counterargument. Several developers told him they rejected looping after trying it. Agents drift from their objectives over long runs. “Human in the loop” still produces better results for many tasks. And at API pricing, loop engineering gets expensive fast, a concern Osmani also flags.
Distinguished engineer Max Kanat-Alexander offered a more structural critique, according to Orosz: the loop might have been “a temporary hack while the harnesses added the ability to do the same from a single prompt.” The /goal command essentially absorbed the pattern, raising the question of whether “loop engineering” as a distinct discipline has a shelf life.
Orosz’s own conclusion leans this way. For most developers, becoming fluent in context engineering (structuring what the agent sees) may matter more than mastering loop design. The exception is engineers building AI infrastructure, where loop architecture is the product.
The Production Signal
The pattern’s real validation comes from production deployments, not developer discourse. Organizations running agents in production, from Goldman Sachs to Noda’s 350-million-square-foot building operations platform, are building loop architectures whether they call them that or not. Scheduled triggers, persistent state, subagent coordination, and convergence criteria are the building blocks of every autonomous agent system shipping today.
The shift Orosz documents is precise: developers spent 2025 asking “how do I get an agent to do X once?” By mid-2026, the question became “how do I get an agent to do X continuously, autonomously, with minimal human oversight?” Loop engineering is the answer that stuck. Whether the term survives is secondary. The pattern is now load-bearing infrastructure.