🚀 Antigravity AI Kit
🎯 Transform Your IDE into an AI Engineering Team
Antigravity AI Kit is a Trust-Grade AI development framework with a 29-module runtime engine, 20 specialized agents, 37 commands, 34 skills, and 21 workflows — all backed by 349 tests and governance-first principles.
🚀 Quick Start • 🤖 Agents • 🛠️ Skills • ⌨️ Commands • 🔄 Sessions • ⚖️ Governance • 📖 Contributor Guide
📚 Table of Contents
- What is Antigravity AI Kit?
- Key Features
- Quick Start
- Architecture
- Agents
- Commands
- Skills
- Runtime Engine
- Workflows
- Operating Constraints
- Session Management
- How to Extend
- Contributor Guide
- Acknowledgments
🤔 What is Antigravity AI Kit?
Antigravity AI Kit transforms your IDE into a virtual engineering team with:
| Feature | Count | Description |
|---|---|---|
| 🤖 AI Agents | 20 | Specialized roles (Mobile, DevOps, Database, Security, Performance...) |
| 🛠️ Skills | 34 | Domain knowledge modules (API, Testing, MCP, Architecture, Docker...) |
| ⌨️ Commands | 37 | Slash commands for every development workflow |
| 🔄 Workflows | 21 | Process templates (/create, /debug, /deploy, /pr, /pr-merge, /test...) |
| ⚙️ Runtime | 29 | Runtime engine modules (governance, reputation, self-healing...) |
| ✅ Checklists | 4 | Quality gates (session-start, session-end, pre-commit, task-complete) |
| ⚖️ Rules | 9 | Modular governance constraints (coding, security, testing, git, docs, sprint) |
| 🔗 Hooks | 8 | Event-driven automation (runtime + git-hook enforcement) |
| 🧪 Tests | 349 | Unit, structural, integration, and security tests (34 test files) |
✨ Key Features
- 🔒 Trust-Grade Governance:
/explore → /plan → /work → /review— Each iteration builds context - 🤖 Multi-Agent System: 20 specialized agents that collaborate (Mobile Developer, DevOps, Database Architect, Sprint Orchestrator...)
- ⚙️ Runtime Engine: 29 modules enforcing workflow transitions, task governance, agent reputation, self-healing, and marketplace
- 📦 Context as Artifact: Persistent markdown files for plans, specs, and decisions
- 🔄 Continuous Learning: PAAL cycle extracts patterns from every session
- 🛡️ Security First: Built-in secret detection, vulnerability scanning, and compliance checks
Core Philosophy
"Trust > Optimization. Safety > Growth. Explainability > Performance."
⚡ Quick Start
Option 1: Create New Project (Recommended)
npx create-antigravity-app my-project
npx create-antigravity-app my-api --template node-api
npx create-antigravity-app my-app --template nextjs
Creates a new project with .agent/ pre-configured. Templates: minimal, node-api, nextjs.
Option 2: Add to Existing Project
npx antigravity-ai-kit init
🔄 Updating
ag-kit update # Non-destructive — preserves your customizations
ag-kit update --dry-run # Preview changes without applying
Prefer
ag-kit updateoverag-kit init --force. The update command preserves your session data, ADRs, learning contexts, and customizations. Useinit --forceonly for clean reinstalls.
✅ Verify Installation
ag-kit verify # Manifest integrity check
ag-kit scan # Security scan
🛡️ Safety Guarantees
Antigravity AI Kit is designed to never touch your project files. All operations are scoped to the .agent/ directory.
| Your Project Files | Safe? | Details |
|---|---|---|
Source code (src/, lib/, app/) |
✅ Never touched | Init/update only operates on .agent/ |
Config files (.env, package.json) |
✅ Never touched | No project config is read or written |
Documentation (docs/, README.md) |
✅ Never touched | Only .agent/ docs are managed |
Tests (tests/, __tests__/) |
✅ Never touched | Kit tests are internal to the package |
Platform files (android/, ios/) |
✅ Never touched | No platform-specific operations |
init --force safety features (v3.3.1+):
- 🔒 Auto-backup: Creates timestamped backup of existing
.agent/before overwriting - ⚛️ Atomic copy: Uses temp directory + rename to prevent corruption on failure
- 🔗 Symlink guard: Skips symbolic links to prevent path traversal attacks
- ⚠️ Session warning: Alerts if active work-in-progress would be destroyed
- 🔍 Dry-run preview:
--dry-run --forceshows exactly which user files would be overwritten
update preserved files:
session-context.md— Your active session notessession-state.json— Your session metadatadecisions/— Your Architecture Decision Recordscontexts/— Your learning data and plan quality logs
🏗️ Architecture Overview
┌─────────────────────────────────────────────────────────────────────┐
│ USER INTERFACE LAYER │
│ ┌─────────────────────────┐ ┌─────────────────────────┐ │
│ │ Slash Commands (37) │ │ Workflows (21) │ │
│ └────────────┬────────────┘ └────────────┬────────────┘ │
├───────────────┼────────────────────────────┼────────────────────────┤
│ ▼ INTELLIGENCE LAYER ▼ │
│ ┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐ │
│ │ Intelligent │ │ Workflow State │ │ Context Budget │ │
│ │ Router │ │ Machine │ │ Engine │ │
│ └────────┬─────────┘ └──────────────────┘ └──────────────────┘ │
├───────────┼────────────────────────────────────────────────────────-┤
│ ▼ AGENT LAYER (20) │
│ ┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐ │
│ │ Core Agents │ │ Domain Agents │ │ Support Agents │ │
│ │ Planner │ │ Mobile Dev │ │ Security │ │
│ │ Architect │ │ Frontend │ │ Performance │ │
│ │ Code Reviewer │ │ Backend │ │ Docs, Explorer │ │
│ │ TDD Specialist │ │ DB, DevOps │ │ Knowledge │ │
│ └────────┬─────────┘ └────────┬─────────┘ └────────┬─────────┘ │
├───────────┼─────────────────────┼─────────────────────┼────────────┤
│ ▼ SKILL LAYER (34) ▼ │
│ ┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐ │
│ │ Orchestration │ │ Operational │ │ Domain Skills │ │
│ │ Routing, Modes │ │ Verification │ │ API, Testing │ │
│ │ Parallel Agents │ │ Learning, Budget │ │ Security, MCP │ │
│ └────────┬─────────┘ └────────┬─────────┘ └────────┬─────────┘ │
├───────────┼─────────────────────┼─────────────────────┼────────────┤
│ ▼ GOVERNANCE LAYER ▼ │
│ ┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐ │
│ │ rules/ (8) │ │ hooks.json │ │ manifest.json │ │
│ │ Governance │ │ 7 Event Hooks │ │ Integrity Check │ │
│ └──────────────────┘ └──────────────────┘ └──────────────────┘ │
├─────────────────────────────────────────────────────────────────────┤
│ RUNTIME ENGINE (29 modules) │
│ workflow-engine · session-manager · task-governance │
│ agent-reputation · self-healing · marketplace · + 15 more │
└─────────────────────────────────────────────────────────────────────┘
How It Works: The Autonomy Engine
Antigravity AI Kit uses a 7-phase workflow state machine that guides development:
EXPLORE → PLAN → IMPLEMENT → VERIFY → CHECKPOINT → REVIEW → DEPLOY
| Phase | What Happens | Transition Guard |
|---|---|---|
| EXPLORE | Codebase discovery, research | Exploration artifact exists |
| PLAN | Implementation plan with user approval | Plan approved by user |
| IMPLEMENT | Code generation with agent routing | Auto on commit |
| VERIFY | Quality gates, tests, lint | All gates pass |
| CHECKPOINT | Developer decision gate | Explicit developer choice |
| REVIEW | Code review (human or Copilot) | Review approved |
| DEPLOY | Production deployment | Deployment checklist complete |
Intelligent Routing: The kit analyzes your request keywords (including implicit security triggers like "login", "payment", "upload") and automatically loads the right agents and skills (max 4 agents + 8 skills per session to stay within context budgets). Planning workflows use protected budget enforcement — mandatory skills survive trimming even when over budget.
🤖 Agents (20)
Core Development
| Agent | Role | Triggers |
|---|---|---|
| Architect | System design, patterns | architecture, design, scalability |
| Code Reviewer | Quality assurance | review, quality, best practices |
| TDD Specialist | Test-driven development | test, tdd, coverage |
Domain Specialists
| Agent | Role | Triggers |
|---|---|---|
| Mobile Developer | iOS/Android patterns | mobile, react-native, expo |
| Frontend Specialist | React, Vue, UI/UX | frontend, component, styling |
| Backend Specialist | Node.js, NestJS, APIs | backend, api, server |
| Database Architect | Schema, queries, optimization | database, prisma, sql |
| DevOps Engineer | CI/CD, Docker, deployment | devops, docker, deploy |
| Security Auditor | Vulnerabilities, compliance | security, auth, audit |
| Performance Engineer | Optimization, profiling | performance, speed, metrics |
Support & Intelligence
| Agent | Role | Triggers |
|---|---|---|
| Documentation Writer | Docs, READMEs, guides | documentation, readme |
| Build Error Resolver | Rapid build fixes | build, error, compile |
| Refactorer | Code cleanup, optimization | refactor, cleanup |
| Explorer Agent | Codebase discovery | explore, scout, discover |
| Knowledge Agent | RAG retrieval | knowledge, search, context |
Autonomy Agents
| Agent | Role | Triggers |
|---|---|---|
| Planner | Multi-agent plan synthesis, tiered quality schema, specialist coordination | plan, breakdown, requirements |
| PR Reviewer | Pull request review & fixes | pr, pull-request, review |
| Sprint Orchestrator | Sprint planning, velocity | sprint, roadmap, velocity |
| Reliability Engineer | SRE, production readiness | reliability, SLA, monitoring |
⌨️ Commands (37)
Core Workflow
| Command | Description |
|---|---|
/plan |
Create implementation plan |
/implement |
Execute the plan |
/verify |
Run all quality gates |
/status |
Check project status |
Development
| Command | Description |
|---|---|
/build |
Build a new feature |
/fix |
Fix linting/type errors |
/debug |
Systematic debugging |
/refactor |
Improve code quality |
/cook |
Full scratch-to-done workflow |
Documentation & Git
| Command | Description |
|---|---|
/doc |
Generate documentation |
/adr |
Create architecture decision |
/changelog |
Generate changelog |
/git |
Git operations |
/pr |
Create/manage pull requests |
/pr-review |
Automated PR code review |
/pr-fix |
Auto-fix PR review findings |
/pr-merge |
Safe PR merge with validation |
/pr-split |
Split oversized PRs |
/pr-status |
PR triage and merge readiness |
/pr-describe |
Auto-generate PR description |
Exploration & Research
| Command | Description |
|---|---|
/scout |
Explore codebase |
/research |
Research technologies |
/ask |
Ask questions about code |
Quality & Security
| Command | Description |
|---|---|
/code-review |
Run code review |
/tdd |
Test-driven development |
/security-scan |
Security audit |
/perf |
Performance analysis |
Integration & Deployment
| Command | Description |
|---|---|
/integrate |
Third-party integrations |
/db |
Database operations |
/deploy |
Deploy to environment |
/design |
UI/UX design |
Context Management
| Command | Description |
|---|---|
/learn |
Extract patterns |
/checkpoint |
Save progress |
/compact |
Compress context |
/eval |
Evaluate metrics |
/setup |
Configure project |
/help |
Comprehensive reference — commands, workflows, agents, skills, rules, checklists |
🛠️ Skills (34)
Operational Skills (6)
| Skill | Purpose |
|---|---|
production-readiness |
Production readiness audits |
verification-loop |
Continuous quality gates |
continuous-learning |
Pattern extraction (PAAL) |
strategic-compact |
Context window management |
eval-harness |
Performance evaluation |
context-budget |
Active token budget management |
Orchestration Skills (4)
| Skill | Purpose |
|---|---|
intelligent-routing |
Auto agent selection |
parallel-agents |
Multi-agent orchestration |
behavioral-modes |
Adaptive AI operation |
mcp-integration |
MCP server integration |
Domain Skills (13)
| Skill | Purpose |
|---|---|
api-patterns |
RESTful API design |
architecture |
System design patterns |
clean-code |
Code quality principles |
database-design |
Schema optimization |
testing-patterns |
TDD, unit, integration |
typescript-expert |
Advanced TypeScript |
frontend-patterns |
React, component design |
nodejs-patterns |
Backend patterns |
debugging-strategies |
Systematic debugging |
security-practices |
OWASP, vulnerability prevention |
docker-patterns |
Containerization |
git-workflow |
Branching, commits |
i18n-localization |
Internationalization patterns |
Development Skills (11)
| Skill | Purpose |
|---|---|
app-builder |
Full-stack scaffolding |
mobile-design |
Mobile UI/UX patterns |
webapp-testing |
E2E, Playwright testing |
deployment-procedures |
CI/CD, rollback |
performance-profiling |
Core Web Vitals |
brainstorming |
Socratic discovery |
plan-writing |
Structured planning with tiered quality schema |
plan-validation |
Quality gate with completeness scoring |
shell-conventions |
PowerShell/Bash conventions |
pr-toolkit |
PR review & fix workflows |
ui-ux-pro-max |
Premium UI/UX design system |
⚙️ Runtime Engine (29 Modules)
Antigravity AI Kit v3.2.0 includes a full runtime engine built across 4 phases — all using Node.js built-ins with zero external dependencies.
Phase 1 — Foundation Hardening
| Module | Purpose |
|---|---|
workflow-engine |
Runtime state machine enforcement |
session-manager |
Active session state management |
verify |
Manifest integrity verification |
updater |
Diff-based CLI update |
error-budget |
Error budget tracking with metrics |
Phase 2 — Runtime Engine
| Module | Purpose |
|---|---|
workflow-persistence |
Persistent state + checkpoints |
agent-registry |
Agent contract validation |
loading-engine |
Keyword matching + implicit triggers + context budget |
hook-system |
Event-driven lifecycle hooks |
task-model |
Task CRUD with status tracking |
Phase 3 — Collaboration & Security
| Module | Purpose |
|---|---|
identity |
Developer identity system |
task-governance |
Locking, assignment, audit trail |
skill-sandbox |
Runtime skill permission enforcement |
conflict-detector |
Agent conflict detection |
security-scanner |
Runtime injection & secret scanning |
plugin-system |
Full plugin lifecycle management |
Phase 4 — Platform Leadership
| Module | Purpose |
|---|---|
agent-reputation |
Score tracking, trends, rankings |
engineering-manager |
Sprint planning, auto-assignment |
self-healing |
CI failure detection & JSON patch generation |
marketplace |
Community skill search & install |
cli-commands |
Extracted CLI handlers for marketplace & heal |
🔄 Workflows (21)
| Workflow | Description | Command |
|---|---|---|
| brainstorm | Creative ideation | /brainstorm |
| create | Scaffold new features | /create |
| debug | Systematic debugging | /debug |
| deploy | Deployment process | /deploy |
| enhance | Improve existing code | /enhance |
| orchestrate | Multi-agent coordination | /orchestrate |
| plan | Implementation planning | /plan |
| pr | Production-grade PR creation | /pr |
| pr-review | Automated PR code review | /pr-review |
| pr-fix | Auto-fix PR review findings | /pr-fix |
| pr-merge | Safe PR merge with validation | /pr-merge |
| pr-split | Split oversized PRs | /pr-split |
| preflight | Production readiness assessment | /preflight |
| preview | Preview changes | /preview |
| quality-gate | Pre-task validation | /quality-gate |
| retrospective | Sprint audit & review | /retrospective |
| review | Code review pipeline | /review |
| status | Project status check | /status |
| test | Test writing workflow | /test |
| ui-ux-pro-max | Premium UI design | /ui-ux-pro-max |
| upgrade | Non-destructive framework updates | /upgrade |
⚖️ Operating Constraints
Immutable Rules
- Trust > Optimization — Never compromise trust for speed
- Safety > Growth — Prevent harm before enabling capability
- No Memory of Previous Sessions — Treat each session as fresh
- Explainability > Performance — Be transparent about decisions
- Human Override Always Available — User can always interrupt
Governance Protocol
/explore → /plan → /work → /review → /deploy
Each phase requires explicit approval before proceeding.
🔄 Session Management
The secret to 10x productivity: Never lose context between sessions.
Antigravity AI Kit includes a robust Session Management Architecture that ensures continuity across work sessions. This is what separates casual AI usage from Trust-Grade AI development.
How It Works
┌─────────────────────────────────────────────────────────────────────┐
│ SESSION LIFECYCLE │
├─────────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Session │ ───► │ WORK │ ───► │ Session │ │
│ │ Start Hook │ │ SESSION │ │ End Hook │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Load Context │ │ Pre-Commit │ │ Save State │ │
│ │ Verify Env │ │ Quality Gate │ │ Handoff Docs │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────┘
Key Components
| Component | Purpose | Location |
|---|---|---|
| Session Context | Live session state, resumable | .agent/session-context.md |
| Session Start Checklist | Pre-flight verification | .agent/checklists/session-start.md |
| Session End Checklist | Wrap-up and handoff | .agent/checklists/session-end.md |
| Pre-Commit Checklist | Quality gate before commits | .agent/checklists/pre-commit.md |
Usage
Starting a Session:
Follow the session-start checklist
The AI will:
- ✅ Load previous session context
- ✅ Verify git status and branch
- ✅ Check dependencies and build
- ✅ Resume from last open task
During Work:
/verify # Run quality checks before commits
Ending a Session:
Follow the session-end checklist
The AI will:
- ✅ Update session-context.md with progress
- ✅ Document open items and next steps
- ✅ Commit all changes
- ✅ Create handoff notes
Productivity Benefits
| Benefit | Description |
|---|---|
| Zero Ramp-Up Time | Context loads automatically, resume instantly |
| No Lost Work | State persisted across sessions |
| Consistent Quality | Same quality gates every time |
| Clean Handoffs | Anyone can continue your work |
| Audit Trail | Every session documented |
Example Session Context
# AI Session Context
## Last Session Summary
**Date**: February 5, 2026
**Focus**: User authentication feature
### What Was Done
- ✅ Implemented JWT refresh tokens
- ✅ Added login/logout endpoints
- [ ] Email verification (in progress)
### Open Items
1. [ ] Complete email verification
2. [ ] Add password reset flow
## Quick Resume
cd my-project && npm run dev
🔧 How to Extend
Adding Custom Agents
## <!-- .agent/agents/my-agent.md -->
name: my-agent
description: Custom agent description
triggers: [keyword1, keyword2]
---
# My Agent
Instructions for the agent...
Adding Custom Skills
## <!-- .agent/skills/my-skill/SKILL.md -->
name: my-skill
description: What this skill does
triggers: [context, keywords]
---
# My Skill
## Overview
...
## Workflow
...
Adding Custom Commands
## <!-- .agent/commands/my-command.md -->
## description: What this command does
# /my-command
Usage and instructions...
📁 Repository Structure
antigravity-ai-kit/
├── .agent/ # Core AI Kit
│ ├── agents/ # 20 specialized agents
│ ├── commands/ # 37 slash commands
│ ├── skills/ # 34 capability modules
│ ├── workflows/ # 21 process templates
│ ├── engine/ # Autonomy Engine (state machine, loading rules, configs)
│ ├── hooks/ # 8 event hooks (runtime + git-hook)
│ ├── rules/ # 9 modular governance rules
│ ├── checklists/ # Verification checklists (4)
│ ├── templates/ # ADR, feature-request, bug-report templates
│ ├── decisions/ # Architecture Decision Records
│ └── manifest.json # Machine-readable capability registry
├── lib/ # Runtime Engine (29 modules)
│ ├── workflow-engine.js # State machine enforcement
│ ├── task-governance.js # Locking, audit trail, decision timeline
│ ├── agent-reputation.js # Score tracking & rankings
│ ├── self-healing.js # CI failure detection & patch generation
│ ├── marketplace.js # Community skill marketplace
│ └── + 16 more modules # Identity, plugins, hooks, registry...
├── bin/ # CLI (ag-kit)
├── create-antigravity-app/ # Project scaffolder (separate npm package)
├── tests/ # Test suites (349 tests, 34 files)
│ ├── unit/ # Module tests (loading-engine, self-healing, plugins...)
│ ├── structural/ # Inventory + schema validation
│ └── security/ # Injection scan + leakage detection
├── docs/ # MkDocs documentation site
├── .github/workflows/ # CI pipeline
├── .githooks/ # Secret detection pre-commit hook
├── README.md # This file
├── LICENSE # MIT License
└── CHANGELOG.md # Version history
🤝 Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Development Workflow
- Fork the repository
- Create a feature branch
- Make your changes
- Run verification:
/verify - Submit a pull request
📄 License
MIT License — See LICENSE for details.
👤 Author
Emre Dursun — Full-Stack Automation Engineer | AI Development Specialist
Creator of BeSync and the Trust-Grade AI Governance framework
🔗 Links
- Repository: github.com/besync-labs/antigravity-ai-kit
- Documentation: besync-labs.github.io/antigravity-ai-kit
- Origin: Derived from BeSync Trust-Grade AI Governance
📖 Contributor Guide
Want to use Antigravity AI Kit in your project? The Contributor Guide covers the full end-to-end lifecycle:
| Phase | What You’ll Learn |
|---|---|
| Onboard | Install with ag-kit init, verify with ag-kit status |
| Identity | Set up developer identity with role-based access |
| Sprint Planning | Create sprints, define tasks, auto-assign agents |
| Task Management | Lifecycle: pending → in_progress → review → completed |
| Development | Trust-Grade workflow: /explore → /plan → /work → /review |
| Quality Gates | 5-gate pipeline: lint, types, tests, security, build |
| Completion | Sprint retrospective, tracking updates, next sprint |
🙏 Acknowledgments
- Initial patterns from vudovn/antigravity-kit
- Command structure inspired by nth5693/gemini-kit
- Context-driven development from Google Conductor
- Hook concepts from everything-claude-code
Antigravity AI Kit v3.5.0 extends these foundations with a 29-module runtime engine, Trust-Grade governance, session management, and 100+ capabilities.
Built with 💜 for developers who demand excellence