Skip to main content

cmt-cli logo

cmt-cli

PyPI version Python versions License Beta status Tests

AI-powered CLI tool that analyzes your staged Git changes and suggests a professional commit message.

Note: cmt-cli is in beta. Expect occasional breaking changes and rough edges 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 message
  • e — edit the message in vim before committing
  • n — 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.

Metadata

Release files for cmt-cli 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmt-cli 1.1.3
File Size Uploaded Provenance Actions
cmt_cli-1.1.3.tar.gz 105.3 kB Without provenance Details for cmt_cli-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cmt-cli 1.1.3
File Interpreter ABI Platform Actions
cmt_cli-1.1.3-py3-none-any.whl Python 3 none any Details for cmt_cli-1.1.3-py3-none-any.whl

Total release size: 119.6 kB

Release files / cmt_cli-1.1.3.tar.gz

Download URL cmt_cli-1.1.3.tar.gz
Size 105.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5429a8ff76ec8a6f6df4dec67bf48d02e547ab69338cdf456ad6c8bc4dc8834f
BLAKE2b-256 checksum
How to use checksums
e03070e350c95417f1d2d235c4b2fb1bfe022b1ff6f3bd1c81592776262e3fb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

Release files / cmt_cli-1.1.3-py3-none-any.whl

Download URL cmt_cli-1.1.3-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bce8129e3cdcc389efb7c7d6e8182e1f9c004ebc475ae48870a36d8ad7b968d
BLAKE2b-256 checksum
How to use checksums
ec8ece0a3fac532e54cdc5b7eb07c2cb8291fca45405c062b70ed064846ddbde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.13

Security for cmt-cli 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page