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.02194 |
| Opus 5.5 | $0.00022 | $0.00878 |
| Sonnet 5.5 | $0.00011 | $0.00439 |
| Haiku 4.5 | $0.00005 | $0.00219 |
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 today.
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 — 233 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.
Name the required Pi core tools explicitly, such as ["read", "grep"] for a focused review. The child checks the names against its own Pi runtime, not the parent’s tool list.
Omit tools or pass an empty list when the child needs no core 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. For MCP, use mcpServers with exact configured server names, and select codemode to call non-direct MCP tools. Omit mcpServers unless the task needs it; only select trusted servers authorized for the task. The child does not inherit the main session’s permission checks.
Treat codemode classifier and image model calls as provider requests that can disclose data and incur costs. For a job that needs one of these models, read Native model calls and include the relevant example and output requirements in the child task.
Treat bash and powershell as unrestricted command execution that can also modify the workspace.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- today Changed · +1 lines 7f17b357865d
- 13d ago Changed baca33d2e8e7
- 14d ago Changed · -2 lines c264f4143dcb
- 1mo ago Changed · +6 lines 26fcd5bc15f8
- 2mo ago Changed · +20 lines 7a3fcd0c59f9
- 3mo 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 (828 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 2,194 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.
using-pi-subagents compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| using-pi-subagentsnarumiruna/pi-extensions | Skill | 828 | today | MIT | A | 54 | Claude Code, Codex |
| migrate-to-shoehornwangmiaozero/pi-harness | Skill | 375 | today | AGPL-3.0 | A | 48 | Codex |
| pi-tui-designjoelhooks/pi-tools | Skill | 90 | 5d ago | none | A | 139 | Claude Code, Codex |
| session-searchjoelhooks/pi-tools | Skill | 90 | 5d ago | none | A | 70 | Claude Code, Codex |
| linear-trackerjoelhooks/pi-tools | Skill | 90 | 5d ago | none | A | 67 | Claude Code, Codex |
| shortlink-qrjoelhooks/pi-tools | Skill | 90 | 5d ago | none | A | 51 | Claude Code |
| session-capturejoelhooks/pi-tools | Skill | 90 | 5d ago | none | A | 40 | Claude Code, Codex |