using-pi-subagents

using-pi-subagents is a skill for Claude Code, Codex from narumiruna/pi-extensions. It costs 54 tokens per session (2,102 once invoked), scanned A, original, MIT.

A guide for running Pi subagent jobs, where separate agent tasks handle independent pieces of work. It covers delegation, permissions, timeouts, messaging, and result checks.

In plain words
What is it for?
Use it to choose tools for a subagent, launch parallel jobs, exchange updates, wait for results, and verify the work.
Why use it?
It helps decide when splitting work is useful and reduces mistakes when starting, monitoring, or cancelling delegated tasks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to choose tools for a subagent, launch parallel jobs, exchange updates, wait for results, and verify the work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/narumiruna/pi-extensions/using-pi-subagents
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add narumiruna/pi-extensions --skill using-pi-subagents
Clone the repo
git clone --depth 1 https://github.com/narumiruna/pi-extensions

Made for: Claude Code, Codex.

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 using-pi-subagents

README.md
[![agentmods](https://agentmods.dev/badge/skills/narumiruna/pi-extensions/using-pi-subagents/github.svg)](https://agentmods.dev/skills/narumiruna/pi-extensions/using-pi-subagents)
Your own site
<a href="https://agentmods.dev/skills/narumiruna/pi-extensions/using-pi-subagents"><img src="https://agentmods.dev/badge/skills/narumiruna/pi-extensions/using-pi-subagents/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for using-pi-subagents

Your own site · 80×15
<a href="https://agentmods.dev/skills/narumiruna/pi-extensions/using-pi-subagents"><img src="https://agentmods.dev/badge/skills/narumiruna/pi-extensions/using-pi-subagents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,102 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00054 $0.02102
Opus 5.5 $0.00022 $0.00841
Sonnet 5.5 $0.00011 $0.00420
Haiku 4.5 $0.00005 $0.00210

Measured 10d ago against content hash 26fcd5bc15f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

using-pi-subagents 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 10d 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.

packages/pi-subagents/skills/using-pi-subagents/SKILL.md · 234 lines

How it starts

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

Using Pi Subagents

Use this skill when deciding whether or how to delegate with the subagent_* tools.

Prefer direct work

Only use a subagent when the work can be split into independent tasks, or when context isolation provides a concrete benefit.

Otherwise, do the work directly.

Keep planning, critical-path work, integration, deterministic checks, authorization decisions, and the final answer in the main agent.

Do the work directly when it is simple, latency-sensitive, tightly coupled to the current context, likely to need user clarification, or faster than preparing and verifying a delegation.

Nested subagents are unsupported.

Spawn one least-privilege job

Use subagent_spawn for one subagent job.

The task defines the child's specialization, objective, constraints, and expected result.

The selected tools define what the child can do.

Select only from read, bash, powershell, edit, write, grep, find, ls, and codemode.

Omit tools for the read-only default of read, grep, find, and ls.

Pass an explicit empty list when the child needs no work tools.

Add only the smallest sufficient tool set for the task.

Select codemode explicitly when the child needs scripted tool calls, parallel calls, or output filtering.

Select the tools that scripts need separately; codemode does not enable automatic extension or MCP discovery.

Treat codemode classifier and image model calls as provider requests that can disclose data and incur costs.

Treat bash and powershell as unrestricted command execution that can also modify the workspace.

Treat edit and write as explicit workspace mutation capabilities.

The runtime always adds subagent_send and child subagent_wait for communication.

Attach skills only when the child needs reusable instructions that should remain available through Pi's progressive disclosure.

Each attached skill path must be a local Markdown skill file or a directory containing at least one skill Pi can load, with skill names unique across all attachments. Every declared skill discovered within a directory must load successfully; one valid skill does not make a partially invalid directory acceptable.

Read the full file on GitHub · 234 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. 10d ago Changed · +6 lines 26fcd5bc15f8
  2. 28d ago Changed · +20 lines 7a3fcd0c59f9
  3. 1mo ago First seen · 208 lines · 54 tokens per session scan A fa63bcc853cb

Subscribe to this mod's changes

using-pi-subagents is a skill published in the GitHub repository narumiruna/pi-extensions (723 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 2,102 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other skills, from other repositories

migrate-to-shoehorn

Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.

wangmiaozero/pi-harness · 48 tokens

pi-tui-design

Create distinctive, crafted TUI components for pi using @mariozechner/pi-tui and @mariozechner/pi-coding-agent. Use when building interactive terminal UIs — custom components, overlays, dialogs, dashboards, widgets, data visualizations, animated elements, game-like interfaces, or any visual TUI work inside pi…

joelhooks/pi-tools · 139 tokens

session-search

Search and verify Joel's Pi, Claude, Codex, Cursor, Grok, and OpenCode session history. Use when asked to recover prior context, find exact transcript evidence, inspect session receipts, continue old work, or verify capture health. Prefer flowing recall before raw transcript search when the question is about prior…

joelhooks/pi-tools · 70 tokens

linear-tracker

Resolve project-local issue tracker routing and publish Linear issues safely. Use before creating Linear issues, PRDs, phase breakdown issues, or when deciding whether Linear/GitHub/local docs is the configured tracker. Enforces capability ≠ routing: Linear requires project-local policy, team association, auth, and…

joelhooks/pi-tools · 67 tokens

shortlink-qr

Create joel.dev shortlinks and QR assets. Use when Joel asks for a QR code, stage/demo shortlink, joel.dev redirect, link label that looks good in phone camera UI, or a copyable QR asset.

joelhooks/pi-tools · 51 tokens

session-capture

Historical pointer for the retired Codex-to-Central capture plugin. Use only to inspect legacy state during migration; current capture belongs to the joelclaw flowing-memory host adapter.

joelhooks/pi-tools · 40 tokens