by hahhforest
《动手学 Pi》:沿 15 个真实 checkpoint 从零构建 Pi-style Agent
# Add to your Claude Code skills
git clone https://github.com/hahhforest/pi-textbookpi-textbook is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by hahhforest. 《动手学 Pi》:沿 15 个真实 checkpoint 从零构建 Pi-style Agent. It has 74 GitHub stars.
pi-textbook's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/hahhforest/pi-textbook" and add it to your Claude Code skills directory (see the Installation section above).
pi-textbook is primarily written in TypeScript. It is open-source under hahhforest on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh pi-textbook against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
沿 15 个可运行 checkpoint,从一条离线 Agent 轨迹出发,逐步实现:
TypeScript 协议 → 流式模型 → Provider → 工具 → Agent Loop → 会话树 → Context Compaction → 扩展 → Eval
每章由四部分闭环:教材正文 + 真实 commit + 聚焦测试 + 故障实验。课程代码不是伪代码演示,而是一条可以 checkout、运行和验证的 Git 历史。
直接打开在线教材,或在本地运行:
git clone https://github.com/hahhforest/pi-textbook.git
cd pi-textbook
npm install
npm run dev
| 仓库 | 作用 |
|---|---|
pi-textbook |
你正在看的 HTML 教材与网站 |
pi 的课程分支 |
15 个 checkpoint 的可运行代码;课程源码位于仓库内的 packages/pi-course/ |
课程分支从固定上游 commit 8479bd84 出发,以 course(00) 到 course(14) 组织完整历史;pi-course-v1 与 course-v1/00 到 course-v1/14 tags 固定第一版课程。
git clone --branch course/build-your-own-pi https://github.com/hahhforest/pi.git
cd pi
npm install
npm run checkpoint -w @pi/course -- 05
npm run practice -w @pi/course -- 05 ../pi-practice-05
checkpoint 定位本章的 parent、target 与聚焦测试;practice 创建一个不含答案和 Git 历史的练习目录。把本章网页、命令输出与练习目录中的 LEARNING.md 一起交给陪学 Agent 即可。
这是社区原创的非官方课程,不隶属于或代表 Pi / Earendil Works。应用与原创代码采用 MIT License;教材正文与原创媒体采用 CC BY 4.0;Pi 上游代码沿用其原许可证和作者归属。详见 LICENSE 与 LICENSE-CONTENT。
构建、测试和跨仓库历史校验见 CONTRIBUTING.md。
感谢 LINUX DO 提供中文技术交流空间。