# zurawiki/gptcommit

A git prepare-commit-msg hook for authoring commit messages with LLMs.

Repository: https://github.com/zurawiki/gptcommit
Canonical: https://ross.abutalabs.com/products/gptcommit
Language: Rust
License: MIT
License Family: permissive
Topics: cli, git, githook, large-language-models, rust
Last push: 2026-04-19T09:44:40+00:00

## Health v2 (maintenance only)
Score: 57/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 78, release rhythm 8, longevity 94
- inputs: {"age_days": 1328, "days_push": 136, "days_rel": 690, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2420, forks 81 (observed 2026-08-28T04:06:50.528454+00:00)

## What it is
gptcommit is a git prepare-commit-msg hook written in Rust that uses large language models like GPT to automatically generate clear, descriptive commit messages. It installs via cargo or homebrew and integrates directly into the normal `git commit` workflow.

## Use cases
- automatically generate commit messages with GPT
- never write commit messages manually again
- summarize git diffs into commit messages using an LLM
- install a prepare-commit-msg hook powered by OpenAI
- use AI to author descriptive git commit messages
- speed up committing by letting an LLM draft the message

## When to choose
- you want AI-generated commit messages integrated directly into your git workflow
- you use OpenAI models and want a fast, Rust-based hook
- you want configurable per-repo or global settings for commit message generation

## When to avoid
- you don't want to send your code diffs to a third-party LLM API
- you need fully offline commit message generation
- you don't use git or don't want hooks modifying your commit flow

## Facets
- artifact type: cli-tool
- maturity: active
- function: llm-inference, developer-tools, cli
- domain: developer-tools, version-control, large-language-models
- platform: cli, cross-platform, windows
- tags: git, git-hook, commit-messages, openai, gpt, rust, developer-productivity, automation, macos, linux

## Member repositories
- zurawiki/gptcommit (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:50.528454+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-30T02:33:05.437969+00:00, confidence not recorded.
  - readme: https://github.com/zurawiki/gptcommit (fetched 2026-08-28T04:06:50.528454+00:00, sha cd5d09d42503)
  - registry_crates: https://crates.io/api/v1/crates/gptcommit (fetched 2026-08-29T10:13:28.380123+00:00, sha e86a6e6001bd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
