Step 9: A model per phase
Step 9: A model per phase
The ninth step of the harness I put around my coding agents: each phase of the plan names its model and effort, a cheaper model where the gate makes it safe.
Part of the series: Codebase Harness, Step by Step · View all parts
Previously in this series: Step 8: The files of each phase
I was paying for the strongest model on every phase of a plan, when most did not need it. Scaffolding, a rename, a lint fix: a cheaper model does them. So each phase now names its model and effort, written while I plan, when I still know which phase is hard.
Two dimensions. A guide acts before the agent, a sensor after. Each is inferential, judged by a model, or computational, decided by a program. Inferential guides are what the agent reads, AGENTS.md, a skill, a plan, sharper written in the literature's words; computational guides are deterministic tools, a codemod, a generator, a command that acts in the agent's place, code mode, where the agent writes a program instead of a string of actions, a language server. Inferential sensors are a review by a model or a person; computational sensors are the type checker, the linter, tests and fitness functions. Each practice moves a judgement toward computation, and the computational sensor is the optimum.
- 4 · literature in skills
- 5 · skills
- 1 · type checker
- 2 · linter
- 3 · dead code
- 6 · fitness functions
- 7 · plan in phases
- 8 · files per phase
- 9 · model per phasetoday
In Birgitta Böckeler's grid of guides and sensors, the model and effort written in the plan are part of the guide. The gate behind each phase, a computational sensor, is what lets a cheaper model try. The series' map: Guides and Sensors: Mapping Your Attention to Free It
In practice, my first plan named a model and an effort for each phase: medium for the command line's skeleton, low for the lint and format setup.
What makes it safe is the gate. A cheaper model that gets a phase wrong fails the same checks and has to fix it before the commit. Without a gate, a cheaper model is a gamble.
If you want an example, here is that plan's model and effort table: lbdremy/phax/docs/plans/archive/2605111617-phax-cli-plan.md
Next in this series: Step 10: Freeze what the code does before a refactor you can't review
A thought after reading?
If you would like to discuss about this article, you can write to me here. I share because I care and I want to learn. Please teach me with care.