GH Repository · SaladDay
pi-from-scratch
600 行 TypeScript 写成的超级迷你版 pi,让你轻松从 0 写出属于你的 pi-agent
- stars
- 1,216
- 30-day movement
- starts with the next reading
- Related entries
- 60
- Connections
- 1
nodeTypeScripttypescript-tutorialagent-frameworkpi-agentpillmcoding-agentllm-agentai-agenttypescripttool-callingagent-loop
A super-minimal reimplementation of the pi agent in 600 lines of TypeScript, written to show how to build a pi-agent from zero. It covers the core agent loop and tool calling, and reads as a learning-oriented codebase rather than a production framework.
You want to understand or teach how a pi-style coding agent works by reading and building a tiny, complete version yourself.
Use it to
- Study the pi agent loop in a small codebase
- Learn LLM tool calling in TypeScript
- Fork it to build your own minimal agent
- Use it as a TypeScript tutorial reference
For Developers learning to build LLM agents from scratch
- Role
- agent-framework
- Language
- TypeScript
- Licence
- MIT
- Forks
- 94
- Open issues
- 1
- Last push
- 2026-08-18
topicsagent-looptool-callingtypescripttutorialcoding-agentllm