Skip to content

Installer targets legacy Gemini-CLI settings.json instead of Antigravity 2.0 config directory (resulting in duplicate 273MB binaries) #1161

Open

Description

@uongsuadaubung

Version

codebase-memory-mcp 0.9.0

Platform

Windows (x64)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

standard

What happened, and what did you expect?

When running codebase-memory-mcp install (or using the Windows install.ps1 script), the installer detects and configures the outdated/legacy agent Gemini-CLI rather than Antigravity (the current successor for Antigravity 2.0).

Consequently, it writes the configuration to the deprecated monolithic file C:\Users\<Username>\.gemini\settings.json.
In Antigravity 2.0, the configuration format is modular:

  • MCP server configurations must reside in ~/.gemini/config/mcp_config.json
  • Hooks configurations must reside in ~/.gemini/config/hooks.json

Because it targets the legacy file ~/.gemini/settings.json, the newly installed MCP server and hooks are completely ignored by the Antigravity 2.0 agent.

Additionally, on Windows, this outdated installation process creates a duplicate binary:

  1. C:\Users\<Username>\AppData\Local\Programs\codebase-memory-mcp\codebase-memory-mcp.exe (installed by install.ps1)
  2. C:\Users\<Username>\.local\bin\codebase-memory-mcp.exe (copied by the binary's install command)
    Since the binary is ~273 MB, this wastes disk space, and neither copy is recognized by Antigravity 2.0 out-of-the-box because of the incorrect path configuration.

Root Cause Analysis

Inside the codebase-memory-mcp binary's install command logic:

  1. It looks for and writes to the legacy Gemini CLI agent path: ~/.gemini/settings.json.
  2. It has not been updated to detect Antigravity and write sparse configurations to the modern configuration directory ~/.gemini/config/ (specifically mcp_config.json and hooks.json).

Expected Behavior

  1. The install command should detect the modern Antigravity agent (IDE & CLI).
  2. It should write the MCP server configuration to ~/.gemini/config/mcp_config.json instead of ~/.gemini/settings.json.
  3. It should write the hooks configuration to ~/.gemini/config/hooks.json using the Antigravity 2.0 hook schema (e.g., using PreToolUse instead of BeforeTool, PreInvocation instead of SessionStart, and outputting JSON {"decision": "allow"} for tool-use checks).
  4. On Windows, the installer script install.ps1 and the binary should coordinate on a single binary installation path (e.g., ~/.local/bin/ or AppData/Local/Programs/) to avoid creating two duplicates of the 273 MB binary.

Reproduction

  1. Run install.ps1 (or codebase-memory-mcp install -y) on a Windows machine.
  2. Observe the command output showing the detection of the outdated agent:
    Detected agents: Gemini-CLI
    
    Gemini CLI:
      mcp: C:/Users/uongsuadaubung/.gemini/settings.json
      instructions: C:/Users/uongsuadaubung/.gemini/GEMINI.md
      hooks: BeforeTool + SessionStart (codebase-memory-mcp reminder)
    
  3. Check the generated configuration: it is written to the legacy C:\Users\<Username>\.gemini\settings.json path instead of C:\Users\<Username>\.gemini\config\mcp_config.json.
  4. Open the Antigravity 2.0 IDE/CLI and observe that the MCP server is not recognized.

Logs


Diagnostics trajectory (memory / performance / leak issues)


Project scale (if relevant)

No response

Confirmations

  • I searched existing issues and this is not a duplicate.
  • My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.

Activity

  1. added
    priority/normalStandard review queue; useful PR with ordinary maintainer urgency.
    on Jul 18, 2026
  2. added this to the 0.9.1-rc milestone on Jul 18, 2026
  3. DeusData commented on Jul 18, 2026

    @DeusData
    Owner

    Thanks for documenting both symptoms. This report currently combines two separate contracts. The current official Gemini CLI documentation still places user MCP configuration and hooks in ~/.gemini/settings.json, with hook events including BeforeTool and SessionStart: https://github.com/google-gemini/gemini-cli/blob/main/docs/reference/configuration.md. We should therefore not replace the Gemini CLI integration with the proposed Antigravity paths and event names without a canonical Antigravity 2.0 specification and exact product/build identifier. Please link those official references. The duplicate 273 MB Windows binary, however, is a concrete installer-coordination bug and remains tracked in 0.9.1-rc.

  4. added
    priority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.
    and removed
    priority/normalStandard review queue; useful PR with ordinary maintainer urgency.
    on Sep 5, 2026
  5. DeusData commented on Sep 26, 2026

    @DeusData
    Owner

    Thank you, @uongsuadaubung! The duplicate binary is fixed: since v0.10.0, install.ps1 hands its own install directory to the binary's installer, so only one copy exists.

    On Antigravity: when it's detected, cbm already writes to ~/.gemini/config/mcp_config.json. Detection currently looks for ~/.gemini/antigravity-cli or the antigravity CLI on PATH. If your setup has neither, a link to the official Antigravity 2.0 config reference would let us add the right probe.

  6. DeusData commented on Oct 19, 2026

    @DeusData
    Owner

    Thank you for documenting both installation symptoms. The last update reported the duplicate-copy fix and narrowed the remaining Antigravity question to detection. If your installation has neither detection marker mentioned above, the exact product/build and its official configuration reference remain the missing information.

  7. added
    awaiting-reporterWaiting on the reporter for info/repro; stale bot will warn then close
    on Oct 25, 2026
  8. github-actions commented on Oct 25, 2026

    @github-actions

    Thanks for the report! To move this forward we need a bit more so we can reproduce it ourselves:

    • the codebase-memory-mcp --version you're on
    • the exact steps or command you ran
    • a public repo (or a small dummy snippet) that shows the problem — please don't paste proprietary code

    Once that's here we'll pick it straight back up. Heads-up: issues left awaiting-reporter are automatically closed after a few weeks of silence, but a comment reopens the door anytime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-reporterWaiting on the reporter for info/repro; stale bot will warn then closebugSomething isn't workingeditor/integrationEditor compatibility and CLI integrationpriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.windowsWindows-specific issues

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions