An AI-powered tool that automatically generates meaningful commit messages by analyzing your git changes.
This tool serves as a git alias that leverages AI to generate contextual commit messages based on the changes in your git index. Built with LangChain, it supports various Large Language Models (LLMs) to provide flexible integration options.
- Generates commit messages by analyzing:
- Git diff from the current index
- Historical context from recent commits
- User-customizable personal prompts
- Base prompt with commit message generation rules
- Integration with project documentation
- README file analysis
- LLM-friendly codebase overview
- Project's communication resources like Discord/Slack, read.ai, etc.
- Critino integration for user feedback
- Clone the repository
- Install the dependencies from the pyproject.toml file
- Run the tool with
python src/lib/git_diff_processor.py <repository_name>
Run python src/lib/git_diff_processor.py <repository_name>
The tool constructs intelligent commit messages by combining multiple sources of context:
- Current changes (git diff)
- Historical context (previous commits)
- User-defined knowledge (customizable prompts)
- Base rules for commit message generation