hybrid-worktree

hybrid-worktree is a command for coding agents from Taoidle/plan-cascade. It costs 125 tokens per session (8,396 once invoked), scanned A, original, MIT.

A command that creates an isolated Git worktree—a separate working copy of a repository—and starts a task with a generated or existing PRD. It also supports review and execution settings such as flow and TDD.

In plain words
What is it for?
Use it to begin an isolated feature or bug-fix task, create a worktree and branch, and prepare its implementation plan.
Why use it?
It keeps a task's files, branch, and planning document separate from other work in progress.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the plan-cascade plugin — 7 skills, 33 commands 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/taoidle/plan-cascade/hybrid-worktree
Clone the repo
git clone --depth 1 https://github.com/Taoidle/plan-cascade

Or install plan-cascade, the plugin that ships this one along with the rest of its 7 skills, 33 commands.

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 hybrid-worktree

README.md
[![agentmods](https://agentmods.dev/badge/commands/taoidle/plan-cascade/hybrid-worktree.svg)](https://agentmods.dev/commands/taoidle/plan-cascade/hybrid-worktree)
Your own site
<a href="https://agentmods.dev/commands/taoidle/plan-cascade/hybrid-worktree"><img src="https://agentmods.dev/badge/commands/taoidle/plan-cascade/hybrid-worktree.svg" alt="Measured on agentmods" height="20"></a>
Per session 125 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,396 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 $0.00125 $0.08396
Opus 5 $0.00063 $0.04198
Sonnet 5 $0.00025 $0.01679
Haiku 4.5 $0.00013 $0.00840

Measured 4d ago against content hash 1e10e2df7ba8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hybrid-worktree 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 4d 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.

commands/hybrid-worktree.md · 985 lines

How it starts

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

Hybrid Ralph + Worktree Mode (Fully Automated)

You are starting a task in Git Worktree + Hybrid Ralph mode. This will create the worktree and handle the PRD automatically.

Execution Flow Parameters

This command accepts flow control parameters that affect story execution:

Parameter Priority

Parameters are saved to prd.json in the worktree and later used by /plan-cascade:approve. Priority order:

  1. Command-line flags to THIS command (highest priority)

    • Example: /plan-cascade:hybrid-worktree --flow full fix-auth main "Fix bug"
    • Saved to <worktree>/prd.json as flow_config, tdd_config, etc.
  2. Command-line flags to /plan-cascade:approve (when run in worktree)

    • Can override values saved in prd.json
  3. Default values (lowest priority)

Worktree Isolation: Parameters are stored in the worktree's prd.json, ensuring complete isolation from other tasks. When you run /plan-cascade:approve in the worktree, it automatically finds and uses this PRD.

Example:

# Create worktree with strict flow
/plan-cascade:hybrid-worktree --flow full --tdd on fix-auth main "Fix authentication bug"
# → Creates worktree at .worktree/fix-auth/
# → Saves prd.json with flow_config.level="full", tdd_config.mode="on"

# Later, in the worktree directory:
cd .worktree/fix-auth/
/plan-cascade:approve
# → Uses flow="full", tdd="on" from prd.json in current worktree

--flow <quick|standard|full>

Override the execution flow depth for the approve phase.

Flow Gate Mode AI Verification Code Review Test Enforcement
quick soft disabled no no
standard soft enabled no no
full hard enabled required required

--tdd <off|on|auto>

Control Test-Driven Development mode for story execution.

Mode Description
off TDD disabled
on TDD enabled with prompts and compliance checks
auto Automatically decide based on risk assessment (default)

Read the full file on GitHub · 985 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. 4d ago First seen · 985 lines · 125 tokens per session scan A 1e10e2df7ba8

Subscribe to this mod's changes

hybrid-worktree is a command published in the GitHub repository Taoidle/plan-cascade (131 stars, last pushed 5mo ago), licensed MIT. It adds 125 tokens to every session and 8,396 once invoked, about $0.0006 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.