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
Metadata
Release files for git-sage-mm 0.1.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 | Actions |
|---|---|---|---|---|
| git_sage_mm-0.1.1.tar.gz | 4.8 kB | Without provenance | Details for git_sage_mm-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| git_sage_mm-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for git_sage_mm-0.1.1-py3-none-any.whl |
Total release size: 10.5 kB
Release files / git_sage_mm-0.1.1.tar.gz
| Download URL | git_sage_mm-0.1.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44557ae9b4295e4204e4a0fdd3e6d1a1268381285de3e16ae321c7bfb627e170
|
|
BLAKE2b-256 checksum How to use checksums |
aa036e939d57ecfc719b3157cb08c779715ed39ef0f1053902e8b1dd19f6ecd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / git_sage_mm-0.1.1-py3-none-any.whl
| Download URL | git_sage_mm-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f954cd117275b4044d2ef3ce1dc6e79644ac1f2243a39db38ce8dc7adc9ead6
|
|
BLAKE2b-256 checksum How to use checksums |
ef19e3450a3257ec2d55cd7f259c58049ac826d0c91116c2e5894e5f5f0f70d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for git-sage-mm 0.1.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.