Skip to Content
ai-conventional-commit-cli

πŸš€ Getting Started

Install the CLI, generate your first commit, and learn the full command and flag reference.

Install

npm install -g @kud/ai-conventional-commit-cli

Optional shell alias for convenience:

alias aicc='ai-conventional-commit'

First commit

Stage your changes, then run the CLI with no arguments to generate a single suggestion from the staged diff:

git add .
ai-conventional-commit
# βœ” feat(api): add pagination metadata to list endpoint

Auto-confirm without prompts (handy in CI or scripting):

AICC_YES=true ai-conventional-commit

When stdout is not a terminal the run is quiet: one line, βœ“ <sha> <subject> Β· <N> files +<ins> βˆ’<del>, on success, and full errors on stderr. Pass --verbose (or AICC_QUIET=0) to keep the full output.

Pick and save your preferred model:

ai-conventional-commit models --interactive --save

Commands

CommandDescription
ai-conventional-commitGenerate a single commit suggestion from staged diff (default)
ai-conventional-commit generateExplicit alias of the root command
ai-conventional-commit split [n]Cluster staged changes into n commits and execute each
ai-conventional-commit refineRefine the last generated commit message
ai-conventional-commit reword [hash]AI-assisted reword of an existing commit
ai-conventional-commit modelsList models across providers; -i --save to pick a default
ai-conventional-commit config showShow the merged resolved configuration and its sources
ai-conventional-commit config get <key>Read a single configuration value
ai-conventional-commit config set <key> <value>Persist a configuration value globally

Flags

FlagDescription
--style <standard|gitmoji|gitmoji-pure>Override the commit style for this run
--model <provider/name>Override the active model for this run
-y, --yesSkip all confirmation prompts
--shorterAsk the model to shorten the message (refine)
--longerAsk the model to expand the message (refine)
--scope <scope>Force a specific scope (refine)
-q, --quietOne line after committing (generate); default when stdout is not a terminal, or AICC_QUIET=1
--verboseFull output even when stdout is not a terminal (generate), or AICC_QUIET=0

Refine & reword

refine reshapes the wording of the last generated message; reword re-generates the message of an existing commit.

# Interactive picker β€” last 20 commits
ai-conventional-commit reword

# Reword HEAD and amend in-place on acceptance
ai-conventional-commit reword HEAD

# Reword an older commit (prints interactive rebase instructions)
ai-conventional-commit reword <hash>

# With style and model overrides
ai-conventional-commit reword <hash> --style gitmoji --model github-copilot/claude-sonnet-4.6

Merge commits (multiple parents) are rejected. Title formatting β€” gitmoji, normalisation β€” matches all other commands.