Le secrétaire de Fernand

Series

Codebase Harness, Step by Step

The harness I put around my coding agents, one step a day in the order I added them: each step the pain it answered, its cell in Birgitta Böckeler's grid of guides and sensors, and how to set it up.

13 parts

Part 1 · Published November 17, 2026

Step 1: The strictest type checker

The first step of the harness I put around my coding agents: the type checker at its strictest, before the agent writes a line, flag by flag.

1 min read

Part 2 · Published November 18, 2026

Step 2: The strictest linter

The second step of the harness I put around my coding agents: a linter with every rule you can defend, as errors, so a convention holds every time.

1 min read

Part 3 · Published November 19, 2026

Step 3: A dead-code finder in the loop

The third step of the harness I put around my coding agents: a dead-code finder in the agent's loop, as an error, so the agent deletes its own leftovers.

1 min read

Part 4 · Published November 23, 2026

Step 4: Architecture from the literature

The fourth step of the harness I put around my coding agents: skills written from the software engineering literature, DDD, hexagonal architecture, MVVM, instead of my own habits.

1 min read

Part 5 · Published November 24, 2026

Step 5: Skills hold what no tool checks

The fifth step of the harness I put around my coding agents: what a skill can hold, and why every rule a type, a lint rule or a test can check belongs there instead.

2 min read

Part 6 · Published November 25, 2026

Step 6: Fitness functions keep the architecture

The sixth step of the harness I put around my coding agents: fitness functions, tests that check a property of the architecture on every change and fail the build.

1 min read

Part 7 · Published November 26, 2026

Step 7: A plan in phases

The seventh step of the harness I put around my coding agents: a plan I write in the repo, each phase ending on one commit, behind a gate.

1 min read

Part 8 · Published November 27, 2026

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 9 · Published November 30, 2026

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 10 · Published December 1, 2026

Step 10: Freeze what the code does before a refactor you can't review

The tenth step of the harness I put around my coding agents: freeze what the code does in a snapshot before a refactor you can't review, and lock it.

2 min read

Part 11 · Published December 2, 2026

Step 11: A state machine whose every case is decided before it compiles

The eleventh step of the harness I put around my coding agents: every rule of a long job in one state machine, with a table of every case the type checker holds.

2 min read

Part 12 · Published December 3, 2026

Step 12: Gaming the gate

The twelfth step of the harness I put around my coding agents: five ways to keep a check honest when the agent it judges could edit it.

2 min read

Part 13 · Published December 4, 2026

Step 13: A warning is a green light

The thirteenth step of the harness I put around my coding agents: a check fails or says nothing, never a warning, because an agent fixes only what turns it red.

2 min read