4 points · by miguelspizza · 8mo ago · 2 comments
Reading the leaked prompts made the failure mode pretty obvious: the agent is optimized to get its feature working inside local context, not to improve the codebase as a whole. So it makes defensive patch fixes, leaves old paths around, avoids holistic cleanup, and slowly fills the repo with debt. My take is that it's intentionally designed to one shot new projects/features but you have a aggressively prompt it to write maintainable code.
I've been writing typescript for a number of years now (and startups and large companies) and have pretty strong opinions how to do it sustainably. The fact that we code with agents hasn't changed the fundamentals as much as vibe coders will have you believe. Hopefully others find this skill helpful.
I've been coming at this from a slightly different angle, building a system that encodes checks that run against code authored by Claude, with escalating levels of enforcement.
It's still really early, but, among early users, we see that about 40% of agent turns produce code that violates the guidance in the project's own CLAUDE.md. We catch the violations at the end of the turn and direct Claude to correct them.
Still looking for early users and feedback. http://getcaliper.dev