feat(antigravity-cli): emit root rules as AGENTS.md instead of GEMINI.md - #1877
Merged
dyoshikawa merged 2 commits intoJun 16, 2026
Merged
Conversation
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>
Owner
Author
|
@dyoshikawa Thank you! |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Antigravity CLI (
agy) reads the cross-toolAGENTS.mdstandard at the workspace root (the Gemini-lineage discovery order isAGENTS.md,CONTEXT.md,GEMINI.md). rulesync previously emitted the project-root rule asGEMINI.md— the least-preferred-but-valid option, and out of step with theantigravity-idetarget, which already emitsAGENTS.md.Per maintainer direction, this switches
antigravity-cli's project-root rules file fromGEMINI.mdtoAGENTS.md, so both Antigravity targets align on the cross-tool standard.Changes
ANTIGRAVITY_RULE_FILE_NAME→AGENTS.md(project root); addANTIGRAVITY_GLOBAL_RULE_FILE_NAME = "GEMINI.md".AntigravityCliRule.getSettablePathsnow returns rootAGENTS.mdfor project scope and keeps~/.gemini/GEMINI.mdfor global scope.gitignore-entries.ts: tagantigravity-cliunder the shared**/AGENTS.mdentry and drop the now-obsolete project**/GEMINI.mdtag (the generated ignore set is unchanged —**/AGENTS.mdand**/GEMINI.mdare still both present, the latter viageminicli, so.gitignoreneeds no regeneration).docs/**(synced toskills/rulesync/).Scope / compatibility
antigravity-cliproject output: the root rule file name changes fromGEMINI.mdtoAGENTS.md.~/.gemini/GEMINI.md, matchingantigravity-ideand the shared Gemini home config..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