pi-from-scratch
A working coding agent built from zero in about 600 lines of TypeScript
About pi-from-scratch
A minimal agent harness written from scratch, small enough to read in one sitting. No framework, no abstraction layers, just the loop: prompt, tool call, result, repeat.
The fastest way to stop treating your coding agent as magic. Once you have seen the whole loop in 600 lines, the behaviour of the big harnesses stops being mysterious and starts being debuggable.
The facts
- Type
- Github
- Listed
- August 24, 2026
More Github
See all →- Open Code ReviewMulti-agent code review: a customizable team of simulated engineers reviews your code.
- fast-anythingProfile your app, port only the slow 5% to Rust with your agent, prove it behaves the same.
- stack-diagramAgent skill: describe your stack in a sentence, get an architecture diagram with logos.
- Open Intelligent UIAn open-source take on ChatGPT’s Intelligent UI: answers stream as interactive UI.
- Respan GatewayOpen-source LLM gateway in Rust: one endpoint for OpenAI, Anthropic, Gemini and more.