using-pi-subagents

using-pi-subagents is a skill for Claude Code, Codex from narumiruna/pi-extensions. It costs 54 tokens per session (2,194 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,194 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.02194
Opus 5.5 $0.00022 $0.00878
Sonnet 5.5 $0.00011 $0.00439
Haiku 4.5 $0.00005 $0.00219

Measured today against content hash 7f17b357865d, 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 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.

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

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.

Read the full file on GitHub · 233 lines

Files

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.

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. today Changed · +1 lines 7f17b357865d
  2. 13d ago Changed baca33d2e8e7
  3. 14d ago Changed · -2 lines c264f4143dcb
  4. 1mo ago Changed · +6 lines 26fcd5bc15f8
  5. 2mo ago Changed · +20 lines 7a3fcd0c59f9
  6. 3mo 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 (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.

Related

using-pi-subagents compared with skills from other repositories

using-pi-subagents next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
using-pi-subagentsnarumiruna/pi-extensionsSkill828todayMITA54Claude Code, Codex
migrate-to-shoehornwangmiaozero/pi-harnessSkill375todayAGPL-3.0A48Codex
pi-tui-designjoelhooks/pi-toolsSkill905d agononeA139Claude Code, Codex
session-searchjoelhooks/pi-toolsSkill905d agononeA70Claude Code, Codex
linear-trackerjoelhooks/pi-toolsSkill905d agononeA67Claude Code, Codex
shortlink-qrjoelhooks/pi-toolsSkill905d agononeA51Claude Code
session-capturejoelhooks/pi-toolsSkill905d agononeA40Claude Code, Codex