Introduction
cmt-cli is an AI-powered CLI tool that analyzes your staged Git changes and suggests a professional commit message.
Features
- Analyzes staged Git changes (added, modified, deleted, and renamed files, plus diffs)
- Generates a commit message and description using OpenAI (via LangChain)
- Summarizes all working-tree changes (staged and unstaged) with
cmt summary - Review, edit (in
vim), or reject the suggested message before committing - Caches suggestions per diff/model to avoid redundant API calls
Requirements
- Python 3.12+
- Git
vimavailable on yourPATH(used for the edit option)- An OpenAI API key
Ready to start? Head to Installation.
