← all repositories
appleboy/CodeGPT

Git commit messages written by AI, because 'WIP' isn't a verb

A Go CLI that reads your git diff and asks an LLM to write the commit message for you, optionally hooking into git so you never stare at a blank editor again.

1.5k stars Go Coding Assistants
CodeGPT
Not currently ranked — collecting fresh signals.
star history

What it does

CodeGPT is a Go CLI that generates git commit messages from your staged diff using an LLM. It can also spit out a brief code review summary. Run it manually or install a prepare-commit-msg hook so every commit gets an AI-written first draft automatically.

The interesting bit

The project is less about novelty and more about plumbing: it supports seven different AI backends (OpenAI, Azure, Gemini, Anthropic, Groq, Ollama, OpenRouter) and lets you customize prompt templates, diff context lines, and output language. The api_key_helper option is a nice touch for secret-manager users — it runs a shell command to fetch credentials dynamically instead of leaving keys on disk.

Key highlights

  • Formats commits to the conventional commits spec by default
  • Hooks into git via prepare-commit-msg with codegpt hook install / uninstall
  • Supports SOCKS/HTTP proxies, streaming output, and per-repo file exclusion from diffs
  • Config lives in ~/.config/codegpt/.codegpt.yaml; override via env vars or CLI flags
  • Available via Homebrew, Chocolatey, install script, go install, or VSCode devcontainer feature

Caveats

  • The README mentions gpt-5 in one place, which does not exist; the default model is gpt-4o
  • Token costs can add up if you commit frequently with large diffs and don’t cap max_tokens

Verdict

Worth a look if you write a lot of commits and hate blank-message paralysis. Skip it if you already have strong commit discipline or don’t want API keys near your git workflow.

Frequently asked

What is appleboy/CodeGPT?
A Go CLI that reads your git diff and asks an LLM to write the commit message for you, optionally hooking into git so you never stare at a blank editor again.
Is CodeGPT open source?
Yes — appleboy/CodeGPT is open source, released under the MIT license.
What language is CodeGPT written in?
appleboy/CodeGPT is primarily written in Go.
How popular is CodeGPT?
appleboy/CodeGPT has 1.5k stars on GitHub.
Where can I find CodeGPT?
appleboy/CodeGPT is on GitHub at https://github.com/appleboy/CodeGPT.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.