loop-engineering
CLAUDE.md35 starsChanged 6 months agoApache-2.0View on GitHub
A documentation-only knowledge base on Boris Cherny's "loop" methodology for running Claude Code (popularized by third parties as "loop engineering"). The docs are a curated, fact-checked research deliverable; the repo also ships a runnable companion Claude Code skill. - README.md — thesis, TL;DR, and index into docs/. - docs/01..11-*.md — one focused topic per file (who, the loop, three stages, anatomy, verification/memory, orchestration/tooling, receipts/timeline, how-to-apply, example loops, sources, caveats). - skill/agent-loop/ — the runnable companion Claude Code skill: single verification-gated…
In this repositoryOne other file it gives its agents.
- llms.txtllms.txt
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Every file stays under 200 lines (see ~/.claude-shared/CLAUDE.md).
- Distinctive: line 25
Do not upgrade a secondary claim to primary without a primary source.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
loop-engineering
A documentation-only knowledge base on Boris Cherny's "loop" methodology for running Claude Code (popularized by third parties as "loop engineering"). The docs are a curated, fact-checked research deliverable; the repo also ships a runnable companion Claude Code skill.
Structure
README.md— thesis, TL;DR, and index intodocs/.docs/01..11-*.md— one focused topic per file (who, the loop, three stages, anatomy, verification/memory, orchestration/tooling, receipts/timeline, how-to-apply, example loops, sources, caveats).skill/agent-loop/— the runnable companion Claude Code skill: single verification-gated loops (scripts/verify-loop.sh) and loop-chain decomposition (scripts/run-chain.sh,templates/,references/chains.md).
Conventions
- Every file stays under 200 lines (see
~/.claude-shared/CLAUDE.md). - Claims are tagged by verification verdict: confirmed-primary (Cherny / Cat Wu / Anthropic directly), confirmed-secondary (third-party coverage only), disputed, or unverifiable. Preserve these tags when editing.
- Example loops in
docs/09must use only documented Claude Code features and stay labeled as illustrative. Do not invent CLI flags; confirm against current docs. - Do not upgrade a secondary claim to primary without a primary source.
Provenance
Compiled 2026-06-16 via a multi-agent research → adversarial-verify → synthesize workflow.
Primary inputs: Cherny's own X/Threads posts, his Sequoia AI Ascent / Acquired Unplugged /
Anthropic talks, The Pragmatic Engineer and developing.dev interviews, and Anthropic's
Claude Code docs. See docs/10-sources.md for the full annotated bibliography.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

