Give Pi a team.

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-subagentura

What’s new in v4.4.0

Available 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.

Read the published release notes

See it in a real Pi session.

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.

97:56 source session · 8:06 continuous edit · waits preserved at speedDownload the English transcript
Open the translated transcript
  1. Yes. I reviewed the current head of PR #166.

  2. 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.

  3. Understood. I will wait for the subagent notification, then verify the commit and create the stacked PRs.

  4. 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.

  5. The generic decision core is implemented and in final checks; I’m waiting for its SHA before verification and stacked PRs.

  6. 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.

  7. Which agent exactly? The decision-runtime-core agent exited after implementation but before commit. Why was the tmux pane closed?

  8. The process exited 0 before completion while npm test was running; no stack trace or signal is recorded, and the worktree survived.

  9. The agent confirmed bounded diagnostics with backward compatibility and no decision-routing changes. The second agent continues hardening the generic core; both work independently.

  10. The bounded exit metadata design is good; I requested tests for signals, malformed data, parallel starts, and legacy support.

  11. The decision stack was created. Both PRs passed the full suite and required checks; diagnostics remains a separate fix PR.

  12. The second agent completed and committed 59f7091. PRs #168 and #169 are clean with green CI.

  13. I started a Luna/max agent to add the OpenRouter Decisions API adapter, shared codec, tests, and top PR in stack #170.

  14. The OpenRouter agent confirmed the shared codec approach and explicit configuration. Work continues in the top stacked branch.

  15. I’m waiting for the commit SHA, then I’ll verify it and add the branch as the top PR in stack #170.

  16. 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.

From task to findings

Give each specialist a clear task.

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.

Showing the Delegate step.

Keep the way you work.

Prompts

Bring your specialists.

Reuse your specialist prompts and choose their context.

Models

Choose who does what.

Choose a configured Pi model for each task.

Control

Join the conversation.

Enter a specialist’s terminal or send a follow-up from the parent.

Choose how the work runs.

Run inside Pi or open a session you can enter.

Delegate in-process.

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.

Understand context and lifetime

Open an interactive child.

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.

Set up terminal sessions Read the Rex backend contract

Neither execution path creates a Git worktree automatically. Choose the child's working directory when file changes need a separate checkout.

Your prompts. Your level of delegation.

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.

Stay in charge of who does what.

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-subagentura

Let the parent coordinate more.

Try --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.

Read the optional classifier routing guide Read the routing guide
pi -e npm:pi-subagentura --orchestratorv2
Use your own prompt files and coordination instructions

Bring your own sub-agent prompts.

For 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.md

After installing the extension, you can omit -e npm:pi-subagentura. These instructions guide the model; they do not enforce an approval gate.

Read the handoffs and follow-ups.

These two real session replays show delegation, further direction, and collected reports. A specialist can also bring in its own bounded descendants.

Parent session

Follow the parent as it delegates work and sends a follow-up to an existing specialist.

Open parent replay
Preview the parent replay

Child session and its reviewers

See a child launch recovery-safety and package/API reviewers, redirect them, and collect their findings.

Open child replay
Preview the child replay

Replays generated with vibe-replay.

Choose the control surface that fits.

Several Pi extensions offer steering, continuation, and reusable agent definitions. Compare where the work runs, how you intervene, and how files are isolated.

Pi subagents comparison

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.

Compare eight Pi extensions

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.

Public project statistics and sources
npm downloads · 30 days
1,576
2026-09-19 — 2026-10-18npm API source
npm downloads · 7 days
571
2026-10-12 — 2026-10-18npm API source
GitHub stars
14
Repository snapshotGitHub API source
GitHub forks
6
Repository snapshotGitHub API source

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

Know what you are delegating.

Practical answers about prompts, context, recovery, and costs. These describe v4.4.0; the released README is the source of truth.

What is pi-subagentura?

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.

Can subagents run in-process without tmux?

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.

Can I use pi-subagentura inside Orca?

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.

Can I keep my own agent prompts and models?

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.

Do I have to use Orchestratorv2?

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.

Can Jev or OpenAI Decisions choose a specialist?

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.

What survives a Pi restart or reload?

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.

Does a separate child session isolate Git changes?

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.

Is pi-subagentura free, and what does it send?

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.

Read the full Pi subagent FAQ

From first install to parallel work.

Follow a concrete task, make the context and workspace choices explicit, and keep a path back into the specialist's conversation.

  1. Install Pi subagents

    Check prerequisites, try pi-subagentura for one session, and choose a global or project installation.

  2. Use Pi subagents in tmux, Zellij, Herdr, or Rex

    Launch visible specialists, inspect their terminals, attach, and continue the same conversation in a live verified native terminal.

  3. Run a parallel code review

    Give two specialists separate review scopes, collect evidence, and follow up on their findings.

  4. Prompts, context, and recovery FAQ

    Understand in-process delegation, terminal sessions, parent recovery, worktrees, costs, and telemetry.

All setup and workflow guides

Try pi-subagentura

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.

1. Start a Pi session

Load the extension without adding it to your Pi settings.

pi -e npm:pi-subagentura

Version v4.4.0. Verified .

Read the v4.4.0 source

2. Give Pi a task

Start 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.

Keep it in Pi.

Install for your future sessions.

Keep it in this project.

Install only for the current workspace.

Context, continuity, and advanced tools

Interactive 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.