@gfgghgftgffg/pi-subagents-lean
Lean Pi subagents extension: one subagent facade over the full @tintinweb/pi-subagents runtime, with advanced parameters disclosed through help.
Package details
Install @gfgghgftgffg/pi-subagents-lean from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@gfgghgftgffg/pi-subagents-lean- Package
@gfgghgftgffg/pi-subagents-lean- Version
0.1.15- Published
- Nov 2, 2026
- Downloads
- 1,516/mo · 802/wk
- Author
- gfgghgftgffg
- License
- MIT
- Types
- extension
- Size
- 42.6 KB
- Dependencies
- 1 dependency · 4 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@gfgghgftgffg/pi-subagents-lean
Part of the amox-pi-extensions-lean monorepo. A lightweight Pi facade for
@tintinweb/pi-subagents: the full subagent/workflow
runtime behind one subagent tool. Runtime updates follow upstream.
Original lean facade by kunkun9527; upstream
extension by tintinweb. Both are MIT-licensed; the
original LICENSE is preserved in this package.
Core features
- Full upstream runtime: agent discovery, spawning, background execution, result retrieval, mid-run steering, workflows, schedules, and lifecycle handling are upstream's own code.
- One provider-facing tool:
Agent,get_subagent_result,steer_subagent, andSubagentWorkfloware routed throughsubagentwithopvaluesrun,result,steer,workflow, plushelp. - Advanced parameters on demand:
inputcarries a JSON object string validated against the hidden real upstream schema before execution;helpreturns the complete current upstream schema. - Available agent names:
subagent_typeshows the enabled types captured at extension startup. Reload the extension after changing agent definitions/settings; if an upstream description format is unrecognized, usehelpwithinput: "run". - Rendering delegated to upstream tools, so the original call/result cards are preserved.
Installation
This is a public npm package. Install without a version pin:
pi install npm:@gfgghgftgffg/pi-subagents-lean
pi update --extensions
For a Git fallback, run from the repository checkout:
node scripts/install-extension.mjs pi-subagents-lean
Update a local Git installation by pulling the checkout and rerunning its installer; pi update does not update local contents. Keep one installation source. To migrate, back up settings, remove only the exact old source shown by pi list, then install the npm source. Do not load another pi-subagents wrapper alongside it.
Usage
{
"op": "run",
"prompt": "Find the implementation of the cache key.",
"description": "Locate cache key",
"subagent_type": "Explore",
"run_in_background": true
}
resultwithagent_idretrieves output from a finished task.steerwithagent_idandmessageredirects a running agent.workflowruns a scripted multi-agent workflow; pass its parameters as JSON ininput.helpwithinputset to one operation returns that upstream tool's full description and schema.
Important: review your agent definitions
The upstream runtime discovers built-in and custom agents across global, workspace, and project
directories. This repository does not package private agents, sessions, or memory, but it intentionally
preserves that discovery mechanism. After installation: review discovered agent definitions (especially
their model fields), remove unneeded types, adjust prompts/tools/allowlists, and watch for naming
collisions with the built-in general-purpose, Explore, and Plan types.
Background tasks notify the parent on completion; do not poll or sleep. See the
upstream documentation for agent configuration,
background execution, workflows, worktrees and subagents.json settings; extension integrations use
upstream events and
RPC. Reload the extension after changing agent
definitions, discovery or trust settings to refresh the facade's available type list.
Context footprint (character proxy)
| Package | Registered character proxy |
|---|---|
| @gfgghgftgffg/pi-subagents-lean | 270 |
| @tintinweb/pi-subagents | 8426 |
Fixed ceil(characters / 4), not provider billing tokens.
Development
See the development and maintenance guide and MAINTENANCE.md for adaptation details.