agy CLI keeps its own under ~/.gemini/config/. agentmemory ships one adapter for each; they share nothing.
- Antigravity IDE
- Antigravity CLI (agy)
1
Start agentmemory
2
Run connect
The adapter writes
mcp_config.json in Antigravity’s User directory. macOS: ~/Library/Application Support/Antigravity/User/. Linux: ~/.config/Antigravity/User/.3
Restart Antigravity
Restart the IDE so the MCP server loads.
4
Verify
Ask the agent to save a fact with
memory_save, then search it:mcp_config.json
connect upserts the memory-usage guideline into ~/.gemini/GEMINI.md (Antigravity does not read AGENTS.md).Troubleshooting
Wired the wrong Antigravity
Wired the wrong Antigravity
connect antigravity targets the IDE, connect antigravity-cli targets agy. They read different files; wiring one does nothing for the other. Run the adapter that matches what you use, or both.Hooks file rejected after manual edits
Hooks file rejected after manual edits
Wrapping a lifecycle event (
PreInvocation, PostInvocation, Stop) in the { matcher, hooks } form makes agy read the wrapper as a handler and reject the whole file, disabling every other bundle in it. Keep lifecycle events as flat handler lists and let the installer manage the agentmemory bundle.src/cli/connect/antigravity.ts, src/cli/connect/antigravity-cli.ts, merge engine in src/cli/connect/antigravity-hooks.ts. Hook manifest: plugin/hooks/hooks.antigravity.json.