branch-mr-mode

branch-mr-mode is a cursor rule for Cursor from robertsfeir/atelier-pipeline. It costs 364 tokens per session, scanned A, original, Apache-2.0.

A set of rules for coding workflows that use branches and merge requests, which are requests to review and merge code changes. It separates branch setup from merge-request creation.

In plain words
What is it for?
Use it to run branch-based development workflows across GitHub Flow, GitLab Flow, or GitFlow. It helps create worktrees, continue in an existing worktree, commit and push changes, and open a merge request.
Why use it?
It removes manual coordination between pipeline steps by creating the working branch and worktree at the start, then creating the merge request after checks pass.

Cursor rule for Cursor

Written for Cursor: a Cursor plugin manifest.

Good fit Use it to run branch-based development workflows across GitHub Flow, GitLab Flow, or GitFlow. It helps create worktrees, continue in an existing worktree, commit and push changes, and open a merge request.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/robertsfeir/atelier-pipeline/branch-mr-mode
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/robertsfeir/atelier-pipeline

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for branch-mr-mode

README.md
[![agentmods](https://agentmods.dev/badge/rules/robertsfeir/atelier-pipeline/branch-mr-mode/github.svg)](https://agentmods.dev/rules/robertsfeir/atelier-pipeline/branch-mr-mode)
Your own site
<a href="https://agentmods.dev/rules/robertsfeir/atelier-pipeline/branch-mr-mode"><img src="https://agentmods.dev/badge/rules/robertsfeir/atelier-pipeline/branch-mr-mode/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for branch-mr-mode

Your own site · 80×15
<a href="https://agentmods.dev/rules/robertsfeir/atelier-pipeline/branch-mr-mode"><img src="https://agentmods.dev/badge/rules/robertsfeir/atelier-pipeline/branch-mr-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 364 This file is loaded in full into every session.
When invoked 364 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00364 $0.00364
Opus 5 $0.00182 $0.00182
Sonnet 5 $0.00073 $0.00073
Haiku 4.5 $0.00036 $0.00036

Measured 10d ago against content hash 6b45840dfa54, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

branch-mr-mode scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor-plugin/rules/branch-mr-mode.mdc · 33 lines

What it actually says

Branch & MR Mode

When the pipeline uses an MR-based branching strategy (GitHub Flow, GitLab Flow, GitFlow), Eva creates the branch and worktree at pipeline start. Colby handles MR creation.

Branch Creation

Eva creates the feature branch and worktree at pipeline start (before any agent invocation) using git worktree add -b <branch-name> <worktree-path>. See the worktree-per-session protocol in pipeline-orchestration.md for the full creation sequence.

Colby receives the worktree path in her invocation <constraints> and operates entirely within the worktree. Colby does NOT create or check out branches.

If resuming a pipeline with an existing worktree (noted in Eva's task), Eva verifies the worktree still exists and instructs Colby to continue there.

MR Creation (after review juncture passes)

After all QA passes and the review juncture is complete, Eva invokes Colby to create the MR:

  1. Ensure all changes are committed and pushed to the feature branch.
  2. Create MR using the platform CLI from pipeline-config.json: {mr_command} --title "TYPE(SCOPE): <summary>" --body "<MR body>" MR body includes: summary, ADR reference, QA status, review juncture results.
  3. Return MR URL to Eva for hard pause.
  4. For GitFlow hotfixes: create TWO MRs (one targeting main, one targeting develop).
  5. For GitLab Flow promotions: create promotion MRs (main -> staging, staging -> production).
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 33 lines · 364 tokens per session scan A 6b45840dfa54

Subscribe to this mod's changes

branch-mr-mode is a cursor rule published in the GitHub repository robertsfeir/atelier-pipeline (25 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 364 tokens to every session, about $0.0018 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.