Skip to content
Development
Command

/parallel-rescue

Delegate multiple independent tasks to Pi for parallel execution via pi-subagents

From plugin
pi-plugin-cc
368 skills1 agent8 commands
Install
$ npx -y skills add Agents365-ai/pi-plugin-cc --agent claude-code

How 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.md
description: 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.

Ships withpi-plugin-cc

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.

Get the whole plugin, auto-invoked
Stats
36
Stars
0
Views
4
Forks
Active
Maintenance
JavaScript
Language
Apache-2.0
License
13d ago
Last commit
2mo ago
Created

Repo: Agents365-ai/pi-plugin-cc