KeployAI Code Review Agent: Technical Documentation
Github Repo : https://github.com/keploy/code-review-agent
Github Action link : https://github.com/marketplace/actions/keployai-code-review
My details :
[email protected]
+91 9555980440
https://github.com/euclidstellar
http://www.linkedin.com/in/euclidstellar
Project Overview
💡 Mission Statement
The KeployAI Code Review Agent is an intelligent GitHub Action designed to provide automated, AI-powered code reviews on pull requests. It features a resilient fallback system, smart diff analysis to handle large PRs, and multi-provider AI support to ensure reliability and high-quality feedback.
Key Features
- Intelligent Diff Analysis: Automatically analyzes and prioritizes critical files in large pull requests to stay within token limits.
- Resilient Fallback System: A robust chain of providers: GitHub Models → Ollama → Static Fallback Message, ensuring a review is always posted.
- Visual PR Summary: Generates Mermaid sequence diagrams to visually represent the changes in a pull request.
- Multi-Provider Support: Natively supports both the GitHub Models API and self-hosted Ollama models.
- Smart Token Management: Dynamically chunks large diffs to handle PRs that exceed the AI model's context window.
- Security-First Design: Implements secure token handling and safe git operations within the GitHub Actions environment.
Architecture & Design
High-Level Architecture