r/coolgithubprojects • u/phphe • 15m ago
AI agents keep dumping thousands of tiny files into my Recycle Bin. I built a tool to clean them up without deleting my own files.
https://github.com/phphe/trash-path-cleanerI've been using AI coding agents quite a bit lately, and noticed an annoying side effect.
When these agents delete files, they often just move them to the Windows Recycle Bin instead of permanently deleting them.
Over time, this can leave thousands of tiny files in the Recycle Bin.
Opening it can become painfully slow because Windows has to load all those entries.
The obvious solution is to empty the Recycle Bin, but there's a problem: I also manually delete files and sometimes keep things in there because I might want to restore them later.
I don't want to lose those files just because an AI agent has dumped thousands of temporary files into the Recycle Bin.
So I built trash-path-cleaner, a small open-source PowerShell tool that lets me:
Clean files originating from specific directories.
Filter by original file size.
Target multiple directories at once.
Preview what will be deleted before confirming.
This way, I can clean up the mess left by AI agents without blindly emptying my entire Recycle Bin.
It's free, open source (MIT), and requires no extra dependencies.
Curious if anyone else has run into this problem with AI coding agents!
Feedback and suggestions are welcome.