hybrid-resume

hybrid-resume is a command for Claude Code from Taoidle/plan-cascade. It costs 37 tokens per session (5,311 once invoked), scanned A, original, MIT.

A command that detects the saved state of an interrupted hybrid task and continues it. A hybrid task may use a separate Git worktree, which is an isolated working directory connected to the same repository, or the regular project directory.

In plain words
What is it for?
Use it to resume an interrupted hybrid task, with an optional automatic mode for continuing execution.
Why use it?
It lets work continue from the detected checkpoint instead of restarting or locating state files manually.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the plan-cascade plugin — 7 skills, 33 commands shipped together

Good fit Use it to resume an interrupted hybrid task, with an optional automatic mode for continuing execution.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Taoidle/plan-cascade
Claude Code
/plugin install plan-cascade

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/taoidle/plan-cascade/hybrid-resume.svg)](https://agentmods.dev/commands/taoidle/plan-cascade/hybrid-resume)
Your own site
<a href="https://agentmods.dev/commands/taoidle/plan-cascade/hybrid-resume"><img src="https://agentmods.dev/badge/commands/taoidle/plan-cascade/hybrid-resume.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,311 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.00037 $0.05311
Opus 5 $0.00018 $0.02655
Sonnet 5 $0.00007 $0.01062
Haiku 4.5 $0.00004 $0.00531

Measured 8d ago against content hash 5fe508da6f1c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

hybrid-resume 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 8d 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-resume.md · 790 lines

How it starts

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

Resume Interrupted Hybrid Task

Resume execution of an interrupted hybrid task by detecting current state from existing files.

Path Storage Modes

This command works with both new and legacy path storage modes:

New Mode (Default)

  • Worktrees in: ~/.plan-cascade/<project-id>/.worktree/ (Unix) or %APPDATA%/plan-cascade/<project-id>/.worktree/ (Windows)
  • State files in: ~/.plan-cascade/<project-id>/.state/
  • PRD files in worktree directory

Legacy Mode

  • Worktrees in: <project-root>/.worktree/
  • State/PRD files in project root or worktree

The command auto-detects which mode is active and scans the appropriate directories.

Tool Usage Policy (CRITICAL)

To avoid command confirmation prompts during automatic execution:

  1. Use Read tool for file reading - NEVER use cat via Bash

    • Read("prd.json"), Read("progress.txt"), Read(".planning-config.json")
    • Bash("cat prd.json")
  2. Use Glob tool for finding files - NEVER use ls or find via Bash

    • Glob(".worktree/*/.planning-config.json")
    • Bash("ls .worktree/")
  3. Use Grep tool for content search - NEVER use grep via Bash

    • Grep("[COMPLETE]", path="progress.txt")
    • Bash("grep '[COMPLETE]' progress.txt")
  4. Only use Bash for actual system commands:

    • Git operations: git status, git checkout
    • Directory navigation: cd (only when necessary)
    • File writing: echo "..." >> progress.txt

Works with both:

  • hybrid-worktree tasks (in .worktree/ directories)
  • hybrid-auto tasks (in regular directories)

Arguments

  • --auto: Continue in fully automatic mode (no confirmation prompts)

Step 1: Detect Context

IMPORTANT: Use Read/Glob tools for file detection, NOT Bash

1.1: Check if in Worktree

Use Read tool (NOT Bash) to check for worktree config:

Read(".planning-config.json")

If Read succeeds:

  • Parse the JSON content
  • Check if mode equals "hybrid"
  • If yes: CONTEXT="worktree", extract task_name, target_branch
  • Log "✓ Detected hybrid worktree: {task_name}"

Read the full file on GitHub · 790 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. 8d ago First seen · 790 lines · 37 tokens per session scan A 5fe508da6f1c

Subscribe to this mod's changes

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