fork

fork is a command for Claude Code from MadeByTokens/claude-brainstorm. It costs 23 tokens per session (399 once invoked), scanned A, original, MIT.

A brainstorming command that opens a separate thread for exploring a side topic while keeping the main discussion intact.

In plain words
What is it for?
Use it to branch into a related question, label the new thread, and start developing ideas there before returning to the parent thread.
Why use it?
It prevents a useful tangent from derailing the original idea and lets you return to it later.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the brainstorm plugin — 6 commands, 2 hooks shipped together

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.

agentmods
npx agentmods add commands/madebytokens/claude-brainstorm/fork
Clone the repo
git clone --depth 1 https://github.com/MadeByTokens/claude-brainstorm

Made for: Claude Code.

Or install brainstorm, the plugin that ships this one along with the rest of its 6 commands, 2 hooks.

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 fork

README.md
[![agentmods](https://agentmods.dev/badge/commands/madebytokens/claude-brainstorm/fork.svg)](https://agentmods.dev/commands/madebytokens/claude-brainstorm/fork)
Your own site
<a href="https://agentmods.dev/commands/madebytokens/claude-brainstorm/fork"><img src="https://agentmods.dev/badge/commands/madebytokens/claude-brainstorm/fork.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 399 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00023 $0.00399
Opus 5 $0.00012 $0.00199
Sonnet 5 $0.00005 $0.00080
Haiku 4.5 $0.00002 $0.00040

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

Security

Grade A, and why

fork 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • fork — 100% identical, 0 lines differ
commands/fork.md · 57 lines

What it actually says

Fork Brainstorming Thread

The user wants to explore a tangent. Create a new branch in the brainstorming session.

Arguments

$ARGUMENTS contains the topic for the fork.

Actions to Perform

  1. Update session state:

    • Push current thread onto the thread stack
    • Set current thread to the new fork name
    • Add fork to the list of open forks
    • Assign fork number (FORK 1, FORK 2, or nested like FORK 1.1)
  2. Update session file:

    • Add a separator line ---
    • Add new section header: ## [FORK X] [topic name]
    • Add parent reference: Parent: [previous thread]
  3. Acknowledge the fork to user:

FORKED: "[topic]"
Parent: [previous thread name]

Exploring this tangent now. Use /brainstorm:back to return.

[Then immediately start brainstorming on this new topic - ask a provocative question or offer initial ideas]

Fork Numbering

  • First fork from MAIN: FORK 1
  • Second fork from MAIN: FORK 2
  • Fork from FORK 1: FORK 1.1
  • Fork from FORK 1.1: FORK 1.1.1
  • etc.

Important

  • Stay in brainstorming mode
  • Immediately start generating ideas for the new fork topic
  • Keep the same energy and rules as the main brainstorm
  • Don't ask "are you sure?" - just fork and go
  • Forks can be nested as many levels as needed

If No Topic Provided

If $ARGUMENTS is empty, ask: "What tangent do you want to explore?"

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. 6d ago First seen · 57 lines · 23 tokens per session scan A d370313e6dae

Subscribe to this mod's changes

fork is a command published in the GitHub repository MadeByTokens/claude-brainstorm (13 stars, last pushed 7mo ago), licensed MIT. It adds 23 tokens to every session and 399 once invoked, about $0.0001 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.