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

pi-subtask

v0.1.4

Published

Non-blocking /subtask session for Pi with parallel children and live status tracking.

Readme

pi-subtask

A Pi extension that runs non-blocking /subtask child sessions and inserts their final results back into the current session.

中文说明

Quick start

pi install npm:pi-subtask
/subtask Inspect the authentication flow and report problems

Submit multiple /subtask commands to run children in parallel. The parent session stays responsive while each child works in an independent Pi session. Run /subtask without a prompt to list active children.

Demo

Manual pi-subtask demo

Language

Set PI_SUBTASK_LOCALE to en-US or zh-CN. The extension checks the process environment first, then reads .env from the current working directory.

cp .env.example .env
PI_SUBTASK_LOCALE=en-US pi

Accepted aliases: en, en-US, zh, and zh-CN. Default: zh-CN.

Behavior

  • Each child has an independent Pi session file and session ID.
  • Children run in parallel while the parent session remains responsive.
  • Results are inserted through a FIFO queue to avoid concurrent-turn races.
  • Active children remain in the status widget until their processes close.
  • Child Pi processes cannot nest /subtask.
  • Waiting tasks are instructed to use foreground synchronous bash commands.
  • Child processes inherit the current working directory, model, thinking level, and active tools.
  • Child processes run with other extensions disabled for a clean runtime.

Security

Pi extensions run with the current user's full system permissions. Review source before installing third-party packages.

Development

npm install
npm test
npx tsc --noEmit

The package uses Pi's built-in @earendil-works/pi-coding-agent as a peer dependency.


中文说明

Pi 扩展:使用 /subtask 创建非阻塞子会话,并把最终结果插回当前会话。

安装

pi install npm:pi-subtask

也可以临时测试:

pi -e npm:pi-subtask

使用

/subtask 检查认证流程并报告问题

同时运行多个子任务时,重复提交多条 /subtask。状态栏显示运行中的任务,最多逐行显示 5 条。

/subtask

不带参数时列出当前运行中的子任务。

语言

设置 PI_SUBTASK_LOCALE 为 zh-CN 或 en-US。扩展优先读取进程环境变量,然后读取当前工作目录中的 .env。

cp .env.example .env
PI_SUBTASK_LOCALE=zh-CN pi

支持别名:zh、zh-CN、en、en-US。默认语言:zh-CN。

行为

  • 每个子任务拥有独立 Pi session 文件和 session ID;
  • 子任务并行运行,父会话不等待子进程;
  • 结果通过队列逐条插回父会话,避免多个完成事件竞争;
  • 子任务完成前保持状态栏记录;
  • 子 Pi 不允许嵌套调用 /subtask;
  • 需要等待时,子 Pi 被要求使用前台同步 bash 命令完成等待;
  • 扩展和子 Pi 继承当前工作目录、模型、思考级别和活动工具;
  • 子 Pi 运行时禁用其他扩展,保持干净运行环境。

安全

Pi 扩展拥有当前用户的完整系统权限。只从可信来源安装,并在发布前审查代码。

开发

npm test

本包使用 Pi 内置的 @earendil-works/pi-coding-agent,不捆绑该依赖。