jakelevirne/pi-relay/pi-fanout
Claude Code and agent skill by jakelevirne/pi-relay
- community
Checking that the SKILL.md file is still in the repository.
Fan Claude Code work out to a non-Claude model (Kimi K3 by default, or any model pi supports such as GLM, MiniMax, DeepSeek) through the pi-relay plugin. Use when the user says "fan out to kimi", "run this on kimi/glm/pi", "use cheap workers", "have pi do the design/implementation", or wants a Workflow where some or all steps run on a different model while Claude orchestrates and reviews.
Install
npx vskill@latest install jakelevirne/pi-relay/pi-fanoutSKILL.md
The same SKILL.md was published earlier as jakelevirne/pi-relay/pi-fanout.
pi-fanout
The pi-relay plugin gives every Claude Code session a relay subagent, pi-relay:pi-runner, that runs one headless pi job and returns pi's output verbatim. Claude keeps the orchestration and the judgment steps; pi does the generation.
Before the first run on a machine
Run "${CLAUDE_PLUGIN_ROOT}/bin/pi-doctor". It checks that pi is installed, the model is in pi's catalog, credentials exist, and a three-second smoke test passes. If it fails, stop and show the user the output; nothing below will work until it passes.
The relay task format
A relay task is plain text. MODE and PROMPT are required; the rest are optional.
text mode gives pi no tools: use it for answers, plans, reviews, JSON. build mode gives pi its read/bash/edit/write tools inside CWD: use it when pi should create or change files. Defaults come from env PI_RELAY_PROVIDER, PI_RELAY_MODEL, PI_RELAY_THINKING.
Using it from the Agent tool
Using it inside a Workflow script
Define one helper and choose per step who does the work:
Rules that matter:
- Keep the relay cheap: always
model: 'haiku', effort: 'low'. The relay only copies text
and runs a command.
- Every step is stateless, exactly like a Claude subagent. Pass context through prompts or
files on disk. A shared contract file (DESIGN.md) is the usual way to let parallel pi runs agree on names.
- Structured output works: put
schemaon the relay call and tell pi in the prompt to answer
with JSON in that shape. The relay copies it into the schema.
- Parallel
buildsteps must write disjoint files, or give each relay
isolation: 'worktree' (pi inherits the relay's cwd).
- Keep judgment on Claude: reviews, adversarial verification, synthesis, and anything that
decides what happens next. Send generation and mechanical work to pi.
- Two limits stack: the workflow's concurrency cap and the provider's rate limit. A handful
of parallel pi runs is fine; dozens will queue at the provider.
- Never put a prompt into a shell command yourself. The relay writes it to a file and
pi-run pipes the file into pi.
Ready-made workflow
Workflow({ name: 'pi-relay:design-build-review', args: {...} }) runs the pattern above end to end: pi writes a design contract, pi implements each file in parallel, Claude reviews for cross-file mismatches, pi applies any blocker/major findings. Args:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pi-fanout/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jakelevirne/pi-relay/pi-fanout)