v26.3.3 Release

Antigravity Core

Enterprise-Grade AI Agent Standards & Workflows

Interactive CLI β€’ Auto-Updates β€’ Enterprise Ready

How It Works

AG Core injects a "Senior Architect" persona into your AI workflow.

01

Initialize

Run the npx command to scaffold the .agent folder in your project root.

02

Activate

Start chat with "Xin chΓ o ag-core" to load rules & skills.

03

Execute

Use slash commands like /plan or /review to orchestrate work.

Core Workflows

Standardized processes to govern the software lifecycle.

Command Action Description
/plan Create Plan Generates a detailed implementation_plan.md and analyzes requirements.
/fix Fix Code Analyzes and fixes code issues against strict standards.
/review Code Review Runs checklist.py to audit Security, Complexity, and Style.
/commit Git Commit Intelligently stages and commits changes with Conventional Messages.
/test Gen Tests Generates robust unit tests using pytest or jest.
/doc Document Generates concise, one-line docstrings for functions/classes.

Modular Skills

Plug-and-play capabilities that extend the agent's power.

Automated Audit

Built-in checklist.py scans for:

  • Security Leaks (API Keys)
  • Code Complexity (Nesting)
  • Type Safety (Missing Hints)
  • Local Imports (Clean Code)

Git Automation

Smart wrapper for git operations:

  • Atomic Commits
  • Conventional Commits
  • Status Checks

Code Generation

Safety-first modification:

  • Context Awareness
  • Rule Enforcement
  • Verification Steps

Coding Standards

Enterprise-grade rules enforced by default. View Full Documentation β†’

πŸ—οΈ

SOLID Principles

  • Single Responsibility per module
  • Open/Closed for extension
  • Dependency Injection required
  • Interface Segregation enforced
πŸ”’

Security First

  • No hardcoded secrets
  • Input validation mandatory
  • SQL injection prevention
  • XSS protection built-in
πŸ“

Type Safety

  • Type hints required (Python)
  • TypeScript preferred (JS)
  • No any types allowed
  • Strict null checks enabled
⚑

Code Complexity

  • Max 7 nesting levels
  • Functions < 50 lines
  • Files < 500 lines
  • Cyclomatic complexity < 10
🎯

Clean Code

  • No local imports
  • No magic numbers
  • No print/debug statements
  • DRY principle enforced
πŸ§ͺ

Testing Standards

  • 80%+ code coverage
  • Unit tests required
  • Integration tests for APIs
  • E2E tests for critical flows
example.py - Compliant Code
def calculate_metrics(data: List[int]) -> float:
    """Calculates core metrics compliant with SOLID principles."""
    
    # βœ… No Local Imports (Import at top)
    # βœ… Type Hints Required
    # βœ… No Magic Numbers
    
    scale_factor = Constants.SCALE_FACTOR
    
    if not data:
        return 0.0
        
    return sum(data) * scale_factor