DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to have an agent verify the book's code citations with Pi Book

Use an AI agent to check each file:line quote in a chapter against the pi source at the stated commit.

Short answer: Clone the Pi Book repo with git and open the agent/ folder, which holds the Chinese original; then check out the pi repo at commit cd20a8d2e so the line numbers match the book; open the chapter you want to check and list every file:line reference with its quoted excerpt. All steps.

Who it is forA developer who wants to trust an architecture claim before relying on it, and who has the pi repo and an AI coding tool at hand.

The problemArchitecture writing is only useful if the code it cites says what the text claims. Checking each citation by hand takes a long time.

The outcomeA list of each file:line reference in one chapter, marked as matching or not matching the quoted excerpt in pi at commit cd20a8d2e.

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

  1. Clone the Pi Book repo with git and open the agent/ folder, which holds the Chinese original. (inferred, check the README)
  2. Check out the pi repo at commit cd20a8d2e so the line numbers match the book. (inferred, check the README)
  3. Open the chapter you want to check and list every file:line reference with its quoted excerpt.
  4. Ask the agent to open each referenced file and line range and compare it to the quote.
  5. Note any mismatch and re-read that passage in the book before relying on it.

Prompt for your agent

In the antinomie-lab/pi-book repo, open <chapter-file> under agent/. For every file:line reference and its quoted excerpt, open <pi-repo-path> at commit cd20a8d2e and check that the excerpt matches the cited lines. Output a table with each reference, MATCH or MISMATCH, and the actual text if it differs; verify that the count of references equals the count you found in the chapter.

Caveat. The book pins one commit of the pi repo, so citations will drift if you check against a newer version of pi.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for antinomie-lab/pi-book and "Have an agent verify the book's code citations"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer