guanguans/ai-commit
Automagically generate conventional git commit messages with AI. - 使用 AI 自动生成约定式 git 提交信息。
What it solves
It automates the creation of git commit messages, removing the manual effort of writing descriptive and standardized messages for every code change.
How it works
The tool analyzes the changes in your code (via git diff) and uses an AI generator to produce a "conventional commit" message. It allows users to either let the AI automatically determine the commit type (e.g., feat, fix, chore) or manually select one from a list. After generating the message, it presents the the subject and body for user confirmation before executing the git commit.
Who it’s for
Developers who want to maintain a clean, standardized commit history without writing every message by hand.
Highlights
- Multi-AI Support: Integrates with various AI providers including OpenAI, Moonshot, Ernie Bot, Bito CLI, and GitHub Copilot/Models CLI.
- Conventional Commits: Specifically designed to generate messages following the Conventional Commits specification.
- Interactive Workflow: Provides a step-by-step confirmation process to ensure the generated message is accurate.
- Flexible Configuration: Supports global and local configuration for API keys and default generators.
Related
- Project
Nutlope/aicommitsA CLI tool that uses AI to analyze staged git changes and automatically generate descriptive commit messages in various formats.
- Project
di-sukharev/opencommitOpenCommit is a Node‑JS CLI that uses LLMs (OpenAI, Anthropic, Ollama, etc.) to auto‑generate conventional, emoji‑enhanced Git commit messages from staged changes. It supports global and per‑repo configuration, multiple providers, local model servers, a Git hook, and a GitHub Action for automatic commit‑message improvement.
- Project
thomwebb/gacAn LLM-powered CLI tool that generates contextual, well-formatted Git commit messages by analyzing code changes and developer intent.
- Project
tak-bro/aicommit2A reactive CLI tool that automatically generates commit messages for Git, YADM, and Jujutsu using various AI providers.
- Project
appleboy/CodeGPTCodeGPT is a Go‑based CLI that uses LLM APIs (OpenAI, Azure, Gemini, Anthropic, Ollama, Groq, OpenRouter, LiteLLM) to auto‑generate Conventional‑Commit messages and short code‑review summaries. It installs a Git `prepare‑commit‑msg` hook, supports many providers, proxy settings, language translation, streaming output, and a flexible prompt/template system. Install via Homebrew, Chocolatey, an install script, pre‑compiled binary, or `go install`. Configure API keys (or dynamic helpers), choose models, and customize prompts. Ideal for developers who want AI‑assisted commit messages and quick reviews directly from the terminal.