AI Developer Tools
AI Git Commit Message Generator
Turn a git diff into a Conventional Commits message.
Offline engine active
This tool answers immediately from a built-in engine. Connect your own OpenAI-compatible provider for richer answers.
git diff, git diff --staged or git status
0 charsCommit message
Paste a diff or status output. The analyser groups the changed paths, counts added and removed lines, picks a Conventional Commits type and derives a scope from the shared directory.
About AI Commit Message Generator
A commit message is documentation that costs twenty seconds to write and saves hours later. It is also the first thing to degrade under deadline pressure, which is why so many repositories end up with a history of "fix", "wip" and "updates".
Paste the output of git diff, git diff --staged or git status and this tool infers the change type from the files and hunks, derives a scope from the affected paths, and writes a subject line plus a bullet body. The result follows the Conventional Commits convention, so it works with automated changelog tooling.
How it works
- Changed file paths are grouped into areas such as source, tests, documentation, configuration and dependency manifests.
- Added and removed lines are inspected for signals: new tests, exported symbols, configuration keys, dependency bumps.
- A commit type is chosen from feat, fix, docs, refactor, test, chore, perf, build or ci.
- A scope is derived from the deepest shared directory of the changed files.
- The subject is generated in imperative mood and kept within the conventional length limit.
- A bullet body summarises each distinct area of change.
- With a provider key configured, the full diff is additionally sent to your model for a natural-language subject.
Input and output
Accepts
Output of git diff, git diff --staged or git status.
Produces
A Conventional Commits message with type, scope, subject and an optional bullet body.
Privacy
Diff analysis happens locally. Code is only transmitted if you enable your own AI provider, so keep an eye on what a diff might expose.
AI Commit Message Generator FAQ
What are Conventional Commits?
A widely adopted convention where the message starts with a type and optional scope, for example feat(auth): add refresh token rotation. It makes automated changelogs and semantic versioning possible.
Why does the subject need to be imperative?
Git itself writes commit subjects in imperative mood, and an imperative subject completes the sentence "this commit will...". It also reads better in a changelog.
What is the recommended subject length?
Fifty characters is the traditional guideline, and seventy-two is the practical limit before tooling starts truncating the line.
Is it safe to paste a diff from a private repository?
The local analysis never transmits anything. If you enable a remote provider, treat the diff as data you are sending to a third party and review it for secrets first.