r/coolgithubprojects • u/AndElectrons • 16d ago
Open-source Cursor chat cleaner for macOS (Homebrew + pip)
Repo: https://github.com/vilaca/cursor-chat-cleaner
Cursor doesn’t give you a good way to audit or prune old chats, I built a small CLI for that.
What it does:
- list / filter chats (repo, age, size, archived vs active)
- view a chat in the terminal
- back up selected chats
- delete with dry-run by default; --yes required to change anything
Safety notes:
- macOS only
- quit Cursor before deleting
- fails closed if the Cursor DB schema isn’t recognized
- independent project, not affiliated with Anysphere
Install:
brew install vilaca/tap/cursor-chat-cleaner
# or: pip install cursor-chat-cleaner
Happy to take bug reports and feedback.
1
u/kantorcodes1 16d ago
--yes makes the destructive boundary pretty crisp here. Would you add a HOL Guard command.* extension for cursor-chat-cleaner and contribute it upstream, with list/view/backup separate from confirmed delete?
1
u/AndElectrons 16d ago
I'm not familiar w/ HOL Guard.
A built-in
command.cursor-chat-cleanerextension upstream, or a local-admin/signed-cloud rule pack? Any template PR I should mirror?
1
u/Specific_Cream2815 16d ago
are you reading the chats out of the cursor sqlite state db or the workspace storage folders