A CLI tool that uses AI to automatically generate conventional git commit messages from staged changes.
ai-commit is a PHP-based command-line tool that automatically generates conventional git commit messages using AI. It analyzes staged changes via supported AI providers like OpenAI or GitHub Copilot CLI and produces structured commit messages following the Conventional Commits specification, saving developers time and ensuring consistency.
Developers and teams who use git and want to automate and standardize their commit messages, particularly those following conventional commit practices or working in projects where descriptive commit history is valued.
It eliminates the manual effort of writing commit messages while ensuring they are well-structured and informative. Its support for multiple AI providers offers flexibility, and its interactive confirmation step maintains control over the commit process.
Automagically generate conventional git commit messages with AI. - 使用 AI 自动生成约定式 git 提交信息。
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports OpenAI, GitHub Copilot CLI, Baidu ERNIE, and others, allowing users to choose based on cost, region, or preference, as shown in the README's support list.
Automatically generates messages following the Conventional Commits spec with types like feat or fix, ensuring consistent and searchable commit history.
Presents generated messages for review and confirmation before committing, with options to skip edit and verification hooks, preventing automatic commits.
Includes a dedicated config command for managing API keys globally or locally and a self-update feature for easy maintenance.
Requires PHP 8.2 or higher, which may not be available in non-PHP projects or minimal development environments, adding setup complexity.
Relies on third-party AI services that incur usage costs and introduce network latency, with no built-in support for offline or local AI models.
While it supports several AI providers, the READMA admits missing support with '...', and it lacks integration with popular local LLMs or newer AI services without custom development.