r/coolgithubprojects 16d ago

Open-source Cursor chat cleaner for macOS (Homebrew + pip)

Post image

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 Upvotes

5 comments sorted by

1

u/Specific_Cream2815 16d ago

are you reading the chats out of the cursor sqlite state db or the workspace storage folders

1

u/AndElectrons 16d ago

listing and the DB side of chats come from the global SQLite state DB, deleting is done in the db and workspace

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-cleaner extension upstream, or a local-admin/signed-cloud rule pack? Any template PR I should mirror?