Skip to main content

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.

PyPI Python License: MIT

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git_sage_mm-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_sage_mm-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for git_sage_mm-0.1.1.tar.gz
Algorithm Hash digest
SHA256 44557ae9b4295e4204e4a0fdd3e6d1a1268381285de3e16ae321c7bfb627e170
MD5 9467ebaef440527d9cb5fa989487a7b9
BLAKE2b-256 aa036e939d57ecfc719b3157cb08c779715ed39ef0f1053902e8b1dd19f6ecd2

See more details on using hashes here.

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

Hashes for git_sage_mm-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f954cd117275b4044d2ef3ce1dc6e79644ac1f2243a39db38ce8dc7adc9ead6
MD5 1bcd09198bab536f36ee10e7ae26d135
BLAKE2b-256 ef19e3450a3257ec2d55cd7f259c58049ac826d0c91116c2e5894e5f5f0f70d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page