Provider-agnostic AI assistant for crafting and splitting git commits. GitHub Copilot, Claude CLI, or Anthropic SDK — pick one, switch any time.
Opinionated, fast, and batteries-included.
Reads your staged diff and produces a Conventional Commits-compliant message in one command. Mirrors your repo's style automatically.
The split command clusters hunks semantically and proposes multiple atomic
commits, each selectively staged and executed.
Three modes out of the box: standard, gitmoji (emoji + type),
and gitmoji-pure (emoji only).
Iteratively reshape the last commit's wording or reword any past commit using natural-language instructions with an interactive picker.
Three tiers — low, medium, high — control exactly
how much code is sent to the model. Ideal for sensitive repos.
Register custom transform and validate hooks to enforce team
conventions or post-process candidates before the commit runs.
Stage your changes and let AI do the rest.
# Install globally
npm install -g @kud/ai-conventional-commit-cli
# Optional shell alias
alias aicc='ai-conventional-commit'
# Stage your changes, then generate a commit
git add -p
ai-conventional-commit
✔ feat(api): add pagination metadata to list endpoint
# Split staged changes into multiple atomic commits
ai-conventional-commit split
1. refactor(parser): simplify token scanning
2. feat(parser): support negated glob segments
3. test(parser): add cases for brace + extglob combos
# Use gitmoji style
ai-conventional-commit --style gitmoji
✨ feat(ui): add dark mode toggle
# Skip prompts for CI / scripting
AICC_YES=true ai-conventional-commit
# Pick and save your preferred model
ai-conventional-commit models --interactive --save
All commands accept
--model <provider/name>,
--style <standard|gitmoji|gitmoji-pure>, and -y / --yes.
Generate a single commit suggestion from staged diff. This is the default command.
Cluster staged changes into n atomic commits and execute each with real
selective staging.
--shorter / --longer--scope <s>
Refine the last generated commit message. Iteratively shorten, expand, or change scope.
AI-assisted reword of an existing commit. Omit hash for interactive picker.
HEAD auto-amends in-place.
--interactive / -i--save--current
List, pick, and persist your preferred AI model globally.
View merged config with sources, read a single key, or persist a value to your global config file.
Choose the path that suits your setup. Switch any time via AICC_MODEL or the
interactive model picker — no code changes required.
Requires a Copilot subscription
Uses Claude Code auth — no API key needed
Requires
ANTHROPIC_API_KEY
Set once via
AICC_MODEL
or interactively with
ai-conventional-commit models --interactive --save.
Place a
.aiccrc
in your project root or set values globally at
~/.config/ai-conventional-commit-cli/aicc.json. Precedence: defaults → env → global → project → CLI flags.
AICC_MODEL
Model string, e.g.
claude/sonnet
ANTHROPIC_API_KEY
Required when using the
anthropic/*
provider
AICC_STYLE
standard
|
gitmoji
|
gitmoji-pure
AICC_PRIVACY
Diff detail level:
low
|
medium
|
high
AICC_YES
Set to
true
to skip all prompts
AICC_DEBUG
Enable verbose provider logs