npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@maplezzk/pi-interactive-subagents

v3.9.1

Published

Interactive async subagents for pi — spawn, orchestrate, and manage sub-agent sessions in multiplexer panes. Fork of HazAT/pi-interactive-subagents.

Readme

pi-interactive-subagents

pi 提供异步交互式子 agent —— 在终端复用器分屏中启动、编排和管理子会话。完全非阻塞:子 agent 在后台运行时,主 agent 可继续工作。

Fork 说明: 本包 fork 自 HazAT/pi-interactive-subagents(MIT 协议)。设计与实现的版权归原作者 HazAT 所有。本 fork 的变更:monorepo 集成与 scoped npm 发布。完整文档见 README.md

工作原理

调用 subagent()立即返回,子 agent 在自己的终端分屏中运行。输入框上方的实时 widget 展示所有运行中的 agent 及其状态(startingactivewaitingstalledrunning)。子 agent 完成后,结果以异步通知形式回流到主会话,触发新一轮处理。

subagent({ name: "Scout: Auth", agent: "scout", task: "分析 auth 模块" });
subagent({ name: "Scout: DB", agent: "scout", task: "梳理数据库 schema" });
// 两者立即返回,结果各自独立回流

安装

pi install npm:@maplezzk/pi-interactive-subagents

支持的终端复用器:cmuxtmuxzellijWezTermherdrOttyOrca

在其中启动 pi:

cmux pi
# 或
tmux new -A -s pi 'pi'
# 或
zellij --session pi   # 然后运行 pi

可选:设置 PI_SUBAGENT_MUX=muxy|cmux|tmux|zellij|wezterm|herdr|otty|orca 强制指定后端。

也可以在 Pi 内通过 /config:subagent 配置:不带参数打开选择菜单,或直接运行 /config:subagent auto|muxy|cmux|tmux|zellij|wezterm|herdr|otty|orca。选择会保存到 Pi 的用户扩展配置目录;显式设置的 PI_TERMINAL_MUX / PI_SUBAGENT_MUX 优先级更高。/subagent-config/pi-subagent-config 仍作为兼容别名保留。

主要能力

  • 4 个主会话工具 + 3 个命令subagentsubagent_interruptsubagents_listsubagent_resume;命令 /plan/iterate/subagent
  • 内置 agent:planner、scout、worker、reviewer、visual-tester
  • /plan 工作流:调研 → 规划 → 确认 → 执行 → 审查 的完整流水线
  • /iterate 工作流:fork 当前会话到子 agent 做快速修改,不污染主上下文
  • caller_ping:子 agent 向父 agent 求助的机制
  • 自定义 agent:在 .pi/agents/~/.pi/agent/agents/ 放置 .md 定义文件

完整的参数、frontmatter 字段、工具访问控制、Role Folders 等说明见 README.md

配置

状态显示由扩展目录下的 config.json 控制。复制 config.json.example 开始:

cp config.json.example config.json
{
  "status": {
    "enabled": true
  }
}

致谢

  • 原作者 HazAT 的设计与实现(原始仓库
  • 子 agent 状态监督与 turn 级中断功能受 RepoPrompt 启发

许可证

MIT