Le secrétaire de Fernand

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.

1 min read

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.

Böckeler's grid

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.

Inferentiala model judges, your attention follows
Computationala program decides, without your attention
Guidesbefore the agent acts
  1. 4 · literature in skills
  2. 5 · skills
toward computation
a codemod · a generator · a command (CLI) · code mode · a language server
Sensorsafter the agent acts
a review by a model or a person
toward computation
the optimum
  1. 1 · type checker
  2. 2 · linter
  3. 3 · dead code
  4. 6 · fitness functions
  5. 7 · plan in phases
  6. 8 · files per phase
  7. 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

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.

Send me an emailremy@lesecretairedefernand.co