An open API service indexing awesome lists of open source software.

https://github.com/pranavkakde/git-commit-ai

AI based GIT commit message generator. It can be used as a cli and through GIT Hooks.
https://github.com/pranavkakde/git-commit-ai

ai cli commit git python

Last synced: 3 months ago
JSON representation

AI based GIT commit message generator. It can be used as a cli and through GIT Hooks.

Awesome Lists containing this project

README

          

## git-commit-ai

![git-commit-ai](git-commit-ai-image.png)

### Overview
**git-commit-ai** generates high‑quality Git commit messages from your staged changes using an LLM. You can use it:
- **CLI**: run `cli.py` in any repo to print a suggested message
- **Git hook**: plug into `prepare-commit-msg` to auto‑populate messages
- **gRPC**: run a local server and call it from the hook or the provided client

### Features
- **Multiple LLM providers**: Gemini, OpenAI, Anthropic (select via config)
- **Simple config** via `config.yml` and `.env`
- **Two integration modes**: direct CLI or gRPC server/client
- **Windows-friendly** (use Git Bash for the hook script)

---

## Installation
### Requirements
- Python >= 3.13
- Git installed and available on PATH
- Install [grpcurl](https://github.com/fullstorydev/grpcurl)

### Install dependencies
From the project root:

```bash
pip install -e .
# or, if you prefer to install deps directly from pyproject
pip install -r <(python - <