Instruction files are guidance you write once and every session reads, such as AGENTS.md, CLAUDE.md or Cursor rules. Notes a harness saves on its own are on the Memories page.
What gets loaded
| Question | Antigravity CLI |
|---|---|
| Which files it reads | AGENTS.md and GEMINI.md contain plain Markdown. Named rules use YAML frontmatter with a valid trigger. |
| Where it looks, and when nested files load | Checks the starting directory and additional workspace folders, then their ancestors through the repository root. |
| When several apply, which wins | Google documents loading all discovered rules. Exact prompt ordering and effects of contradictory instructions remain unverified. |
| Size limits | Partly Google documents falling back to the description if an always-on rule exceeds the token budget. The numeric budget remains unverified. |
Writing them
| Question | Antigravity CLI |
|---|---|
| One file for several harnesses | Use AGENTS.md as the shared Markdown instructions file. Antigravity also recognizes GEMINI.md. |
| Rules for some paths, or only on request | Use glob for matching file paths, model_decision for on-demand loading, or manual for explicit @mentions. |
| Include other files | Partly Discovery manifests can include external rules and inherit manifests. Markdown inline imports remain unverified. |
| Add instructions from config or flags | Project or user rules.json can add rules outside the default scan, including deeper files. Plugins can also bundle rules. |
| Generate a starter file | Place plain AGENTS.md at the applicable workspace level. Use .agents/rules/<name>.md with trigger frontmatter for a named rule. |
Control
| Question | Antigravity CLI |
|---|---|
| See what loaded, and apply edits | |
| Turn them off or skip some | Partly Use trigger: manual to prevent automatic activation of a named rule. An overall CLI disable switch remains unverified. |
| Enforce instructions for an organisation |
Notes and sources
Antigravity CLI, 2 sources
- Publisher documentation. Loading and activation were not runtime tested.