Skip to content
Writing

Blog

Notes on building for the web and mobile: performance, architecture, AI, and the craft of shipping.

Series7 partsIn progress

Agent loop

Building a coding agent from scratch, one loop at a time, every part in runnable code.

  1. 01What an agent loop is (and isn't): state, action, stop29 Jun 2026 · 12 min read
  2. 02The simplest loop that works: a write-test-fix agent, step by step30 Jun 2026 · 24 min read
  3. 03The sandbox in an agent loop: from the model's text to a reliable observation30 Jun 2026 · 21 min read
  4. 04Who writes the agent's tests: three ways to define what's correct30 Jun 2026 · 24 min read
  5. 05From generating files to using tools: a code agent's ReAct loop30 Jun 2026 · 21 min read
  6. 06The agent inside a real repo: isolating tasks with git worktree and shipping a PR30 Jun 2026 · 19 min read
  7. 07From a Jira ticket to a pull request: the end-to-end autonomous system2 Jul 2026 · 29 min read