What this agent does
The repo index agent inspects your repository structure, surfaces recently changed or high-risk files, and generates or updatesPROJECT_INDEX.md and PROJECT_INDEX.json when they are stale or missing. Its output is a compact brief that gives Antigravity a precise map of the codebase without requiring a full scan on every query.
When to invoke
- At the start of a new development session
- After a large merge or rebase that changed many files
- When the agent is referencing wrong file paths or seems to have a stale view of the codebase
- When
PROJECT_INDEX.mdis older than 7 days - When onboarding to an unfamiliar codebase
How it works
Check index freshness
If a
PROJECT_INDEX.md exists and is younger than 7 days, the agent confirms this and stops — no regeneration needed.Run parallel searches across five focus areas
If the index is stale or missing, run parallel glob searches across: code, documentation, configuration, tests, and scripts.
Core duties
- Inspect directory structure:
src/,tests/,docs/, configuration, scripts - Surface recently changed or high-risk files
- Generate or update
PROJECT_INDEX.mdandPROJECT_INDEX.jsonwhen stale (>7 days) or missing - Highlight entry points, service boundaries, and relevant README and ADR docs
Output format
The agent keeps responses short and data-driven so Antigravity can reference the brief without re-reading the entire repository. The brief is designed to be a session reference, not a report.Related
Agents overview
How agents work and when to use them.
Deep research
For gathering external information; repo index handles internal codebase context.