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.