Skip to content

[PROJECT REVIEW] CommitGen – local-first AI commit message generator CLI (Go) #443

Open

Description

@onetwothird

Project Link

https://github.com/onetwothird/CommitGen

Live Demo (if available)

No response

Primary Tech Stack

Go

What should we review?

Code quality and structure, Security

Brief Project Description

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.

Thanks for taking a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    open source reviewplease review my open source project

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions