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
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
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
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
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
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
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
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
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
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
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
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
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
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