{"slug": "ai-powered-git-commit-assistant", "title": "AI Powered Git Commit Assistant", "summary": "A developer built cmt-cli, an open-source command-line tool that analyzes staged Git changes and generates commit messages using OpenAI models, defaulting to gpt-4o-mini. The tool, installable from PyPI via `uv tool install cmt-cli`, lets developers run `cmt suggest` to draft messages while keeping final control over the commit.", "body_md": "Writing a good Git commit messages is a small but repetitive work of software development.\n\nI often found myself spending time deciding whether a change should be `feat`, `fix` or `chore`, and then trying to write a description.\n\nSo I decided to build a small cli tool to help.\n\ncmt-cli Git Commit assistant that analyzes your staged changes and generates a commit message.\n\nA commit message saying `updated stuff` or `wip` doesn't tell us much when looking through Git history.\n\nA good commit message should be like:\n\nI wanted to automate the repetative part while still keeping the developer in control of the final message.\n\nThe flow is simple:\n\n`cmt suggest`\nOpenAI\n\n`cmt-cli`\nInstall it directly from PyPi\n\n```\nuv tool install cmt-cli\n```\n\nThen configure your OpenAI API key and preferred model (default is `gpt-4o-mini`)\n\n```\ncmt config set\n```\n\nNow got to any Git repository, stage your changes and run\n\n```\ncmt suggest\n```\n\nThat's it.\n\nIf you want to try `cmt-cli`:\n\nGitHub: [https://github.com/bijaydas/cmt](https://github.com/bijaydas/cmt)\n\nPyPi: [https://pypi.org/project/cmt-cli/](https://pypi.org/project/cmt-cli/)", "url": "https://wpnews.pro/news/ai-powered-git-commit-assistant", "canonical_source": "https://dev.to/bijaydas/ai-powered-git-commit-assistant-4l9", "published_at": "2026-09-26 22:21:22+00:00", "updated_at": "2026-09-26 22:30:45.215149+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "generative-ai", "ai-products"], "entities": ["cmt-cli", "OpenAI", "GitHub", "PyPI", "gpt-4o-mini"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/ai-powered-git-commit-assistant", "markdown": "https://wpnews.pro/news/ai-powered-git-commit-assistant.md", "text": "https://wpnews.pro/news/ai-powered-git-commit-assistant.txt", "jsonld": "https://wpnews.pro/news/ai-powered-git-commit-assistant.jsonld"}}