Bring your specialists.
Reuse your specialist prompts and choose their context.
Launch Pi specialists you can watch, steer, and join, using your own prompts and models.
Native interactive sessions run in tmux, Zellij, Herdr, WezTerm, or Herdr Core; Rex requires a live block with verified ownership.
pi -e npm:pi-subagenturaAvailable now on npm. Use native WezTerm panes or independent Herdr Core terminals. In an attached Zellij session, select mux: "zellij" explicitly.
Add --split to --orchestratorv2 to let Pi divide broad requests into smaller tasks. The option divides tasks, not terminal panes.
Watch a parent and its specialists work through a real task. This 8-minute edit preserves the session’s order, with quiet stretches accelerated and English translations.
Yes. I reviewed the current head of PR #166.
I started two interactive subagents on Luna/max: an implementation worker in the separate worktree/branch feat/jev-routing-provider-neutral, and an architecture reviewer in feat/decision-plan-review. They communicate through pi-intercom; after the first commit I will continue with the upper layer and link the branches through gh stack.
Understood. I will wait for the subagent notification, then verify the commit and create the stacked PRs.
The second agent has written the tests; it only found missing node_modules in the new worktree. I’m waiting for the final commit before verifying both layers.
The generic decision core is implemented and in final checks; I’m waiting for its SHA before verification and stacked PRs.
The runtime agent exited after implementation but before commit. Its worktree, commit 72ca933, src/decision/* files, tests, and package allowlist survived; a new Luna/max agent continues verification and the provider-neutral branch is clean.
Which agent exactly? The decision-runtime-core agent exited after implementation but before commit. Why was the tmux pane closed?
The process exited 0 before completion while npm test was running; no stack trace or signal is recorded, and the worktree survived.
The agent confirmed bounded diagnostics with backward compatibility and no decision-routing changes. The second agent continues hardening the generic core; both work independently.
The bounded exit metadata design is good; I requested tests for signals, malformed data, parallel starts, and legacy support.
The decision stack was created. Both PRs passed the full suite and required checks; diagnostics remains a separate fix PR.
The second agent completed and committed 59f7091. PRs #168 and #169 are clean with green CI.
I started a Luna/max agent to add the OpenRouter Decisions API adapter, shared codec, tests, and top PR in stack #170.
The OpenRouter agent confirmed the shared codec approach and explicit configuration. Work continues in the top stacked branch.
I’m waiting for the commit SHA, then I’ll verify it and add the branch as the top PR in stack #170.
The mutation pilot passed on the OpenRouter branch; the only survivor is an unrelated existing baseline. PR #172 is clean with green CI and mutation results.
Choose the model, prompt, and context for each session. For a code review, give one specialist the API contract and another the database tests.
Review the public API contract. Report findings with file references.
Open /subagents and press f to focus the specialist’s terminal, or ask the parent to send your follow-up. The specialist keeps its conversation.
Trace that failure back to the caller. Which inputs trigger it?
Review each report and its file references in the parent. Ask for clarification or keep working with the specialist that found the issue.
Collect both reports and group the findings by file.
Showing the Delegate step.
Reuse your specialist prompts and choose their context.
Choose a configured Pi model for each task.
Enter a specialist’s terminal or send a follow-up from the parent.
Run inside Pi or open a session you can enter.
Use subagent_with_context to include the parent conversation or subagent_isolated for a fresh context. Run a focused task, inspect its status, and collect the result. No multiplexer is needed.
Use subagent_interactive for a native child in tmux, Zellij, Herdr, WezTerm, or Herdr Core, or in a Rex block only when Pi's live ownership can be verified. The Rex server must already be running; the extension never autostarts it. Watch the tools run, focus or attach to the terminal, and send a follow-up in the same child context.
Neither execution path creates a Git worktree automatically. Choose the child's working directory when file changes need a separate checkout.
Keep the prompts and personas you have already built. Use the same infrastructure with your own instructions or our optional coordination prompt. With either approach, you can enter an interactive child's session.
Ask Pi for the specialists you need and choose their tasks, prompts, and models. Watch their progress and talk to them directly. Start with no orchestration flag, then add your own instructions below.
pi -e npm:pi-subagenturaTry --orchestratorv2 for bundled guidance that routes clear work to attachable specialists and reuses them for follow-ups. The parent asks for clarification when scope is ambiguous. For a clear scoped request, it can create one specialist after checking that no suitable owner exists.
This is optional coordination guidance. You can still join a specialist yourself.
An optional Jev routing advisor can recommend only an eligible, live, authorized existing native child when ownership among plausible children is ambiguous. The parent sends the task; the advisor does not choose the child's model or dispatch work. It needs a classifier in Pi's installed catalog and configured provider authentication. OpenAI Decisions with openai/gpt-6-luna is available only if that exact catalog classifier exists; configured authentication does not verify credentials or live provider availability.
pi -e npm:pi-subagentura --orchestratorv2For less autopilot, tell Pi how you want to delegate. Point it at your own folder of specialist prompts:
pi -e npm:pi-subagentura --append-system-prompt \
"Ask me before delegating. Read the specialist prompts in ./agents and pass the chosen prompt as the child's persona."Replace ./agents with your prompt folder. The parent reads the selected file and passes its instructions to the child; the folder is not automatically imported.
Already have coordination instructions in a file? Pi accepts a file path too:
pi -e npm:pi-subagentura --append-system-prompt ./team-instructions.mdAfter installing the extension, you can omit -e npm:pi-subagentura. These instructions guide the model; they do not enforce an approval gate.
These two real session replays show delegation, further direction, and collected reports. A specialist can also bring in its own bounded descendants.
Follow the parent as it delegates work and sends a follow-up to an existing specialist.
Open parent replaySee a child launch recovery-safety and package/API reviewers, redirect them, and collect their findings.
Open child replayReplays generated with vibe-replay.
Several Pi extensions offer steering, continuation, and reusable agent definitions. Compare where the work runs, how you intervene, and how files are isolated.
8 extensions. Documentation reviewed . Source revisions, execution models, terminal interaction, worktree behavior, and tradeoffs are listed together.
Maintained by pi-subagentura's creator. The guide describes documented features; it does not rank speed, cost, reliability, or popularity.
Pi subagent statistics 2026 distills the reviewed sample into source-linked findings, with downloadable JSON and CSV.
Closest terminal alternative: HazAT/pi-interactive-subagents also supports attachable sessions, with cmux and WezTerm options. nicobailon and tintinweb provide broader controls inside Pi. Read each project's current requirements before installing.
npm counts include CI and repeat downloads; they do not measure unique people. Read the dated series and method · See a scoped census of eight Pi sub-agent extensions
Practical answers about prompts, context, recovery, and costs. These describe v4.4.0; the released README is the source of truth.
pi-subagentura is an open-source extension for the Pi coding agent. It provides in-process delegation, attachable child Pi sessions, progress and result tools, and reusable workflows. You supply your specialist prompts and choose models configured in Pi.
Yes. The subagent_with_context and subagent_isolated tools run inside the parent Pi runtime, with inherited or fresh conversation context. They do not open attachable terminals. Interactive children are separate Pi processes with native tmux, Zellij, Herdr, WezTerm, or Herdr Core backends; Rex is supported only from an already-live block whose ownership Pi can verify, and it never autostarts its server.
Orca is a host and UX integration through externally installed skills, not a vendored skill or native mux. Orca-specific host guidance is supplied on each applicable parent turn, never in native child sessions or unrelated hosts. Only when Pi and the requested target are verified in a matching Orca parent context may that guidance select the managed surface; explicit user-selected targets win. Orca-managed agents are separate from native pi-subagentura children.
Yes. Ask the parent to read a selected specialist prompt and pass it as the child's persona. Use --append-system-prompt for your coordination instructions, supplied as text or a file. A prompt folder is not imported automatically. The extension uses your configured Pi models and provider authentication.
No. Direct delegation works without an orchestration flag. --orchestratorv2 adds optional system-prompt guidance for routing work to attachable specialists. --orchestrator is the workflow-oriented mode. These prompts guide the model; they do not enforce a tool permission or approval boundary.
The optional Orchestratorv2 advisor can recommend only an eligible, live, authorized existing native child when ownership among plausible children is ambiguous; it may also abstain. The parent sends the task. The advisor cannot create or message children, change their responsibilities, or select their execution model. It requires a classifier in Pi's installed catalog and configured provider authentication. OpenAI Decisions with openai/gpt-6-luna is conditional on that exact classifier being exposed; the minimum Pi version does not guarantee it. Configured authentication does not prove credentials or live provider availability, and provider use may incur charges.
Standalone interactive children and their artifact-backed state can be recovered when continuing the matching parent session after reload, resume, or quit. A fresh new or fork transition cleans up owned interactive work. In-process jobs and background workflows are parent-session scoped and are retired during session replacement.
No. A separate Pi process does not automatically create a Git worktree. Choose a separate checkout or worktree and pass its working directory when agents need independent files. In-process execution and the workflow VM are not security sandboxes.
The extension is MIT licensed and free to install. Model usage is billed by your configured provider. Anonymous product telemetry is enabled by default; launch with --no-subagentura-telemetry to opt out. The repository's telemetry documentation defines the collected fields and other opt-out settings.
Follow a concrete task, make the context and workspace choices explicit, and keep a path back into the specialist's conversation.
Check prerequisites, try pi-subagentura for one session, and choose a global or project installation.
Launch visible specialists, inspect their terminals, attach, and continue the same conversation in a live verified native terminal.
Give two specialists separate review scopes, collect evidence, and follow up on their findings.
Understand in-process delegation, terminal sessions, parent recovery, worktrees, costs, and telemetry.
Use Pi SDK packages ≥1.2.0, typebox ≥1.1.38 <2, and Node ≥22.23.2. Choose tmux, Zellij, Herdr, WezTerm, or Herdr Core for native interactive sessions; Rex works only in an already-live block whose ownership can be verified, and never autostarts its server. In-process work needs no multiplexer. Model usage follows your configured provider.
Load the extension without adding it to your Pi settings.
pi -e npm:pi-subagenturaVersion v4.4.0. Verified .
Read the v4.4.0 sourceStart two interactive specialists in visible panes, using background: false. Have one review the API contract and the other check database behavior and tests. Keep both reviews read-only, return findings with file references, and keep the sessions available for follow-ups.Open /subagents, choose a specialist, and press f to enter its pane. Ask it a follow-up about a finding.
Install for your future sessions.
pi install npm:pi-subagenturanpm package Install only for the current workspace.
pi install -l npm:pi-subagenturaInteractive specialists can start independently, inherit the parent conversation, or receive an explicit handoff. Reusing persona instructions does not automatically import another tool's agent configuration.
Standalone interactive children and their saved outputs can survive parent reloads and a restart into the same parent session. A fresh /new or /fork cleans up owned panes. In-process jobs and background workflows end with their parent session, including reload, resume, or quit.
Separate child processes do not create separate git worktrees automatically. Choose working directories and worktrees to suit your task.
Orca is a host and UX integration through externally installed skills, not a vendored skill or native mux. Orca-specific host guidance is supplied on each applicable parent turn, never in native child sessions or unrelated hosts. Only when Pi and the requested target are verified in a matching Orca parent context may this guidance select the managed surface; explicit user-selected targets win. Orca-managed agents remain outside the native child lifecycle.
Direct tools also support in-process delegation. For saved, trusted JavaScript workflows, see the workflow guide and its --orchestrator mode. Workflow execution is not a security sandbox.
Anonymous product telemetry is enabled by default. Start with --no-subagentura-telemetry to opt out, or read the telemetry details.