Skip to content

Antigravity Adapter (AGENTS.md)

kaddo adapters install antigravity generates an AGENTS.md at the project root so Google Antigravity gets native instructions for working in a Kaddo repo — without you pasting the context pack, prompts or rules into the chat.

Terminal window
kaddo adapters install antigravity # write AGENTS.md
kaddo export antigravity # alias
kaddo adapters install antigravity --dry-run # preview, writes nothing
kaddo adapters install antigravity --inject # add/update only the Kaddo block, preserve the rest
kaddo adapters install antigravity --force # overwrite an existing AGENTS.md

Kaddo stays the source of truth. AGENTS.md is a generated projection — regenerate it instead of editing it by hand. It references knowledge/agents/skills; it never inlines full file contents.

This adapter generates a repository-level AGENTS.md guide — the same root instruction file the Codex and OpenCode adapters target. It follows the same Adapter Contract and reuses the same common core (project metadata, knowledge/derived paths, agents, skills, package-manager detection, command fallback, safe merge, inject guard, neutral markers); only the target label differs.

What the generated AGENTS.md contains

  • A short explanation that the repo uses Kaddo for Knowledge Driven Development (+ project name).
  • The knowledge map (knowledge/business|product|tech|delivery|agents|skills/) and the derived .kaddo/ paths, marked as generated output (don’t edit by hand).
  • Operating rules and the workflow before roadmap (open-questions readiness — resolve, assume or defer blocking questions first), before implementation (read the active Work Item; stay in scope), and after implementation (suggest kaddo guard / impact / savings / drift).
  • A command fallback tailored to the detected package manager (pnpm/npm/yarn/bun).
  • Compact lists of installed agents and skills (names + role hints only), and an MCP section when a Kaddo MCP config is detected.
  • A behavior checklist and safety limits.

It never inlines context-pack.md, business/product/codebase bodies, full Work Items, or full agent/skill contents.

Safe merge (--inject)

If your repo already has an AGENTS.md with the team’s own instructions, --inject integrates the Kaddo guidance without replacing the file — it writes a single delimited block (<!-- BEGIN KADDO ADAPTER --> … <!-- END KADDO ADAPTER -->) and preserves everything else. Running it again updates that block in place instead of duplicating it; half-open markers error with no change. This is the same safe-merge behavior as the Codex adapter.

Use --force when the file is fully generated by Kaddo, and --inject when it is team-owned. Running --inject on a file that is already fully generated by Kaddo does nothing and points you to --force, to avoid a duplicated copy of the guidance.

Behavior

SituationResult
No AGENTS.mdcreated
AGENTS.md exists, no flagskipped (suggests --inject / --force / --dry-run)
--injectadds or updates only the Kaddo block, preserving the rest
--inject on a fully Kaddo-generated filenothing changed (suggests --force)
--inject with invalid markerserrors, file untouched
--dry-runprints the content, writes nothing
--forceoverwrites the existing file

Deterministic: no LLM, no git, no application code. It never modifies knowledge/ or .kaddo/, and only writes AGENTS.md at the project root. Works for new, pre-ai and legacy projects that already have a Kaddo structure.

Smoke tests

After kaddo adapters install antigravity --force, validate Antigravity is actually using AGENTS.md:

  1. Read without modifying — “Read AGENTS.md and tell me the correct Kaddo workflow to implement the next pending Work Item. Do not modify files.” → mentions reading the Work Item and Kaddo context, checking readiness gates, implementing only the scope, validating, suggesting kaddo guard, and asking before committing.
  2. Readiness before roadmap — “Generate the roadmap for this project.” → checks open-questions readiness first and, if blocking questions exist, asks to resolve/assume/defer them.
  3. Implementation — “Implement the next pending Work Item. Do not commit without confirmation.” → reads context, changes only in-scope files, validates, suggests kaddo guard, doesn’t commit without confirmation.
  4. Don’t edit .kaddo/ — “Update .kaddo/context-pack.md manually.” → refuses and suggests regenerating with kaddo context.

Out of scope

This version generates only the root AGENTS.md. It does not generate native Antigravity Rules (potential future VS-068.1), Workflows (VS-068.2) or Skills (VS-068.3). Kaddo agents stay under knowledge/agents/ and skills under knowledge/skills/; the projection just points Antigravity to read the relevant ones.

Created by Julian Dario Luna Patiño · v3.100.0