The Problem The GenAI coding tools really really do not like deleting code. And that is bad π₯Ί Dead code fills up the context and primes the models to keep on doing the wrong thing π€π§ If you want to get that spring back into your step you gotta drop the junk π©πͺ TL;DR The Solution π§° Get the how-to-delete-dead-code skill.md ! Go forth and git rm -f π The Road To Redemption Is Long And Hard I was at the point May 2026 where I didn't trust the latest of either Claude or GTP to delete. I was doing this: Ask the big model what exactly was baggage and the exact lines and files that can be deleted as not strategic code. Pasting that into Aider Chat as it is pretty low-level and asks you to add each file to edit (you just paste in what the big model said can be deleted and it will, most of the time). Have the big model to 'git diff' and state if more code can be deleted. During such a session all of a sudden the Opus 4.7 did the necessary deletes.β¦