{"adoption": {"forks": 76, "observed_at": "2026-08-28T04:04:11.224909+00:00", "stars": 1267}, "canonical_url": "https://ross.abutalabs.com/products/pi-textbook", "card": {"archived": false, "artifact_type": "learning-resource", "description": "《动手学 Pi》：沿 15 个真实 checkpoint 从零构建 Pi-style Agent", "domain": ["large-language-models", "tutorials", "education", "developer-tools"], "enriched": true, "function": ["agent-framework", "llm-inference", "developer-tools", "testing"], "health_score": 76, "homepage": "https://build-your-own-pi-cn.enochzhang.chatgpt.site", "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["hahhforest/pi-textbook"], "name": "hahhforest/pi-textbook", "platform": ["cli"], "pushed_at": "2026-07-23T03:35:41+00:00", "repo": "hahhforest/pi-textbook", "stars": 1267, "tags": ["build-your-own", "agent-engineering", "chinese-language", "textbook", "checkpoints", "hands-on-learning", "coding-agent", "ai-agents", "typescript", "nodejs"], "topics": ["agent-engineering", "ai-agent", "chinese", "llm", "textbook", "typescript"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pi-textbook", "repo": "hahhforest/pi-textbook", "role": "main", "score": 55}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T05:03:42.486733+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "235a7ce73c1dee84665ac6b8a245309530f42f337d9f1ff1b69d7fdf1b5236e1", "fetched_at": "2026-08-28T04:04:11.224909+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hahhforest/pi-textbook"}, {"content_hash": "4c2cbf9ab0b86904aa72cf811065decb001d0107108b22427ccb6bd876418b1b", "fetched_at": "2026-08-29T12:15:33.039407+00:00", "kind": "homepage", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site"}, {"content_hash": "652d91b5cfe6b551bf962dbcfcbc634ad4f84129cb8eadf9e219e8b38ca836ac", "fetched_at": "2026-08-29T12:15:33.042455+00:00", "kind": "site_page", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site/about"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T05:03:42.486733+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "235a7ce73c1dee84665ac6b8a245309530f42f337d9f1ff1b69d7fdf1b5236e1", "fetched_at": "2026-08-28T04:04:11.224909+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hahhforest/pi-textbook"}, {"content_hash": "4c2cbf9ab0b86904aa72cf811065decb001d0107108b22427ccb6bd876418b1b", "fetched_at": "2026-08-29T12:15:33.039407+00:00", "kind": "homepage", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site"}, {"content_hash": "652d91b5cfe6b551bf962dbcfcbc634ad4f84129cb8eadf9e219e8b38ca836ac", "fetched_at": "2026-08-29T12:15:33.042455+00:00", "kind": "site_page", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site/about"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T05:03:42.486733+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "235a7ce73c1dee84665ac6b8a245309530f42f337d9f1ff1b69d7fdf1b5236e1", "fetched_at": "2026-08-28T04:04:11.224909+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hahhforest/pi-textbook"}, {"content_hash": "4c2cbf9ab0b86904aa72cf811065decb001d0107108b22427ccb6bd876418b1b", "fetched_at": "2026-08-29T12:15:33.039407+00:00", "kind": "homepage", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site"}, {"content_hash": "652d91b5cfe6b551bf962dbcfcbc634ad4f84129cb8eadf9e219e8b38ca836ac", "fetched_at": "2026-08-29T12:15:33.042455+00:00", "kind": "site_page", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site/about"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T05:03:42.486733+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "235a7ce73c1dee84665ac6b8a245309530f42f337d9f1ff1b69d7fdf1b5236e1", "fetched_at": "2026-08-28T04:04:11.224909+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hahhforest/pi-textbook"}, {"content_hash": "4c2cbf9ab0b86904aa72cf811065decb001d0107108b22427ccb6bd876418b1b", "fetched_at": "2026-08-29T12:15:33.039407+00:00", "kind": "homepage", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site"}, {"content_hash": "652d91b5cfe6b551bf962dbcfcbc634ad4f84129cb8eadf9e219e8b38ca836ac", "fetched_at": "2026-08-29T12:15:33.042455+00:00", "kind": "site_page", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site/about"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T05:03:42.486733+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "235a7ce73c1dee84665ac6b8a245309530f42f337d9f1ff1b69d7fdf1b5236e1", "fetched_at": "2026-08-28T04:04:11.224909+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hahhforest/pi-textbook"}, {"content_hash": "4c2cbf9ab0b86904aa72cf811065decb001d0107108b22427ccb6bd876418b1b", "fetched_at": "2026-08-29T12:15:33.039407+00:00", "kind": "homepage", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site"}, {"content_hash": "652d91b5cfe6b551bf962dbcfcbc634ad4f84129cb8eadf9e219e8b38ca836ac", "fetched_at": "2026-08-29T12:15:33.042455+00:00", "kind": "site_page", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site/about"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T05:03:42.486733+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "235a7ce73c1dee84665ac6b8a245309530f42f337d9f1ff1b69d7fdf1b5236e1", "fetched_at": "2026-08-28T04:04:11.224909+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hahhforest/pi-textbook"}, {"content_hash": "4c2cbf9ab0b86904aa72cf811065decb001d0107108b22427ccb6bd876418b1b", "fetched_at": "2026-08-29T12:15:33.039407+00:00", "kind": "homepage", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site"}, {"content_hash": "652d91b5cfe6b551bf962dbcfcbc634ad4f84129cb8eadf9e219e8b38ca836ac", "fetched_at": "2026-08-29T12:15:33.042455+00:00", "kind": "site_page", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site/about"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.224909+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T05:03:42.486733+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "235a7ce73c1dee84665ac6b8a245309530f42f337d9f1ff1b69d7fdf1b5236e1", "fetched_at": "2026-08-28T04:04:11.224909+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hahhforest/pi-textbook"}, {"content_hash": "4c2cbf9ab0b86904aa72cf811065decb001d0107108b22427ccb6bd876418b1b", "fetched_at": "2026-08-29T12:15:33.039407+00:00", "kind": "homepage", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site"}, {"content_hash": "652d91b5cfe6b551bf962dbcfcbc634ad4f84129cb8eadf9e219e8b38ca836ac", "fetched_at": "2026-08-29T12:15:33.042455+00:00", "kind": "site_page", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site/about"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T05:03:42.486733+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "235a7ce73c1dee84665ac6b8a245309530f42f337d9f1ff1b69d7fdf1b5236e1", "fetched_at": "2026-08-28T04:04:11.224909+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hahhforest/pi-textbook"}, {"content_hash": "4c2cbf9ab0b86904aa72cf811065decb001d0107108b22427ccb6bd876418b1b", "fetched_at": "2026-08-29T12:15:33.039407+00:00", "kind": "homepage", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site"}, {"content_hash": "652d91b5cfe6b551bf962dbcfcbc634ad4f84129cb8eadf9e219e8b38ca836ac", "fetched_at": "2026-08-29T12:15:33.042455+00:00", "kind": "site_page", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site/about"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T05:03:42.486733+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "235a7ce73c1dee84665ac6b8a245309530f42f337d9f1ff1b69d7fdf1b5236e1", "fetched_at": "2026-08-28T04:04:11.224909+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hahhforest/pi-textbook"}, {"content_hash": "4c2cbf9ab0b86904aa72cf811065decb001d0107108b22427ccb6bd876418b1b", "fetched_at": "2026-08-29T12:15:33.039407+00:00", "kind": "homepage", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site"}, {"content_hash": "652d91b5cfe6b551bf962dbcfcbc634ad4f84129cb8eadf9e219e8b38ca836ac", "fetched_at": "2026-08-29T12:15:33.042455+00:00", "kind": "site_page", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site/about"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T05:03:42.486733+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "235a7ce73c1dee84665ac6b8a245309530f42f337d9f1ff1b69d7fdf1b5236e1", "fetched_at": "2026-08-28T04:04:11.224909+00:00", "kind": "readme", "missing": false, "url": "https://github.com/hahhforest/pi-textbook"}, {"content_hash": "4c2cbf9ab0b86904aa72cf811065decb001d0107108b22427ccb6bd876418b1b", "fetched_at": "2026-08-29T12:15:33.039407+00:00", "kind": "homepage", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site"}, {"content_hash": "652d91b5cfe6b551bf962dbcfcbc634ad4f84129cb8eadf9e219e8b38ca836ac", "fetched_at": "2026-08-29T12:15:33.042455+00:00", "kind": "site_page", "missing": false, "url": "https://build-your-own-pi-cn.enochzhang.chatgpt.site/about"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 94, "longevity": 3, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases", "young"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 43, "days_push": 41, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 55, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}