A field guide, not a manifesto
Working with coding agents
Claude Code, Codex, and the habits that make a model-driven workflow fast without being reckless. Every lesson here was paid for by a real mistake on a real codebase: a monorepo of small public apps, a control plane for a handful of machines, and a mobile robot. 17 lessons, 3 things to drive yourself.
How to read this
The agent is a fast engineer with no memory. Everything follows from that.
Write things down. Rules the agent should follow live in files it reads at start, not in your head.
Spend context on purpose. Every tool result is re-read on every turn. The budget is the session.
Look before you ship. Green tests are not a rendered page. A rule with no test will be broken.
Mindset
The workspace
- Write the constitution The file the agent reads before it does anything, and how to keep it honest
- One task, one worktree, one session The isolation unit that makes parallel agents safe instead of terrifying
- Ports, the LAN, and the phone in your pocket Small conventions that stop 'why is this app dead' from happening weekly