If you need help consolidating projects in Antigravity 2.0

FYI: in case you upgraded to Antigravity 2.0 and ended up tons of projects duplicating your repos (e.g. “project”, “project 2”, “project 3”, etc…), you can use these scripts to consolidate them:

My process:

  • I used Antigravity IDE to create a workspace around my .gemini folder
  • I told it my problem (redundant projects that I want to consolidate while preserving the conversations under them) and asked it to analyze .gemini to see where the projects in ~/.gemini/config/projects are referenced elsewhere
  • It identified that ~/.gemini/antigravity/agyhub_summaries_proto.pb is where the projects are defined and it helped me create a script that consolidates them together and deletes the redundant files in ~/.gemini/config/projects
  • There is a find_uuids.py script that you run first, which generates a consolidate_mapping.json file that shows you the mappings. Then you run a consolidate.py script that you run afterwards.
  • I ran it on one small test project, it worked, and I ran it for the rest (I ran these through antigravity IDE so it ran into some sandbox errors and I had to manually paste in the rm commands to clean up the redundant files. if you don’t have sandbox or if you run it manually, you won’t have this issue)
  • I asked it to add comments and to generalize (for others’ home directories) so others could use it more easily too
1 Like