branch-setup

branch-setup is an agent for Claude Code from The01Geek/prflow. It costs 28 tokens per session (3,116 once invoked), scanned A, original, MIT.

A branch-management agent for a pull-request workflow. It checks whether an existing feature branch can be reused, creates one when needed, and records the decision.

In plain words
What is it for?
It performs branch pre-checks, creates or resumes the implementation branch, classifies whether it is ahead of the base, and writes the results to the workpad.
Why use it?
It prevents implementation from starting on the wrong branch or without confirming how the branch relates to the base branch.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the prflow plugin — 20 skills, 22 agents shipped together

Good fit It performs branch pre-checks, creates or resumes the implementation branch, classifies whether it is ahead of the base, and writes the results to the workpad.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/the01geek/prflow/branch-setup
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/The01Geek/prflow

Made for: Claude Code.

Or install prflow, the plugin that ships this one along with the rest of its 20 skills, 22 agents.

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-setup

README.md
[![agentmods](https://agentmods.dev/badge/agents/the01geek/prflow/branch-setup/github.svg)](https://agentmods.dev/agents/the01geek/prflow/branch-setup)
Your own site
<a href="https://agentmods.dev/agents/the01geek/prflow/branch-setup"><img src="https://agentmods.dev/badge/agents/the01geek/prflow/branch-setup/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-setup

Your own site · 80×15
<a href="https://agentmods.dev/agents/the01geek/prflow/branch-setup"><img src="https://agentmods.dev/badge/agents/the01geek/prflow/branch-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,116 The whole file, excluding the scripts and references it only reads on demand.
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.00028 $0.03116
Opus 5.5 $0.00011 $0.01246
Sonnet 5.5 $0.00006 $0.00623
Haiku 4.5 $0.00003 $0.00312

Measured yesterday against content hash 6db366d066a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

branch-setup 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 yesterday.

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.

agents/branch-setup.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Branch Setup

You are dispatched by /prflow:implement after the workpad exists and the early dependency gate passes. You share the orchestrator's checkout, dispatch nothing, and make no commit or push.

Read files with your Read tool; search the checkout with a search tool you hold (a Grep or Glob tool may be absent), else git grep -n -F -e '<text>' -- :/ (tracked files only, no submodules), and a directory git does not track with grep -rn -F -e '<text>' <dir> (the Bash tool's grep can skip files a .gitignore under <dir> lists, so a no-match proves nothing for them); single-quote each pattern, never double-quote it, and search a part of the text that holds no ' (a hit shows only that part).

On cloud, a refused command runs nothing and may print nothing; never improvise one in a shape cloud may refuse: leading with cd, a VAR=value assignment or environment prefix, or an expansion, or using a bash or python3 wrapper, git -C <path>, a redirect into a file, or any write under /tmp; use the Write tool under .prflow/tmp/ for permitted file writes. Compose one plain command per call: literal paths and values, no $? (read the tool result), no heredocs. Run a fence your instructions give as written, captures and variable reads included, substituting only <placeholders> (a ${…:-<…>} anchor whole), dispatch operands and values earlier calls printed. Once running .prflow/vendor/prflow/scripts/load-prompt-extension.sh exits 127 or is reported missing itself (not its interpreter or a dependency), or a Read reports .prflow/vendor/prflow/skills/review/SKILL.md does not exist, take the next rung and skip every later rung under .prflow/vendor/prflow/ for the rest of your run, overriding any vendored-first ladder or fence; a refused command, a miss on any other vendored path, and any other failure or exit settle nothing. Retry a refused non-plain command once in plain form, never with dangerouslyDisableSandbox; else take your prescribed fallback and report the refusal in your outcome.

Read the full file on GitHub · 92 lines

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. yesterday Changed · -2 lines 6db366d066a3
  2. 25d ago Changed 6e7b2e7d99e4
  3. 1mo ago Changed e8a582473c29
  4. 1mo ago Changed 5903c52f15fa
  5. 1mo ago Changed · -6 lines 47504506be14
  6. 2mo ago Changed b02ae98e6f73
  7. 2mo ago Changed 48bc98d60093
  8. 2mo ago Changed b038308c8cb2
  9. 2mo ago Changed · +18 lines c9c35b1391cd
  10. 2mo ago First seen · 82 lines · 28 tokens per session scan A 214866ef7c6c

Subscribe to this mod's changes

branch-setup is an agent published in the GitHub repository The01Geek/prflow (101 stars, last pushed 2d ago), licensed MIT. It adds 28 tokens to every session and 3,116 once invoked, about $0.0001 per session on Opus 5.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.

Related

branch-setup compared with agents from other repositories

branch-setup next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
branch-setupThe01Geek/prflowAgent1012d agoMITA28Claude Code
review-coordinatoryeaight7/agent-powerupsAgent102mo agoApache-2.0A32Claude Code
autonomy-reviewerinferencegod/autonomy-loopAgent11mo agoMITA94Claude Code
component-improverdavila7/claude-code-templatesAgent35ktodayMITA39Claude Code
release-validatorrlajous/claude-code-commandsAgent3021d agoMITA25Claude Code
pr-creatoraxiomantic/spellbookAgent133d agoMITA75Claude Code
fe-git-operatorsh5623/fe-railAgent15d agoMITA83Claude Code