The codebase decides how small a change can be

October 22, 2026

Key takeaway: Design the codebase so a new feature edits few shared files, and treat any file every change appends to as a smell.

When dozens of agents merge at once, the codebase decides how small a change can be. Clean code was written for one reader. Now the question is whether a hundred changes can land on the same afternoon.

A team of eight might have a dozen branches open in a week. Eight engineers each running a handful of agents can have a hundred open in a day.

The collisions happen in files every change touches: the routes file, the DI container, an event enum, a feature flag registry, the CHANGELOG. Ten agents each appending one line to the same registry means each one that conflicts has to rebase and rerun its checks, and every merge restarts the cycle for the rest. That’s up to 45 rebases before the last change lands, and sooner or later one of them resolves a conflict by dropping a line that wasn’t its own.

So I’d treat a file every change appends to as a smell. For a CHANGELOG, one .gitattributes line, CHANGELOG.md merge=union, tells Git to keep both sides. More broadly, let modules register themselves where they live: routes next to the handler, events defined by the module that emits them. Then two features never edit the same file.

The worse failure merges cleanly. Agent A renames chargeCustomer to createCharge while agent B adds a new caller of the old name. Each passes its own checks, Git sees nothing, and the combined result is broken. Only a merge queue that type-checks and tests the combined result catches it.

That only works if contracts are written where a machine can check them. The engineer who wrote billing remembered that amount was in cents. An agent remembers nothing between sessions. Put the unit in the type and the type checker tells the agent the first time it guesses wrong.

Small changes were always easier to review. A change that touches one module also rarely collides with anyone else’s, which matters more once agents merge in parallel.

I don’t have this figured out. I’m collecting what I learn in a skill, making-code-agent-friendly, and I expect it to change.