Skip to content

kitty-eu-org/aigcw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

aigcw (AI Git Commit Wrapper) πŸ¦€πŸ€–

Rust Version Crates.io License

AI-Powered Conventional Commits Generator for Git

Features ✨

  • πŸ€– AI-generated commit messages from staged diff via LLM
  • 🎨 Interactive commit type selector with emoji (feat, fix, docs, ...)
  • πŸ”’ Optional issue number embedding β€” feat(#123): ✨ message
  • 🌐 Multi-LLM support: OpenAI / Anthropic / Ollama / DeepSeek / XAI / Phind / Google / Groq / Custom
  • πŸ¦€ Rust-native, minimal overhead

Installation

Quick Install (Linux/macOS)

curl -fsSL https://raw.githubusercontent.com/kitty-eu-org/aigcw/main/scripts/install.sh | bash

From Cargo

cargo install aigcw

From Source

git clone https://github.com/kitty-eu-org/aigcw.git
cd aigcw
cargo install --path .

Usage

gcw is a drop-in wrapper around git. Use it in place of git:

# Stage changes and commit interactively
git add .
gcw commit

# Interactive flow:
#  1. Select commit type  β†’  feat / fix / docs / ...
#  2. Enter issue number  β†’  123  (or press Enter to skip)
#  3. Enter message       β†’  or leave blank to generate via LLM
#
# Result: feat(#123): ✨ add new feature
#    or:  feat: ✨ add new feature  (if issue skipped)

# Pass a message directly (skips LLM generation)
gcw commit -m "initial setup"

# All other git commands pass through unchanged
gcw push
gcw pull
gcw status

Configuration

On first run, gcw creates a config file at ~/.config/aigcw/config.toml.

Example config:

config_version = 1

[llm_config]
provider = "OpenAI"   # OpenAI | Anthropic | Ollama | DeepSeek | XAI | Phind | Google | Groq | CUSTOM
enable = true
api_key = "sk-..."
model = "gpt-4o"
# url = "https://custom-endpoint/v1"  # required for CUSTOM provider

You can also customise commit types by creating .commitconfig.toml in your project root:

[emoji]
enable = true

[[types]]
name = "feat"
emoji = "✨"
desc = "A new feature"

[[types]]
name = "fix"
emoji = "πŸ›"
desc = "A bug fix"

Development

# Build
cargo build --release

# Install from local
cargo install --path .

License

MIT Β© 2025 aigcw

About

πŸš€ This project is a seamlessly integrated Git workflow tool that intercepts git commit commands, analyzes code change diffs (diff), and leverages advanced AI models to automatically generate clear, standardized commit messages. Say goodbye to vague git commit -m "fix bug" practices - turn every commit into maintainable documentation!

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors