# appleboy/CodeGPT

A CLI written in Go language that writes git commit messages or do a code review brief for you using ChatGPT AI (gpt-4.1, gpt-4o model) and automatically installs a git prepare-commit-msg hook.

Repository: https://github.com/appleboy/CodeGPT
Canonical: https://ross.abutalabs.com/products/codegpt
Language: Go
License: MIT
License Family: permissive
Topics: chatgpt, chatgpt-api, golang, openai, openai-api, git, git-hook
Last push: 2026-07-17T14:18:55+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 90, longevity 91
- inputs: {"age_days": 1278, "days_push": 47, "days_rel": 66, "gap_med": 15, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1502, forks 134 (observed 2026-08-28T04:04:54.491656+00:00)

## What it is
CodeGPT is a Go-based CLI tool that uses LLM APIs (OpenAI, Gemini, Anthropic, Groq, Ollama, OpenRouter) to generate git commit messages and code review summaries. It automatically installs a git prepare-commit-msg hook to streamline the commit workflow.

## Use cases
- generate git commit messages with AI
- automate code review summaries
- install a prepare-commit-msg hook
- write conventional commits from staged changes
- review pull request diffs with an LLM
- use multiple LLM providers from the command line

## When to choose
- you want AI-generated commit messages without leaving the terminal
- you need quick automated code review summaries in git workflows
- you want a single tool supporting OpenAI, Gemini, Anthropic, Groq, and Ollama backends

## When to avoid
- you need a full IDE-based AI coding assistant
- you don't want to send code diffs to third-party LLM APIs
- you require offline commit message generation without any LLM API access

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, code-review, llm-inference, developer-tools
- domain: developer-tools, version-control, large-language-models
- platform: cli, windows, go
- tags: git, git-hooks, commit-messages, openai, chatgpt, ai-code-review, gemini, anthropic, ollama, command-line, macos, linux

## Member repositories
- appleboy/CodeGPT (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:54.491656+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:52.021299+00:00, confidence not recorded.
  - readme: https://github.com/appleboy/CodeGPT (fetched 2026-08-28T04:04:54.491656+00:00, sha 5525a70046e4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
