AI-powered CLI tool that analyzes your staged Git changes and suggests a professional commit message.
Note:
cmt-cliis in alpha. Expect breaking changes, rough edges, and incomplete features until a stable release.
- Analyzes staged Git changes (added, modified, deleted, and renamed files, plus diffs)
- Generates a commit message and description using OpenAI (via LangChain)
- Review, edit (in
vim), or reject the suggested message before committing - Caches suggestions per diff/model to avoid redundant API calls
- Simple configuration for your OpenAI API key and model ``
uv tool install cmt-cliRequires Python 3.12+.
Stage your changes as usual, then run:
git add .
cmt suggestYou'll be shown a suggested commit message and can choose to:
y— commit with the suggested messagee— edit the message invimbefore committingn— abort
Before first use, configure your OpenAI API key and model:
cmt config setTo view your current configuration:
cmt config getThis project is licensed under the terms of the MIT license.