Vibe Coding Discover

AI Coding

pi-from-scratch

View on GitHub

600 行 TypeScript 写成的超级迷你版 pi,让你轻松从 0 写出属于你的 pi-agent

★ 1.3K100 forksTypeScriptMITSaladDay

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