jakelevirne/pi-relay/pi-fanout

Claude Code and agent skill by jakelevirne/pi-relay

Trust tier 3
  • community
Source check pending

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

SKILL.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.

MODE: text | build
CWD: <directory for build mode; default: current working directory>
MODEL: <pi model id> e.g. accounts/fireworks/models/kimi-k3
PROVIDER: <pi provider> e.g. fireworks
THINKING: off|minimal|low|medium|high
PROMPT:
<the prompt, verbatim, to the end>

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

Agent({ subagent_type: 'pi-relay:pi-runner',
prompt: 'MODE: text\nPROMPT:\nSummarize the tradeoffs of ...' })

Using it inside a Workflow script

Define one helper and choose per step who does the work:

js
const kimi = (mode, prompt, opts = {}) => agent(
`MODE: ${mode}\nPROMPT:\n${prompt}`,
{ agentType: 'pi-relay:pi-runner', model: 'haiku', effort: 'low', ...opts })
const design = await kimi('build', 'Read the spec below and write DESIGN.md ...') // pi
const impl = await parallel(files.map(f => () =>
kimi('build', `Read DESIGN.md. Write only ${f} ...`, { label: `impl:${f}` }))) // pi, parallel
const review = await agent('Review DESIGN.md against the files ...', { schema }) // Claude

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 schema on the relay call and tell pi in the prompt to answer

with JSON in that shape. The relay copies it into the schema.

  • Parallel build steps 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:

js
{
spec: 'one paragraph describing what to build', // required
files: [{ file: 'index.html', note: 'markup only ...' }], // required, one parallel pi run each
designFile: 'DESIGN.md', // optional
skipDesign: false, // true if designFile already exists
model: 'accounts/fireworks/models/kimi-k3', // optional, any pi model id
provider: 'fireworks', // optional
thinking: 'medium', // optional
reviewEffort: 'medium', // optional, Claude review effort
}

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jakelevirne/pi-relay/pi-fanout/badge)](https://verified-skill.com/skills/jakelevirne/pi-relay/pi-fanout)

Something wrong with this skill or its page? Tell us.