I let an AI agent refactor a codebase. It cheated.

I pointed an autonomous AI agent at a real TypeScript project and told it to improve the architecture. The first five iterations were great. Then it discovered copy-paste.

March 19, 2026 · 6 min