Skip to main content

An AI agent for generating meaningful git commit messages using Google's Gemini AI

Project description

DiffWhisperer

An AI agent for generating meaningful git commit messages using Google's Gemini AI.

Installation

pip install diffwhisperer

Usage

  1. Get a Google API key from https://makersuite.google.com/app/apikey

  2. Set your API key:

export GOOGLE_API_KEY="your-api-key-here"
  1. Use DiffWhisperer to generate commit messages:
# Stage your changes first
git add .

# Just generate a commit message
diffwhisperer generate

# Generate and commit in one go
diffwhisperer commit

# Customize the model
diffwhisperer generate --model gemini-1.5-pro

# Or use other options
diffwhisperer commit --repo-path /path/to/repo --max-tokens 150

Features

  • Uses Google's free Gemini AI API (with model selection)
  • Generates commit messages following conventional commits format
  • Can automatically commit changes with the generated message
  • Analyzes staged changes in git repositories
  • Smart scope detection based on changed files
  • Easy to integrate into your git workflow
  • Supports multiple Gemini models (e.g., gemini-2.0-flash, gemini-1.5-pro)

Example Output

feat(auth): add google oauth integration

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

diffwhisperer-0.1.2.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

diffwhisperer-0.1.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file diffwhisperer-0.1.2.tar.gz.

File metadata

  • Download URL: diffwhisperer-0.1.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for diffwhisperer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7da8263f741ef6a4d099f7b0bc59b4661493541997141b400a910c4871ca625b
MD5 009a3f16c867b441ba77b3caf07369f2
BLAKE2b-256 03cf74436f45fb355e6e941910d82f8ffe41a268b8427539756287a784b80ba9

See more details on using hashes here.

File details

Details for the file diffwhisperer-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: diffwhisperer-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for diffwhisperer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 72b03096b941b6e3fa986d1344424472fe4f44c96a114ab8091113d8a9843236
MD5 c977f17431eec4c22aec418989fec8d8
BLAKE2b-256 6599f6b4d286224fd6080c908f9a47d5776fb33a4fff1a95ae8ba011048c938e

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