@harrarz/pi-agnostic-subagents

Agent-agnostic subagents for Pi: launch, inspect, steer, resume, and stop coding CLIs

Packages

Package details

extension

Install @harrarz/pi-agnostic-subagents from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@harrarz/pi-agnostic-subagents
Package
@harrarz/pi-agnostic-subagents
Version
0.2.0
Published
Nov 16, 2026
Downloads
583/mo · 583/wk
Author
harrarz
License
MIT
Types
extension
Size
190.3 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

Pi Agnostic Subagents

Launch and control whichever Pi subagent fits your task—no forced roles or workflows.

  • Agent-agnostic: bundled Pi, Codex, and Claude Code profiles; add another CLI through trusted user JSON.
  • Explicit delegation: assign custom tasks to general-purpose agents, with concurrent execution and writes in shared folders or worktrees—no automatic fanout or nested delegation.
  • Observability: /agent browser and status widget, clean answers, transcripts, diagnostics, and confirmed stop/rerun.
  • Live controls: human- or agent-directed steering and saved-session follow-up for RPC-capable profiles.
  • Owned lifecycle: timeouts, descendant cleanup, crash recovery, private records, and bounded diagnostic logs.
  • Worker extensions: none, inherited user extensions, or custom sets; choose per profile or run.

Install

Requires Node.js ≥22.19, Pi ≥1.5, and macOS or Linux. Install and authenticate each agent CLI separately.

pi install npm:@harrarz/pi-agnostic-subagents

Use

/agent run --profile pi -- Fix token refresh and run the relevant tests
/agent run --profile codex --isolation worktree -- Update setup documentation
/agent

Use the browser to inspect, steer, stop, follow up, or rerun. /agent settings saves preferences; /agent extensions selects worker extensions; /agent profiles lists trusted launch profiles. Unsupported interactive actions are hidden. The model-facing tools are agent_start, agent_get, and agent_stop.

Know the boundaries

  • Shared runs without separate worktrees can overwrite each other's edits. Worktrees start at committed HEAD, do not copy dirty files, and are not security sandboxes.
  • No automatic commits, merges, dependency installation, spending limits, or default timeout. There is no agent-count cap or scheduler queue.
  • Worktrees, records, and saved conversations remain until explicitly cleaned up.

Development

npm ci
npm run check           # typecheck, offline tests, package-content checks
npm run test:tui        # actual terminals with fake children; no inference
pi -e ./src/index.ts    # one-off local trial

Development tests require Git; Linux zombie regression and terminal checks also require Python 3. Provider-backed checks are separately opt-in and may consume quota; see the guides before running them.

Configuration and custom CLIs · MIT license