BlogGuides

What Is the Gauntlet Loop? The Prompt Pattern Behind Claude of Duty

Builder sub-agents, a separate harsh critic, a real quality bar and an earned exit: the anatomy of the prompt pattern that produced a 55,000-line browser FPS.

What Is the Gauntlet Loop? The Prompt Pattern Behind Claude of Duty

What Is the Gauntlet Loop? The Prompt Pattern Behind Claude of Duty

In late July 2026, Matt Shumer pasted three paragraphs into Claude Code and walked away. When he came back, he had a first-person shooter running in the browser: roughly 55,000 lines of JavaScript across 11 subsystems, with every texture, mesh, animation and sound generated procedurally at load time. No art assets at all. He called the game Claude of Duty, and he called the technique that produced it the gauntlet loop.

The name stuck, and the technique is now one of the most copied prompt patterns in agentic AI. Here is what it actually is.

The three moving parts

A gauntlet loop prompt does three things that a normal prompt does not:

  • It splits the work and fans out builders. Each sub-agent takes one narrow piece: one room, one component, one subsystem. Each piece must produce a real, checkable artifact, not a plan for one.
  • It pairs every builder with a separate harsh critic. The critic is a different agent with fresh context. It never sees how hard the builder tried. Its only job is judgment.
  • It sets a real quality bar and loops until the work beats it. Not "make it great". A named reference that exists in the world: the actual Call of Duty, a specific live landing page, a specific published essay. The critic puts the work and the bar side by side, labels stripped, and picks the better one. The loop exits when the work wins, never after a fixed number of rounds.
  • You can read the original prompt that produced Claude of Duty in the catalog - it is barely 150 words.

    Why it works

    Most agent output stops at "good enough" because the model grades its own homework. Ask a model to rate its work out of 10 and the score drifts up every round. The gauntlet loop removes self-judgment twice: the critic is a different agent, and the verdict is a binary pick against something that already exists and is undeniably good.

    That second part is the insight people miss. A rubric asks the agent to satisfy words. A bar makes it lose, visibly, to a real thing, until it does not.

    Try it

    Start from the reusable gauntlet loop template, swap in your goal and a named bar, and paste it into a fresh agent session. For the full series, see how to write your own gauntlet prompt and the annotated original. All gauntlet prompts in the catalog are under the gauntlet-loop tag.

    Tags
    gauntlet-loop·agent-loop·prompt-engineering·claude-code·builder-critic·agents