AI-powered commit message generator for Claude and OpenAI
Project description
git-sage
AI-powered commit message generator. Stage your changes, run
git-sage, get a great commit message.
Install
pip install git-sage
Set one of:
export ANTHROPIC_API_KEY=sk-ant-... # uses claude-sonnet-4-6
export OPENAI_API_KEY=sk-... # uses gpt-4o-mini
Usage
# Stage changes, then:
git add -A
# Preview the generated message
git-sage
# Generate and commit immediately
git-sage --commit
# Generate, review in your editor, then commit
git-sage --edit --commit
Example
$ git add src/auth.py tests/test_auth.py
$ git-sage
feat: add JWT refresh token rotation with sliding expiration
Tip: run with --commit to use this message directly.
Works with both Claude and OpenAI
git-sage checks for ANTHROPIC_API_KEY first, then OPENAI_API_KEY. No config file needed.
Git alias (optional)
Add to ~/.gitconfig for a one-keystroke workflow:
[alias]
ai = !git-sage --commit
Then: git add -A && git ai
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git_sage_mm-0.1.1.tar.gz.
File metadata
- Download URL: git_sage_mm-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44557ae9b4295e4204e4a0fdd3e6d1a1268381285de3e16ae321c7bfb627e170
|
|
| MD5 |
9467ebaef440527d9cb5fa989487a7b9
|
|
| BLAKE2b-256 |
aa036e939d57ecfc719b3157cb08c779715ed39ef0f1053902e8b1dd19f6ecd2
|
File details
Details for the file git_sage_mm-0.1.1-py3-none-any.whl.
File metadata
- Download URL: git_sage_mm-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f954cd117275b4044d2ef3ce1dc6e79644ac1f2243a39db38ce8dc7adc9ead6
|
|
| MD5 |
1bcd09198bab536f36ee10e7ae26d135
|
|
| BLAKE2b-256 |
ef19e3450a3257ec2d55cd7f259c58049ac826d0c91116c2e5894e5f5f0f70d8
|