Harness Notes

Instructions

Updated 2026-11-22,

On this page

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

QuestionAntigravity 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

QuestionAntigravity 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

QuestionAntigravity CLI
See what loaded, and apply edits

Not documented

A CLI command for enumerating the active rule files remains unverified.

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

Not documented

Organization-managed instruction enforcement remains unverified for the CLI.

Notes and sources

Antigravity CLI, 2 sources
  • Publisher documentation. Loading and activation were not runtime tested.
Which files it reads, 1
Where it looks, and when nested files load, 1
When several apply, which wins, 1
Size limits, 1
One file for several harnesses, 1
Rules for some paths, or only on request, 1
Include other files, 1
Add instructions from config or flags, 1
Generate a starter file, 1
See what loaded, and apply edits, 1
Turn them off or skip some, 1
Enforce instructions for an organisation, 1