Each unit of engineering work should make subsequent units of work easierβnot harder.
A self-improving knowledge system for AI agents that enables compounding engineering capability through persistent learning, systematic workflows, and critical patterns.
This project is inspired by and pays tribute to the original Compound Engineering Plugin by Every Inc. Their pioneering work on persistent learning for Claude Code laid the foundation for this approach.
Key differences:
- Multi-agent support: Works with Google Gemini, Claude, and other AI agents
- Extended workflows: 38 workflows covering the full development lifecycle
- Observability: Built-in telemetry, metrics, and health dashboards
- Modular skills: Plug-and-play capabilities for different domains
The Antigravity Compound Engineering Plugin is a complete framework that transforms AI coding agents from session-to-session amnesiacs into learning partners that compound their capabilities over time. Every bug fixed, every pattern discovered, and every solution documented becomes permanent knowledge that makes future work faster and better.
- Requirements
- Features
- Quick Start
- How It Works
- Core Workflows
- Directory Structure
- Health Monitoring
- Example Skills
- FAQ
- Roadmap
- Contributing
- License
- Acknowledgments
- OS: macOS, Linux, or WSL (Windows Subsystem for Linux)
- Shell: Bash 4.0 or higher
- AI Agent: Google Gemini, Claude, or any agent supporting
GEMINI.mdconfiguration - Optional: Git (for version control and workflow automation)
- π Knowledge Base - Searchable solutions with YAML schema validation
- π 38 Workflows - From
/planto/compoundto/housekeeping - π οΈ 50+ Scripts - Automation for metrics, validation, and telemetry
- π§ 10+ Modular Skills - Session resume, compound docs, file todos, code review, testing, debugging, mobile, security, git, react
- π― 32 Critical Patterns - Antibodies against recurring mistakes
- π Health Dashboard - Daily metrics and compound system vitals
Click "Use this template" on GitHub, or:
git clone https://github.com/YOUR_USERNAME/antigravity-compound-engineering-plugin.git my-project
cd my-projectchmod +x setup.sh
./setup.shThis will:
- Set executable permissions on all scripts
- Create telemetry directories (
.agent/logs,.agent/metrics) - Prompt you for your project name and update
GEMINI.md
Point your AI agent (e.g., Google Gemini, Claude) to read GEMINI.md as its configuration file. This file defines the agent's behavior protocol, workflow bindings, and critical patterns.
# Check system health
./scripts/compound-dashboard.sh
# Search for existing solutions before solving problems
./scripts/compound-search.sh "your problem keywords"You should see output like this:
$ ./scripts/compound-dashboard.sh
π Compound System Dashboard
βββββββββββββββββββββββββββ
Solutions: 0 (Building knowledge...)
Patterns: 32 β
Workflows: 38 β
Health: Good βYour compound engineering system is now active! The agent will learn and improve with every task.
The compound system creates a virtuous cycle where each unit of work makes future work easier:
graph LR
A[π /explore<br/>Research] --> B[π /specs or /plan<br/>Design]
B --> C[βοΈ /work<br/>Implement]
C --> D[π /review<br/>Validate]
D --> E[π /compound<br/>Document]
E --> F[π§Ή /housekeeping<br/>Cleanup]
F --> A
E -.-> G[(Knowledge Base)]
G -.-> A
style G fill:#f9f,stroke:#333,stroke-width:2px
Key Insight: Every solved problem feeds the knowledge base, making similar problems trivial in the future.
| Command | When | Purpose |
|---|---|---|
/cycle |
For small complete tasks | Full lifecycle: plan β work β review β compound |
/explore |
Before planning | Deep investigation and multi-order analysis |
/specs |
For large multi-session work | Requirements, design, and phased task tracking |
/plan |
Before significant work | Research and create implementation plans |
/work |
During implementation | Execute plans systematically |
/review |
Before merging | Quality check with multiple perspectives |
/compound |
After solving problems | Capture knowledge for reuse |
/route |
Anytime (Unsure?) | Intelligent workflow routing based on intent |
/audit-security |
Before/After security work | Proactive threat modeling and code audit |
/refactor |
During structure work | Systematic, zero-risk structural improvement |
/release |
Before publishing | Unified pipeline for versioning/changelogs/docs |
/emergency |
During critical incidents | High-velocity hotfix path for outages |
/help |
Anytime | Unified help and discovery for all workflows |
/onboard |
Start of session | Establish context and prime the agent |
/housekeeping |
Before git push | Archive completed work, fix drift |
See .agent/workflows/README.md for complete documentation.
your-project/
βββ .agent/
β βββ logs/ # Telemetry tracking
β βββ metrics/ # Health snapshots
β βββ workflows/ # Workflow definitions
βββ docs/
β βββ architecture/ # System architecture
β βββ decisions/ # Architecture Decision Records
β βββ explorations/ # Deep research artifacts
β βββ solutions/ # The Knowledge Base
β βββ specs/ # Multi-session specifications
βββ plans/ # Implementation plans
βββ scripts/ # Automation & validation
βββ skills/ # Modular agent capabilities
βββ todos/ # Tracked work items
/explore β /plan β /work β /review β /compound β /housekeeping β repeat
Every solved problem becomes a searchable solution in docs/solutions/ with YAML frontmatter for structured searching.
# Daily health check
./scripts/compound-dashboard.sh
# Weekly deep health check
./scripts/compound-health.shThe skills/examples/ directory contains specialized skills:
- Supabase (
skills/examples/supabase/): Database migrations, RLS policies, debugging
To activate, move to skills/ and update GEMINI.md.
Yes! Point your AI agent to read GEMINI.md as its configuration file. The system works with any agent that can:
- Read markdown configuration files
- Execute shell scripts
- Follow systematic workflows
- See
skills/examples/for templates - Copy to
skills/your-skill-name/ - Create a
SKILL.mdfollowing the template structure - Update
GEMINI.mdto reference the new skill - Add instrumentation:
./scripts/log-skill.sh "your-skill" "usage-context" "$$"
All workflows are markdown files in .agent/workflows/. You can:
- Edit existing workflows to match your process
- Create new workflows using
/generate_command - Remove workflows you don't need
# 1. Copy the compound system structure
cp -r antigravity-compound-engineering-plugin/{.agent,docs,scripts,skills,todos} your-project/
# 2. Copy configuration
cp antigravity-compound-engineering-plugin/GEMINI.md your-project/
# 3. Run setup
cd your-project && ./setup.shYes! The compound system works for any knowledge work:
- Documentation projects
- Research and analysis
- Process improvement
- Content creation
Just adapt the workflows and patterns to your domain.
- Enhanced pattern detection with AI-assisted categorization
- Cross-project knowledge sharing (sync solutions across repos)
- VS Code extension for workflow triggers and metrics visualization
- Web dashboard for compound system analytics
- GitHub Actions integration for CI validation of compound health
- Solution recommendation engine (suggest relevant past solutions)
- Multi-language support for international teams
- Slack/Discord bot for team-wide compound knowledge access
- Export/import knowledge base between projects
- Machine learning on solution patterns for predictive debugging
Want to contribute to the roadmap? Open an issue or PR!
MIT License - see LICENSE
See CONTRIBUTING.md
- Every Inc - For the original Compound Engineering Plugin that pioneered this approach
- The Antigravity team for extending and adapting the system
Remember: Each unit of work should make the next one easier. That's compounding.