@mvanhorn - Steinberger and Cherny Define

Open original

@mvanhorn on X Peter Steinberger's June 7, 2026 post urging developers to stop prompting coding agents and write loops that prompt them set off a debate about what "loop" means. The piece traces the idea from ReAct and AutoGPT through the ralph loop to Boris Cherny's multi-agent orchestration, and argues the real cost now sits in managing the loop, not the model.

  • A loop is a program that prompts the coding agent, reads the output, decides whether the task is done, and re-prompts if not; the human writes the loop instead of typing prompts.
  • Cherny says 100% of his Claude Code contributions in a 30-day span were written by Claude Code, with 259 PRs landed, and he now runs loops that prompt Claude while he writes the loops.
  • The expensive part has shifted from tokens per task to managing loops, so production use needs iteration caps, no-progress detection, and dollar budgets to stop runaway spend.

Peter Steinberger's June 7, 2026 tweet, "you shouldn't be prompting coding agents anymore. You should be designing loops that prompt your agents," pulled 2.2 million views, but the replies showed almost nobody could say what a loop actually is. The author ran a research pass that turned up fifteen Reddit threads and twenty-one X posts and concluded the loudest idea in AI coding is one most of its promoters can't explain. The most accurate reply came from @trashpandaemoji, who pointed past the old single-agent "ralph" loops toward continuous orchestration loops that supervise other agents. The clearest definition comes from Boris Cherny, who created Claude Code as a side project in September 2024. At the WorkOS Acquired Unplugged event on June 2, 2026, he said he no longer prompts Claude at all; his loops prompt it and decide what to do, and his job is writing those loops. He backs this with a receipt: in the 30 days before December 27, 2025, every one of his Claude Code contributions was written by Claude Code, across 259 PRs. The article is careful to note he is not claiming engineers are obsolete. The job has moved up a level, from writing code to writing the thing that writes code. The author describes a five-stage lineage: the 2022 ReAct while-loop, AutoGPT's self-prompting in 2023, Geoffrey Huntley's bash-based ralph loop from July 2025 (which built a programming language for about $297), the /goal commands both Codex and Claude Code shipped in spring 2026, and finally multi-agent orchestration loops that run on schedules with durable, git-backed state. The skeptics have a fair point, and the article grants it. The scheduling layer really is cron, and Claude Code's /loop uses cron under the hood. What cron can't do is the middle: a model that inspects current state, decides the next action, checks the result, and chooses whether to continue. The engineering challenge is everything wrapped around that decision so it doesn't run off a cliff. The practical advice comes from Cherny's five tips for running Opus autonomously for hours or days: auto mode for permissions, dynamic workflows to orchestrate hundreds of agents, /goal or /loop to keep going, cloud execution so the laptop can close, and, most important, a way for the agent to verify its own work end to end. The author's bottom line is that a loop is only as trustworthy as its ability to check itself.

Ask about this article