how-pi-agent-works
cellinlab/how-pi-agent-works · Public GitHub repository
Pi Agent 原理与实现
Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

About this project
Author-written excerpt from the project README.
这是一个完整可运行的中文 VitePress 教程项目,参考 earendil-works/pi 与 pi.dev 官方文档,从工程视角拆解 Pi Agent 的核心原理,并带你实现一个教学版 Agent。
- 核心概念:Agent Loop、消息、流式事件、工具调用、会话树、上下文压缩。
- Pi 源码拆解:pi-ai、pi-agent-core、pi-coding-agent 的分层和关键链路。
- 渐进式 Demo:四个核心 TypeScript 小 Demo 从最小循环逐步加工具、会话和压缩,另有一个可选真模型烟测 Demo。
- 最终项目:React + Node.js + TypeScript 实现一个可运行的教学版 Agent。
Requirements and intended audience
这是一个完整可运行的中文 VitePress 教程项目,参考 earendil-works/pi 与 pi.dev 官方文档,从工程视角拆解 Pi Agent 的核心原理,并带你实现一个教学版 Agent。
Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.
Statements extracted from the author’s documentation · Checked 2026-10-17. Source: https://github.com/cellinlab/how-pi-agent-works/blob/main/README.md
Recorded maintenance information
Last recorded source update: 2026-05-26. A published release has not been recorded. These dates do not guarantee ongoing maintenance.
- Technologies
- Not recorded
- Licence
- MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
- Demo check
- A public page loaded on 2026-11-16. This does not test every feature.
Browse related categories
More projects to explore
DeepSite v4
hf:enzostvs/deepsite
Generate any application by Vibe Coding it
Open LLM Leaderboard
hf:open-llm-leaderboard/open_llm_leaderboard
Track, rank and evaluate open LLMs and chatbots
AI Comic Factory
hf:jbilcke-hf/ai-comic-factory
Create your own AI comic with a single prompt
MiroFish
666ghj/MiroFish
A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物