$ cat ~/map/pi-subagent-codecapitano.md
pi-subagent (codecapitano)
Batch-parallel subagents for pi: up to 32 tasks per batch under a shared limiter, with bounded per-task results.
extensions✓ Oct 21
Facts
- repository
- github.com/codecapitano/pi-subagent ↗
- GitHub Stars
- ★ 0
- Forks
- 0
- license
- MIT
- npm / mo
- —
- last push
- Nov 16, 2026
install
pi install git:github.com/codecapitano/pi-subagent@v0.2.0## TL;DR
A pi extension for synchronous parallel subagents: batches of up to 32 tasks run in their own processes with fresh contexts under a shared limiter, each returning a bounded short result — there are no background jobs; the parent waits for the batch.
## Key points
- $Each helper runs in its own process with a fresh context and returns a short result, so the main session receives conclusions rather than transcripts.
- $Single calls and parallel batches of up to 32 tasks; a shared limiter bounds active helpers (default 6) and extra tasks wait in order.
- $The agent can raise the limit for one call with maxConcurrency, up to a ceiling you set (default 8) — it can never go above that.
- $Output is bounded per task and one failed task does not lose the others; cancelled tasks never start and running helpers stop cleanly.
- $No background jobs: the parent waits until a batch finishes, and subagents use more tokens in total — the README suggests them for work that splits into independent parts, or whose output is much larger than its conclusion.
- $Helpers share one filesystem and only know what their brief says; tool allowlists limit what an agent can call but are not a sandbox.
- $Developed and tested against Pi 1.2 and 1.3; offline tests use fake child processes and make no model calls.
- $Pick one install method, not both — loading the extension twice can register the tool twice; the package does not install agents, so copy the Markdown starters yourself.
## FAQ
Q Is this the same as williamcr01's or nicobailon's pi-subagents?
No. codecapitano's pi-subagent runs synchronous parallel batches under a shared limiter, with no background jobs; williamcr01's pi-subagents delegates asynchronously in the background with spawn_agent returning immediately, and nicobailon's unscoped npm pi-subagents is a separate package again.
Q What does a helper know about my session?
Only what its brief says — the README warns that a helper's summary can lose detail, so the parent should check the results.
Q Why did the subagent tool register twice?
Because the extension was loaded twice, for example by combining the pi package install with a manual copy; pick one method, not both.
## References
## Related entries
$ pi-flows
Delegate work to isolated, budgeted pi sub-agents — recon, review, decomposition — with cost caps, OpenInference tracing, and contract validation.
$ pi-orchestrator
Strips the main agent down to a delegate tool that commands isolated, budgeted subagent workers.
$ pi-sdd-profiles
Hot-swappable model profiles for SDD and subagents — floating modal switcher, atomic subagents.json writes, standard profiles, orchestrator tools.
## Guides
Last updated: Nov 16, 2026