A Go CLI tool that automates the git commit process. It stages all changes, generates a clean, plain-text commit message using the OpenRouter API, and commits the changes.
go build -o commiter .-
Set your OpenRouter API key:
export OPENROUTER_API_KEY="your-key-here"
-
Run the tool in your git repository:
./commiter
--model: Specify the OpenRouter model to use (default:arcee-ai/trinity-mini:free).--push: Push changes to the remote repository after a successful commit (default:false).--staged: Only commit changes that are already staged (default:false).--dry-run: Preview the diff and generated commit message without staging, committing, or pushing (default:false).
./commiter --push
./commiter --staged
./commiter --dry-run
./commiter --model "openai/gpt-3.5-turbo" --push