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.
npx skills add narumiruna/pi-extensions --skill using-pi-subagentsgit clone --depth 1 https://github.com/narumiruna/pi-extensionsWrote 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.
[](https://agentmods.dev/skills/narumiruna/pi-extensions/using-pi-subagents)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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.
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.
- 10d ago Changed · +6 lines 26fcd5bc15f8
- 28d ago Changed · +20 lines 7a3fcd0c59f9
- 1mo ago First seen · 208 lines · 54 tokens per session scan A fa63bcc853cb
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.
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.
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…
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…
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…
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.
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.