Lesson 10.11 · Phase 10 · Coding & Computer-Use Agents
Build a mini coding agent
Put Phase 10 together: a repository map, file tools with guards, a sandboxed test runner that speaks JSON, a shell with a policy, protected tests, a step budget, a no-progress stop, a transcript and a final diff. About 360 lines you can point at a real repository. Its most important line is the one that refuses to call a run "verified" just because the model says it's done.
Learning objectives
- Assemble a complete coding agent from the parts built in Lessons 1–10, and explain each part's job.
- Run it on a working copy so the original repository is never modified, and record a JSONL transcript plus a unified diff.
- Classify every run as verified, unverified, stuck, tampered or out of budget, using evidence the harness collects.
- Run it against a real local model and read the result honestly.
You've built the pieces one at a time. A real coding agent needs all of them at once, and the interactions matter. The repo map has to be ranked so tests don't crowd out source. The edit tool's read-before-edit rule has to survive the model's own edits. Test protection has to catch writes through the shell, not just through editfile. And the final status has to come from the harness's evidence, because, as you'll see with a real 3B model, the model's last message can describe a fix that never happened.
Loading the full lesson…