A Coding Agent from Scratch

A series about building a coding agent from first principles — no framework, no magic. Just a model, a loop, and a handful of tools. Seven parts are planned:

  1. The whole secret is a while loopplanned
  2. Before function callingplanned
  3. Tool calls with nothing but a promptplanned
  4. A working agent in ~100 linesplanned
  5. The three tools of a coding agentplanned
  6. When the context window fills upplanned
  7. MCP, subagents, and sandboxesplanned