cmt-cli
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.
Features
- 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 ``
Installation
uv tool install cmt-cli
Requires Python 3.12+.
Usage
Stage your changes as usual, then run:
git add .
cmt suggest
You'll be shown a suggested commit message and can choose to:
y— commit with the suggested messagee— edit the message invimbefore committingn— abort
Configuration
Before first use, configure your OpenAI API key and model:
cmt config set
To view your current configuration:
cmt config get
License
This project is licensed under the terms of the MIT license.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cmt_cli-0.2.0.tar.gz.
File metadata
- Download URL: cmt_cli-0.2.0.tar.gz
- Upload date:
- Size: 103.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d681276b4b92fe350ee2b661866e3d2088374ed6fadbf9975c638c78627bec26
|
|
| MD5 |
12a71232199ab631da594f725dfe19b4
|
|
| BLAKE2b-256 |
e1ef4cfa3cf98eeb2f6fe192772146d9056a51da1551dd6be5759708f0d87b1a
|
File details
Details for the file cmt_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cmt_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0b90742ca36aa7b482ce2e48832ecfc8ecc305ed2e736c17a0c93f640210fa4
|
|
| MD5 |
7e48f15255381ab9496920253bb8b823
|
|
| BLAKE2b-256 |
38f8d6de6d15d11fc973cee37d0bb6b6b47d10efd42ca212cd3bb279fc365f78
|