Skip to main content

AI-powered git commit and PR description generator

Project description

# gitai

AI-powered git commit message and PR description generator.

Reads your git diff and generates a conventional commit message in seconds.

## Install

pip install gitai

export ANTHROPIC\_API\_KEY="your-key-here"

## Usage

\# Generate a commit message for staged changes

gitai commit



\# Stage everything and commit in one step  

gitai commit --auto



\# Preview without committing

gitai commit --dry-run



\# Generate a PR description vs main branch

gitai pr



\# PR description vs a different branch

gitai pr --base develop

## Example output


╭─── Suggested commit ───╮

│ feat(auth): add OAuth2  │

│ login with Google       │

╰─────────────────────────╯

Use this message? \[y/n]:

## Requirements

- Python 3.10+

- An Anthropic API key (get one free at console.anthropic.com)

## 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

gcommitai-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

gcommitai-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file gcommitai-0.1.0.tar.gz.

File metadata

  • Download URL: gcommitai-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for gcommitai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b59b4b1cc62eb14919fcdafa24c976c4145c103e088fa6e484888570b2cd38d4
MD5 f5d267adf7bf81b35a26fd5ce8945758
BLAKE2b-256 42aeebce0c18e5faae654289d6b3eadbb61cd42c8821451426d19d5660d15478

See more details on using hashes here.

File details

Details for the file gcommitai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gcommitai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for gcommitai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9b19ac9f03d6abd37fbc86439fb179184435576162f922457b8c8503b80befb
MD5 6b51bd28b0ecb32a0702a92d06e1e25f
BLAKE2b-256 647f6563291f2b259c49f6445d0d60bd6d65e10261f28e432e6278619ae2cdb9

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