Installation is a user-authorized operation. Reading this document does not authorize an AI assistant to modify global configuration.
| Installer choice | Host | Default namespace |
|---|---|---|
| 1 | Gemini | ~/.gemini/antigravity |
| 2 | Codex | ~/.codex/antigravity |
| 3 | Cursor | ~/.cursor/rules/antigravity |
| 4 | Windsurf | ~/.codeium/windsurf/memories/antigravity |
| 5 | OpenCode | ~/.config/opencode/antigravity |
Each host receives a generated adapter payload. Canonical global/ source is never installed directly.
- Inspect the selected installer or use the development CLI.
- Run a dry-run.
- Review the host, payload, exact target, changes, and backup path.
- Approve the real installation explicitly.
- Verify the adapter-declared instruction file exists after activation.
The installer may replace only the dedicated antigravity namespace. It never clears its shared parent. An existing namespace is staged and backed up under .antigravity-backups/; unrelated files in the parent remain untouched. Failed activation restores the backup.
Gemini uses the generated GEMINI.md adapter payload. Preview and approve the normal namespaced install:
.\install.ps1 -IDE 1 -DryRun
.\install.ps1 -IDE 1 -YesThe canonical source remains in the repository; Gemini receives a generated copy under its antigravity namespace.
# Preview; no target files are written
.\install.ps1 -IDE 2 -DryRun
# Install Codex after reviewing the preview
.\install.ps1 -IDE 2 -YesFor a custom parent, identify the host explicitly:
.\install.ps1 -GlobalConfig C:\path\to\host-config -TargetHost codex -DryRun
.\install.ps1 -GlobalConfig C:\path\to\host-config -TargetHost codex -Yeschmod +x install.sh
./install.sh --ide 1 --dry-run
./install.sh --ide 1 --yesFor a custom parent:
./install.sh --global-config /path/to/host-config --host gemini --dry-run
./install.sh --global-config /path/to/host-config --host gemini --yesRelease packages contain prebuilt dist/<host>/ payloads and do not require Python. A source checkout without a payload requires Python 3.10 or newer so the installer can run:
python global/scripts/os.py build --host <host>If neither a prebuilt payload nor Python is available, installation stops without changing the target.
python global/scripts/os.py validate
python global/scripts/os.py build --host gemini
python global/scripts/os.py install --host gemini --target ~/.gemini --dry-run
python global/scripts/os.py install --host gemini --target ~/.gemini --yesCodex reads its global instructions from AGENTS.md, not from GEMINI.md and not from an arbitrary namespace. Build and review the direct Codex layout before installing it:
python global/scripts/os.py build --host codex
python global/scripts/os.py install --host codex --target ~/.codex --codex-global --dry-run
python global/scripts/os.py install --host codex --target ~/.codex --codex-global --yesThe installer keeps a complete generated copy at ~/.codex/antigravity/, records the backup in ~/.codex/antigravity/installation.json, and does not modify config.toml, config.json, permissions, plugins, or unrelated files. Start a new Codex task after installation so the global instructions reload.
Use --profile spatial only for interior, showroom, gallery, luxury-home, furniture, decor, staging, or architecture-adjacent work. General engineering is the default.
The adapter's content_root, instruction_target, skills_target, and workflows_target determine the exact layout. For example:
- Gemini installs
GEMINI.mdwith canonical content at the namespace root. - Codex installs
AGENTS.mdat the namespace root and canonical content under.agents/. - Cursor, Windsurf, and OpenCode use their adapter-declared instruction and discovery paths.
Every payload also includes adapter.json, profile.json, the manifest snapshot, baselines, schemas, context templates, skills, workflows, and their required references.
Do not edit global templates with project facts. Copy only the needed templates into the project:
.agents/contexts/
Set status: active, the project ID, update time, owner, and confidence. Until then, the files remain scaffolds rather than project truth.
Read MIGRATION.md before upgrading a version 2 installation. Do not manually merge the removed duplicate workflow tree or restore machine-local project registration files.