.agents/rules/antigravity-game-development.md. Downloaded files need to be placed in that repository path.--- trigger: glob globs: "**/*" --- Generate game code: 1. Create game loops 2. Implement physics 3. Generate sprites 4. Add collision 5. Create UI 6. Implement audio 7. Add documentation 8. Generate tests
Antigravity
games
Google describes Antigravity as its agentic development platform. Antigravity reads workspace rules from AGENTS.md or GEMINI.md and from Markdown files in .agents/rules/, with a trigger front matter field that sets when a rule is active. Global rules live under ~/.gemini/.
.agents/rules/antigravity-game-development.mdStarting point, not a tested configuration for your repository. Active when files matching globs are involved (trigger: glob). Review the instructions, adapt the file paths and run your project's existing checks.
--- trigger: glob globs: "**/*" --- Generate game code: 1. Create game loops 2. Implement physics 3. Generate sprites 4. Add collision 5. Create UI 6. Implement audio 7. Add documentation 8. Generate tests
Ask for a small change to one matching file. Check the tool's loaded context or instruction view, inspect the diff for the requested convention, and run the relevant build or test. A well-formatted file does not guarantee the model follows every instruction.
Antigravity truncates any single rule file over 24,000 bytes, and global plus always_on rules share a 20,000-token budget, according to the docs. AGENTS.md (or GEMINI.md) in a workspace directory is one of the documented rule locations, and ~/.gemini/AGENTS.md works globally. Use .agents/rules/ when a rule should only apply in some situations.
Documentation checked 2026-11-05: Google Antigravity docs: Rules