commitgenius 0.1.0

An AI-powered CLI tool that generates conventional commit messages using local LLMs via Ollama
commitgenius-0.1.0 is not a library.

Commitgenius 🤖

A Rust-based CLI tool that uses local LLMs (via Ollama) to generate conventional commit messages from your git diffs.

Features

  • 🚀 Uses local LLM inference through Ollama
  • 📝 Generates conventional commit messages
  • 🔄 Auto-starts Ollama if not running
  • 🎯 Supports multiple Ollama models
  • 🛠 Easy to use CLI interface

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/bannawandoor27/commitgenius.git
cd commitgenius
  1. Build and install:
cargo build --release
ln -s "$(pwd)/target/release/commitgenius" ~/bin/cmgenius

Usage

  1. Stage your changes:
git add .
  1. Generate commit message and commit:
# Using default model (qwen2.5:7b)
cmgenius

# Using a specific model
cmgenius --model phi4

Supported Models

Any model available in your Ollama installation can be used. Some recommended models:

  • qwen2.5:7b
  • phi4
  • llama3.2
  • codellama

License

MIT License