The Loop Engineering Orange Book: a free PDF on designing agent loops
别再问我什么是 Loop Engineering — 橙皮书系列。A plain-language guide to loop engineering (中文 + English PDF). Free.
At a glance
- What is it?
- The loop-engineering-orange-book repository holds a free bilingual PDF guide by HuaShu that argues you should stop prompting agents by hand and build the outer system that prompts them for you. It is a reading artifact, not software, and its value depends on how much you trust a first-edition book written in one week.
- Who is it for?
- Adopt this if you already run Claude Code, Codex or Cursor turn by turn and want a structured vocabulary for the layer above the harness, or if you want a free, MIT-licensed PDF you can hand to a colleague. Do not adopt it as an implementation reference: it contains no code, no templates for the loop parts it names, and no worked configuration.
- Can I use it commercially?
- Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
- Is it still maintained?
- Yes. The repository last received commits 27 days ago.
- What is it written in?
- GitHub does not report a main language for this repository.
Answers come from the project's GitHub data, last synced on September 17, 2026, and from our analysis. They are not legal advice.
DEEP OPEN-SOURCE ANALYSIS
What problem the Loop Engineering Orange Book actually solves
Most developers who use coding agents still sit in the driver's seat. They type a prompt, read the diff, type another prompt, and repeat until the task is done or they give up. The book names the layer above that habit. Its one-line framing is that you should "stop being the person who prompts the agent" and instead "design the system that does it for you." That is a claim about where your attention belongs, not a tool you install.
The stated audience is narrow and specific: developers already using Claude Code, Codex or Cursor who still drive the agent prompt by prompt, AI power users who want to know why the phrase went viral, and readers of the earlier Harness Engineering Orange Book who want the next layer out. If you have never run a coding agent, the book assumes context you do not have yet. It is a field guide to a vocabulary shift, and vocabulary shifts are only useful to people already doing the work.
The repository itself is a distribution channel. It holds two PDFs, a banner, a cover, screenshots and two READMEs, one in English and one in Chinese. There is no source directory, no build script, no package manifest. Anyone arriving expecting a library will be disappointed within ten seconds of listing the top level.
The four-floor stack the book uses to place a loop
The organising idea is a stack. The book places prompt, context, harness and loop in that order, with loop engineering sitting "one floor above the harness." Harness engineering, in this framing, equips a single agent run: which tools the agent gets, and what counts as done. Loop engineering is the outer system that "runs on a timer, spawns its own helpers, verifies the work, remembers what it did, and decides what to do next."
That definition carries more weight than it first appears to. A timer implies the loop starts without you. Spawning helpers implies the loop can create work for more than one agent. Verification implies something other than the agent judging its own output, and the book devotes a section to why an AI cannot grade its own code. Memory implies state that survives between runs. The decision step implies the loop chooses its next action rather than following a fixed script.
If you strip any one of those five properties, you have something weaker than what the book describes. A cron job that runs one prompt on a schedule is not a loop in this sense, because it neither verifies nor decides. A chat session where you approve each step is not a loop either, because the timer is you. The stack is the most reusable part of the book, and it is worth reading §01 and §02 for that alone.
Reading the PDFs: download and first pass
There is nothing to install. The repository ships two PDFs at the top level, and the README gives direct download links for both. The Chinese edition is Loop-Engineering橙皮书-v260615.pdf and the English edition is Loop-Engineering-The-Complete-Guide-v260615.pdf. Both sit in the repository root, so a clone gets you the files without any conversion step.
The README's download table points at the raw GitHub URLs. If you prefer to pull the repository and read locally, this is the whole procedure:
git clone https://github.com/alchaincyf/loop-engineering-orange-book.git
cd loop-engineering-orange-book
ls *.pdfThe listing should show the two PDF filenames above. Open the English one first if you are reading this article, and start at the table of contents rather than page one. The book is nine sections across four parts, and the parts are unevenly useful: part 1 defines the term, part 2 describes the mechanism, part 3 covers where loops run and what they cost, and part 4 is about starting.
The README also notes the book is readable online on WorkBuddy's knowledge base, one page per chapter, and suggests dropping the link into your agent as context. That is a distribution convenience rather than a feature of the book, but it is the only interactive path the repository offers.
For a first real use, treat §03 to §05 as the working core. Those are the sections on the five moves of one loop, the six parts you build it from, and the self-grading problem. The remaining sections are context and motivation.
Why a book with no code is still a deliberate choice
The repository contains no examples you can run. No sample loop, no configuration file, no prompt template, no reference implementation. The README describes the six parts you build a loop from but does not reproduce them, so the reader gets the names of the parts and the argument for why they exist, not a scaffold to copy.
That is consistent with the book's own positioning. It calls itself a plain-language field guide, and field guides describe terrain rather than handing you equipment. The trade-off is real: a reader who finishes the book knows what a loop is and what it costs, and still has to design their own. If you learn by modifying working code, this format will frustrate you.
The sourcing is stated plainly. The README says all sources are public and first-hand, listing Addy Osmani's founding post, Anthropic's harness-design engineering blog, Stripe's Minions, and the official Claude Code and Codex documentation. It also dates the origin to a single week in June 2026, when Peter Steinberger, Boris Cherny and Addy Osmani all pointed at the same shift. The version number v260615 matches that week, which tells you the book was written while the term was still forming rather than after it settled.
The four costs the book names, and why they matter more than the definition
Part 3 lists four costs of running loops: verification debt, comprehension rot, token blowout and cognitive surrender. These are the sections worth arguing with, because they describe failure modes rather than benefits.
Verification debt is the accumulation of work that a loop produced but nobody properly checked. The book's own framing supports this: it asks why an AI cannot grade its own code, which means every loop output carries an unverified remainder unless you build a separate check. Comprehension rot is the decay of your own understanding of a codebase that changes while you sleep. Token blowout is the bill. Cognitive surrender is the habit of accepting loop output without engaging with it.
The honest reading is that three of these four are consequences of the loop working as intended. A loop that runs on a timer and decides its own next action will produce more output than you can review, and that is the design, not a bug. The book does not resolve this tension. It names the costs and moves on to how you start, which is the weakest transition in the structure. If you take one thing from part 3, take the verification question and decide, before you build anything, who or what checks the loop's output.
Alternatives: reading the primary sources instead
The obvious alternative is to skip the book and read what it cites. Addy Osmani's founding post is public and is the origin of the term as the README tells it. Anthropic's harness-design engineering blog covers the layer below. The official Claude Code and Codex documentation covers the tools themselves and stays current in a way a June 2026 PDF cannot.
The difference in approach is framing versus recency. The book's contribution is assembly: it takes a scattered week of posts and documentation and arranges them into a stack, a set of loop parts, and a cost list, in two languages, as a single file you can read offline. The primary sources are more current and more detailed on their own subjects, but no single one of them explains where the harness ends and the loop begins. If you want the newest information, read the sources. If you want the map, read the book first and then the sources.
A second alternative is the earlier Harness Engineering Orange Book from the same series. The README says this book stands on its own and that you do not need the previous one, but it also says this is the next floor up. Reading them in order costs you one more PDF and gives you the lower layer in the same voice.
Maintenance, licence and what a first edition implies
The repository is not archived, and the last push was on 2026-08-23. The only release artifact is the v260615 PDF, described in the README as the first edition, written the week loop engineering emerged in June 2026. There are no retrieved releases beyond that, and the README does not document an update process, a changelog beyond the version note, or a way to file corrections.
The practical consequence: the content is pinned to a moment. The README acknowledges this directly, saying AI tools evolve fast and that readers should refer to each product's official documentation for the latest. A book that describes Claude Code and Codex behaviour from June 2026 will drift out of date as those products change, and nothing in the repository suggests a revision is scheduled.
Licensing is stated as MIT, and the README says it is free to use, copy, modify and distribute, including commercially, with attribution appreciated but not required. The repository metadata reports the licence as NOASSERTION, which means an automated classifier did not match the LICENSE file to a standard identifier. The README and the LICENSE file both point at MIT, so the discrepancy is likely a detection artifact rather than a different licence, but if you plan to redistribute the PDF commercially, read the LICENSE file yourself rather than trusting either label. That is a description of the files, not legal advice.
Editorial conclusion
Adopt this if you already run Claude Code, Codex or Cursor turn by turn and want a structured vocabulary for the layer above the harness, or if you want a free, MIT-licensed PDF you can hand to a colleague. Do not adopt it as an implementation reference: it contains no code, no templates for the loop parts it names, and no worked configuration. Before you rely on it, open the English PDF at Loop-Engineering-The-Complete-Guide-v260615.pdf and read §03 to §05, the sections that describe the five moves of one loop and the six parts you build it from; if those sections stay at the level of naming rather than showing, treat the book as an orientation document and keep your own notes on what your loop actually does. Note also that the version string v260615 pins the content to the week in June 2026 when the term appeared, and the README itself says to check each product's official documentation for anything current.
Frequently asked questions
What is loop prompting?
The book frames it as the layer above prompting one run at a time: instead of typing prompts yourself, you build the outer system that runs on a timer, spawns helpers, verifies work, remembers what it did and decides what to do next.
What is an agentic coding loop?
The book describes one loop as having five moves, built from six parts, and sitting one floor above the harness that equips a single agent run. The README does not reproduce the parts themselves.
What is a loop in software?
The book only defines the term in the agent context: a timer-driven outer system that spawns its own helpers, verifies work, remembers what it did and decides what to do next. It does not cover the general programming meaning.
Community notes