The latest update to AI-assisted workflows arrived in an unusually small package: a single flag. In a brief post on X, Boris Cherny amplified a note that “while loops for agents have dropped”, pointing to a new pattern where an agent can be instructed to repeat a task until a condition is met. The example is terse and developer-native: “/loop 5m make sure this PR passes CI”—a prompt that frames the agent’s job as ongoing, not one-and-done. The post is available at x.com/bcherny/status/2030109163892920816.
From single-shot prompts to durable tasks
Most agent interactions still resemble a command: do a thing, report back. A loop changes that shape into something closer to a lightweight control structure, where the agent is allowed—explicitly—to keep trying. In the shared snippet, /loop 5m reads like a timing directive, with the agent re-checking progress on a cadence rather than requiring repeated manual nudges.
Even without additional implementation details in the post, the intent is clear: the agent is being treated less like a chat session and more like a persistent worker that can babysit a workflow step (in this case, CI) and keep iterating until the desired state is reached.
Why “make sure this PR passes CI” is a telling demo
CI is a natural showcase for loops because it’s:
- stateful (tests can fail, then pass after changes),
- event-driven (new commits trigger new runs),
- and often time-bound (a fix can require multiple rounds).
A looping agent instruction fits that reality: keep checking, keep adjusting, stop when green.
What’s actually announced here (and what isn’t)
The post doesn’t specify which agent framework or product added the looping behavior, nor how cancellation, failure handling, or guardrails work. What it does signal is that looping is becoming a first-class primitive in agent UX, at least enough to be expressed in a compact slash command.
Original source: https://x.com/bcherny/status/2030109163892920816