pi-subagents-lite
github.com/alexparamonov/pi-subagents-lite- Category
- AI Agents
- Rank
- No. 1376Tools index
Previous survey · No. 1360 ·
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Coding
- Interfaces
- Agent Skill / Plugin
- GitHub
- 75 stars
- Latest release
- v1.20.0
- Date
About
pi-subagents-lite adds sub-agents to the pi coding agent harness. It exposes three tools with minimal descriptions to keep token overhead low, and supports foreground and background agents, custom agent types, steering and continuation, worktrees, and a live widget with cost tracking. It lets users control what enters the agent's system prompt.
At a glance
pi-subagents-lite gives the Pi coding agent separate sessions for delegated work. It is worth trying when a parent session needs to stay responsive while another agent investigates a file or runs a longer task.
Good fit
Pi users who want to choose child models and tools, then inspect, steer or stop their work from one session.
Consider something else when
If you need an enforced security boundary, use a sandbox or restrict the actual tools. The built-in Explore agent has shell access despite its read-only prompt.
Start here
In a throwaway repo, use /agents to send one child a narrow read task. Open its transcript, then check whether the parent receives its result while you keep working.
Cost and requirements
MIT-licensed. The project documents Pi 0.99 or later and Node.js 22.19 or later. Child sessions use their configured model, so parallel runs can add provider usage.
Limits to know
Tool and extension settings determine what each child can do. A child with messaging enabled runs in the background even when a foreground run was requested.
Sources checked 2026-11-05. Source-based assessment.
- github.com/AlexParamonov/pi-subagents-lite/blob/1b5b062b0bbfc81eedd04df6be1b5d82afd06553/README.md
- github.com/AlexParamonov/pi-subagents-lite/blob/1b5b062b0bbfc81eedd04df6be1b5d82afd06553/package.json
- github.com/AlexParamonov/pi-subagents-lite/blob/1b5b062b0bbfc81eedd04df6be1b5d82afd06553/src/index.ts
Read the source review
What it does
An extension for the pi coding agent that lets the main model hand work to helper agents. Each helper runs in its own session with its own model, tools and turn limit. The main model starts one through a tool call and either waits for the answer or lets it run in the background and gets a notice when it finishes. A panel above the editor lists running helpers with tokens, context use, cost and elapsed time, and you can open any helper's live transcript, redirect it mid-task, or continue it after it stops.
Why it's ranked here
The case rests on how carefully the plumbing is done. Tool descriptions are cut to a single period so the schema costs almost nothing in the prompt, and a test pins that. Concurrency is limited per model and per provider, so two large local models do not fight over one GPU. The changelog records specific fixes rather than vague ones, including closing a hole where an untrusted repository's settings could set a helper's thinking level. MIT licensed and published on npm. The limit is reach: it only works inside pi.
What's good
Helper types are plain Markdown files: settings at the top, system prompt below, with project, shared and global folders and a stated order when names clash. Each type can whitelist or exclude tools, extensions and skills, pin a model and thinking level, and cap turns. Helpers can message their parent or each other but cannot start or stop agents. A watchdog stops helpers stuck on a tool or idle too long. Short eight-character IDs work for stopping and messaging, and an ambiguous prefix acts on nothing and lists the candidates.
Tradeoffs
The built-in read-only explorer is read-only by instruction only: its prompt forbids edits but it has a shell and no sandbox, a point the README states openly. Messages a helper sends upward are not guaranteed to arrive. The live transcript viewer hides tool results, showing each call as one coloured status line. It needs Node 22.19 or later and a recent pi. The test file says full integration testing is manual through the pi interface. The catalogue blurb mentions three tools; the code registers four.
How to use it well
Fits a pi user who wants to fan work out to cheaper or local models while keeping the main context small. Write a few narrow helper types with explicit tool lists rather than relying on the defaults, since a type with only a name and description gets the full default toolset. Set per-model concurrency to match your GPU memory before running several local models. Do not treat the explorer type as a safety boundary; pair it with a separate permission extension if you need one. It does nothing outside pi.
Technical notes+
The pi entry point in package.json is src/index.ts, which checks for a subagent parent context: inside a child session it registers only the messaging and status tools, otherwise it registers the full set plus event listeners. src/registration.ts registers Agent, StopAgent, MessageAgent and AgentStatus with description "." (a CHANGELOG.md entry says some gateways rejected description-less tools), and when agentToolStrictMode is on it turns optional fields into nullable unions so provider-side json_schema strict mode can require every key, with strict set to "prefer" to fall back on providers without it. The child-side MessageAgent is the one tool with a long description. docs/adr/0002-per-model-concurrency.md sets the precedence per model, then per provider, then default, with excess spawns queued. src/types.ts tracks stops by user, agent or watchdog, and test/index.test.ts asserts the four tool names and the dot descriptions. Peer dependencies are the pi packages and typebox; the only dev dependency is vite-plus.
Observed
- License
- MIT
- Language
- TypeScript
- Packaging
- npm package installed as a pi extension (global, project-local, or try without installing)
- Runtime requirements
- Node.js 22.19.0 or later, pi 0.99.0 or later
- Interfaces
- Four model-callable tools (Agent, StopAgent, MessageAgent, AgentStatus) plus an /agents menu in the pi terminal UI
- Agent definitions
- Markdown files with frontmatter in project, shared and global directories
- Concurrency model
- Per-model and per-provider slot limits, with a default fallback; excess spawns queue
- Tests
- Unit tests in a test directory; the entry-point test header says full integration testing is manual
- Sandboxing
- None; the built-in explore agent has bash and read-only behaviour is not enforced
Read from README.md, package.json, src/index.ts, src/registration.ts, src/types.ts, docs/adr/0002-per-model-concurrency.md, CHANGELOG.md, LICENSE, test/index.test.ts.
Similar tools
Tags
Tech Stack
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.