@nandhaalagesan/zerogravity
v1.3.1
Published
Ultra-compact autonomous supercoder OS framework installer for Google Antigravity
Maintainers
Readme
🌌 ZeroGravity OS
Autonomous Supercoder OS • Zero-Default MCPs • 28 Workflows
Install • Workflows • MCPs • Memory • Developer
⚡ Install
# Deploy into current workspace
npx @nandhaalagesan/zerogravity
# Deploy into a specific project
npx @nandhaalagesan/zerogravity /path/to/my-project -y
# Deploy everywhere (workspace + global config)
npx @nandhaalagesan/zerogravity --all -y
# Update existing workspace (preserves your memory & configs)
npx @nandhaalagesan/zerogravity update
# Or install globally
npm install -g @nandhaalagesan/zerogravityWhat it does: Copies the .agents/ framework into your project root. That's it — no daemons, no config files to manage, no build steps.
Direct copy
cp -r .agents /path/to/any/project/Self-extracting installer
./install.sh --local -y # Workspace only
./install.sh --global -y # Global (~/.gemini/config/)
./install.sh --all -y # Both
</details>
---
## 💬 Workflows
20 specialized slash commands organized by developer intent:
### 🔨 Build & Ship
| Command | What it does |
|:---|:---|
| `/build-feature` | 5-stage supercoding pipeline: Context Sweep → Blueprint → CodeCrush → AAA Test → Sync |
| `/harness` | Harness² Recursive Agent Harnessing: optimize c1..c8 via Propose-Probe-Compose recursion |
| `/spec` | Spec before code: requirements interrogation, PRD, and testable interfaces |
| `/create` | Scaffold a new application from scratch |
| `/enhance` | Add or update features in an existing app |
| `/ship` | Pre-launch multi-specialist verification fan-out & Go/No-Go decision |
### 🧠 Think
| Command | What it does |
|:---|:---|
| `/brainstorm` | Structured multi-option brainstorming before implementation |
| `/codebase-design` | Deep module design: interfaces, seams, testability |
| `/domain-model` | Build domain terminology and ubiquitous language |
| `/orchestrate` | Coordinate multiple perspectives for complex architectural tasks |
| `/reach` | Universal internet router across 16 platforms (Twitter, Reddit, YouTube, Bilibili, GitHub, Exa, Jina) |
### 🐛 Verify & Review
| Command | What it does |
|:---|:---|
| `/review` | 5-axis code review: correctness, readability, architecture, security, performance |
| `/webperf` | Web performance and Core Web Vitals audit (Lighthouse/CrUX metrics) |
| `/debug` | Systematic root-cause investigation |
| `/test` | Generate and run tests (unit, integration, E2E) |
| `/deploy` | Pre-flight checks + deployment execution |
| `/audit-agent` | Independent iFixAi safety, alignment, and accuracy audit |
### 🎨 Design
| Command | What it does |
|:---|:---|
| `/design-ui` | Plan and implement UI with modern design patterns |
| `/react-components` | Search and install 1,105+ ReUI/shadcn components |
### ⚙️ Control
| Command | What it does |
|:---|:---|
| `/effort-low` | Fire & forget — act immediately, skip plans |
| `/effort-mid` | Balanced default — research enough, then act |
| `/effort-high` | Thorough — full context sweep, verify everything |
| `/effort-ultra` | Leave nothing unchecked — exhaustive analysis |
| `/mcp` | Enable/disable/list MCP servers on demand |
| `/skill` | Search and activate specialized skills from 1,450+ library |
### 📝 Communication & Pragmatism
| Command | What it does |
|:---|:---|
| `/focus` | Action-first output: numbered steps, no tangents, time estimates |
| `/humanize-text` | Strip AI slop patterns, preserve human voice |
| `/compress-tokens` | Ultra-compressed mode — ~75% fewer tokens |
| `/yagni-simplify` | Lazy senior dev mode — eliminate over-engineering |
> **Native Antigravity Built-ins**: `/plan` (interactive planning), `/goal` (autonomous run-until-done), `/grill-me` (Socratic plan alignment), `/schedule`, `/learn`.
---
## 🔬 Harness² Recursive Agent Harnessing
Built on Google Research's *Harness²: Recursive Agent Harnessing for an Open World* ([arXiv:2610.14224](https://arxiv.org/abs/2610.14224)), ZeroGravity OS exposes and recursively optimizes the **8 editable harness components** around the model:
| Component | Identifier | Location | Levers |
|---|---|---|---|
| **c1** | System Prompt | `AGENTS.md` | Root agent definition and high-level execution directives |
| **c2** | Guardrails | `.agents/rules/` | Behavioral fences, effort levels (`core.md`, `effort.md`) |
| **c3** | Memory | `.agents/memory/` | Durable invariants, gotchas, anti-patterns, learned strategies |
| **c4** | Tool Guidance | `.agents/mcp_config.json` | MCP server registry, parameter contracts, tool routing |
| **c5** | Subagents | `.agents/plugins/agent-skills/agents/` | Persona specialists running in isolated sub-contexts |
| **c6** | Skills | `.agents/skills/` | On-demand procedural workflows and domain playbooks |
| **c7** | Scripts | `.agents/scripts/` | Deterministic CLI tools (`harness.py`, `analyze.py`, `learn.py`) |
| **c8** | Plugins & Hooks | `.agents/hooks/` + `.agents/plugins/` | Runtime lifecycle interceptors and middleware bundles |
### 🔄 Propose–Probe–Compose (PPC) Loop
When facing hard tasks or failure loops, the agent recursively mutates its harness:
1. **Propose**: Generate paired Invariant (`INV`) and Domain (`DOM`) candidate mutations.
2. **Probe**: Execute candidate configurations to establish behavioral contrast (zero ground truth needed).
3. **Compose**: Synthesize winning modifications into the live `.agents/` environment.
4. **Reflect**: Record adopted configurations and lessons into the persistent **Experience Ledger** (`.agents/memory/harness_ledger.json`).
```bash
# Check 8-component status and character budget
zg harness status
# Generate contrastive PPC proposals for a task
zg harness propose --task "Refactor auth middleware to use OAuth2" --record
# Inspect Experience Ledger history
zg harness ledger summary🔌 MCP Servers
12 verified servers, zero running at startup. Enable what you need:
npx @nandhaalagesan/zerogravity mcp list # Browse catalog (or 'zg mcp list')
npx @nandhaalagesan/zerogravity mcp enable <name> # Activate a server
npx @nandhaalagesan/zerogravity mcp disable <name> # DeactivateOr via slash command in chat: /mcp enable playwright
⚡ Zero-Config (enable instantly)
| Server | Category | Description |
|:---|:---|:---|
| playwright | Testing | Headless browser automation, visual snapshots & E2E testing |
| chrome-devtools | Browser | Live Chrome DOM inspection, Lighthouse audits |
| serena | Code Intel | Semantic AST navigation, project memory & refactoring |
| docker-gateway | Containers | Docker container lifecycle, sandbox builds |
| shadcn | Frontend | Shadcn UI registry component discovery and installation |
| reui | Frontend | ReUI 1,105+ React components, blocks, and motion icons |
🔑 Bring-Your-Key
| Server | Category | Description | Setup |
|:---|:---|:---|:---|
| context7 | Docs | Real-time library documentation resolver | Upstash Context7 API key |
| magic | Frontend | 21st.dev Magic UI design inspiration & generation | Free 21st.dev API key |
| github | VCS | Issues, PRs, repository search & automation | GITHUB_TOKEN |
| supabase | Database | Project management, migrations & SQL | Supabase access token |
| neon | Database | Serverless Postgres branching & SQL | Neon API key |
| sentry | Observability | Error telemetry, performance traces | Sentry auth token |
🧠 Memory Tree
Persistent knowledge lives in .agents/memory/ and survives across sessions and updates:
.agents/memory/
├── decisions.md # Architecture decisions and design patterns
├── gotchas.md # Framework quirks, known bugs, workarounds
├── goals.md # Active milestones and deliverables
└── anti_patterns.json # Failed approaches to never repeatLearning is automatic — on every correction, error recovery, or success, the agent distills lessons into memory without manual intervention.
🛠️ Developer Tooling
make help # View all commands
make pack # Bundle into standalone install.sh
make test # Run test suite
make lint # Python syntax validation
make clean # Remove caches and build artifacts📁 Structure
.agents/
├── workflows/ # 20 slash command workflows
├── rules/ # Core behavioral rules
├── memory/ # Persistent decisions, gotchas, goals
├── scripts/ # CLI tools and automation
├── skills/ # Specialized instruction sets
├── plugins/ # Extensible plugin bundles (ponytail)
└── mcp-registry/ # 12 verified MCP servers + catalog