Antigravity ai agent cannot access workspace

I’ve successfully installed and logged into Antigravity and can communicate with its AI. However, when I open a folder using Antigravity like I would with VS Code or Cursor, and I’ve also added the folder to my trusted folder list, the AI ​​can’t read my files and prompts me to add the folder to my workspace. I’ve tried various methods, but even after adding it to the workspace, the AI ​​still returns the same message.

How can I resolve this?

Also seeing this issue!

2 Likes

Same problem here, Antigravity can only write to it’s own scratchpad.

1 Like

Same issue here. Tried Add Folder to Workspace… (which actually is the currently opened folder) but still not work.

1 Like

are you in google not even testing the product? this is the worst I’ve ever seen in my short life as a developer.
an ai editor that CANT edit files.
this is unvelibable, i though just microsft does this kind of “Modified by moderator”, but certanly google developers have now pushed the “Modified by moderator” bug in code history.
“Modified by moderator”

1 Like

Facing same problem. Antigravity cannot access workspace

1 Like

Remove it completely from your system and then do a clean install! This solves a lot of issues!

1 Like

The most reliable solutions currently available (sorted by success rate):

  1. Use the scratch temporary directory directly (100% success rate, highly recommended).
    Copy/move your entire project folder to: C:\Users\Administrator.gemini\antigravity\scratch.
    Then open this folder within Antigravity; the agent will immediately recognize it and allow normal reading and writing.

  2. Enable Non-Workspace File Access (works for some users; skip this if it doesn’t work for you).
    Settings → Agent → Non-Workspace File Access.Finally, restart Antigravity, and then open the project that AI couldn’t access files before; it should work normally.

1 Like

I think I’ve finally found a solution. The agent tends to bug out in directories that is not a git repository. So for all of us testing the editor out in a new directory, the agent often can not find the workspace. Run `git init` in the project directory and then open it in Antigravity, and it should work

1 Like

This was it. git init then reload window (or restart).

This is also happening for me - I tried:

  • Renaming the directory and re-opening(didn’t work)
  • Deleting ~/.gemini/antigravity/scratch (the agent said something about this in thought traces)
  • Explicitly adding the folder to the chat using @folder that it couldn’t access

The folder was two levels deep in a project that I opened in antigravity, e.g. ~/workspace/folder1/folder2 and it couldn’t access any of folder1 or folder2. one interesting thing I’ve noticed is that it displays the workspace folder in the chat window when there is a workspace folder but the only solution that worked was copying my project to the playground.