/parallel-rescue
Delegate multiple independent tasks to Pi for parallel execution via pi-subagents
$ npx -y skills add Agents365-ai/pi-plugin-cc --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/parallel-rescue
Context preview
What this command does when you run it.
Delegate multiple independent tasks to Pi for parallel execution via pi-subagents
Command definition
parallel-rescue.mddescription: Delegate multiple independent tasks to Pi for parallel execution via pi-subagents argument-hint: '"task1" "task2" ... [--model <model>] [--effort <off|minimal|low|medium|high|xhigh|max>]' allowed-tools: Bash(node:*), AskUserQuestion
Run multiple independent tasks in parallel through Pi using pi-subagents.
First, check that pi-subagents is installed:
test -d ~/.pi/agent/extensions/subagent && echo "installed" || echo "not-installed"
If the output is "not-installed", tell the user: "pi-subagents is not installed. Run `pi install npm:pi-subagents` to enable parallel subagent execution." Then STOP — do not proceed.
Read the parallel-rescue prompt template:
cat "${CLAUDE_PLUGIN_ROOT}/prompts/parallel-rescue.md"Parse $ARGUMENTS into individual tasks. Each shell-quoted string is one task. Strip any runtime flags (--model, --effort) from the task list — those go to the pi-companion invocation, not the prompt.
Construct the prompt by replacing `{{TASKS_LIST}}` in the template with an enumerated list:
Task 1: <first task text> Task 2: <second task text> ...
Run the task through the companion:
node "${CLAUDE_PLUGIN_ROOT}/scripts/pi-companion.mjs" task --write "${PROMPT}"Return the stdout verbatim — do not paraphrase, summarize, or add commentary.
External references: Pi coding agent · Pi RPC mode · Pi providers A Claude Code plugin that delegates reviews and coding tasks to the Pi coding agent. Adapted from codex-plugin-cc, runtime swapped from Codex to Pi.
Repo: Agents365-ai/pi-plugin-cc
Other commands on pi-plugin-cc.
- /adversarial-review
Run a Pi review that challenges the implementation approach and design choices
Open command - /cancel
Cancel an active background Pi job in this repository
Open command - /rescue
Delegate investigation, an explicit fix request, or follow-up rescue work to the Pi rescue subagent
Open command - /result
Show the stored final output for a finished Pi job in this repository
Open command - /review
Run a Pi code review against local git state
Open command - /setup
Check whether the local Pi CLI is ready, show available models, and optionally toggle the stop-time review gate
Open command

