Skip to content

πŸͺ The ultimate starter kit for Google Antigravity IDE. Optimized for Gemini 3 Agentic Workflows, "Deep Think" mode, and auto-configuring .cursorrules.

License

Notifications You must be signed in to change notification settings

primoscope/antigravity-workspace-template

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

136 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Antigravity Workspace Template

Antigravity Banner License: MIT Python 3.8+ Node.js 20+ Tests Passing

A production-ready, enterprise-grade AI-powered development workspace with intelligent agents, persistent conversation history, artifact management, real-time performance monitoring, and comprehensive diagnostic tools.

Quick Start β€’ Features β€’ Documentation β€’ Architecture β€’ Support


🌟 What's New

v2.1: Jules & Dual-Agent Collaboration ⭐ NEW

πŸ€– Jules Integration - Anthropic's coding assistant for code quality and collaboration πŸ”— Dual-Agent Mode - Sequential or parallel multi-agent workflows 🀝 Agent Handoffs - Seamless context transfer between agents 🎯 Smart Routing - Automatic agent selection based on task requirements πŸ“Š Agent Statistics - Track collaboration performance and patterns πŸ”„ 9 New API Endpoints - Complete programmatic agent coordination

πŸ“– Jules Integration Guide β†’

Phase 1-5 Complete: Enterprise Features βœ… [Phase 4 Complete - 2026-02-10]

✨ Settings GUI - Visual configuration management with encryption + Model Picker UI (Phase 4) πŸ’¬ Conversation History - SQLite-backed persistent chat storage 🎨 Artifacts Collection - Organized file management system πŸ“Š Performance Dashboard - Real-time monitoring with Chart.js πŸ” Auto-Issue Finder - Smart diagnostic tool with auto-fix πŸ₯ Health Monitor - Background daemon for system monitoring πŸš€ Enhanced Installation - Smart installer with rollback support + Windows Scripts (Phase 4) πŸ”„ WebSocket Resilience - Exponential backoff reconnection πŸ› Debug Tab - Real-time log viewer with filters and export (Phase 4 - NEW) 🌐 Ngrok Integration - Tunnel management for remote access (Phase 4 - NEW) πŸ’» Windows Support - Full PowerShell scripts for Windows 10/11 (Phase 4 - NEW)


πŸš€ One-Line Installation

Local Installation (Ubuntu/Debian)

curl -fsSL https://raw.githubusercontent.com/primoscope/antigravity-workspace-template/main/install.sh | bash

Windows Installation (PowerShell) βœ… [Phase 4 - NEW]

# Run in PowerShell as Administrator
.\install.ps1

# Or double-click to start
start.bat

πŸ“– Complete Windows Setup Guide β†’

Remote VPS Installation (via SSH)

# Basic installation
curl -fsSL https://raw.githubusercontent.com/primoscope/antigravity-workspace-template/main/install-remote.sh | bash
# With automatic SSL for your domain
AUTO_SSL_DOMAIN=yourdomain.com AUTO_SSL_EMAIL=admin@yourdomain.com \
  curl -fsSL https://raw.githubusercontent.com/primoscope/antigravity-workspace-template/main/install-remote.sh | bash

πŸ’‘ Tip: The remote installer automatically configures firewall, nginx, and SSL with Let's Encrypt!


☁️ One-Click Cloud Deploy

Deploy Antigravity Workspace to the cloud with a single click. The web UI will be immediately accessible at your deployment URL.

DigitalOcean App Platform

Deploy to DigitalOcean

What you get:

  • βœ… Managed container running the full workspace
  • βœ… Redis database add-on for caching
  • βœ… Auto-scaling and SSL certificates
  • βœ… Web UI accessible at your app URL
  • πŸ’° Starts at ~$5/month (Basic plan)

After deploy: Set your GEMINI_API_KEY in the DigitalOcean dashboard β†’ App Settings β†’ Environment Variables.

Google Cloud Run

Run on Google Cloud

What you get:

  • βœ… Serverless container with auto-scaling (scales to zero)
  • βœ… Pay only for what you use
  • βœ… Global load balancing and SSL
  • βœ… Web UI accessible at your Cloud Run URL
  • πŸ’° Free tier: 2 million requests/month

After deploy: Set your GEMINI_API_KEY in Cloud Run β†’ Service β†’ Edit β†’ Environment Variables.

Deployment Comparison

Feature DigitalOcean Google Cloud Run Docker (VPS)
Setup One-click One-click Manual
Scaling Manual/Auto Auto (to zero) Manual
SSL βœ… Included βœ… Included Manual (Let's Encrypt)
Cost ~$5+/month Pay-per-use VPS cost
Web UI βœ… Immediate βœ… Immediate βœ… After setup
WebSocket βœ… Supported βœ… Supported βœ… Supported
Persistence βœ… Managed DB ⚠️ Ephemeral βœ… Local volumes
Redis βœ… Add-on ❌ Separate βœ… Docker service

πŸ“– Full Cloud Deployment Guide β†’


✨ Features

🎯 Core Capabilities

πŸ€– 13 Specialized AI Agents + Dual-Agent Mode

Expert agents for every development task with seamless collaboration:

  • jules ⭐ NEW: Anthropic's coding assistant for code quality and collaboration
  • rapid-implementer: Fast feature implementation
  • architect: System architecture and design patterns
  • debug-detective: Advanced debugging and troubleshooting
  • testing-stability-expert: Comprehensive testing and validation
  • code-reviewer: Security and quality code reviews
  • performance-optimizer: Performance profiling and optimization
  • full-stack-developer: Complete web application development
  • devops-infrastructure: Docker, Kubernetes, CI/CD pipelines
  • docs-master: Documentation creation and verification
  • repo-optimizer: Repository setup and tooling
  • api-developer: RESTful API design and implementation
  • deep-research: In-depth research and analysis

Dual-Agent Mode: Run multiple agents collaboratively (sequential or parallel) for enhanced workflows!

πŸ“– Agent Documentation β†’ | πŸ€– Jules Guide β†’

πŸ”§ 15 MCP Servers ⚠️ [Updated - Phase 4 Validation]

Powerful integration tools:

  • Core: filesystem, git, github, python-analysis, memory, sequential-thinking
  • Data: sqlite, postgres
  • Web: puppeteer, playwright, fetch, brave-search, yt-dlp
  • Infrastructure: docker, time

πŸ”Œ MCP Server Guide β†’


🎨 Enhanced Web Interface

Multi-Tab Dashboard

  • πŸ’¬ Chat: Conversation interface with agent selection
  • πŸ“ Editor: Syntax-highlighted code editor with CodeMirror
  • βš™οΈ Settings: Complete configuration management GUI + Model Picker (Phase 4)
  • πŸ“Š Performance: Real-time monitoring dashboard
  • πŸ–₯️ Terminal: Interactive command execution
  • πŸ› Debug: Real-time log viewer with filters and export (Phase 4 - NEW)

Settings GUI (Phase 2 + Phase 4 Enhancements)

Complete visual configuration management:

  • AI Model Configuration: Switch between Gemini, Vertex AI, Ollama + Visual Radio Buttons (Phase 4)
  • πŸ”„ Reload Environment: Hot-reload configuration without restart (Phase 4 - NEW)
  • πŸ“Š Live Status Banner: Shows active model, ngrok URL, backend health (Phase 4 - NEW)
  • 🌐 Ngrok Tunnel Section: Public URL display with copy-to-clipboard (Phase 4 - NEW)
  • API Keys Management: Secure encrypted storage with toggle visibility
  • MCP Server Manager: Enable/disable servers with real-time status
  • Server Configuration: Host, port, CORS settings
  • Environment Variables: Visual editor for non-sensitive vars
  • Configuration Export: One-click JSON export (sanitized)

βš™οΈ Settings Guide β†’


πŸ’¬ Conversation History (Phase 4)

Persistent chat storage with full search:

  • SQLite Database: Reliable conversation persistence
  • Full-Text Search: Search across all conversations
  • Export to Markdown: Save important conversations
  • Statistics Dashboard: Track usage and patterns
  • Pagination: Efficient loading of large histories
  • Agent Filtering: Filter by agent type
  • 18 REST API Endpoints: Complete programmatic access

Quick Example:

# Create conversation
curl -X POST http://localhost:8000/api/conversations \
  -H "Content-Type: application/json" \
  -d '{"title": "My Project", "agent_type": "full-stack-developer"}'

# Add message
curl -X POST http://localhost:8000/api/conversations/{id}/messages \
  -H "Content-Type: application/json" \
  -d '{"role": "user", "content": "Create a REST API"}'

# Export conversation
curl http://localhost:8000/api/conversations/{id}/export -o chat.md

🎨 Artifacts Collection (Phase 4)

Organized storage for generated content:

  • Type Detection: Automatic categorization (code, diff, test, screenshot, report)
  • Preview Generation: View content before download
  • Size Management: Per-file (50MB) and total (500MB) limits
  • Search & Filter: Find artifacts quickly
  • Cleanup Tools: Manage storage efficiently
  • Metadata Registry: Track all artifacts with JSON index

Storage Structure:

artifacts/
β”œβ”€β”€ code/          # Python, JavaScript, etc.
β”œβ”€β”€ diffs/         # Git diffs and patches
β”œβ”€β”€ tests/         # Test files
β”œβ”€β”€ screenshots/   # Images and diagrams
β”œβ”€β”€ reports/       # Markdown, HTML reports
β”œβ”€β”€ other/         # Other file types
└── metadata.json  # Artifact registry

πŸ“Š Performance Dashboard (Phase 4)

Real-time monitoring and analytics:

  • System Metrics: CPU, Memory, Disk usage with live charts
  • Cache Performance: Hit rate, size, efficiency metrics
  • WebSocket Tracking: Active connections, message counts, duration
  • MCP Server Performance: Response times, success rates, status
  • Request Analytics: Throughput, response times, error rates
  • Chart.js Visualizations: Beautiful, interactive charts
  • Time Range Selection: 1m, 5m, 15m, 1h views
  • Export Metrics: Download performance data as JSON

Access Dashboard:

http://localhost:8000/ β†’ Click "πŸ“Š Performance" tab

πŸ” Auto-Issue Finder (Phase 3)

Smart diagnostic tool with 8 check categories:

  • Static Analysis: Python AST-based code analysis
  • Security Scanning: Detect secrets, SQL injection, unsafe operations
  • Shell Script Linting: Syntax, quoting, dangerous commands
  • Configuration Validation: .env, JSON, YAML, Docker files
  • Dependency Checking: Format validation, version pinning
  • Runtime Health: Permissions, directories, services
  • Docker Validation: Dockerfile, .dockerignore, best practices
  • Auto-Fix Mode: Automatically fix common issues

Quick Usage:

# Run all checks
python tools/auto_issue_finder.py

# Run specific checks
python tools/auto_issue_finder.py --checks static,security

# Auto-fix issues
python tools/auto_issue_finder.py --auto-fix

# Generate report
python tools/auto_issue_finder.py --output markdown --output-file report.md

πŸ” Auto-Issue Finder Guide β†’


πŸ₯ Health Monitor Daemon (Phase 3)

Background monitoring service:

  • System Resources: CPU, memory, disk monitoring
  • Service Availability: HTTP endpoint health checks
  • Alert Management: Configurable thresholds and notifications
  • Auto-Restart: Automatic service recovery with cooldowns
  • Daemon Mode: Background process with PID management
  • Metrics Export: JSON metrics for external monitoring
  • Log Rotation: Configurable log management

Quick Usage:

# Start daemon
python tools/health_monitor.py --daemon --auto-restart --verbose

# Check status
python tools/health_monitor.py --status

# Stop daemon
python tools/health_monitor.py --stop

πŸš€ Enhanced Installation (Phase 1 & Updates)

Smart installer with advanced features:

  • Dependency Detection: Checks and installs prerequisites
  • Rollback Support: Automatic rollback on failure
  • Individual Package Handling: Continues on optional failures
  • Configuration Wizard: Interactive setup with configure.sh
  • Validation: Post-install verification with validate.sh
  • Systemd Integration: Optional system service setup
  • Firewall Configuration: Automatic UFW setup
  • Nginx Support: Reverse proxy with SSL

πŸ”„ WebSocket Resilience (Enhanced)

Production-ready WebSocket handling:

  • Exponential Backoff: Smart reconnection (1s, 2s, 4s, 8s, 16s max)
  • Max Retries: Configurable retry limit
  • Connection Tracking: Monitor active connections
  • Automatic Recovery: Seamless reconnection on network issues
  • Message Queue: Buffer messages during reconnection
  • Status Indicators: Visual connection state

πŸ“¦ Quick Start

Prerequisites

  • Ubuntu 20.04+ / Debian 11+ / macOS / Windows WSL2
  • Python 3.8+
  • Node.js 16+
  • Git
  • 2GB+ RAM, 5GB+ disk space

Installation Steps

1. Clone Repository

git clone https://github.com/primoscope/antigravity-workspace-template.git
cd antigravity-workspace-template

2. Run Installer

chmod +x install.sh
./install.sh

This installs:

  • βœ… System dependencies (Node.js, Python, Docker)
  • βœ… MCP servers (18+ servers)
  • βœ… Python packages
  • βœ… Virtual environment
  • βœ… Configuration files

3. Configure

./configure.sh

Enter your API keys:

  • Gemini API Key (required)
  • GitHub Token (recommended)
  • Vertex AI (optional, enterprise)
  • Other services (optional)

4. Validate

./validate.sh

Checks:

  • βœ… Backend can start
  • βœ… All routes configured
  • βœ… Frontend files valid
  • βœ… No duplicate routes
  • βœ… Configuration correct
  • βœ… MCP servers installed

5. Start

./start.sh

6. Access

Open browser:

http://localhost:8000

πŸŽ‰ You're ready! Start chatting with AI agents!

πŸ“– Full Quick Start Guide β†’


πŸ”‘ Configuration

Required API Keys

Get your API keys from:

Environment Variables

Edit .env:

# AI Models (Required)
GEMINI_API_KEY=your_api_key_here

# GitHub Integration (Recommended)
COPILOT_MCP_GITHUB_TOKEN=your_token_here

# Vertex AI (Optional, Enterprise)
VERTEX_API_KEY=your_vertex_api_key_here
VERTEX_PROJECT_ID=your-gcp-project-id
VERTEX_LOCATION=us-central1
VERTEX_MODEL=gemini-pro

# Local Models (Optional)
LOCAL_MODEL=llama3

# Server Configuration
HOST=0.0.0.0
PORT=8000
FRONTEND_PORT=3000

# Optional Services
COPILOT_MCP_BRAVE_API_KEY=
COPILOT_MCP_POSTGRES_CONNECTION_STRING=

Configuration via Settings GUI

Alternatively, use the visual Settings tab in the web interface:

  1. Open http://localhost:8000
  2. Click βš™οΈ Settings tab
  3. Configure visually with:
    • API key inputs with visibility toggle
    • MCP server enable/disable switches
    • Model selection cards
    • Environment variable editor
    • One-click export

🎯 Usage

Web Interface

  1. Start the workspace:

    ./start.sh
  2. Open browser:

    http://localhost:8000
    
  3. Select an agent from the right panel

  4. Start chatting!

Gemini CLI (NEW! ⭐)

Command-line interface for direct Gemini AI and agent access:

# Quick chat
./gemini-cli.sh chat "Explain quantum computing"

# Analyze code
./gemini-cli.sh analyze backend/main.py

# Multi-agent collaboration
./gemini-cli.sh multi-agent "Build REST API" --agents jules rapid-implementer

# System status
./gemini-cli.sh status

πŸ“– Full CLI Guide β†’

Agent Integration Demo (NEW! ⭐)

See all agents working together flawlessly:

./run-agent-demo.sh

Demonstrates:

  • Jules autonomous engineering
  • Sequential multi-agent collaboration
  • Parallel agent coordination
  • Seamless agent handoffs
  • Real-time system status

Example Workflows

1. Create a REST API

πŸ’¬ Select: full-stack-developer

Create a user authentication REST API with:
- POST /register (email, password)
- POST /login (returns JWT)
- GET /profile (requires auth)
- Logout endpoint
Include input validation and error handling

2. Setup CI/CD

πŸ’¬ Select: devops-infrastructure

Create GitHub Actions workflow for:
- Run tests on Python 3.9, 3.10, 3.11
- Build Docker image
- Deploy to staging on develop branch
- Deploy to production on main (with approval)

3. Optimize Performance

πŸ’¬ Select: performance-optimizer

Analyze the application and:
- Profile CPU and memory usage
- Identify bottlenecks
- Suggest optimization strategies
- Implement caching where appropriate

4. Write Tests

πŸ’¬ Select: testing-stability-expert

Create comprehensive tests for backend/main.py:
- Unit tests for all functions
- Integration tests for API endpoints
- Mock external dependencies
- Aim for 90%+ coverage

GitHub Copilot Integration

In VS Code with Copilot:

@agent:full-stack-developer Create a user management system
@agent:devops-infrastructure Setup Docker containers
@agent:testing-stability-expert Write comprehensive tests
@agent:performance-optimizer Analyze and optimize

πŸ“Š API Reference

Complete REST API Endpoints

Category Endpoint Method Description
Core /health GET Health check
Core /api/chat POST Send chat message
Core /ws WS WebSocket connection
Conversations /api/conversations GET List conversations
Conversations /api/conversations POST Create conversation
Conversations /api/conversations/{id} GET Get conversation
Conversations /api/conversations/{id} DELETE Delete conversation
Conversations /api/conversations/{id}/messages POST Add message
Conversations /api/conversations/{id}/export GET Export to Markdown
Conversations /api/conversations/search GET Search conversations
Conversations /api/conversations/statistics GET Get statistics
Artifacts /api/artifacts GET List artifacts
Artifacts /api/artifacts POST Store artifact
Artifacts /api/artifacts/{id} GET Get artifact metadata
Artifacts /api/artifacts/{id} DELETE Delete artifact
Artifacts /api/artifacts/{id}/content GET Get artifact content
Artifacts /api/artifacts/{id}/preview GET Get preview
Artifacts /api/artifacts/search GET Search artifacts
Artifacts /api/artifacts/statistics GET Get statistics
Settings /settings GET Get settings
Settings /settings POST Update settings
Settings /settings/mcp GET Get MCP status
Settings /settings/mcp/{server} POST Toggle MCP server
Settings /settings/models GET Get AI models
Settings /settings/models POST Set active model
Settings /settings/api-keys POST Update API key
Settings /settings/env GET Get env variables
Settings /settings/env POST Update env variable
Settings /settings/export GET Export configuration
Settings /settings/test-connection/{service} POST Test connection
Performance /performance/metrics GET Get all metrics
Performance /performance/metrics/history GET Get historical metrics
Performance /performance/websocket-stats GET WebSocket stats
Performance /performance/mcp-stats GET MCP server stats
Performance /performance/request-stats GET Request analytics
Performance /performance/cache-stats GET Cache performance
Performance /performance/reset-stats POST Reset statistics
Performance /performance/health GET Health status

API Documentation:


πŸ—οΈ Architecture

System Overview

graph TD
    User[User] -->|Interacts| WebGUI[Web GUI]
    WebGUI -->|WebSocket + REST| Backend[FastAPI Backend]
    
    subgraph "Intelligence Layer"
        Backend --> AgentManager[Agent Manager]
        AgentManager --> Agent1[Full-Stack Agent]
        AgentManager --> Agent2[DevOps Agent]
        AgentManager --> Agent3[Testing Agent]
        AgentManager --> Agent4[Performance Agent]
        
        Agent1 --> Gemini[Gemini AI]
        Agent2 --> Gemini
        Agent1 --> Ollama[Local Ollama]
    end
    
    subgraph "MCP Server Layer"
        AgentManager --> MCP[MCP Servers]
        MCP --> FS[Filesystem]
        MCP --> Git[Git]
        MCP --> GitHub[GitHub]
        MCP --> Docker[Docker]
        MCP --> DB[Databases]
    end
    
    subgraph "Data & Storage Layer"
        Backend --> ConversationDB[(Conversations DB)]
        Backend --> ArtifactStore[(Artifact Storage)]
        Backend --> ChromaDB[(Vector DB)]
        Backend --> StatsTracker[Stats Tracker]
    end
    
    subgraph "Monitoring & Diagnostics"
        Backend --> PerfMonitor[Performance Monitor]
        Backend --> HealthMonitor[Health Monitor]
        Backend --> AutoIssue[Auto-Issue Finder]
    end
    
    Backend --> DropZone[Drop Zone]
    DropZone --> Watcher[File Watcher]
    Watcher --> RAG[RAG Ingestion]
    RAG --> ChromaDB
Loading

Key Components

Backend (backend/)

  • main.py: FastAPI application with 45+ endpoints
  • conversation_manager.py: SQLite-backed chat persistence
  • artifact_manager.py: File storage and management
  • settings_manager.py: Configuration with encryption
  • agent/: Agent orchestration and management
  • utils/performance.py: Real-time monitoring and stats
  • rag/: RAG ingestion and retrieval
  • watcher.py: File system monitoring

Frontend (frontend/)

  • index.html: Multi-tab single-page application
  • Chart.js: Performance visualizations
  • CodeMirror: Syntax-highlighted editor
  • WebSocket: Real-time bidirectional communication

Tools (tools/)

  • auto_issue_finder.py: Smart diagnostic tool (1,200 lines)
  • health_monitor.py: Background monitoring daemon (700 lines)

Agents (.github/agents/)

  • 12 specialized AI agents with detailed prompts
  • Custom instructions for GitHub Copilot
  • MCP server integration

Data Storage

  • conversations.db: SQLite database for chat history
  • artifacts/: Organized file storage by type
  • drop_zone/: File ingestion area
  • logs/: Application logs

πŸ§ͺ Testing

Run Test Suite

# All tests
pytest tests/ -v

# With coverage
pytest --cov=backend --cov-report=html tests/

# Specific test files
pytest tests/test_conversation_manager.py -v
pytest tests/test_artifact_manager.py -v
pytest tests/test_auto_issue_finder.py -v
pytest tests/test_health_monitor.py -v

# Quick system tests
python test_phase4_systems.py

Test Coverage

  • Total Test Cases: 127+
  • Backend Coverage: 85%+
  • Conversation System: 32 tests
  • Artifact System: 40 tests
  • Auto-Issue Finder: 40+ tests
  • Health Monitor: 35+ tests
  • Settings API: 37 tests

Continuous Integration

Tests run automatically on:

  • Every commit (via git hooks)
  • Pull requests
  • Scheduled daily runs

πŸ“š Documentation

Quick Guides

Feature Documentation

Developer Guides

Deployment

Progress & Reports


πŸ“ Project Structure

antigravity-workspace-template/
β”œβ”€β”€ .github/
β”‚   β”œβ”€β”€ agents/                    # 12 custom AI agents
β”‚   β”‚   β”œβ”€β”€ full-stack-developer.agent.md
β”‚   β”‚   β”œβ”€β”€ devops-infrastructure.agent.md
β”‚   β”‚   β”œβ”€β”€ testing-stability-expert.agent.md
β”‚   β”‚   β”œβ”€β”€ performance-optimizer.agent.md
β”‚   β”‚   β”œβ”€β”€ code-reviewer.agent.md
β”‚   β”‚   β”œβ”€β”€ docs-master.agent.md
β”‚   β”‚   β”œβ”€β”€ repo-optimizer.agent.md
β”‚   β”‚   β”œβ”€β”€ api-developer.agent.md
β”‚   β”‚   β”œβ”€β”€ architect.agent.md
β”‚   β”‚   β”œβ”€β”€ debug-detective.agent.md
β”‚   β”‚   β”œβ”€β”€ deep-research.agent.md
β”‚   β”‚   └── rapid-implementer.agent.md
β”‚   β”œβ”€β”€ copilot/
β”‚   β”‚   └── mcp.json               # MCP server configuration
β”‚   └── copilot-instructions.md    # Repository guidelines
β”œβ”€β”€ .mcp/
β”‚   β”œβ”€β”€ config.json                # MCP configuration
β”‚   └── README.md                  # MCP documentation
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ agent/
β”‚   β”‚   β”œβ”€β”€ manager.py             # Agent management
β”‚   β”‚   β”œβ”€β”€ orchestrator.py       # AI orchestration
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   β”œβ”€β”€ performance.py         # Performance monitoring
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ rag/                       # RAG implementation
β”‚   β”œβ”€β”€ main.py                    # FastAPI application (45+ endpoints)
β”‚   β”œβ”€β”€ conversation_manager.py    # Chat persistence (591 lines)
β”‚   β”œβ”€β”€ artifact_manager.py        # Artifact storage (495 lines)
β”‚   β”œβ”€β”€ settings_manager.py        # Configuration (633 lines)
β”‚   β”œβ”€β”€ watcher.py                 # File monitoring
β”‚   └── requirements.txt           # Python dependencies
β”œβ”€β”€ frontend/
β”‚   └── index.html                 # Enhanced multi-tab GUI
β”œβ”€β”€ tools/
β”‚   β”œβ”€β”€ auto_issue_finder.py       # Diagnostic tool (1,200 lines)
β”‚   └── health_monitor.py          # Monitoring daemon (700 lines)
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ test_conversation_manager.py  # 32 tests
β”‚   β”œβ”€β”€ test_artifact_manager.py      # 40 tests
β”‚   β”œβ”€β”€ test_auto_issue_finder.py     # 40+ tests
β”‚   β”œβ”€β”€ test_health_monitor.py        # 35+ tests
β”‚   β”œβ”€β”€ test_settings_api.py          # 37 tests
β”‚   └── ...
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ ARCHITECTURE.md            # System architecture
β”‚   β”œβ”€β”€ SETTINGS_GUI.md            # Settings documentation
β”‚   β”œβ”€β”€ AUTO_ISSUE_FINDER.md       # Diagnostic tool guide
β”‚   β”œβ”€β”€ PROGRESS_REPORT.md         # Implementation status
β”‚   └── ...
β”œβ”€β”€ artifacts/                     # Generated artifacts storage
β”œβ”€β”€ drop_zone/                     # File drop area
β”œβ”€β”€ logs/                          # Application logs
β”œβ”€β”€ conversations.db               # SQLite conversation history
β”œβ”€β”€ install.sh                     # Automated installation
β”œβ”€β”€ install-remote.sh              # Remote VPS installer
β”œβ”€β”€ configure.sh                   # Configuration wizard
β”œβ”€β”€ start.sh                       # Quick start script
β”œβ”€β”€ stop.sh                        # Stop script
β”œβ”€β”€ validate.sh                    # Setup validation
β”œβ”€β”€ test-setup.sh                  # Test validator
β”œβ”€β”€ docker-compose.yml             # Docker orchestration
β”œβ”€β”€ Dockerfile                     # Container definition
β”œβ”€β”€ requirements.txt               # Python dependencies
└── README.md                      # This file

πŸš€ Deployment

Ubuntu VPS

# 1. SSH into server
ssh user@your-vps-ip

# 2. Run remote installer
curl -fsSL https://raw.githubusercontent.com/primoscope/antigravity-workspace-template/main/install-remote.sh | bash

# 3. Configure
./configure.sh

# 4. Start service
sudo systemctl enable antigravity
sudo systemctl start antigravity

# 5. Setup firewall
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable

# 6. Access
# http://your-vps-ip

Docker Production

# Build production image
docker build -t antigravity:latest .

# Run with production settings
docker run -d \
  --name antigravity \
  -p 80:8000 \
  --env-file .env \
  --restart unless-stopped \
  -v $(pwd)/conversations.db:/app/conversations.db \
  -v $(pwd)/artifacts:/app/artifacts \
  -v $(pwd)/drop_zone:/app/drop_zone \
  antigravity:latest

Docker Compose

# Start all services
docker-compose up -d

# View logs
docker-compose logs -f

# Stop services
docker-compose down

πŸ“Š Statistics

Code Metrics

  • Total Lines of Code: ~10,000+
  • Backend Code: ~3,700 lines
  • Test Code: ~4,400 lines
  • Documentation: ~3,000+ lines
  • Tools Code: ~1,900 lines

Features Implemented

  • AI Agents: 12 specialized agents
  • MCP Servers: 18+ integrated servers
  • API Endpoints: 45+ REST endpoints
  • Test Cases: 127+ comprehensive tests
  • Check Categories: 8 diagnostic categories
  • Auto-Fixes: 4+ automated fixes
  • GUI Tabs: 5 interactive tabs
  • Database Tables: 3 SQLite tables

Quality Metrics

  • Test Coverage: 85%+
  • Type Hints: 100%
  • Docstring Coverage: 100%
  • Tests Passing: 100%
  • Installation Success Rate: 95%+

🀝 Contributing

We welcome contributions! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests
  5. Run validation (./validate.sh)
  6. Commit changes (git commit -m 'Add amazing feature')
  7. Push to branch (git push origin feature/amazing-feature)
  8. Open a Pull Request

Contribution Guidelines

  • Follow PEP 8 style guide for Python
  • Add type hints to all functions
  • Write docstrings for classes and methods
  • Add tests for new features
  • Update documentation
  • Ensure all tests pass

πŸ“„ License

MIT License - see LICENSE file for details.


πŸ†˜ Support

Documentation

Community

Getting Help

  1. Check Troubleshooting Guide
  2. Search existing issues
  3. Run auto-issue finder: python tools/auto_issue_finder.py
  4. Check logs: tail -f logs/backend.log
  5. Open a new issue with details

πŸŽ‰ Acknowledgments

Built with:

  • FastAPI - Modern web framework
  • ChromaDB - Vector database
  • Langchain - AI orchestration
  • GitHub Copilot - AI assistance
  • MCP Protocol - Model Context Protocol
  • Chart.js - Performance visualizations
  • SQLite - Conversation persistence
  • Gemini AI - Google's AI models
  • Ollama - Local AI models

Special thanks to all contributors and the open-source community!


Ready to elevate your development workflow?

Run ./install.sh to get started! πŸš€

⬆ Back to Top

About

πŸͺ The ultimate starter kit for Google Antigravity IDE. Optimized for Gemini 3 Agentic Workflows, "Deep Think" mode, and auto-configuring .cursorrules.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 72.0%
  • Shell 8.3%
  • JavaScript 6.4%
  • HTML 6.0%
  • CSS 4.2%
  • PowerShell 3.0%
  • Other 0.1%