piagent_
← ~/map

$ cat ~/map/pi-book.md

pi-book (pi 的设计艺术)

A free Chinese-language book dissecting the design decisions behind Pi's architecture.

tutorials

Facts

repository
zhanghandong.github.io/pi-book/ ↗
GitHub Stars
—
Forks
—
license
—
npm / mo
—
last push
—

## TL;DR

A free Chinese-language web book on pi's architecture — The Design Art of pi — that records the key design decisions of the pi agent runtime, with each chapter answering one design question rather than walking the source code.

## Key points

## FAQ

Q What do I need to know before reading?

Enough TypeScript to read type definitions, generics, and async/await, plus LLM API basics (prompt, tool calling, streaming). The preface explicitly says you do not need to have used pi or have Node.js framework experience.

Q Will it go stale as pi evolves?

Each chapter ends with version-evolution notes stating which version the analysis is based on and what changed since; the whole book's core analysis was cross-checked against v0.82.1, and the preface documents how design decisions stayed stable across that window.

## References

## Related entries

Last updated: Aug 31, 2026