https://github.com/electrocucaracha/ai-prepare-commit-msg
AI-powered Git hook that generates concise commit messages from staged changes using LiteLLM and standards.
https://github.com/electrocucaracha/ai-prepare-commit-msg
litellm pre-commit-hook
Last synced: 14 days ago
JSON representation
AI-powered Git hook that generates concise commit messages from staged changes using LiteLLM and standards.
- Host: GitHub
- URL: https://github.com/electrocucaracha/ai-prepare-commit-msg
- Owner: electrocucaracha
- Created: 2025-11-27T09:38:27.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-05-18T00:14:11.000Z (21 days ago)
- Last Synced: 2026-05-18T00:17:21.531Z (21 days ago)
- Topics: litellm, pre-commit-hook
- Language: Python
- Homepage: https://electrocucaracha.github.io/ai-prepare-commit-msg/
- Size: 955 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI Prepare Commit Message
[](https://opensource.org/licenses/Apache-2.0)
[](https://github.com/marketplace/actions/super-linter)
[](https://github.com/psf/black)

[](https://github.com/boyter/scc/)
[](https://github.com/boyter/scc/)
AI-powered Git hook that generates concise,
high-quality commit messages from your staged changes.
Messages follow the Conventional Commits format
and OpenStack commit-message best practices.
The hook integrates with Git's `prepare-commit-msg` flow
and uses LiteLLM to produce the text.
## Features
- Generates commit messages from staged diffs.
- Produces Conventional Commits-compliant messages.
- Integrates with the `prepare-commit-msg` Git hook and `pre-commit`.
- Configurable prompts to control tone and style.