How to build an agent harness from scratch

A step-by-step walkthrough of a tiny coding agent harness: tools, loop, permissions, feedback, and traces.