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/aicommitsaicommits is a Node.js CLI that generates git commit messages with AI. It supports many providers, can reuse existing Claude/ChatGPT/OpenCode subscriptions without API keys, offers five message formats, custom prompts, multiple generated options, a Git hook, and full configuration via commands or environment variables. It only reads staged changes for privacy and safety.
- Project
di-sukharev/opencommitOpenCommit is a command-line tool that automatically generates meaningful Git commit messages from your staged changes using AI. It supports many LLM providers, is highly configurable, and helps you keep a clean, consistent commit history.
- 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/aicommit2aicommit2 is a command-line tool that automatically writes commit messages by sending your code changes to AI services like OpenAI, Gemini, Claude, or local Ollama. It works with Git, YADM, and Jujutsu repositories, lets you compare suggestions from multiple AI providers, and can review your code before you commit.
- 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.