XNews

‘Hands-on Pi’: A 15-Level Chinese Guide to Building a Coding Agent from Scratch

‘Hands-on Pi’: A 15-Level Chinese Guide to Building a Coding Agent from Scratch

The Chinese textbook ‘Hands-on Pi’ takes readers through 15 progressive levels, starting from a recorded offline agent session, to implement a coding agent step by step. Each chapter corresponds to a real git commit, along with tests and a fault experiment. The curriculum covers message and model protocols, tool integration, the agent loop, session tree storage, context compression, and a complete runtime with evaluations. A practice directory with no answers is generated, and learners can use AI to guide them. An online version and full GitHub code are available.

Source posts