AI GCM
A command-line tool that uses AI to generate meaningful git commit messages.
Features
- Analyzes git diff to understand code changes
- Generates human-readable summaries of changes
- Creates conventional commit messages
- Supports custom AI models
- Interactive prompts for staging changes
Prerequisites
-
Install Ollama:
brew install ollama
-
Pull required models:
ollama pull qwen2.5-coder # for code analysis ollama pull llama3.2 # for commit message generation
Installation
pipx install ai-gcm
Usage
Generate Commit Message
# Stage your changes first
git add .
# Generate commit message with default models
ai-gcm generate
# Show detailed output including code changes summary
ai-gcm generate --verbose
# Use custom models
ai-gcm generate --summary-model qwen2.5-coder --commit-model llama3.2
Options
--summary-model, -s: Model to use for code summary generation (default: qwen2.5-coder)--commit-model, -c: Model to use for commit message generation (default: llama3.2)--verbose, -v: Show detailed output including summary
Check Version
ai-gcm version
Development
-
Clone the repository
-
Install dependencies:
poetry install -
Activate the virtual environment:
poetry shell
License
MIT
Metadata
Release files for ai-gcm 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ai_gcm-1.0.1.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_gcm-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / ai_gcm-1.0.1.tar.gz
| Download URL | ai_gcm-1.0.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87eebfad305da7fb7a08b6e830ba860c826ab9073f4b2a1490dacb3705cc9fab
|
|
BLAKE2b-256 checksum How to use checksums |
0e69dde76e9d354ea6ffc86b4856e8e3c6948d118338b29f525f93443a5f4f78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / ai_gcm-1.0.1-py3-none-any.whl
| Download URL | ai_gcm-1.0.1-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
289d01a5eb1c44e6b3dcd212afb86c53876d289f2aca4a6221a53db9859a9995
|
|
BLAKE2b-256 checksum How to use checksums |
61561e38bc05d547245dc2bb31646ecdefc8b52f3edbd844549bfff04a454484
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for ai-gcm 1.0.1
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.