Coding agents are good at adding code and bad at deciding not to.
That was my problem in one sentence. Each change Claude made was locally correct. Each addition was a few lines. Nothing ever got deleted. Then one day the codebase was much bigger than I had meant it to be, and there was no commit I could point at, because there was never one decision. It was a hundred small yeses that nobody actually said.
What I tried first
The obvious fix is to ask nicely. Put "keep it small" and "reuse existing helpers" in the instructions. It works for a while. There is no number, so there is nothing to be over.
The other obvious fix is review. But review sees one diff at a time, and every diff looks fine on its own. Growth is never the fault of a single change, so a reviewer looking at a single change never catches it.
What I wanted was a spending limit. Not "no code". A feature that needs six hundred lines should get six hundred lines.…