AI git commit messages

Hi, I would love to use AI on my commit messages to automatically summarize the latest changes


You can do this by using the @git context provider in cursor’s chat or edit components!



( use whatever prompt you want to direct it more to your liking, of course )


For my future reference, here is the prompt posted:

“Take a deep breath and work on this problem step-by-step. Summarize the provided diff into a clear and concise written commit message. Use the imperative style for the subject, use the imperative style for the body, and limit the subject types to 50 characters or less. Optionally, use a scope, and limit the scope types to 50 characters or less. Be as descriptive as possible, but keep it to a single line. Return a single code block. Ready to be pasted into commit edits without further editing.”


This is GOLD!!! :1st_place_medal:

Would love to see this prefilled into the Source Control view’s commit message, when empty or filled with an AI-generated message, and updated whenever the git staged items change.


+1 :open_hands:

The Copilot auto-generate version is in many cases not working well. I use the working state as well sometimes. But this does not differentiate between staged and unstaged changes unfortunately. Often when I have other pending changes I cannot use it.

+1 Having this as a cursor feature would be really great!

+1 to this. :slight_smile:

Having recently let Github Copilot expire after moving to Copilot++, I find myself missing the Copilot Commit message suggestions :sparkles: button.

Would love to see Cursor take this on too. :slightly_smiling_face:

1 Like

I absolutely miss this feature the most, while evaluating Cursor, and considering moving from Copilot!

1 Like

More specifically, it would be useful to do this only for the ‘staged’ changes for the commit, like Github Copilot’s extension does.

1 Like

This would be a nice feature after reviewing all the points of the code review, cursor could produce a nice commit message summarizing the changes.

AI commit messages are now possible (it was integrated into VSCode) by clicking the stars.

Screenshot 2

But it would be cool if the message were prefilled and updated when:

  1. the git stage changes, AND
  2. only when the current commit message is either empty or AI generated (i.e. don’t overwrite a human provided input).

This is not true. The star gets added by Copilot extension. It’s not a part of VS Code itself so the Cursor team will need to add it separately.

1 Like

+1 to this request


I agree this is a needed feature

This function is required