Who it is forA developer who wants to read or modify the book's reader offline, or to work on the book in a local setup.
The problemThe hosted reader is the easiest way to read, but a developer may want a local copy of the reader that renders the same Chinese source.
The outcomeA local dev server showing the book from the agent/ source files, started with two commands.
What you need first
- A web browser to read the online edition, or git and Node.js (npm) for the local reader
- Access to the pi repository at commit cd20a8d2e if you want to check code references
- An AI coding tool such as Claude or Cursor if you want an agent to check the book against source
Steps
- Clone the Pi Book repo and change into its folder. (inferred, check the README)
- Run
cd web && npm install && npm run dev. - Open the local address that the dev server prints in the terminal.
- Switch between the Chinese original and the translations using the reader language control.
Prompt for your agent
In the antinomie-lab/pi-book repo, go to the web/ folder and run the install and dev commands from its README. Report the local URL the dev server prints and confirm that the Chinese chapter text renders from agent/ without errors.
Caveat. The reader only renders content from agent/, so editing the web/ folder does not change the book text itself.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for antinomie-lab/pi-book and "Run the book's web reader on your own machine"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer