AICOMMIT2 – Generate commit messages with AI

Key features

  • Works with many AI providers (OpenAI, Claude, Gemini, Mistral, Cohere, Groq, Perplexity, DeepSeek, GitHub Models, Ollama).
  • Supports Git and Jujutsu (jj); auto-detects jj repos and colocated setups.
  • Integrates with prepare-commit-msg hook and the pre-commit framework.
  • Rich CLI options: locale, number of suggestions (--generate), conventional or gitmoji styles, file excludes, auto-select, copy to clipboard, open editor, and more.
  • Configurable via CLI flags, environment variables, or config.ini (supports systemPrompt/systemPromptPath, includeBody, maxLength, temperature, timeout, …).
  • Advanced features: automatic code review and watch mode.

Installation

  • npm (Node ≥ 18): npm i -g aicommit2
  • Homebrew: brew install aicommit2 (if a formula/tap is available)
  • Nix / Devcontainer / build from source.

Quick start

# inside a Git or jj repo
# generate a commit message from the current diff
aicommit2


# multiple suggestions with Conventional Commits style


git add -A && aicommit2 --generate 3 --style conventional


# with pre-commit
pre-commit run -a

Sample config

# ~/.config/aicommit2/config.ini
[general]
locale=en
style=conventional
generate=3
includeBody=true


[provider]
name=openai
model=gpt-4.1
apiKey=$OPENAI_API_KEY

License

DOWLOAD DOCUMENT

File type: .zip / source code

Password: MMO.FARM

Note: Use at your own risk. The password above unlocks everything.