branch

branch is a skill for Claude Code from queelius/claude-anvil. It costs 59 tokens per session (707 once invoked), scanned A, original, MIT.

A skill that forks an active research run into a named branch with separate state, notes, and attempts. The branch can explore another strategy without changing the main run.

In plain words
What is it for?
Use it to try a different proof method, experiment design, or search strategy from the same checkpoint. Later synthesis can compare the branches.
Why use it?
It makes competing approaches safe to investigate in parallel. Shared findings remain available for later comparison.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the research-agent plugin — 4 skills, 1 agent shipped together

Good fit Use it to try a different proof method, experiment design, or search strategy from the same checkpoint. Later synthesis can compare the branches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/queelius/claude-anvil/branch
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.

Any agent
npx skills add queelius/claude-anvil --skill branch
Clone the repo
git clone --depth 1 https://github.com/queelius/claude-anvil

Made for: Claude Code.

Or install research-agent, the plugin that ships this one along with the rest of its 4 skills, 1 agent.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/queelius/claude-anvil/branch"><img src="https://agentmods.dev/badge/skills/queelius/claude-anvil/branch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 707 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.00059 $0.00707
Opus 5.5 $0.00024 $0.00283
Sonnet 5.5 $0.00012 $0.00141
Haiku 4.5 $0.00006 $0.00071

Measured 1mo ago against content hash 318f011a8a97, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

branch 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 1mo 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.

research-agent/skills/branch/SKILL.md · 54 lines

How it starts

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

Branch a Research Run

Fork the run per: $ARGUMENTS

Step 1: Parse Arguments

  1. Branch name (required): kebab-case identifier, e.g. induction-proof, adversarial-search. Derive one from the stated strategy if the user did not name it, and confirm it.
  2. Branch focus (optional): one or two sentences on what this branch should pursue differently from the main line.
  3. Budget (optional): a cycle cap and/or hours for this branch.

Step 2: Verify the Run and the Name

  • .research/goal.md must exist (Read tool); if not, there is nothing to branch: suggest /research-agent:research.
  • .research/branches/<name>/ must NOT already exist (Glob tool). If it does, offer /research-agent:resume <name> or a different name.

Step 3: Check Code Isolation

A branch edits and evaluates project code in its own git worktree so it cannot disturb the main line's eval.

  • Bash: git -C <working directory> rev-parse --is-inside-work-tree. If this is not a git repo, worktree isolation is unavailable: tell the user the branch will keep all code changes inside its own attempts/ directories, and launch without isolation.
  • If it is a git repo, check git status --porcelain. The worktree starts from HEAD, so uncommitted changes (including main-line work in progress) will not be in it. If the output is non-empty, tell the user and ask whether to proceed or commit first (AskUserQuestion).

Step 4: Launch the Researcher in Branch Mode

Spawn the researcher (Agent tool, subagent_type: research-agent:researcher, and isolation: "worktree" when Step 3 found a git repo) with:

<mode>branch</mode>
<branch>{kebab-case name}</branch>
<branch-focus>
{the focus, or "explore an alternative approach to the goal"}
</branch-focus>
<budget max_cycles="{N}" max_hours="{H}"/>    (only when given)
<working_directory>
{absolute path to current working directory, NOT the worktree}
</working_directory>

Step 5: Inform the User

Branch {name} forked from the current checkpoint. Its state lives under .research/branches/{name}/; its code changes live in its own git worktree, committed once per cycle. The goal and the parent's confirmed findings are shared read-only.

  • /research-agent:status shows all branches alongside the main line
  • /research-agent:resume {name} continues this branch later (in the same worktree)
  • /research-agent:synthesize {name} concludes just this branch; a main-line /research-agent:synthesize compares all branches

Read the full file on GitHub · 54 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. 1mo ago Changed · +1 lines · +3 tokens per session 318f011a8a97
  2. 1mo ago First seen · 53 lines · 56 tokens per session scan A 091d9911feac

Subscribe to this mod's changes

branch is a skill published in the GitHub repository queelius/claude-anvil (3 stars, last pushed 1mo ago), licensed MIT. It adds 59 tokens to every session and 707 once invoked, about $0.0002 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-10-19.

Related

branch compared with skills from other repositories

branch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
branchqueelius/claude-anvilSkill31mo agoMITA59Claude Code
demoalivecontext/aliveSkill13217d agoMITA50Claude Code
system-upgradealivecontext/aliveSkill13217d agoMITA55Claude Code
karpenternitinjain999/platform-skillsSkill755d agoApache-2.0A131Claude Code
session-historyalivecontext/aliveSkill13217d agoMITA74Claude Code
worldalivecontext/aliveSkill13217d agoMITA61Claude Code
azurenitinjain999/platform-skillsSkill755d agoApache-2.0A39Claude Code