ryukenshin546-a11y/antigravity-projects-fix — reverse-engineered prompt
Reverse engineered prompt
Build me a tiny Node.js command line tool that fixes the Google Antigravity 2.0 Projects sidebar bug where the same folder appears over and over as MyApp, MyApp 2, MyApp 3, etc.
It should find Antigravity local project JSON files, group entries that point to the same real folder, and show a safe scan first without changing anything. Then add commands to consolidate duplicates, merge duplicates while keeping chats attached to the remaining project, purge all project entries for a fresh start, restore from an automatic backup, and diagnose how chats are linked. Destructive actions should be a dry run unless the user adds an apply option, should ask for confirmation, and should make a backup before changing files.
Keep it simple, one JavaScript file if possible, no external packages, works with Node 16.7 or newer, and auto detects the Antigravity config location on Windows, with careful support for Mac and Linux too.
Want more depth? Deep Reverse