Discover and explore top open-source AI tools and projects—updated daily.
Gentleman-ProgrammingAI code review for enforcing coding standards
Top 64.8% on SourcePulse
This project provides an AI-powered code review tool that integrates as a Git pre-commit hook. It aims to enforce coding standards automatically on every commit, addressing the common issue of team members overlooking or ignoring established guidelines. By leveraging various AI providers like Claude, Gemini, Codex, and Ollama, it offers a flexible and robust solution for maintaining code quality before code even reaches the repository, benefiting developers and teams seeking consistent adherence to standards.
How It Works
Gentleman Guardian Angel (gga) is implemented in pure Bash, requiring zero external dependencies beyond the chosen AI provider's command-line interface (CLI). It functions as a Git pre-commit hook, triggered automatically before each commit. The tool reads project-specific coding rules from an AGENTS.md file and uses the configured AI provider's CLI to analyze staged code files against these rules. It features smart caching to skip reviews of unchanged files, significantly speeding up the process, and can be configured to fail commits in strict mode if the AI's response is ambiguous.
Quick Start & Requirements
brew install gentleman-programming/tap/gga (recommended) or manual installation via git clone and ./install.sh.claude, gemini, ollama) to be installed and accessible in your PATH.gga init, create your rules in AGENTS.md, and install the hook with gga install.Highlighted Details
Maintenance & Community
The README does not specify notable contributors, sponsorships, partnerships, or community channels (like Discord/Slack). Contributions are welcomed via pull requests.
Licensing & Compatibility
The project is released under the MIT License, permitting commercial use and integration into closed-source projects.
Limitations & Caveats
The effectiveness and performance are dependent on the user's setup and configuration of the chosen AI provider's CLI. Reviewing very large files might impact performance if not appropriately excluded via configuration. Strict mode requires the AI to adhere to a specific output format ("STATUS: PASSED" or "STATUS: FAILED").
1 day ago
Inactive