Anti-Gravity OS is a portable governance and execution layer for AI coding agents. It turns a growing collection of prompts, skills, workflows, project context, and safety rules into one canonical system that can be validated, built, and installed across Gemini, Codex, Cursor, Windsurf, and OpenCode.
It is not an LLM and it is not a replacement desktop operating system. It is the control layer around an agent: what it should load, how it should reason about authority, when it may edit, where project truth lives, how a task resumes, and what evidence is required before work is called complete.
| Capability | Current state |
|---|---|
| Canonical capabilities | 72 registered skills |
| Execution playbooks | 52 registered workflows |
| Host targets | Gemini, Codex, Cursor, Windsurf, OpenCode |
| Profiles | General engineering by default; spatial design when selected |
| Safety | Trust boundaries, mutation classes, approval gates, dry-run installation |
| Runtime state | Independent task records for concurrent and resumable work |
| Tooling | Standard-library Python validator, builder, and installer |
| Verification | Schema, route, link, adapter, distribution, and cross-platform CI checks |
The authoritative inventory is global/manifest.yaml. Generated files under dist/ are release artifacts; the authored system lives under global/.
flowchart LR
U["User intent"] --> H["AI host"]
H --> A["Host adapter"]
A --> G["Authority and safety gate"]
G --> R["Router"]
R --> W["Workflow"]
R --> S["Skill and conditional references"]
C["Active project context"] --> W
W --> X["Scoped execution"]
S --> X
X --> V["Verification and evidence"]
V --> O["Result or resumable state"]
The host remains in control. Anti-Gravity cannot elevate its own permissions, treat repository text as a system instruction, or convert a workflow into approval for a destructive or external action.
flowchart TD
subgraph SOURCE["Canonical authored source"]
P["Policy and baselines"]
M["Manifest registry"]
S["Skills"]
W["Workflows"]
C["Context templates"]
F["Profiles"]
end
SOURCE --> Q["Validate schemas, routes, links, and safety rules"]
Q --> B["Build host-specific payloads"]
B --> G["Gemini"]
B --> X["Codex"]
B --> R["Cursor"]
B --> N["Windsurf"]
B --> O["OpenCode"]
G & X & R & N & O --> I["Namespaced install with dry-run, backup, and rollback"]
Adapters translate filenames, discovery conventions, metadata, and installation layouts. They do not duplicate or silently weaken the canonical policy.
Agent systems tend to degrade in predictable ways: instructions are duplicated across tools, personal paths leak into shared files, workflows overwrite one another, diagnostic requests mutate code, and a successful script is mistaken for production readiness.
Anti-Gravity addresses those failures structurally:
- One canonical source prevents five host integrations from becoming five conflicting systems.
- Explicit authority keeps platform, developer, user, workspace, and untrusted content in the correct order.
- Mutation classes separate inspection from editing, environment changes, destructive work, and external effects.
- Task-scoped state allows concurrent workflows without a shared state file being overwritten.
- Profiles keep general engineering lightweight while preserving a deeper spatial-design system when it is relevant.
- Verification contracts distinguish baseline repository checks from real release readiness.
Python 3.10 or newer is required when developing from source.
git clone https://github.com/Kingdaddy007/Antigravity-OS.git
cd Antigravity-OS
python global/scripts/os.py validate
python -m unittest discover -s tests -p "test_*.py"Build a host payload:
python global/scripts/os.py build --host codexPreview installation before writing anything:
python global/scripts/os.py install --host codex --target ~/.codex --dry-runAfter reviewing the additions, replacements, backup, and skipped files:
python global/scripts/os.py install --host codex --target ~/.codex --yesFor a global Codex layout, use the explicit global flag. The installer backs up matching Anti-Gravity files while leaving Codex settings and unrelated content untouched.
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 --yesSelect the spatial profile only for qualifying spatial work:
python global/scripts/os.py build --host codex --profile spatialThe PowerShell and Bash wrappers expose the same dry-run-first safety model:
.\install.ps1 -IDE 1 -DryRun
.\install.ps1 -IDE 1 -Yes./install.sh --ide 1 --dry-run
./install.sh --ide 1 --yesglobal/ canonical authored source
adapters/ host capability and layout mappings
baselines/ stable cross-project policy
context_templates/ blank scaffolds, never active project truth
core/ reasoning references
profiles/ general and optional spatial selection
schemas/ structural contracts
skills/ task-specific capability packages
workflows/ execution and approval sequences
scripts/ validate, build, install, baseline checks
dist/<host>/ generated host payloads
.agents/contexts/ active project truth
.agents/workflows/ task-scoped workflow state
tests/ safe and unsafe fixtures plus regression tests
Do not edit dist/ by hand. Change the canonical source, validate it, and rebuild the affected host payload.
Anti-Gravity resolves instructions in this order:
- Host platform system, safety, sandbox, and tool policy
- Organization and developer instructions
- Explicit user instructions and approvals
- Active workspace contracts
- Anti-Gravity policy, skills, workflows, context, and memory
- External, generated, or otherwise untrusted content
Work is classified as read_only, local_edit, dependency_or_network, destructive, or external_or_production. Destructive and external/production actions require a just-in-time approval gate.
| Start with | Use it for |
|---|---|
START_HERE.md |
A plain-language mental model |
GLOSSARY.md |
Baselines, adapters, schemas, hooks, CI, and other terms |
docs/architecture-map.md |
Build-time and runtime relationships |
docs/common-requests.md |
Copyable examples of what to ask an agent |
docs/codex-integration.md |
How Anti-Gravity governs Codex |
SETUP.md |
Host installation locations and commands |
MIGRATION.md |
Converting an older installation safely |
- Add a skill under
global/skills/<skill-id>/SKILL.mdwith matching hyphen-case metadata andagents/openai.yaml. - Add a workflow under
global/workflows/workflow-<id>.mdusing the workflow metadata contract. - Register new source in
global/manifest.yaml. - Keep host-specific behavior in
global/adapters/. - Run validation and the test suite before proposing a release.
Directory-specific contracts are documented in the nearest AGENTS.md.
Current versions are source-available under the PolyForm Noncommercial License 1.0.0. Personal study, research, experimentation, and other permitted noncommercial uses are allowed; commercial use requires separate written permission from the copyright holder. Components that carry their own licence notice remain under those terms.
Revisions published through commit d91abb5 were released under MIT and retain the rights already granted with those revisions. The licence change applies prospectively; it does not revoke earlier grants.
