it’s not a tutorial, but a source‑anchored architecture book built directly on the pi repository’s packages/agent. Let’s break down why it matters.
The pi‑book project is a very unusual and ambitious effort: it’s not a tutorial, but a source‑anchored architecture book built directly on the pi repository’s packages/agent. Let’s break down why it matters.
🔎 Core Concept
Unlike typical guides that explain concepts abstractly, pi‑book is tied to a specific commit (cd20a8d2e) of the pi repo. Every code reference is written as file:line and includes the actual snippet inline. This means:
- No editor needed → you can verify claims directly while reading.
- Transparent architecture → it shows exactly what
@earendil-works/pi-agent-corepromises, rejects, and builds upon. - Immersive reading → code highlighting and inline citations make it feel like a “surgical notebook” for an Agent loop.
👥 Who It’s For
- Developers wanting Agent loop depth → not just API users, but those curious about the underlying cycle.
- TypeScript engineers → who advance by reading high‑quality source.
- LLM API practitioners → familiar with messages, tool calls, streaming, and curious how they’re abstracted.
- Source lovers → who enjoy immersive code+commentary experiences.
- AI‑assisted readers → using Claude or Cursor to query Markdown locally.
✨ What You Gain
- System‑level architecture cognition
- Three‑stage breakdown: whole → parts → cross‑cutting.
- Early chapters focus on system overview before diving into implementation.
- Zero‑friction source comparison
- Inline file:line citations with highlighted code.
- Web immersive reader + Markdown download for local AI querying.
- Multi‑perspective design
- Cards for digressions, side paths, and “why not” decisions.
- Tri‑lingual support (Chinese/English/Spanish) with one‑click switching.
🚀 How to Start
- Web reader: books.antinomie.org/pi → immersive, multilingual.
- Markdown version: download from
agent/directory → feed into Claude/Cursor for interactive study. - Local deployment:
cd web && npm install && npm run dev
🎯 Why It Matters
pi‑book isn’t another “prompt engineering” tutorial. It’s a source‑level dissection of an Agent loop — turning a black box into transparent gears. For developers tired of surface‑level guides, this is a surgical scalpel into the architecture itself.