Skip to content

Add AI commit message generation#5291

Open
osszoi wants to merge 1 commit intojesseduffield:masterfrom
osszoi:master
Open

Add AI commit message generation#5291
osszoi wants to merge 1 commit intojesseduffield:masterfrom
osszoi:master

Conversation

@osszoi
Copy link

@osszoi osszoi commented Feb 14, 2026

What does this PR do?

Adds AI-powered commit message generation. When you're in the commit message panel, press Ctrl+G and an AI will generate a commit message based on your staged changes.

image

How it works

  • Press c to open the commit panel
  • Press Ctrl+G to generate a commit message with AI
  • The AI reads your staged diff (excluding lock files and other noise), looks at your branch name, and generates a message
  • You can edit the generated message before committing

Please check if the PR fulfills these requirements

  • Cheatsheets are up-to-date (run go generate ./...)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • Text is internationalised (see here)
  • If a new UserConfig entry was added, make sure it can be hot-reloaded (see here)
  • Docs have been updated if necessary
  • You've read through your own file changes for silly mistakes etc+

I got a lot of help by the AI, to understand, find stuff, etc. I hope that's ok. Also, this is my first contribution to open source, I've been building AI stuff for 1+ year now so I thought this was a good first thing to try, and what best than contribute to my daily driver for git stuff ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant