Menu

Post image 1
Post image 2
1 / 2
0

Go forth and `git rm -f` πŸš€

DEV CommunityΒ·Simon MasseyΒ·25 days ago
#qVtSrDmB
#ai#programming#productivity#code#model#dead
Reading 0:00
15s threshold

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.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More