Self Healing Agent Loop powered by Antigrativity
This project implements a CI/CD-agnostic self-healing agent loop powered by the Google Antigravity SDK.
Core trick
Parses CI failure logs, has an agent patch code and rerun tests, and rolls back when attempt, path, or patch-size limits are exceeded.
Description
This project implements a CI/CD-agnostic self-healing agent loop powered by the Google Antigravity SDK.
It supports:
Multiple CI providers (GitHub Actions, GitLab CI, Jenkins, CircleCI, manual/local)
Multiple test runner styles (pytest, jest, playwright, maven/junit, go test, generic)
Config layers (config file → environment variables → CLI overrides)
Execution modes (local dry-run, local apply, CI autonomous, webhook server)
Safety guardrails (attempt limits, allowed path constraints, patch-size limits, rollback, audit log)
shivaylamba/antigravity-sdk-self-healing-tests★ 10 forksPythonCreated May 19, 2026 · last push May 23, 2026
README excerpt
# Antigravity Self-Healing Engine (CI-Agnostic) This project implements a **CI/CD-agnostic self-healing agent loop** powered by the Google Antigravity SDK. It supports: - Multiple CI providers (GitHub Actions, GitLab CI, Jenkins, CircleCI, manual/local) - Multiple test runner styles (pytest, jest, playwright, maven/junit, go test, generic) - Config layers (config file → environment variables → CLI overrides) - Execution modes (local dry-run, local apply, CI autonomous, webhook server) - Safety guardrails (attempt limits, allowed path constraints, patch-size limits, rollback, audit log) --- ## Architecture Core flow: 1. **Detect** CI/runtime context through provider adapters 2. **Analyze** logs and failure context 3. **Patch** via Antigravity agent 4. **Verify** with configured test command 5. **Report** outputs and audit entries Key modules: - `src/orchestrator.py`: end-to-end healing loop - `src/adapters/providers.py`: CI provider adapters - `src/adapters/tests.py`: test runner adapters - `src/adapters/vcs.py`: VCS integration abstraction - `src/config.py`: merged config loading/validation - `src/safety.py`: guardrails, rollback, change checks --- ## Installation ```bash pip install -r requirements.txt pip install pytest ``` --- ## Quickstart ### Local dry-run ```bash python -m src.cli heal \ --mode local-dry-run \ --log-file .antigravity-test.log \ --test-command "pytest" \ --api-key "$GEMINI_API_KEY" ``` ### Local apply ```bash python -m src.cli heal \