Features
Smart Diff Analysis
AI Commit reads your staged diff and understands:
- What changed (added function, fixed bug, refactored code)
- Why it changed (intent from code context)
- Conventional commit type (feat, fix, refactor, docs, test, chore)
Multiple Suggestions
aicommit --num 3
# 1. feat(auth): add JWT refresh token rotation
# 2. feat(auth): implement sliding window token expiry
# 3. feat(security): add automatic JWT token refresh mechanism
# Choose [1-3]:Conventional Commits Format
Always generates properly formatted messages:
type(scope): description
[optional body]Model Configuration
# Use Claude
aicommit config set provider=anthropic model=claude-sonnet-4-20250514
# Use GPT-4
aicommit config set provider=openai model=gpt-4o
# Use local model
aicommit config set provider=ollama model=llama3.1Git Hook Integration
Auto-generate on every commit:
# Install as prepare-commit-msg hook
aicommit hook install
# Now every `git commit` auto-generates a message
git add .
git commit # AI message pre-filled, edit if neededKey Stats
- 3,000+ GitHub stars
- Conventional Commits format
- 5+ model providers supported
- Git hook integration
- Multi-suggestion mode
FAQ
Q: What is AI Commit? A: AI Commit is a CLI tool that reads your staged git diff and generates meaningful conventional commit messages using AI, saving time and improving commit history quality.
Q: Is AI Commit free? A: The tool is open-source under MIT. You need an LLM API key (or use free local models via Ollama).
Q: Does AI Commit see my entire codebase? A: No, it only reads the staged diff — the specific lines you changed. Your full codebase is never sent to the AI.