You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CommitGen is a CLI that writes git commit messages for you from your staged diff. It's for developers who commit many times a day and want clear, consistent messages (e.g. Conventional Commits) without sending their code to someone else's server.
Local-first: works out of the box with Ollama, LM Studio or llama.cpp, so no API key is needed and code stays on your machine
Any provider: any OpenAI-compatible API (OpenAI, Groq, OpenRouter) plus Anthropic
Secret masking: API keys, tokens, passwords and private keys are redacted before anything is sent to a model
Smart diffs: skips lockfiles, minified files and build output; trims big diffs while keeping every file header
Git hook:CommitGen hook install makes plain git commit open with a drafted message
One commit per file:CommitGen -a --each commits each changed file separately with its own message
Written in Go as a single static binary with no runtime dependencies. MIT licensed.
Specific questions or concerns
Secret masking (internal/redact): are there common secret formats my patterns miss, or cases where it could leak something?
Code structure: is the split between internal/config, git, llm, prompt and redact clean, or would you organize it differently?
README / onboarding: is the Quick Start easy to follow for someone who has never used Ollama?
Any Go idioms or error-handling patterns I should improve.
Activity