pi-subagent
Delegate tasks to specialized subagents for parallel or sequential execution.
Install / Use
npx skills add espennilsen/pi --skill pi-subagentInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of pi-subagent
pi-subagent scores 73/100 on our quality scale, 1748th of 2,717 Development & Engineering skills we index.
Its SKILL.md is 4.6 KB long, well organised into 12 sections with 8 code examples: a solid amount of guidance for an agent.
It has no GitHub stars yet, so there is no community track record; judge it on its content.
Maintenance, license and trust
- The repository was last updated 6 days ago, so pi-subagent is actively maintained.
- Our last check on 2026-09-24 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 80/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
pi-subagent compared with similar skills
All 4 of these similar skills score higher than pi-subagent; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| pi-subagent (this skill)by espennilsen | 73 | 0 | 6d ago | SKILL.md |
| ai-job-searchby MadsLorentzen | 100 | 44.1k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | 1d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 5d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 5d ago | SKILL.md |
Frequently asked questions
- How do I install pi-subagent?
- Run
npx skills add espennilsen/pi --skill pi-subagent. The install tabs above show the steps for each supported agent. - Which AI agents does pi-subagent work with?
- It is written for Zed, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is pi-subagent safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 80/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is pi-subagent still maintained?
- The repository was last updated 6 days ago, so pi-subagent is actively maintained.
Skill content
View source on GitHubname: pi-subagent description: Delegate tasks to specialized subagents for parallel or sequential execution.
Subagent Orchestration
Use the subagent tool to delegate tasks to isolated pi subprocesses. Each subagent gets a fresh context window — no shared state with the parent session.
When to use subagents
- A task can be split into independent pieces that run in parallel
- You need a chain of specialists (scout → planner → worker)
- A subtask benefits from a clean context window (no accumulated noise)
- You want crash isolation (failed subtask doesn't corrupt main session)
Modes
Single — one agent, one task
{ "agent": "scout", "task": "Find all REST endpoints in " }
Parallel — multiple agents concurrently (streams progress as each completes)
{ "tasks": [
{ "agent": "scout", "task": "Audit auth module" },
{ "agent": "scout", "task": "Audit API routes" },
{ "agent": "scout", "task": "Audit database queries" }
]
}
Chain — sequential pipeline, use {previous} for prior step's output
{ "chain": [
{ "agent": "scout", "task": "Find all TODO comments in the codebase" },
{ "agent": "planner", "task": "Categorize and prioritize these TODOs:\n{previous}" },
{ "agent": "worker", "task": "Fix the top 3 critical TODOs:\n{previous}" }
]
}
Per-task options
Every task (single, parallel item, chain step) supports these overrides:
| Option | Type | Description |
|--------|------|-------------|
| model | string | Model override (e.g. "claude-haiku-4-5" for fast, "claude-sonnet-4-5" for complex) |
| thinking | string | Thinking level: off, minimal, low, medium, high, xhigh |
| extensions | string[] | Extension paths to load (subagents run with -ne — only whitelisted) |
| skills | string[] | Skill files/dirs to load via --skill |
| noTools | boolean | Disable all built-in tools (--no-tools) — for analysis-only agents |
| noSkills | boolean | Disable skill discovery (-ns) |
| cwd | string | Working directory override |
Priority: per-task item > top-level params > agent .md frontmatter > global settings
Examples
Fast recon with cheap model, no thinking overhead:
{ "agent": "scout", "task": "Map the auth module", "model": "claude-haiku-4-5", "thinking": "off" }
Research task needing web search:
{ "agent": "worker", "task": "Find pricing for Vercel Pro", "extensions": ["extensions/pi-brave-search"] }
Parallel with different models per task:
{ "tasks": [
{ "agent": "scout", "task": "Map the codebase", "model": "claude-haiku-4-5" },
{ "agent": "reviewer", "task": "Review the PR diff", "model": "claude-sonnet-4-5", "thinking": "high" }
]
}
Chain with escalating capability:
{ "chain": [
{ "agent": "scout", "task": "Map the auth module", "model": "claude-haiku-4-5", "thinking": "off" },
{ "agent": "planner", "task": "Plan a refactor based on: {previous}", "thinking": "high" },
{ "agent": "worker", "task": "Implement the plan: {previous}", "thinking": "medium" }
]
}
Extension isolation
Subagents always run with --no-extensions (-ne). They cannot:
- Spawn further subagents (pi-subagent is always blocked)
- Send messages via channels, cron, or heartbeat
- Access the web dashboard or webserver
Whitelist only what a specific task needs via the extensions parameter.
Agent scope
"user"(default) — loads from~/.pi/agent/agents/*.md"both"— also includes.pi/agents/*.md(prompts for confirmation)"project"— only project-local agents
Creating agents
Place .md files in ~/.pi/agent/agents/ with YAML frontmatter:
---
name: scout
description: Fast codebase reconnaissance
tools: read, grep, find, ls, bash
extensions: extensions/pi-dotenv
model: claude-haiku-4-5
---
System prompt for the agent goes here...
| Frontmatter | Description |
|-------------|-------------|
| name | Agent name (required) |
| description | What the agent does (required) |
| tools | Comma-separated tool whitelist |
| model | Default model |
| extensions | Comma-separated extension paths to load |
Tips
- Scout first: use scout (haiku, fast) for recon, then hand results to planner/worker
- Parallel for independence: only parallelize truly independent tasks
- Chain for pipelines: scout → planner → worker is the classic pattern
- Model matching: use haiku for simple recon, sonnet for analysis/implementation
- Thinking levels:
offfor fast tasks,high/xhighfor complex reasoning - Keep extensions minimal: only whitelist what's actually needed per task
Related Skills
ai-job-search
44.1kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
