What Gemini CLI loads

GEMINI.md (or names from context.fileName) at the root and ancestors at start, subdirectory files just in time, all concatenated; @imports supported.

Modelled from https://geminicli.com/docs/cli/gemini-md/, checked 2026-10-03. Status: beta.

Known gaps

  • Global ~/.gemini/GEMINI.md is outside the repository and not shown unless --machine is used.
  • The docs do not state an import depth limit; this view stops after 5 hops.

See it for your repository

Which files Gemini CLI loads for a given file, in precedence order, with token estimates:

npx threadctx explain src/index.ts --tool gemini

Where Gemini CLI and the other agents disagree about the same directory:

npx threadctx diff