Operator's Manual · July 2026

The Loop
Operator's Manual

The idiot-proof, step-by-step version. No theory, no jargon: exactly what to say, in what order, with diagrams. Built on the documented methods of Andrej Karpathy, Boris Cherny (creator of Claude Code), Anthropic's engineering team, and Jarred Sumner.

Audio EditionThe 80/20 version · plain English · 4 minutes
0:004:12

1. The Machine You're Operating

One picture. Every autonomous loop, everywhere, is this exact machine. If you understand this diagram, you understand everything else in this manual.

TRIGGER a schedule or event WORKER does ONE task CHECKER tests / build / screenshot JUDGE independent verifier, defaults to FAIL PASS = done FAIL = try again (until the cap) THE CAP (always set) max attempts + max time + max spend MEMORY: progress notes in files, read at the start of every pass, updated at the end
The loop. The judge is a separate brain from the worker: the worker never grades its own homework.
"Don't tell it what to do. Give it success criteria and watch it go." Andrej Karpathy, January 2026, after going from 80% manual coding to 80% agent coding in a single month.

Why this machine wins: Boris Cherny, who created Claude Code, ships hundreds of pull requests a month and says plainly, "I don't prompt Claude anymore. I have loops prompting Claude. My job is to write loops." Anthropic's own team ships 90% of Claude Code's production code this way. Jarred Sumner used 64 of these machines at once to port 535,496 lines of code in 11 days. Same machine, different sizes.

2. Hand Off Any Task, Step by Step

Four steps, every time. You can do this in two sentences of talking. The words in the orange boxes are literally what you say.

"Redesign the homepage hero. Don't touch checkout or reports. Done when it matches this screenshot on desktop + mobile, live for my eyes." screenshot.png 1 · THE GOAL an outcome, not activity 2 · OFF-LIMITS the fence around the work 3 · DONE WHEN the machine-checkable finish line 4 · EVIDENCE screenshot, error text, or reference
The anatomy of a perfect hand-off. Two sentences, four jobs done.
1
Say the outcome, not the activity

What does the world look like when this is done? Not "work on the site." What specifically exists at the end?

Say"Redesign the homepage hero section"
2
Say what's off-limits

One phrase that fences the work. This is what stops the agent from "improving" things you didn't ask about.

Say"Don't touch the checkout or the report pages"
3
Say "done when"

The single highest-impact habit in this manual. Give the finish line: a test that must pass, a screenshot that must match, a number that must be hit. Without it, "looks done" is the only stop signal, and that's how you get confident garbage.

Say"Done when it matches this screenshot on desktop and mobile, and it's live for my eyes"
4
Attach the evidence you already have

A screenshot, the error text, a link, or the name of something to copy. Pointing at a reference beats three paragraphs of describing. "Do it like the pricing page" is a complete instruction.

Say"screenshot attached, match this" or "do it like the pricing page"
The 2-strike rule (when it goes wrong)
If you've corrected the same mistake twice, stop correcting. The session is polluted. Say "fresh session" and restate the task including what you learned. And if a mistake should never happen again, say "make that a rule": it becomes permanent, and Cherny's data says this is the single habit that compounds ("write it to the rules file and Claude can run forever").

3. Pick the Mode: the 10-Second Decision

Follow the arrows. Three questions, and you always land on exactly one phrase to say.

Will you ever ask for this again? NO, one time YES, recurring Can you describe the change in one sentence? yes no, it's big Is it "until X is true" or "every day/week"? until X every N Big: is it a whole feature, or a pile of grind work? feature grind / backlog "do X" just say it "interview me" spec first, then build "ralph it" overnight backlog loop "keep going until X" runs till a judge confirms X "loop that every N" or "schedule it" monitors + daily jobs BONUS PHRASES "plan first" = show me the plan before touching anything "adversarial review" = a second brain tries to break the work "make that a rule" = this mistake becomes impossible forever
The mode decision tree. Three questions, one phrase, done.

4. Build a Loop, Step by Step

When something earns loop status (you've asked for it twice, or it has a date, a checklist, or a "check again later"), it gets built like this. Six steps, in this exact order. Skipping a step is how loops become runaways.

1 · FINISH LINE Write what one successful pass produces, before any work. 2 · TRIGGER Nightly, every 30 min, or on an event. One trigger per loop. 3 · ONE UNIT One item per pass, then stop. Small passes are reviewable. 4 · CHECKER Tests / build / screenshot check the worker cannot modify. 5 · JUDGE Independent fresh brain confirms done. Defaults to FAIL. 6 · CAPS = SHIPPED Max attempts, minutes, dollars. Now it runs unattended.
The assembly line. Six stations, in order, every time. The framework refuses to run a loop missing stations 4, 5, or 6.
1
Write the finish line FIRST

Before any work: what does one successful pass produce, and how is it proven? Anthropic's team writes done-criteria to a file before execution so the goal can't drift mid-run.

Example"One pass = every new sales call graded against the rubric, report saved, evidence printed"
2
Pick the trigger

A time ("nightly at 2 AM"), an interval ("every 30 minutes"), or an event ("when a deploy finishes"). One trigger per loop.

3
Give the worker ONE unit of work per pass

Not "fix everything." One item, then stop. Small units mean every pass is reviewable and a bad pass costs you nothing.

4
Install a checker the worker can't touch

A test suite, a build command, a browser screenshot check. This is the load-bearing part. Sumner's 11-day port worked because 1,380,000 pre-existing test assertions were the ground truth and the agents were forbidden from modifying them. The OpenAI Codex team does the same: commit the failing tests first, then the agent implements until green WITHOUT touching the tests.

5
Add the independent judge

A separate fresh brain reads the finish line and the evidence, and defaults to FAIL. Never let the worker declare its own victory: an agent grading itself will delete the failing test and call it done. Claude Code's own goal mode uses a separate judge model for exactly this reason.

6
Cap it, then walk away

Max attempts, max minutes, max dollars, whichever hits first. The cap is the primary safety mechanism, not the completion signal. With all six pieces in place, the loop runs unattended and you only ever see results.

In our system, this is one command
The whole six-step contract is scaffolded by the loop framework (registry, runner, judge, and watchdog are already built). You say "loop that," the framework enforces steps 4, 5, and 6 mechanically, and a meta-loop watches every loop and flags any that miss a beat. You never have to trust discipline; the machinery refuses to run a loop without a checker and caps.

5. Run Your Day Like the Top Operators

The daily rhythm every documented top operator converged on. Your job stops being typing and becomes three short review windows.

MORNING · 15 min Read the overnight queue. Approve the green work, kill the bad, note corrections. ~9:00 AM DAYTIME · batches Decisions in 25-minute sweeps, from anywhere, half from your phone. Never hover over terminals. all day EVENING · 10 min Queue the overnight loops: "ralph the backlog", "loop the babysitter". end of day
Mitchell Hashimoto spends the last 30 minutes of every workday kicking off overnight agents. You review outcomes, not keystrokes.

Karpathy's autonomy slider: how long a leash per task

SHORT LEASH new / risky / money watch every diff MEDIUM familiar work, good checks review at checkpoints LONG LEASH proven loop + strong verifier review outcomes only
A loop EARNS a longer leash by passing its checker and judge repeatedly. Trust is granted by evidence, never by optimism.
"You can outsource your thinking, but you can't outsource your understanding." Andrej Karpathy, April 2026. You still own architecture, taste, and every merge. The agents own the typing.

6. Safety Rails

Five layers of defense stand between an autonomous loop and anything irreversible. Each ring has to be passed before the next one even gets asked.

RING 5 · WATCHDOG: a meta-loop audits every loop daily; silence counts as failure RING 4 · CAPS: max attempts, max minutes, max dollars, whichever hits first RING 3 · JUDGE: independent brain, defaults to FAIL RING 2 · CHECKER: tests / build / screenshots MONEY · DEPLOYS · SENDS · DELETES RING 1 · HUMAN APPROVAL ONLY
The defense rings. A loop can pass rings 2 through 5 on its own. Ring 1 opens for exactly one key: you.
Never loop these. Ever.
Money (charges, refunds, transfers) · Production deploys · Outbound sends (email, SMS, posts) · Deletes · Judgment calls (pricing, strategy, people).

Loops PREPARE these and put them in your approval queue. A human presses the button. This matches every top operator: nobody credible, not Karpathy, not the Claude Code team, not Sumner, ships unreviewed autonomous actions on anything irreversible.
RailWhat it does
The checkerRule-based pass/fail (tests, build, screenshot) runs on every pass, no exceptions.
The judgeA separate fresh brain confirms "done" against the written finish line. Defaults to FAIL.
The capsMax attempts, max minutes, max spend. Hit any cap, the loop stops and reports.
The watchdogA meta-loop checks every loop daily: missed schedule or failed judge = alert. Silence counts as failure.
The approval queueAnything irreversible waits for a human. Decisions batch to your phone.

7. Troubleshooting: When a Loop Misbehaves

Three symptoms cover 90% of loop failures. Start at the top and follow the arrows.

Loop misbehaving? Says done, isn't done it graded its own homework Same failure every pass the prompt is missing a guardrail Burns time or money no caps, or caps too loose Turn on the judge and make "done when" machine-checkable Add ONE numbered rule tune it like a guitar, never rewrite it Tighten the caps attempts, minutes, dollars Fixed it twice and it's still broken? Fresh session. Rewrite the brief with what you learned. Then "make that a rule."
The diagnostic flow. Symptom, cause, one fix. The table below is the full reference.
SymptomCauseFix
Claims done, isn't doneNo real finish line, or the worker graded itselfTighten "done when" to things a machine can check. Confirm the judge is on.
Keeps failing the same wayThe prompt is missing a guardrailAdd one numbered rule to the loop's prompt per failure. Tune it like a guitar; never rewrite it wholesale.
Rebuilds things that already existFresh context can't see prior workAdd to the prompt: "search the codebase before assuming something is missing."
Runs forever, burns moneyNo capsCaps are non-negotiable: attempts, minutes, dollars. The framework refuses capless loops.
Does extra work you didn't ask forNo constraints lineAdd "only touching X" and "one unit per pass, stopping early is correct."
You corrected it twice, still wrongPolluted contextFresh session. Restate the brief with what you learned. Then "make that a rule."
The compounding law (the whole game in one line)
Every correction becomes a permanent rule, every repeated task becomes a loop, and every loop earns a longer leash by passing its judge. Do that for 90 days and the machine is unrecognizable. That's the entire method the top of the industry runs on.