pi-from-scratch
View on GitHub600 行 TypeScript 写成的超级迷你版 pi,让你轻松从 0 写出属于你的 pi-agent
A tutorial and runnable 600-line TypeScript coding agent inspired by pi. It demonstrates the agent loop, tool calling, file edits, and command execution, with an interactive website for following the code and tracing execution.
Use Cases
Learn how a coding agent worksBuild a TypeScript agent from scratchCreate an agent that reads files, edits code, and runs commandsTrace agent execution step by step
Built With
- Language
- TypeScript
Tags
coding-agent · AI agent · agent loop · tool calling · TypeScript · tutorial · from scratch