Command Palette

Search for a command to run...

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.

← Back to Resources