Agents
Cursor Git Integration: Commit Messages, Conflicts, Attribution
Cursor adds AI features on top of the standard Source Control panel. A sparkle icon writes a commit message from your staged diff and repo history, and Resolve in Chat has Agent propose a fix for merge conflicts. A Made with Cursor trailer marks Agent commits and PRs, and on Enterprise, Cursor Blame tracks which lines AI wrote.

On this page
Can Agent write my commit messages?
Yes, and it reads more than the diff. Stage your changes, then click the sparkle icon in the commit message input. Cursor writes a message from your diff and your repo history, so the result tends to follow the conventions already in your log instead of a generic template.
The generator works from staged changes. An empty stage gives it nothing to describe.
The stage is the whole of what the message can describe, so staging is where you choose what the commit says. Half-stage a change, and the generated line describes that half and says nothing about the rest. That looks like a bad generator, but the generator did a fine job on a badly chosen input. Restage until one coherent change is staged, then generate again.
What the generator can't give you is why the change was made. The reason isn't in the diff, and no amount of reading previous commits will produce it. Keep the generated line as the summary, and write the body yourself when a reviewer will need one.
This is covered hands-on in Agent Mode Foundations — 6 short Units, free to read.
Rather do it than read about it? Run 11 interactive Cursor walkthroughs in a simulated editor. Free, no account needed.
How does AI merge conflict resolution work in Cursor?
When you hit a merge conflict, the conflict UI has a Resolve in Chat action. Agent analyzes both sides and proposes a resolution, which you then accept or edit like any other diff.
Note the word "proposes". A conflict is usually two people disagreeing about intent, and Agent reads the code, not the intent. Read what it chose before you accept it.
A resolution can also keep one side and quietly drop the other. That version compiles and reads clean, then surfaces weeks later as a missing feature. The conflict markers were the only visible sign that anything was in dispute, and accepting a resolution clears them.
How much that matters depends on who wrote the other side. On a team of four, you can go and ask. Across teams, or on a branch whose author has moved on, the two diffs are the only evidence there is. Keeping the collision from happening in the first place is a separate problem, covered in parallel agents and merge conflicts.
What is the Made with Cursor trailer?
When Agent creates commits or pull requests, Cursor can append a Made with Cursor trailer automatically. It covers both git commits and pull requests created via gh pr create, and it is on by default.
- Cursor version
- Before 3.11
- Where the setting lives
- Cursor Settings > Agent > Attribution
- Cursor version
- 3.11 and later
- Where the setting lives
- Cursor Settings > Git & PRs > Attribution
| Cursor version | Where the setting lives |
|---|---|
| Before 3.11 | Cursor Settings > Agent > Attribution |
| 3.11 and later | Cursor Settings > Git & PRs > Attribution |
Cursor documents the move in 3.11; the toggle itself is unchanged.
On a team partway through an upgrade, both rows are true at once. An onboarding note or rollout email that names one path is right for some engineers and wrong for the rest, who will conclude the setting is gone. Keep both paths written down until everyone is on 3.11 or later.
Git commits and PRs created with gh pr create are the whole documented scope. Cursor's docs don't say whether a PR opened another way gets the trailer, so check one before you assume it does.
If your team cares about the trailer either way, Enterprise admins can settle it at the org level, as the next section explains.
Can enterprise admins turn commit attribution off?
Yes, globally. Enterprise admins can disable commit attribution for all team members from the Admin Dashboard, under Admin Dashboard > Settings. The org-level setting overrides individual user settings, so no trailers are appended to Agent commits or PRs anywhere in the organization.
An admin turning attribution off wins over a developer turning it on. Decide it once at the org level instead of auditing individual settings.
Set it before the rollout, when the org setting is a line in a setup doc that nobody argues with. After the rollout, you are negotiating with people who already have opinions about their own commit logs. The one-way override matters too: once the org setting is off, a developer who switches attribution on changes nothing that reaches a commit.
On a small team, you may not need the org-level setting at all. A conversation is faster than the toggle, and one decision in a channel holds well enough. It stops holding once you can't name everyone with commit access, and short-lived contractor accounts are the people least likely to have heard the decision.
The dashboard toggle turns attribution on or off for the whole team, and the override Cursor documents runs in the off direction. A policy that requires the trailer on every Agent commit relies on the on position overriding individual settings in the same way, and the help page doesn't say that it does. Test it in the dashboard before anyone writes it into a control.
What is Cursor Blame?
Cursor BlameAn augmented git blame that records line-level human and agent co-authorship, so you can trace which code was written by AI versus a person. Press Enter for the full definition. tracks which code AI wrote and which code humans wrote. It annotates your git history, so you can see at a glance whether a line was AI-generated. Cursor names three uses for it: code review, auditing, and understanding your codebase's AI footprint.
Cursor BlameAn augmented git blame that records line-level human and agent co-authorship, so you can trace which code was written by AI versus a person. Press Enter for the full definition. is available only on the Enterprise plan, and it is off by default: a team admin turns it on for all members in Team settings. The Git help page points to the Cursor Blame reference for setup and usage. Reach for Cursor Blame when someone asks what share of a repository the agents wrote and a rough answer won't do.
Before you quote a number in a review, know which counter produced it. The team dashboard has its own measure of AI share of committed code, with documented limits (team analytics). It covers commits from Cursor CLICursor's command line: the full agent, all modes and models, in the terminal and pipeable into scripts and CI. Press Enter for the full definition. and Cloud AgentsAgents that run in a Cursor-managed virtual machine, check out the repo, do the work and open a pull request, then shut down, with no load on your laptop. Press Enter for the full definition., but automated code formatting can invalidate its diff signatures, and CLI commits must be scored on the machine where the code was written. Those limits belong to that metric, and neither the Git help page nor the Cursor BlameAn augmented git blame that records line-level human and agent co-authorship, so you can trace which code was written by AI versus a person. Press Enter for the full definition. reference says whether Cursor Blame shares any of them.
Of the three uses Cursor names, code review is the one we'd be slowest to turn into a rule. The annotation tells you where a line came from, and nothing about whether anyone understood it. Reviewing AI lines harder sorts your attention by origin instead of by risk, so use the annotation to decide where to look first.
Does Agent work across multiple workspaces?
Yes. Each open workspace has its own independent Agent and git context, and an agent in one window won't affect files in another. That isolation is what makes running work in two windows at once safe.
The isolation is per workspace, and for two windows holding two different repos, that is what you want. Two agents on one repo is a different problem. The tool for that is a worktree, an isolated Git checkout you can start from the Agents WindowCursor's surface listing your agent runs; open a run to read its diff and search transcripts from the command palette. Press Enter for the full definition., so each task has its own files and changes.
Frequently asked questions
How do I get Cursor to write a commit message?
Stage your changes, then click the sparkle icon in the commit message input. Cursor generates the message from your diff and your repo history.
How do I resolve a merge conflict with Agent?
Click Resolve in Chat in the conflict UI. Agent analyzes both sides and proposes a resolution for you to review.
How do I turn off the Made with Cursor trailer?
Attribution is on by default. Toggle it in Cursor Settings > Agent > Attribution, or Cursor Settings > Git & PRs > Attribution from Cursor 3.11. Enterprise admins can disable it for everyone from Admin Dashboard > Settings, which overrides individual settings.
Can I see how much of my codebase was written by AI?
On the Enterprise plan, that is what Cursor Blame does, once a team admin turns it on. It annotates your git history with whether each line was AI-generated, for review, auditing and measuring your codebase's AI footprint.
Sources & last verified
Cursor ships frequently. Facts verified against primary sources on October 28, 2026.