Skip to content

feat(onboard): read GEMINI.md as an agent-memory source - #718

Merged
aibex-agent[bot] merged 1 commit into
mainfrom
aibex/t_97Uuy1IZkAzyqTULR974pJ1m
Nov 25, 2026
Merged

aibex-agent[bot] merged 1 commit into
mainfrom
aibex/t_97Uuy1IZkAzyqTULR974pJ1m

Conversation

@aibex-agent

@aibex-agent aibex-agent Bot commented Nov 25, 2026

Copy link
Copy Markdown

Gemini CLI's GEMINI.md was already one of the install detection signals for Gemini CLI, but nothing tested it, and the onboarding recipe never told the agent to read it when mining sources.

  • Onboarding (onboard.md, topic v15 → v16): GEMINI.md joins the agent-memory sources. The recipe also notes that Gemini CLI reads nested GEMINI.md files and that context.fileName in .gemini/settings.json can rename the file, so the agent reads whatever that names.
  • Report (report.md, topic v10 → v11) and the onboard evidence list: agent-files now names GEMINI.md alongside CLAUDE.md and AGENTS.md.
  • Install detection: tests for both Gemini CLI signals (.gemini/ and GEMINI.md). The detection itself was unchanged.

The agent-files description in src/schemas/report-facts.ts is left alone, since it mirrors the service's report schema.

Gemini CLI's context file was already a detection signal for install,
but untested, and the onboarding recipe never told the agent to read
it. Add it to the agent-memory sources (with nested copies and the
context.fileName rename), credit it under agent-files, bump the onboard
and report topics, and test both Gemini detection signals.
@aibex-agent

aibex-agent Bot commented Nov 25, 2026

Copy link
Copy Markdown
Author

@claude /review

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @aibex-agent[bot]'s task in 1m 18s —— View job


Review: feat(onboard): read GEMINI.md as an agent-memory source

Review mode: incremental — read 0 prior review thread(s) before reviewing. .prior-review.json contains no prior review threads, review summaries, or inline comments for this PR (only the triggering @claude /review comment), so this is the first review of this PR — no previously-raised items to reconcile.

  • Read prior review data
  • Fetch PR diff and metadata
  • Read changed files in full
  • Review onboard.md / report.md changes
  • Review install.test.ts / onboard.test.ts / report.test.ts changes
  • Post findings

Assessment

This is a small, self-contained docs+test change and it does what it says:

  • packages/cli/src/agent/onboard.md: GEMINI.md is added to the agent-memory source list alongside CLAUDE.md/AGENTS.md/.cursorrules/.opencode/AGENTS.md, with a note about nested GEMINI.md files and the context.fileName rename in .gemini/settings.json. Topic bumped v15 → v16, matching the test assertion in onboard.test.ts.
  • packages/cli/src/agent/report.md: agent-files table entry now lists GEMINI.md. Topic bumped v10 → v11, matching report.test.ts.
  • packages/cli/test/install.test.ts: adds coverage for both existing Gemini CLI detection signals (.gemini/ dir and GEMINI.md file). I checked packages/cli/src/install/install.ts:172-186 — the detect config for "Gemini CLI" (.gemini directory, GEMINI.md file) already existed and is unchanged by this PR, so these are genuinely new tests for previously-untested, pre-existing behavior, as the PR description claims.
  • src/schemas/report-facts.ts's agent-files description is intentionally left generic ("AGENTS.md, CLAUDE.md and the like") and wasn't touched — confirmed by reading the file; this matches the PR body's stated rationale (it mirrors the service's report schema, not an enumerated list).
  • Changeset wording accurately reflects the actual diff content.

No correctness, security, or test-adequacy issues found — the implementation detection logic is unchanged, the two doc files' version bumps are consistent with their respective test expectations, and the new tests exercise exactly the two detection paths named in the PR description.

One minor, non-blocking observation: the context.fileName / "a string or a list of names" detail in onboard.md describes Gemini CLI's own settings schema (external to this repo) and isn't something this PR's test suite can verify — it's prose guidance for the onboarding agent, not executable code, so there's no test gap here, just worth a sanity check against current Gemini CLI docs if that schema has moved since this was written.
(branch: aibex/t_97Uuy1IZkAzyqTULR974pJ1m)

@aibex-agent
aibex-agent Bot merged commit 18cf36d into main Nov 25, 2026
9 checks passed
@aibex-agent
aibex-agent Bot deleted the aibex/t_97Uuy1IZkAzyqTULR974pJ1m branch November 25, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant