hahhforest/pi-textbook resource
《动手学 Pi》:沿 15 个真实 checkpoint 从零构建 Pi-style Agent observed · 2026-08-28
Health v2 · maintenance only
55/100
- Activity 94
- Release rhythm 35
- Longevity 3
Flags: no_releases young
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 43
- days_rel: n/a
- days_push: 41
- n_releases_24m: 0
Adoption not part of the score
1267 stars · 76 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
An open-source Chinese-language textbook ('动手学 Pi' / Build Your Own Pi) that teaches agent engineering by building a Pi-style coding agent in TypeScript across 15 runnable checkpoints. Each chapter pairs textbook prose with real commits, focused tests, and fault-injection experiments along a single evolving codebase.
Use cases
- learn how to build an LLM coding agent from scratch
- understand agent loop and tool calling internals
- study streaming model provider integration in TypeScript
- learn session persistence and context compaction for agents
- hands-on tutorial for building AI agents with real commits and tests
- learn TypeScript event streaming and protocol design
- understand how coding agents execute file and bash tools
When to choose
- you want a structured, test-verified path to understanding agent internals rather than a finished product
- you prefer learning by rebuilding a system incrementally with real git history
- you read Chinese (or English) and want a D2L-style short feedback loop for agent engineering
When to avoid
- you need a production-ready agent framework to use directly rather than a teaching codebase
- you want a quick reference or source-code tour instead of a multi-week course
- you need agent features beyond the teaching scope, such as built-in permission confirmation or cwd jail
Facets
learning-resource · maturity active
agent-framework llm-inference developer-tools testing large-language-models tutorials education developer-tools cli build-your-own agent-engineering chinese-language textbook checkpoints hands-on-learning coding-agent ai-agents typescript nodejs
3 sources
- readme: https://github.com/hahhforest/pi-textbook · fetched 2026-08-28 · 235a7ce73c1d
- homepage: https://build-your-own-pi-cn.enochzhang.chatgpt.site · fetched 2026-08-29 · 4c2cbf9ab0b8
- site_page: https://build-your-own-pi-cn.enochzhang.chatgpt.site/about · fetched 2026-08-29 · 652d91b5cfe6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| hahhforest/pi-textbook | main | 55 |
For agents
markdown · JSON · MCP: product_card(name="hahhforest/pi-textbook")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem