#226226th of 259 in Skills, plugins and prompts

gptcommit

Git hook that writes commit messages from staged diffs using an OpenAI model

Stars
2.4k
License
MIT
Last commit
Sep 2026
Last release
Sep 2026
Language
Rust
Stars, last 29 weeks+15
31 Mar 2026: 2,402 stars7 Apr 2026: 2,402 stars14 Apr 2026: 2,403 stars21 Apr 2026: 2,404 stars28 Apr 2026: 2,404 stars5 May 2026: 2,404 stars12 May 2026: 2,404 stars19 May 2026: 2,404 stars26 May 2026: 2,404 stars2 Jun 2026: 2,405 stars9 Jun 2026: 2,405 stars16 Jun 2026: 2,406 stars23 Jun 2026: 2,406 stars30 Jun 2026: 2,407 stars7 Jul 2026: 2,408 stars14 Jul 2026: 2,409 stars21 Jul 2026: 2,409 stars28 Jul 2026: 2,410 stars4 Aug 2026: 2,411 stars11 Aug 2026: 2,411 stars18 Aug 2026: 2,412 stars25 Aug 2026: 2,414 stars1 Sept 2026: 2,415 stars8 Sept 2026: 2,415 stars15 Sept 2026: 2,415 stars22 Sept 2026: 2,415 stars29 Sept 2026: 2,416 stars6 Oct 2026: 2,416 stars13 Oct 2026: 2,416 stars20 Oct 2026: 2,417 stars

2,402 on 31 Mar 20262,417 on 20 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

gptcommit is a Rust CLI that installs a git prepare-commit-msg hook and fills in the commit message from the staged diff using an OpenAI model. It summarizes each changed file with up to four concurrent requests, then generates a title and summary, with optional conventional-commit prefixes. Settings are layered from a user TOML file, a per-repo file and GPTCOMMIT__* environment variables.

Who it is for: Developers who want LLM-drafted git commit messages from the terminal

Strengths

  • Runs inside normal `git commit` via a prepare-commit-msg hook; generated text stays editable
  • Layered config (user, repo, env vars) with `gptcommit config` subcommands
  • Git-style `file_ignore` patterns skip lockfiles and minified files before anything is sent
  • Supports custom API base URL, proxy and model override; output in en, zh-cn, zh-tw, ja

Weaknesses

  • Only OpenAI-style APIs are documented; no local model support is described
  • Sends diff contents to the API, and costs grow with N+2 prompts per commit
  • Hook skips commits that use a template or amend unless `allow-amend` is set
  • A failed file summary stops generation instead of being skipped

What it needs

  • no GPU
  • Needs OpenAI API key, git, Rust toolchain (cargo) or Homebrew to install
  • Models: OpenAI models (default gpt-6-luna), custom OpenAI-compatible API base, fine-tuned OpenAI models

Also in Skills, plugins and prompts

See all 259
Also in Skills, plugins and prompts
RankProjectScore
1impeccableDesign skill with 24 slash commands for AI coding agents' frontend output Live demo ↗ (opens in a new tab)84.5k starsApache-2.096 out of 100
2cavemanCuts token use in coding agents with terse replies and compressed inputs Live demo ↗ (opens in a new tab)114.1k starsApache-2.095 out of 100
3skillsAgent skills for planning, TDD, debugging and code review299.9k starsMIT94 out of 100
#4eccAgents, skills, hooks and rules bundle for Claude Code, Codex and other harnesses285.7k starsMIT94 out of 100
#5oh-my-claudecodeMulti-agent orchestration plugin and CLI for Claude Code40.2k starsMIT94 out of 100