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.
- Host: GitHub
- URL: https://github.com/pranavkakde/git-commit-ai
- Owner: pranavkakde
- License: gpl-3.0
- Created: 2025-09-05T06:38:56.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-06T13:22:16.000Z (10 months ago)
- Last Synced: 2025-10-25T16:07:49.308Z (8 months ago)
- Topics: ai, cli, commit, git, python
- Language: Python
- Homepage:
- Size: 199 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## git-commit-ai

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