Skip to main content

cmt-cli logo

cmt-cli

PyPI version Python versions License Alpha status

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

Note: cmt-cli is 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 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmt_cli-0.2.0.tar.gz (103.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmt_cli-0.2.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

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

Hashes for cmt_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d681276b4b92fe350ee2b661866e3d2088374ed6fadbf9975c638c78627bec26
MD5 12a71232199ab631da594f725dfe19b4
BLAKE2b-256 e1ef4cfa3cf98eeb2f6fe192772146d9056a51da1551dd6be5759708f0d87b1a

See more details on using hashes here.

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

Hashes for cmt_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0b90742ca36aa7b482ce2e48832ecfc8ecc305ed2e736c17a0c93f640210fa4
MD5 7e48f15255381ab9496920253bb8b823
BLAKE2b-256 38f8d6de6d15d11fc973cee37d0bb6b6b47d10efd42ca212cd3bb279fc365f78

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.1

2 files

0.1.0

2 files

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