how do you clean up dead code and unused components after a fast vibe coding sprint? ​

by•

​after spending two nights rapidly testing different layouts and API helpers, my project folder always ends up full of orphaned files and half-used utility functions that nothing imports anymore.

​asking the agent to delete unused files feels risky because it sometimes removes dynamic routes by mistake.

​what tools or habits do you use to tidy up a messy repo once the prototype actually works?

12 views

Add a comment

Replies

Best

I'd trust your gut there. One rule my agents follow word for word is that "not used" doesn't mean "safe to delete". They only delete what I name explicitly, and anything whose purpose isn't clear stays untouched. Before deleting anything they copy it under another name first.