antigravity-ai-kit
v3.10.1
Published
π Trust-Grade AI development framework with a 29-module runtime engine β 20 Agents, 34 Skills, 37 Commands, 21 Workflows, 9 Rules, 349 Tests. Workflow enforcement, task governance, agent reputation, self-healing, and skill marketplace.
Maintainers
Readme
π Antigravity AI Kit
π 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 nextjsCreates 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 applyingPrefer
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 β /deployEach 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 checklistThe 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 commitsEnding a Session:
Follow the session-end checklistThe 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.
