Skip to content

feat(antigravity-cli): emit root rules as AGENTS.md instead of GEMINI.md - #1877

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-scrap-issue-1820-antigravity-cli-agentsmd
Jun 16, 2026
Merged

feat(antigravity-cli): emit root rules as AGENTS.md instead of GEMINI.md#1877
dyoshikawa merged 2 commits into
mainfrom
resolve-scrap-issue-1820-antigravity-cli-agentsmd

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

The Antigravity CLI (agy) reads the cross-tool AGENTS.md standard at the workspace root (the Gemini-lineage discovery order is AGENTS.md, CONTEXT.md, GEMINI.md). rulesync previously emitted the project-root rule as GEMINI.md — the least-preferred-but-valid option, and out of step with the antigravity-ide target, which already emits AGENTS.md.

Per maintainer direction, this switches antigravity-cli's project-root rules file from GEMINI.md to AGENTS.md, so both Antigravity targets align on the cross-tool standard.

Changes

  • ANTIGRAVITY_RULE_FILE_NAMEAGENTS.md (project root); add ANTIGRAVITY_GLOBAL_RULE_FILE_NAME = "GEMINI.md".
  • AntigravityCliRule.getSettablePaths now returns root AGENTS.md for project scope and keeps ~/.gemini/GEMINI.md for global scope.
  • gitignore-entries.ts: tag antigravity-cli under the shared **/AGENTS.md entry and drop the now-obsolete project **/GEMINI.md tag (the generated ignore set is unchanged — **/AGENTS.md and **/GEMINI.md are still both present, the latter via geminicli, so .gitignore needs no regeneration).
  • Update unit test, E2E generate/import expectations, README, and docs/** (synced to skills/rulesync/).

Scope / compatibility

  • Breaking change to existing antigravity-cli project output: the root rule file name changes from GEMINI.md to AGENTS.md.
  • Global scope is unchanged — still ~/.gemini/GEMINI.md, matching antigravity-ide and the shared Gemini home config.
  • Non-root rules under .agents/rules/ are unaffected.

Tests

Full suite green (6372 tests). E2E rules generate/import/global cases updated for the new project-root file.

Closes #1820

🤖 Generated with Claude Code

cm-dyoshikawa and others added 2 commits June 15, 2026 23:13
The Antigravity CLI (`agy`) reads the cross-tool `AGENTS.md` standard at the
workspace root (Gemini-lineage discovery order is `AGENTS.md`, `CONTEXT.md`,
`GEMINI.md`). rulesync previously emitted the project-root rule as `GEMINI.md`,
the least-preferred-but-valid option and out of step with the `antigravity-ide`
target, which already emits `AGENTS.md`.

Switch the project-root rules file from `GEMINI.md` to `AGENTS.md` so both
Antigravity targets align on the cross-tool standard. Global scope keeps
`~/.gemini/GEMINI.md` (shared with the IDE and the Gemini home config).

This is a breaking change to existing `antigravity-cli` project output: the root
rule file name changes. Non-root rules under `.agents/rules/` are unaffected.

Closes #1820

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…I.md migration

Address review feedback:
- Add a gitignore-entries test for the antigravity-cli target asserting it now
  contributes **/AGENTS.md (not **/GEMINI.md), guarding the tag move.
- Note in the migration guide that a previously-generated root GEMINI.md is no
  longer managed and should be deleted manually after regenerating.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit db39505 into main Jun 16, 2026
8 checks passed
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

@dyoshikawa
dyoshikawa deleted the resolve-scrap-issue-1820-antigravity-cli-agentsmd branch June 16, 2026 06:24
@dyoshikawa dyoshikawa mentioned this pull request Jun 17, 2026
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.

Follow up Google Antigravity CLI upstream updates: root AGENTS.md rules and .geminiignore

2 participants