Introducing aicommit
aicommit
Generate clean Conventional Commits messages and semantic branch names straight from your staged git diff. 12 KB package, zero heavy SDKs, works with 9+ AI providers including local Ollama.
Works with DeepSeek, OpenAI, Anthropic, Gemini, OpenRouter, Groq, SiliconFlow, Moonshot, and local Ollama.
# Stage files and generate a commit message
git add .
aicommit
# ? Generated commit message:
# feat: add token verification helper
#
# What would you like to do?
# ❯ Accept
# Edit
# Regenerate
# CancelFeatures
9+ Built-in Providers
Switch effortlessly between DeepSeek, Moonshot, SiliconFlow, OpenAI, OpenRouter, Gemini, Groq, Anthropic, Ollama, or any custom AI_BASE_URL.
Learn more >Interactive CLI & Setup
Run aicommit setup once to configure provider, key, and language. Accept, edit, or regenerate with automatic deduplication.
Learn more >Branch Name Generator
Run aicommit branch to generate a clean slug from your diff, pick a prefix, and auto-checkout in one step.
Learn more >Multilingual Commits
English by default, or set AI_LOCALE=zh for English Conventional Commit types paired with concise Chinese descriptions.
Learn more >Smart Diff Budgeting
Prepends git --stat, caps per-file diffs at 4k chars, and ignores lockfiles and generated assets so large files never drown out real code.
Learn more >Safe & Lightweight
Uses execFile with argument arrays (zero shell injection), native fetch with timeout, 0600 config permissions, and ships in just 12 KB.
Learn more >Ready to automate your git commits?