Skip to content

[BUG] Gemini CLI: no GEMINI.md created after sync — memory path may be wrong #41

@FZ2000

Description

@FZ2000

Tool Affected

gemini-cli

What Happened

After apc sync --all --yes with 203 memory entries in cache:

  • ~/.gemini/ contains only settings.json
  • No GEMINI.md or memory file was created
  • apc status shows ● synced
$ find ~/.gemini -type f
/Users/frank/.gemini/settings.json

What Was Expected

The GEMINI_MEMORY_SCHEMA in gemini.py describes writing to a GEMINI.md path. After sync, this file should exist with transformed memory entries.

Root Cause

Memory sync was skipped due to LLM 401 auth error in this test. However, even with a valid LLM, the path needs verification.

Looking at the schema comment: "## Gemini Added Memories" — Gemini CLI's save_memory tool appends facts here. This implies Gemini CLI stores memories in a specific Markdown file — likely ~/.gemini/GEMINI.md or similar.

Concerns

  1. Gemini CLI's memory file location may vary by version or OS — hardcoding ~/.gemini/GEMINI.md could be wrong
  2. The settings.json format at ~/.gemini/settings.json may be the actual memory location for newer Gemini CLI versions

To Reproduce

  1. Install gemini-cli and run gemini to initialize config
  2. apc configure with valid Gemini API key
  3. apc memory sync --tools gemini-cli --yes
  4. Check ls ~/.gemini/ — confirm GEMINI.md was created with correct format

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions