7000pctAUTO 2fa5d14369
Some checks failed
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
CI / test (push) Has been cancelled
fix: resolve CI build failures
2026-01-31 04:00:17 +00:00
2026-01-31 04:00:10 +00:00
2026-01-31 04:00:11 +00:00
2026-01-31 04:00:11 +00:00
2026-01-31 04:00:12 +00:00

git-commit-ai

A privacy-first CLI tool that generates intelligent Git commit message suggestions using local LLM (Ollama), supporting conventional commit formats without external API costs.

Features

  • Generate intelligent commit message suggestions from staged changes
  • Support for Conventional Commits format
  • Multi-language analysis
  • Privacy-first (no external APIs, runs entirely locally)
  • Customizable prompts and configurations
  • Context-aware suggestions using commit history

Installation

pip install git-commit-ai

Quick Start

  1. Ensure Ollama is installed and running
  2. Pull a model (recommended: qwen2.5-coder:3b):
    ollama pull qwen2.5-coder:3b
    
  3. Stage your changes:
    git add .
    
  4. Generate a commit message:
    git-commit-ai generate
    

Usage

Basic Usage

git-commit-ai generate

With Conventional Commits

git-commit-ai generate --conventional

Specify Model

git-commit-ai generate --model llama3.2

Configuration

Create a .git-commit-ai/config.yaml file in your repository:

model: qwen2.5-coder:3b
base_url: http://localhost:11434
conventional: true
max_length: 80

Troubleshooting

  • Ensure Ollama is running: ollama list
  • Check model is available: ollama pull <model>
  • Verify git repository has staged changes
Description
A privacy-first CLI tool that generates intelligent Git commit message suggestions using local LLM (Ollama), supporting conventional commit formats without external API costs.
Readme MIT 117 KiB
v0.1.0 Latest
2026-01-31 03:00:46 +00:00
Languages
Python 100%