| Crates.io | commit-assist |
| lib.rs | commit-assist |
| version | 0.2.0 |
| created_at | 2025-12-29 03:15:04.80362+00 |
| updated_at | 2025-12-29 12:35:22.468368+00 |
| description | AI-powered git commit message generator |
| homepage | |
| repository | https://github.com/katsuhirohonda/commit-assist |
| max_upload_size | |
| id | 2009891 |
| size | 64,741 |
AI-powered git commit message generator using LLM APIs.
git diff --staged)cargo install commit-assist
Or build from source:
git clone https://github.com/katsuhirohonda/commit-assist.git
cd commit-assist
cargo build --release
# Stage your changes
git add .
# Generate commit message using Claude (default)
commit-assist
# Use OpenAI instead of Claude
commit-assist --provider openai
# Specify a model
commit-assist --model claude-haiku-4-5-20251001
# Auto-commit with generated message
commit-assist --commit
# Short flags
commit-assist -p openai -m gpt-4-turbo -c
Set the API key for your chosen provider:
# For Claude (Anthropic)
export ANTHROPIC_API_KEY="your-api-key"
# For OpenAI
export OPENAI_API_KEY="your-api-key"
Generated messages follow Conventional Commits format:
<type>(<scope>): <description>
[optional body]
Types: feat, fix, docs, style, refactor, test, chore
# Run tests
cargo test
# Generate documentation
cargo doc --open
# Build release
cargo build --release
MIT License - see LICENSE for details.