And as others have said.. Give Claude the path.. and that fast you are done IF you only have one repo. If two or more you need to get all of them up to speed. When Anthropic deployed worktrees… i suspect this made the complication.
I have attached the logs from my Claude so you can see what happened. I will replace repo 1 and repo2 for safe discussion sharing.
From Claude:
Let me look at the Antigravity installation and the article for context.
Ran 2 commands, loaded tools, searched the web
Ran 2 commands, loaded tools, searched the web
The issue is a git config conflict. Let me check the git config in the relevant location.
Ran 2 commands
Ran 2 commands
Found it. Your .git/config has exactly the problem described in the forum:
These are incompatible — extensions.* requires repositoryformatversion = 1. Antigravity (which is an Electron/VS Code-based app) fails to resolve workspace info because of this conflict.
The worktreeConfig extension was added by Claude Code’s worktree feature. The fix is to update the format version to 1:
Fix git repositoryformatversion to support worktreeConfig extension
Fix git repositoryformatversion to support worktreeConfig extension
Let me verify the fix:
Verify the fix
Verify the fix
Done. The fix: core.repositoryformatversion was 0 but extensions.worktreeConfig = true was set (added by Claude Code’s worktree feature). Git extensions require format version 1. Antigravity (Electron/VS Code-based) was choking on this mismatch with the error “core.repositoryformatversion does not support extension: worktreeconfig / Failed to resolve workspace infos.”
Updated it to 1. Restart Antigravity and it should work now. This is a safe change — version 1 just means “this repo uses extensions,” which it already does.
BTW it was working when only hooked to Repo 2 if that helps.. now we hooked up Repo 1 as well to antigravity.
Ran 2 commands
Ran 2 commands
There it is — the exact error in the logs from this session at 13:44:10:
core.repositoryformatversion does not support extension: worktreeconfig
Failed to resolve workspace infos
workspace infos is nil
The fix I applied was correct, but these logs are from the session before the fix. The fix was applied during this session. You need to restart Antigravity for it to pick up the new git config.
But you also mentioned it started failing when you “hooked up Repo2” (the Repo 2-app repo). That repo is the one with the worktreeConfig issue. Let me also check if there are other repos open in Antigravity that might have the same problem.
Ran 4 commands
Ran 4 commands
Two issues found:
-
REPO 2 — has the fix (repositoryformatversion = 1) but also has a second repositoryformatversion = 0 under [lfs]. Let me check that.
-
REPO 1 — also has worktreeConfig = true and likely the same version 0 conflict.
Check REPO 1 format version
Check REPO 1 format version
REPO1 has the same bug. Let me fix it too.
Fix REPO1 repositoryformatversion
Fix REPO1 repositoryformatversion
Both repos are now fixed. Here’s the summary:
Root cause: The Antigravity logs confirm exactly the error from the forum post:
core.repositoryformatversion does not support extension: worktreeconfig
Failed to resolve workspace infos
workspace infos is nil
What happened: Claude Code’s worktree feature added extensions.worktreeConfig = true to .git/config in both Repo 2 and Repo 1, but left repositoryformatversion at 0. Git extensions require version 1. Antigravity’s language server (Go-based) fails to resolve workspace info, which blocks the Gemini chat agent from getting context.
Fixed:
Cheers and I hope it helps.