#142142nd of 171 in Learning and cookbooks

pi-textbook

Chinese-language course for building a Pi-style coding agent in TypeScript

Stars
1.4k
License
MIT
Last commit
Jul 2026
Language
TypeScript
Stars, last 18 weeks+1,304
22 Jul 2026: 132 stars29 Jul 2026: 628 stars5 Aug 2026: 719 stars12 Aug 2026: 883 stars19 Aug 2026: 1,055 stars26 Aug 2026: 1,252 stars2 Sept 2026: 1,285 stars9 Sept 2026: 1,296 stars16 Sept 2026: 1,312 stars23 Sept 2026: 1,351 stars30 Sept 2026: 1,368 stars7 Oct 2026: 1,377 stars14 Oct 2026: 1,392 stars21 Oct 2026: 1,402 stars28 Oct 2026: 1,410 stars4 Nov 2026: 1,421 stars11 Nov 2026: 1,426 stars18 Nov 2026: 1,432 stars25 Nov 2026: 1,436 stars

132 on 22 Jul 20261,436 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

An HTML textbook and website that walks through 15 checkpoints (00–14) of building a coding agent in TypeScript: message protocol, streaming models, provider adapter, tools, agent loop, session tree, context compaction, extensions and eval. Each chapter pairs text with a real commit, focused tests and a fault experiment. The course code lives in a separate branch of the hahhforest/pi repo.

Who it is for: TypeScript developers who want to learn how coding agents work by building one

Strengths

  • Each chapter maps to a real commit with focused tests you can checkout and run
  • Covers tools, session tree, context compaction, extensions and an eval harness
  • Practice command generates an answer-free exercise directory per checkpoint
  • Online reading site plus local dev server via npm

Weaknesses

  • Main README and chapters are in Chinese; English README is a separate file
  • Course code is in another repo's branch, not in this repository
  • Unofficial community course, not affiliated with Pi or Earendil Works
  • Early chapters use a scripted model; only one chapter covers a real provider adapter

What it needs

  • no GPU
  • Needs Node.js, npm

Also in Learning and cookbooks

See all 171
Also in Learning and cookbooks
RankProjectScore
#140deep-learning-for-image-processingChinese video course on vision networks with PyTorch and TensorFlow code26.5k stars+55 (+0.2%) in 30 daysGPL-3.030 out of 100
#141unetKeras U-Net for binary image segmentation on the ISBI membrane dataset4.9k starsMIT29 out of 100
#143scimlbookMIT lecture notes on parallel computing and scientific machine learning2.1k starsno license27 out of 100
#144homemade-machine-learningFrom-scratch Python implementations of classic ML algorithms with Jupyter demos Live demo ↗ (opens in a new tab)24.9k starsMITno commits in a year26 out of 100
#145langchain-chinese-getting-started-guideChinese-language LangChain tutorial with runnable OpenAI examples9.1k starsno license26 out of 100