#git-commit #ai #git #code-review #cli #command-line-tool

app ur-commit-mentor

A CLI tool that analyzes git commits and provides AI-powered code review insights (for now only works with Claude API)

5 releases

new 0.1.5 Jan 18, 2025
0.1.4 Jan 18, 2025
0.1.3 Jan 18, 2025
0.1.2 Jan 18, 2025
0.1.0 Jan 18, 2025

#324 in Development tools

Download history 221/week @ 2025-01-13

221 downloads per month

MIT license

100KB
633 lines

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

Demo ๐ŸŽฅ

[Demo video coming soon...]

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

Installation ๐Ÿ“ฆ

# Install from crates.io
cargo install ur-commit-mentor

Prerequisites ๐Ÿ”‘

  1. Rust and Cargo installed on your system
  2. A Claude API key from Anthropic
  3. 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 ๐Ÿค

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

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

Dependencies

~36โ€“52MB
~1M SLoC