Meet AntigravityCI: The Autonomous AI PR Assistant Powered by Google Gemini ๐คโจ
Hey developers! ๐ I want to introduce you to AntigravityCI, an open-source project I built to eliminate the friction of switching context during code reviews.
The Core Concept
AntigravityCI is a containerized CI/CD workflow that turns your GitHub Pull Request comment section into an interactive prompt terminal. Instead of copying code out to a chatbot, refactoring it, and manually committing it back, you let the AI handle the entire loop natively where the code already lives.
How It Works in 3 Simple Steps
- Tag the Bot: A developer comments on a PR:
@antigravity refactor optimize this async query loop. - Instant Response: The runner catches the webhook event and acknowledges the receipt in under 1.5 seconds so you know it's working.
- Automated Delivery: It processes the code diffs with Google Gemini (using 3.6 / 3.7 Flash models), cuts a temporary branch, automatically commits the refactored code, and builds a clean PR ready for your review.
The Architecture
The system is lightweight and highly portable:
- Python & Docker: To keep the runtime completely isolated and environment-agnostic.
- GitHub Actions: Serving as the event broker and execution engine.
- Google Gemini API: Providing ultra-fast parsing and intelligent code generation.
What's Next?
I'm currently exploring adding support for other LLM backends, automated test execution before committing changes, and finer security checks. The project is fully open-source, and I'd love to hear your feedback, feature ideas, or have you contribute to the codebase! ๐ Star the repo and check out the code here: https://github.com/nivinvysakh/AntigravityCi
Comments
No comments yet. Start the discussion.