Skip to content

πŸš€ 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!

Notifications You must be signed in to change notification settings

kitty-eu-org/aigcw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

Rust Version Crates.io License

AI-Powered Conventional Commits Generator for Git

Features ✨

  • πŸ€– Generate Conventional Commits via LLMs
  • πŸ¦€ Rust-native performance with <1ms overhead
  • πŸ”Œ Zero-config Git hook integration
  • 🌐 Multi-LLM support: OpenAI/Claude/Ollama/Azure
  • ⚑ Smart diff filtering with regex rules
  • πŸ“ Interactive message editing

Installation

cargo install aigcw

Usage

# Initialize git hook (run once)
aigcw install-hook

# Commit with AI (requires API key)
git add .
git commit  # Auto-generates: feat(parser): add diff filtering logic

Configuration

Create ~/.aigcw/config.toml:

[core]
model = "gpt-4-turbo"  # gpt-3.5-turbo/claude-3/ollama/azure
lang = "en"            # en|zh|ja|es

[openai]
api_key = "${ENV_OPENAI_KEY}"  # Env var substitution

[template]
style = "conventional"  # conventional|angular|semantic
max_diff_lines = 200     # Truncate large diffs

Supported Models

Provider Example Models Required Env Vars
OpenAI GPT-4/GPT-3.5 OPENAI_API_KEY
Anthropic Claude 3 ANTHROPIC_API_KEY
Ollama CodeLlama/Llama2 OLLAMA_HOST (optional)
Azure GPT series AZURE_OPENAI_ENDPOINT

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

Releases

No releases published

Packages

No packages published

Languages