Le secrétaire de Fernand

Step 8: The files of each phase

Step 8: The files of each phase

The eighth step of the harness I put around my coding agents: each phase lists the files it will touch, compared with git at the end, so I read the gaps, never the diff.

1 min read

Part of the series: Codebase Harness, Step by Step · View all parts

Previously in this series: Step 7: A plan in phases

The diff was green and I had no idea why a file had been touched. Now each phase of the plan lists the files it will create or edit, and at the end I compare with git diff --name-only. The agent explains every gap in its handoff. I look at the gaps, never the diff.

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 phasetoday

In Birgitta Böckeler's grid of guides and sensors, the file list is a guide, and comparing it with what the phase touched is a computational sensor. The agent's explanations are what's left for you to read. The series' map: Guides and Sensors: Mapping Your Attention to Free It

If you want an example, here is a phase with its planned files: lbdremy/phax/docs/plans/archive/2611061508-records-branch-tip-plan.md

Next in this series: Step 9: A model per phase

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