LLMs thing.
What I learned building an opinionated and minimal coding agent
This is a view into pi, a toolkit for simple coding agents (and components thereof).
pi-ai
agent-loop.ts handles the REPL-y bits
- handles who’s turn it is
- context management
- call into tools based on LLM response
There’s a bunch of weirdness in there handling users interrupting the flow of conversation with corrections.
pi-tui
There’s a common core w/ people who write their own stuff to be simpler: they do it a lot. I’m unsurprised and bewildered that this person chose to write their own TUI for this project.
pi-coding-agent
A bunch of the quality of life things people now expect: claude.md file loading equivalents, suspend/resume, export, etc