subagent
Skill2 starsChanged 33 days agoMITView on GitHub
Delegate exploration, review or implementation to isolated child agents. Use for named agents, parallel or background tasks, budgets, steering and the worktree diff/apply/discard loop. Jev selects the model; local policy controls tools.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- nateslabach/skillstheir own version, first seen Nov 8, 2026
- ShmalexM/agent-skillstheir own version, first seen Nov 1, 2026
- ethanhq/cc-fleettheir own version, first seen Oct 25, 2026
- yusei531642/vibe-editortheir own version, first seen Oct 20, 2026
- silacode/agent-skillstheir own version, first seen Oct 15, 2026
- petestewart/claude-skillstheir own version, first seen Jan 16, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- ethanhq/cc-fleet★ 185same name
- nateslabach/skills★ 6same name
- yusei531642/vibe-editor★ 4same name
- petestewart/claude-skills★ 2same name
- ShmalexM/agent-skills★ 0same name
- silacode/agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 78
Every Pi child launched through this package receives one mandatory package-owned rule appended after persona/caller text: do not run tests …
- Very specific: line 90
Use /subagents for the inspector and /subagent-cost for the ledger.
- Distinctive: line 100
Read tool modes and advanced usage only when needed for resume/fork, synthesis, structured output, output files, explicit tool or …
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Subagent
Delegate independent research, clean-context review or isolated implementation.
Give each task enough context to stand alone, a short description, and the lowest
honest difficulty: simple for bounded checks, moderate for ordinary multi-file
work, complex for architecture or unknown-root-cause debugging. Prefer a suitable
named agent when available; its persona must fit the task.
Common calls
These examples work in the default compact mode. Omit model, fallback_models
and thinking; callers cannot select them.
// Single foreground task; single defaults to general, so select read-only explicitly.
{ task: "Map parseConfig callers", description: "Map config callers", profile: "explore", difficulty: "simple" }
// Parallel workers default to explore.
{ tasks: [
{ task: "Review auth validation", description: "Auth validation review", difficulty: "simple" },
{ task: "Review session expiry", description: "Session expiry review", difficulty: "simple" }
] }
// Background only when you have independent work to do meanwhile.
{ task: "Audit dependency licenses", description: "Dependency license audit", profile: "review", difficulty: "moderate", max_turns: 20, async: true }
{ action: "status", id: "<run-id>" }
{ action: "wait", id: "<run-id>" }
// Equivalent dedicated tool: subagent_wait { id: "<run-id>", timeout_ms: 30000 }
{ action: "steer", id: "<run-id>", message: "Focus on src and wrap up" }
{ action: "cancel", id: "<run-id>" }
// Isolated changes; inspect before applying. index selects a parallel worker.
{ task: "Implement the approved fix", description: "Implement approved fix", profile: "general", difficulty: "moderate", isolation: "worktree" }
{ action: "diff", id: "<run-id>", index: 0 }
{ action: "apply", id: "<run-id>", index: 0 }
{ action: "discard", id: "<run-id>", index: 0 }Permissions and delivery
- A
tasks[]batch supports at most 10 workers. Default concurrency is 10 per parent session; explicit configuration and machine-wide limits still apply. exploreandreviewreject ordinary write-capable tools.generalpermits locally allowed tools and may write. These profiles and worktrees are not OS sandboxes.cwdselects the working directory.- Parallel writers need separate worktrees or distinct checkouts. Applying a worktree lands uncommitted changes; inspect the diff first. Discard removes the selected worktree/branch or archived patch, so use it only for unwanted work.
- Named agents supply persona and trusted defaults, not permission to bypass policy. Jev chooses only the model. Local policy selects the complete permitted ordinary tool set; Pi owns native tool activity. Startup verifies the model and child capabilities, recording unforced omissions and refusing missing explicitly required tools. Unsupported combinations fail closed.
- Collect with
waitorsubagent_wait, rather than polling. Timeout or abort of a wait neither cancels nor consumes the run. Completion notifications do not consume the once-only full result. Usecancelto stop work. A failed setup can still have a collectable run ID; do not start duplicate work blindly. - Task
timeout_msis one elapsed reminder/handoff threshold, not a stop limit. It includes preflight, routing, setup, queue, attempts and synthesis; parallel uses the shortest resolved item value. Foreground returns the same full run ID at the threshold; background gets one reminder. Use status/wait/steer/cancel. Saved time settings are now advisory; a reminder renews no paid-call allowance. max_turns/max_costkeep their wrap-up grace; independent startup/request/stall faults still stop work. Foreground abort cancels before handoff. After handoff or async startup, the old caller signal no longer owns the run; explicit cancel and session shutdown still do. The trusted unranked SDK keeps its hard timeout.- Jev selection can incur separate fees.
max_costis a soft provider-reported execution-cost ceiling, not a cap on selector charges. Routing currency is unreported. A selector failure stops new dispatch; management needs no routing credential. Ranked model failover is limited to recognized settled availability errors before any tool starts; uncertain activity or task-quality failures do not authorize another attempt. - Every Pi child launched through this package receives one mandatory package-owned rule appended after persona/caller text: do not run tests or test commands or ad-hoc smoke/reproduction checks, and do not create or modify test code, scripts, fixtures or harnesses, directly or via another child. No request field removes it. You may implement source/doc changes and review source, diffs and existing tests statically; executable testing belongs only to the TOP-LEVEL main agent, never to a delegated child, so a child that delegates further still owns no tests. Report what stays untested instead of claiming results. Logs and backups stay allowed within your existing scope, permissions and privacy rules. This is instruction-only, not a sandbox; it covers launches after the updated package code is loaded, not running or independently launched processes.
- Use
/subagentsfor the inspector and/subagent-costfor the ledger.
Advanced mode and setup
Compact keeps ordinary single/parallel/background work, budgets and management.
Advanced caller controls require toolMode: "full" in the existing private
~/.pi/subagent.json and an extension reload/restart. Finish active work before
reloading. A file edit alone does not switch the current tools. Never silently
remove a requested hidden option; explain the requirement instead.
Read tool modes and advanced usage only when
needed for resume/fork, synthesis, structured output, output files, explicit tool
or system-prompt overrides, per-call retry/grace tuning, WIP seeding, background
process retention, unsafe shared writes or paid plan. Full exposes these
options without enabling them. Trusted named/config defaults, old artifacts and
the explicit-spec SDK remain available independently of the public mode.
The user configures routing via jevRouting in the same private file; see
routing setup. Never read, print or copy
its API key into task text, prompts or logs. Only trusted routing endpoints may
receive task/model information and the credential. Execution-provider auth is
separate. Do not install, publish or alter user configuration to bypass a failed
route.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

