Erich Champion

Erich Champion

@erichchampion.com

2 followers1 following8 posts

PDF Colophon 1.3 is out for iPhone, iPad, and Mac. It's the reading release: Day, Night, and Sepia themes, reflow on iPhone, bookmarks saved inside the PDF, a Link tool, and several windows on iPad and Mac. All on device, no subscription. apple.co/4gvnF8S

New book: Inside the Inference Engine. The premise I try to break — a served model is an operating system for attention: virtual memory for KV state, a time-slice loop for decode steps. I pinned llama.cpp v0.2.0 on one M1 Max and priced every mechanism. Link in the first comment.

Inside a production AI coding agent: 22 built-in tools, 20+ LLM providers behind one interface, MCP extension at runtime, SQLite sessions, snapshot git tracking. Inside OpenCode maps all of it to real source files. 📚 a.co/d/08qC9YMj

The heart of an AI coding agent is a loop: the model calls a tool, reads the result, decides whether to continue. Inside OpenCode annotates the real implementation — stream parsing, mid-stream tool detection, the event bus behind the UI. a.co/d/08qC9YMj

AI writes the code — but what happens between your prompt and the diff? A while(true) loop calling tools, reading results, deciding whether to continue: 15–30 autonomous steps per request. Inside OpenCode traces it line by line. a.co/d/08qC9YMj

New book — Inside OpenCode: How an AI Coding Agent Works. A code-level walkthrough of a real production AI coding agent: the agentic loop, tool execution, stream processing, permissions, compaction. 33 chapters, 100% open source. Out now 👇 a.co/d/08qC9YMj

You are up to date.