
gittech. site
for different kinds of informations and explorations.
CLI tool that analyzes Git commits and provides AI-powered code review insights
Published at
Jan 19, 2025
Main Article
ur-commit-mentor π
A powerful CLI tool that analyzes git commits and provides AI-powered code review insights using Claude AI (currently the only supported AI provider).
Why Use ur-commit-mentor? π€
Ever written code, committed changes, and then wished you had a second pair of eyes before pushing? ur-commit-mentor acts as your AI-powered code review companion:
- Pre-Push Analysis: Review your commits before pushing to catch potential issues
- AI-Powered Insights: Get intelligent suggestions about code quality, best practices, and potential improvements
- Quick Feedback: Understand the impact of your changes without waiting for human review
Installation π¦
# Install from crates.io
cargo install ur-commit-mentor
Demo π₯
NOTE: When you use a real Claude API key, you will receive AI insights in Markdown format in the terminal.
https://github.com/user-attachments/assets/5a76fed2-3924-4fd6-924d-a97055ee1b4e
Features β¨
- Interactive commit selection and fuzzy search
- Detailed code analysis powered by Claude AI
- Beautiful terminal UI with syntax highlighting
- Language-specific insights
- Visual commit statistics
- Progress bars and visual metrics
- Support for all git repositories
Prerequisites π
- Rust and Cargo installed on your system
- A Claude API key from Anthropic
- Git repository to analyze
Usage π»
# Basic usage
ur-commit-mentor -- <repository_path> <claude_api_key>
# Example
ur-commit-mentor -- ./my-project "sk-ant-api03-xxxx..."
# With relative path
cd ~/projects
ur-commit-mentor -- ./awesome-project "your-api-key"
Contributing π€
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Support
License π
This project is licensed under the MIT License - see the LICENSE file for details.
Author βοΈ
Γzer GΓΆkalpsezer - @ddoemonn
Acknowledgments π
- Claude AI for powering the code analysis
- The Rust community for amazing libraries