# Make cursor agents follow branch-naming conventions

**URL:** <https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102>\
**Category:** Feature Requests\
**Created:** [November 11, 2025, 7:55am UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102 "2025-11-11T07:55:03Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![grahammcculloch](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/grahammcculloch/32/86783_2.png) [@grahammcculloch](https://forum.cursor.com/u/grahammcculloch)\
**Post date:** [November 11, 2025, 7:55am UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/1 "2025-11-11T07:55:03Z")

</div>

### Feature request for product/service

AI Models

### Describe the request

When I kick off a Cursor agent, it automatically creates a branch with a name like `cursor/<something-relevant-but-often-quite-long>`. But what I need is for it to follow our repo’s branch-naming convention and rules - as we rely on that for various reasons. For example we normally can derive the Vercel dev deployment URL of the branch from the branch name. But, as the Cursor agent doesn’t restrict the length of the branch names, it can result in a Vercel dev deployment that cannot be derived. For example:

Branch name: `cursor/<something-relevant-but-often-quite-long>`  
Dev deployment URL: `https://myproject-git-something-relevant-but-oft5136231235-myproject-app.vercel.app`

I would like to be able to define, in some rules file, how the Cursor agent should name branches.

---

<div class="post-metadata">

**Author:** ![Fabian\_Delius](https://avatars.discourse-cdn.com/v4/letter/f/b5ac83/32.png) [@Fabian\_Delius](https://forum.cursor.com/u/Fabian_Delius)\
**Post date:** [November 11, 2025, 9:33am UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/2 "2025-11-11T09:33:11Z")

</div>

Also just stumbled into this!

Would be great to be able to configure the agents to follow a specific pattern.

In our case, we always structure the branch name like `(_**company-prefix)**_-(_**ticket-number)**_/(_**name)**_`. This ensures that Linear as the project management tool can link the PRs to issues, which is a part of our ISO 27001 certification for auditing reasons of changes.

As a first step to comply, we created a bucket ticket such that each Cursor Agent would always follow `(_**company-prefix)**_-(_**fixed-ticket-number)**_/(_**name)**_`. I tried to create an agent rule to urge the agent to create branches this way, however, it seems that the agent is already started on a specific generated branch.

Would be awesome to have a way to configure this!

---

<div class="post-metadata">

**Author:** ![smoreface](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/smoreface/32/102436_2.png) [@smoreface](https://forum.cursor.com/u/smoreface)\
**Post date:** [March 20, 2026, 1:18am UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/3 "2026-03-20T01:18:09Z")

</div>

Our content management system requires that branches start with a specific convention in order to be merged into the relevant versions, so branches created by Cursor are effectively useless which prevents us from using cloud agents at all.

---

<div class="post-metadata">

**Author:** ![v1adko](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/v1adko/32/103197_2.png) [@v1adko](https://forum.cursor.com/u/v1adko)\
**Post date:** [March 25, 2026, 11:00pm UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/4 "2026-03-25T23:00:11Z")

</div>

My org needs this too for Linear integration, not having it makes it much less useful in production.

---

<div class="post-metadata">

**Author:** ![AndyPC](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@AndyPC](https://forum.cursor.com/u/AndyPC)\
**Post date:** [May 4, 2026, 3:30pm UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/5 "2026-05-04T15:30:52Z")

</div>

I have a similar issue. I have a rule in AGENTS.md that allows the agent to use the Atlassian MCP to recognize ticket numbers, pull the tickets, and ingest whatever is in the ticket into its context window, then generate a branch name in the correct format with the ticket number.

However, I am running into two problems:

1. The Atlassian MCP integration’s authorization is short-lived, so if I spawn an agent from, say, a Github thread or Slack integration, it may fail silently to connect to Atlassian and

2. Cursor cloud agents seem to insist on having a branch-name prefix, which is, by default, `cursor/`. I do not want this but if the field is left blank, it goes with the default.

---

<div class="post-metadata">

**Author:** ![Felipe\_Menezes](https://avatars.discourse-cdn.com/v4/letter/f/958977/32.png) [@Felipe\_Menezes](https://forum.cursor.com/u/Felipe_Menezes)\
**Post date:** [May 15, 2026, 5:44pm UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/6 "2026-05-15T17:44:20Z")

</div>

Also need this, repo automations rely on issue ID in the start of the branch name

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [May 15, 2026, 6:27pm UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/7 "2026-05-15T18:27:46Z")

</div>

hi @AndyPC @Felipe_Menezes You can change the default prefix from /cursor to whatever you’d like either here: [https://cursor.com/dashboard/cloud-agents#my-defaults](https://cursor.com/dashboard/cloud-agents#my-defaults) for Cloud agents or in Cursor Settings in the Editor here:

If you leave it empty, it will default to cursor

 ![SCR-20260515-kjpo](https://us1.discourse-cdn.com/cursor1/original/3X/5/9/59d3cc58e85a63431f7b2e81dec8ef9a0e5c0fe5.png)

---

<div class="post-metadata">

**Author:** ![bratzie](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@bratzie](https://forum.cursor.com/u/bratzie)\
**Post date:** [May 19, 2026, 1:04pm UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/8 "2026-05-19T13:04:20Z")

</div>

For us, specifying a different static prefix isn’t enough to solve our issues.

Ideally when launching (in one of our cases) cloud agents via Linear I would expect cursor to use the branch name that Linear generates as parts of our CI does magic stuff based on that specific branch name.

Not having the linear issue id in the branch name also prevents linear from auto tracking PR status.

---

<div class="post-metadata">

**Author:** ![alisspers](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/alisspers/32/110027_2.png) [@alisspers](https://forum.cursor.com/u/alisspers)\
**Post date:** [May 29, 2026, 7:18am UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/9 "2026-05-29T07:18:48Z")

</div>

Yes, even though the AGENTS.md clearly states that it should skip the prefix, the setting over at Cursor seems to take precedence.

There should be an option to disable the prefix completely: [Allow disabling branch prefix ("cursor/") for Cloud Agent](https://forum.cursor.com/t/allow-disabling-branch-prefix-cursor-for-cloud-agent/161901)

---

<div class="post-metadata">

**Author:** ![AndyPC](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@AndyPC](https://forum.cursor.com/u/AndyPC)\
**Post date:** [June 29, 2026, 6:57pm UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/10 "2026-06-29T18:57:47Z")

</div>

Yes @alisspers this is exactly what I was getting at!

---

<div class="post-metadata">

**Author:** ![mattaningram](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mattaningram/32/111715_2.png) [@mattaningram](https://forum.cursor.com/u/mattaningram)\
**Post date:** [July 23, 2026, 3:00pm UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/11 "2026-07-23T15:00:14Z")

</div>

Cursor doesn’t even give me useful branch names when I’m using a worktree. It just says cursor and then a bunch of random numbers and letters. Makes it super hard to figure out what branch is relevant to what.

---

<div class="post-metadata">

**Author:** ![dylan.e.anyvan](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dylan.e.anyvan](https://forum.cursor.com/u/dylan.e.anyvan)\
**Post date:** [August 24, 2026, 10:37am UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/12 "2026-08-24T10:37:27Z")

</div>

+1 to this thread, setting a global branch prefix doesn’t work great - company I joined uses dynamic ticket numbers in the branch name as it integrates with their cicd pipelines. An agent clearly understands the convention but the issue is that this branch prefix setting overrides any other conventions established in rules or the repo. I’ve been convincing the team over to the cursor way of life but this is one of our largest pain points having to tell the agent to change the branch name, delete the old PR, make a new PR, every time.

There are ways around it sure, but it really messes with consistency - and in programming consistency is king.

---

<div class="post-metadata">

**Author:** ![bcas](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bcas/32/62069_2.png) [@bcas](https://forum.cursor.com/u/bcas)\
**Post date:** [August 27, 2026, 12:14pm UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/13 "2026-08-27T12:14:21Z")

</div>

+1 for this request. Hope we can create a new custom branch name at the time of initiating a cloud agent, so that we can follow our own house conventions. Prefix setting isn’t enough.

---

<div class="post-metadata">

**Author:** ![dg141](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dg141/32/123079_2.png) [@dg141](https://forum.cursor.com/u/dg141)\
**Post date:** [October 9, 2026, 7:11pm UTC](https://forum.cursor.com/t/make-cursor-agents-follow-branch-naming-conventions/142102/14 "2026-10-09T19:11:15Z")

</div>

+1 from me too, im pulling my hair out trying to get cloud agents to follow our branch naming conventions!
