All three of the big AI coding tools will write your commit messages now, and they each do it in a different place. Cursor and VS Code put a sparkle button in the commit box. GitHub.com fills the message in for you when you commit from the web editor. Claude Code and Copilot CLI don’t have a button at all — you ask, and the agent writes the message and makes the commit.
Generating the message is the easy part. The question that fills the forums is the next one: how do I make it write messages the way my team does? That answer is different for every surface, and in one case the official answer is “you can’t, but here’s a workaround.” This guide covers where each generator lives, the exact setting or file that steers it, and what the tool stamps on the commit by default — everything checked against the vendors’ documentation in November 2026. The last third is about the limit none of these settings fix: a commit message is written for the next developer, and your users are still waiting to hear what changed.
Jump to: Quick reference · Cursor · GitHub Copilot · Claude Code · One convention for all three · What AI gets right and wrong · Commit message vs release note
AI commit messages at a glance
| Tool and surface | How you trigger it | How you steer it | Default attribution trailer |
|---|---|---|---|
| Cursor — Source Control button | Stage changes, click the sparkle icon in the commit input | No official setting; a legacy repo-root .cursorrules file is the workaround |
None documented |
| Cursor — Agent | Ask Agent to commit | Project rules in .cursor/rules/*.mdc, or AGENTS.md |
Made with Cursor |
| Copilot — VS Code | Sparkle icon in the commit input | github.copilot.chat.commitMessageGeneration.instructions |
None documented |
| Copilot — GitHub.com | Click Commit changes in the web editor | An on/off toggle in your Copilot settings | None documented |
| Copilot — GitHub Desktop | Click the Copilot button next to the commit fields | Select the files or lines you want described | None documented |
| Copilot CLI | Ask the agent to commit | .github/copilot-instructions.md, AGENTS.md |
Co-authored-by |
| Claude Code | Ask: “commit my changes with a descriptive message” | CLAUDE.md, plus the attribution setting |
Co-Authored-By, naming the model |
The split that matters is between the button and the agent. A button is a one-shot generator with its own small prompt, and it usually ignores the instruction files you’ve written for the agent. An agent reads your project instructions, runs git itself, and signs its work. Most of the confusion in the forum threads comes from configuring one and expecting the other to follow.
Cursor: the sparkle button and Agent
The Source Control button
Cursor’s Git documentation describes the feature in one line: stage your changes, then click the sparkle icon in the commit message input “to generate a message based on your diff and repo history.” That’s the whole interface — there’s no dialog and no options.
There’s also no official way to steer it. A moderator answered this directly on Cursor’s community forum, first in March 2026 and again after re-checking the current build in July: the button doesn’t support its own custom prompt, and the newer rules system — Project Rules in .cursor/rules — “doesn’t affect that flow today.” Cursor’s rules documentation says the same thing more generally: rules “do not impact Cursor Tab or other AI features.”
The workaround from that same reply is a legacy .cursorrules file in the repository root. Its contents are still passed into commit-message generation as context, so an instruction there works:
When generating a Git commit message for this repository, use the
Conventional Commits format: type(scope): description. Keep the subject
line under 72 characters and in the imperative mood. Add a body only
when the reason for the change isn't obvious from the diff.
Two caveats come with it. Cursor describes this as a legacy workaround that “may change in the future,” so don’t build a process on it without a backstop. And if you’d rather not commit the file, the reply suggests adding .cursorrules to .git/info/exclude — which keeps it local to your clone, and also means every teammate has to set it up themselves.
One more thing worth knowing if the output feels wordier than what Agent writes: according to the same reply, the button “intentionally runs on a small, fast model tuned for quick metadata generation,” not the model you’ve selected for Agent.
Commits made by Agent
When you ask Agent to commit, you’re in different territory. Rules “provide system-level instructions to Agent,” so this is where a proper project rule applies. Project rules live in .cursor/rules and must use the .mdc extension — the docs are explicit that a plain .md file in that folder is ignored — with description, globs, and alwaysApply as the frontmatter fields:
---
description: Commit message conventions
alwaysApply: true
---
- Write commit messages in the Conventional Commits format.
- One logical change per commit. Split unrelated changes.
- Explain why in the body when the diff doesn't make it obvious.
If you prefer plain Markdown, Cursor also reads an AGENTS.md file in the project root, which has the advantage of being readable by the other two tools in this guide.
Agent commits carry attribution, too. Cursor “can add a Made with Cursor trailer automatically” to commits and to pull requests that Agent creates, and that’s on by default. The toggle is at Cursor Settings → Agent → Attribution, moving to Cursor Settings → Git & PRs → Attribution from Cursor 3.11, and Enterprise admins can switch it off for the whole team from the Admin Dashboard.
GitHub Copilot: VS Code, GitHub.com, Desktop, and the CLI
Copilot writes commit messages on four surfaces, and each one is configured separately.
VS Code
In the Source Control view, select the sparkle icon in the commit message input box. VS Code’s docs add a detail that explains a lot of “why is this message so plain?” complaints: commit message generation uses the utility model configured by the chat.utilitySmallModel setting, “not the model selected for a chat or agent session.”
Steering it is the best-supported case in this whole guide, because there’s a dedicated setting. The custom instructions reference lists github.copilot.chat.commitMessageGeneration.instructions, which accepts an array of objects with either a text property for an inline rule or a file property for a Markdown file path:
{
"github.copilot.chat.commitMessageGeneration.instructions": [
{ "file": ".github/commit-instructions.md" },
{ "text": "Keep the subject line under 72 characters, imperative mood." }
]
}
Put that in the workspace’s .vscode/settings.json and commit it, and everyone who opens the repository gets the same rules. The setting is still labelled Experimental in the reference, so it’s worth re-checking after a VS Code update if the output changes on you.
GitHub.com
Since October 15, 2025, Copilot-generated commit messages on github.com have been generally available on all Copilot plans. There’s no button to find: when you click Commit changes in the web file editor, Copilot inserts a suggested summary and description into the fields for you to review and edit. Deleting a file still gets the plain “Delete FILENAME” default, and adding an empty file still gets “Add FILENAME.”
The controls here are thin. Individuals can turn the feature off with the Copilot-generated commit messages toggle in their Copilot settings; organizations and enterprises opt in through their administrator settings. GitHub’s application card for Copilot Chat notes that English is the only supported language for commit message generation. And GitHub’s custom instructions support matrix lists Copilot Chat, the cloud agent, and code review as the GitHub.com features that read instruction files — commit message generation isn’t on that list, so don’t expect .github/copilot-instructions.md to shape it.
GitHub Desktop
In GitHub Desktop, a Copilot button next to the commit fields creates a commit message and details from the changes you’ve made, and clicking it again regenerates a different suggestion. The lever you have is selection: GitHub’s docs say that choosing specific files or lines gives Copilot better context and a more accurate message — which is also a decent nudge towards smaller commits.
Copilot CLI
Copilot CLI is an agent, so it behaves like Claude Code rather than like the buttons: it reads instruction files and makes the commit itself. The support matrix lists what it reads — repository-wide instructions in .github/copilot-instructions.md, path-specific .instructions.md files, agent files (AGENTS.md, CLAUDE.md, or GEMINI.md), and personal instructions in ~/.copilot/copilot-instructions.md.
It also signs its commits. The CLI configuration reference documents an includeCoAuthoredBy setting, default true, that adds a Co-authored-by trailer to git commits made by the agent. Set it to false in ~/.copilot/settings.json for yourself, or in the repository’s .github/copilot/settings.json — the repository value takes precedence.
Claude Code: ask for the commit
Claude Code has no commit button because it has no commit box. You ask in plain language — the quickstart uses commit my changes with a descriptive message — and Claude stages the changes, writes the message, and runs the commit. It isn’t working blind when it does: Claude Code gives the model built-in instructions for writing commits and pull requests, plus a git status snapshot holding the current branch, the git status output, and recent commits. (Both can be switched off with includeGitInstructions if you’d rather supply your own workflow.)
For scripts and hooks, the non-interactive mode docs give a one-liner that commits whatever you’ve staged and nothing else:
claude -p "Look at my staged changes and create an appropriate commit" \
--allowedTools "Bash(git diff *),Bash(git log *),Bash(git status *),Bash(git commit *)"
Steering it is a matter of writing the convention into CLAUDE.md. Project instructions go in ./CLAUDE.md or ./.claude/CLAUDE.md and are shared with the team through the repository; personal ones go in ~/.claude/CLAUDE.md and apply to every project. If the repository already has an AGENTS.md for other tools, Claude Code can read that in place of a CLAUDE.md.
Attribution is where most questions come from. By default, per the settings reference, commits get a Co-Authored-By git trailer naming the model that made the commit, in the form Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>. The attribution.commit setting replaces that text, and an empty string hides it:
{
"attribution": {
"commit": ""
}
}
Setting attribution to false hides commit and pull request attribution in one go, but that form needs Claude Code v2.1.281 or later. The older includeCoAuthoredBy key is deprecated in favour of attribution. And if you’ve written your own rule about attribution in CLAUDE.md, the docs say Claude is told that your instruction takes precedence — unless the line is set in managed settings by your organization.
One commit convention across all three tools
If your team uses more than one of these tools, you want the same commit style out of all of them. Write the convention once, as a short block of plain instructions:
Commit messages follow Conventional Commits: type(scope): description.
Subject line: imperative mood, no trailing period, 72 characters or fewer.
Body: explain why the change was made when the diff doesn't show it.
One logical change per commit. Mark breaking changes with a BREAKING CHANGE footer.
Then put it where each surface actually looks:
| Where the commit is written | Where the instruction goes |
|---|---|
| Cursor Agent, Copilot CLI, Claude Code | AGENTS.md in the repository root — all three document support for it |
| Claude Code, if you keep a separate file | CLAUDE.md |
| Cursor’s Source Control button | Legacy .cursorrules in the repository root |
| VS Code’s Source Control button | github.copilot.chat.commitMessageGeneration.instructions in .vscode/settings.json |
| GitHub.com and GitHub Desktop | Nowhere — review and edit the suggestion by hand |
That block is deliberately short. It names the format without re-teaching it, because the types and the edge cases belong in a reference your team can link to: our Conventional Commits cheat sheet covers every type with examples, and the specification is the source of truth.
An instruction is also a request, not a guarantee. VS Code’s own reference puts it plainly: discovering and including an instruction file doesn’t guarantee “that the model follows every rule.” So treat the instructions as the thing that makes the right format the default, and add a check that makes the wrong format impossible — a commit-msg hook and a CI job running commitlint. The AI gets it right most of the time, and the linter catches the rest before it reaches main.
If you’d rather not depend on an editor at all, single-purpose generators exist too. OpenCommit, for example, installs from npm, commits your staged changes when you run oco, has a conventional-commit prompt module, and can install itself as a git hook with oco hook set.
What AI commit messages get right and wrong
Here’s my honest read of where these generators help and where they don’t.
What they get right. They describe what changed accurately, because the diff is right there. They follow a format tirelessly once you’ve told them to, which is more than most of us manage at 6pm on a Friday. And they’ve quietly killed the worst class of message — “wip,” “fix,” “more changes” — because a generated sentence costs the same single click as an empty one.
What they get wrong. The failures are consistent enough to plan around:
- They narrate the diff instead of explaining the reason. The diff shows that a timeout went from 30 to 60 seconds. It doesn’t show that a customer’s export was failing at 45. Unless that reason is in the conversation or the code comments, the message can’t contain it — and the “why” is the part a future reader can’t reconstruct.
- They describe whatever you staged, however badly it’s scoped. Stage a bug fix, a rename, and a dependency bump together and you’ll get one message that lists all three. The tool won’t tell you it should’ve been three commits.
- They go stale. GitHub says so in its own docs: messages are only generated when you request them and aren’t refreshed when you make further changes, so a regenerated suggestion “carries the same risks of inaccuracy as the original.”
- They struggle where the context is thin. GitHub lists “intricate code changes, short diff windows, or recently developed programming languages” as cases where generation may struggle.
- The button isn’t your best model. Cursor runs the button on a small, fast model and VS Code uses a separate utility model, not the one you chose for chat — so asking the agent to commit can produce a better message than clicking the sparkle.
GitHub’s guidance is the right posture for all of these tools: generated messages are meant “to supplement—not replace—your own descriptions of the changes.” Read it, fix the “why,” and then commit.
A commit message is not a release note
Here’s the part that no setting solves. Suppose you do everything above and every commit in your history is a clean, accurate, perfectly formatted Conventional Commit. You’ve made life better for the next developer. Your users still don’t know anything changed.
That’s because the two documents answer different questions for different people:
| Commit message | Release note | |
|---|---|---|
| Written for | The next developer, including future you | The person using the product |
| Unit | One change to the code | One change the user can see or feel |
| Vocabulary | Files, functions, modules, types | Screens, tasks, outcomes |
| Good example | fix(export): raise CSV timeout to 60s for large accounts |
“Large CSV exports no longer fail partway through.” |
| How many | Every change, including refactors and CI tweaks | Only the changes worth a user’s attention |
A fix can take five commits, and it’s one release note. A refactor can take forty, and it’s zero. Turning one into the other takes selection, grouping, and translation, and none of that is formatting.
AI coding tools have made this gap wider, not narrower. When a pull request that used to take a week lands in an afternoon, the volume of commits goes up — and the old process, where someone remembers what shipped and writes a paragraph about it, quietly stops working. The usual responses don’t hold up either. Asking a product manager to read through a week of commit history doesn’t scale past a certain pace. Pasting the commit log into the changelog gives users a list they can’t parse. And “we’ll write it up at the end of the sprint” tends to mean nobody remembers what half the changes were for, so nothing gets published at all.
The cost of that silence is easy to underestimate because it doesn’t show up as an error. A customer asks for a feature, you ship it in record time, and they never hear about it — so as far as they’re concerned, you never built it. Support explains a changed screen one ticket at a time. Sales demos last quarter’s product. Shipping faster only pays off if the people you shipped for find out.
How the two connect
Good commit messages don’t replace release notes, but they’re the best raw material you’ll get, and the pieces chain together neatly:
- Instructions make the format the default. That’s everything in the first half of this guide.
- A linter makes it a rule. commitlint rejects what the instructions miss.
- A generator builds the developer-facing record. Tools like Release Please and semantic-release read those commits to work out the version bump and write the changelog and the GitHub Release. Our comparison of three ways to automate release notes from GitHub commits covers which one fits which team.
- Something rewrites it for users. This is the step that still needs judgment — choosing what’s worth announcing and saying it in the user’s words — and it’s the one that gets skipped.
Step four is the one we built ReleasePad for. Its GitHub integration is a GitHub App with read-only access: each push to the branch you select becomes a draft changelog entry, with the AI reading the commits, grouping them into features, improvements, and fixes, and writing them in language a customer can read. Conventional Commit prefixes are parsed when they’re there, though they aren’t required, and a [skip] tag in a commit message keeps that commit out of the draft. Nothing is published automatically — you review the draft, edit it, and publish it yourself to your changelog page and in-app widget. It’s free to start.
Whichever way you close that last step, the order of work is the same. Let the AI write the commit, make sure a human supplies the reason, and don’t mistake a tidy git log for having told anyone.
Further Reading
- Conventional Commits Cheat Sheet: Types, Examples, and Commit Message Best Practices
- commitlint: How to Enforce Conventional Commits Locally and in CI
- How to Automate Release Notes from GitHub Commits (3 Methods Compared)
- GitHub Auto-Generated Release Notes: release.yml Setup, Categories, and Fixes
- Changelog vs Release Notes: What’s the Difference?
Frequently Asked Questions
How do I generate a commit message in Cursor?
Stage your changes in the Source Control panel, then click the sparkle icon in the commit message input. Cursor's docs say the message is generated from your diff and your repository history. You can also ask Agent to commit for you, in which case Agent writes the message and Cursor adds a Made with Cursor trailer by default.
Can I make Cursor's generated commit messages follow Conventional Commits?
Not through an official setting. A moderator on Cursor's community forum confirmed in July 2026 that the Generate Commit Message button has no custom prompt and ignores Project Rules in .cursor/rules, but that a legacy .cursorrules file in the repository root is still passed in as context. Put your commit convention there for the button, and in a project rule or AGENTS.md for commits that Agent makes.
How do I customize GitHub Copilot's commit messages in VS Code?
Add the github.copilot.chat.commitMessageGeneration.instructions setting to your settings.json. It takes an array of objects, each with either a text property for an inline rule or a file property pointing at a Markdown file. VS Code's docs mark the setting as experimental, and the sparkle button uses the utility model set by chat.utilitySmallModel rather than the model you picked for chat.
Does Claude Code add a co-author line to commits?
Yes, by default. Claude Code's settings reference says commits it creates get a Co-Authored-By trailer naming the model in use, with the address noreply@anthropic.com. You can change the text with the attribution.commit setting or set it to an empty string to hide it, and an instruction about attribution in your CLAUDE.md takes precedence unless the line is set in managed settings.
Is there an AI commit message generator that works outside an editor?
Yes. Claude Code and GitHub Copilot CLI are terminal agents that will write the message and make the commit when you ask. There are also single-purpose open-source tools such as OpenCommit, which you install from npm and run as oco to commit your staged changes with a generated message, using the AI provider you configure.
Can AI-generated commit messages be used as release notes?
Not directly. A commit message is written for the next developer and describes one change to the code, while a release note is written for a user and describes what's different in the product. Good commit messages make the release note much easier to produce, but someone, or something, still has to choose what's worth announcing and rewrite it in the user's language.
Ready to put this into practice?
Your changelog shouldn't be an afterthought.
ReleasePad makes it easy to publish great release notes — from a public changelog page to an in-app widget, GitHub integration, and analytics. Free to get started.
Get started — it's free