Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

CLI tool that checks the currently staged Git changes and suggests a professional commit message.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages