CLI tool for AI-powered conventional Git commit message generation
Top 75.5% on sourcepulse
This project provides an AI-powered tool to automatically generate conventional Git commit messages, streamlining the development workflow for individual developers and teams. It supports multiple AI backends, including OpenAI, GitHub Copilot CLI, and Bito CLI, offering flexibility in choosing the underlying AI model.
How It Works
The tool leverages various AI models via their respective CLIs or APIs to analyze code changes and generate descriptive commit messages. Users can configure their preferred AI generator and API keys. The core functionality involves running ai-commit commit
, which then prompts the user to select a commit type (or uses an auto-generated one) before sending the diff to the chosen AI for message generation. The generated message is then presented for confirmation before committing.
Quick Start & Requirements
ai-commit
binary from GitHub releases or install via Composer (composer global require guanguans/ai-commit --dev
)../ai-commit config set <generator>.<key> <value> --global
../ai-commit commit
to generate and commit using the default generator, or ./ai-commit commit --generator=<generator_name>
to specify.Highlighted Details
--no-edit
and --no-verify
.Maintenance & Community
The project is maintained by guanguans. Contributions are welcome, with details provided in CONTRIBUTING.
Licensing & Compatibility
Limitations & Caveats
The effectiveness of generated commit messages is dependent on the quality of the underlying AI model and the clarity of the code changes. Some AI generators may require specific CLI tools to be installed and configured separately.
3 days ago
1 day