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.svg" alt="Measured on agentmods" 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.01713 |
| Opus 5 | $0.00027 | $0.00856 |
| Sonnet 5 | $0.00011 | $0.00343 |
| Haiku 4.5 | $0.00005 | $0.00171 |
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 7d 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 — 208 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, and ls.
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.
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.
The child inherits the main agent's effective provider and model at spawn time.
Spawn rejects model providers registered only by a parent extension and process-local runtime API keys.
Use a child-visible provider with Pi's stored credentials or inherited environment credentials.
Omit thinkingLevel to follow the main agent's effective thinking level.
Set thinkingLevel explicitly only when the task justifies a different level.
The job returns a job ID immediately and publishes one terminal completion.
Prefer delegation when the main agent can perform concrete non-overlapping work before the result is required.
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.
- 7d 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 (516 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 1,713 once invoked, about $0.0003 per session on Opus 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.
merge-seed
Merge upstream React Starter Kit updates (the seed remote) into main, preserving this project's identity, scope, and behavior. Use when asked to sync, pull, or merge the seed / starter kit / upstream template.
typescript-variables
Apply, review, and explain TypeScript variable conventions. Use automatically for tasks involving variable declarations, const assertions, enum alternatives, literal-union state modelling, boolean flags, or choosing between null and undefined.
typescript-functions
Apply, review, and explain TypeScript function conventions. Use automatically for tasks involving function responsibility, statelessness, purity, side effects, function arguments, function API design, or return types.
typescript-react
Apply, review, and explain React conventions from the TypeScript Style Guide. Use automatically for TypeScript and TSX tasks involving prop-derived state, prop typing, component responsibilities, data flow, compound components, or client and server state.
typescript-style-guide
Apply, review, and explain the opinionated conventions in the TypeScript Style Guide. Use automatically only when TypeScript conventions are part of the requested task, including type modelling, discriminated unions, function APIs, variables and state, naming, source organization, React props, component APIs, state…