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-ate-workflow

v0.1.0

Published

Workflow orchestration extension for pi-coding-agent — subagent spawning, research workflow, output capture

Readme

📖 pi-atelier 实战指南 — 从零教会你使用 pi-atelier 扩展生态,包含完整示例和最佳实践。

English | 程序中文文档

pi-workflow

Workflow orchestration extension for pi — subagent spawning, research workflow, and output capture.

Why You Need It

Complex AI tasks often need structured multi-step workflows — search → evaluate → synthesize → conclude. A single agent context can't handle this well: it loses track, mixes concerns, or runs out of tokens.

pi-workflow solves this by providing subagent spawning and structured research pipelines where each step runs in a focused, isolated context.

Use it when: Your task is too complex for a single agent pass — research, multi-perspective analysis, or parallel investigation.

  • Subagent spawning — Launch child pi processes with isolated context for independent tasks
  • Research pipeline — Structured multi-round research with search, evaluation, synthesis, and conclusion phases
  • Output capture — Save and retrieve subagent outputs for downstream processing
  • State management — Track workflow state across steps with automatic persistence

Installation

pi install git:github.com/catlain/pi-workflow

Tool: workflow

The extension registers a workflow tool with multiple actions for the research pipeline:

| Action | Description | |--------|-------------| | start | Start a new research workflow with a topic | | search | Execute a search round | | evaluate | Evaluate search results for relevance | | synthesize | Synthesize findings from multiple rounds | | conclude | Generate final conclusions |

How Subagents Work

Main Agent
  └── workflow tool → runSubagent()
        └── Child pi process (isolated context)
              ├── Own tools and system prompt
              ├── Own context window
              └── Result → saved to file

Key features:

  • Isolation — Each subagent runs in its own context window, doesn't pollute the main conversation
  • Model selection — Subagents can use different (cheaper) models
  • Output persistence — Results saved to disk for later retrieval
  • Status tracking — Main agent can check subagent success/failure

Use Cases

| Scenario | How It Works | |----------|-------------| | Literature research | Search → Evaluate → Synthesize → Conclude pipeline | | Multi-perspective analysis | Spawn subagents with different viewpoints | | Parallel investigation | Run independent research threads simultaneously | | Factor research | Search indicators → Evaluate quality → Combine signals |

Best Practices

✅ Recommended

  • Use subagents for tasks > 30 minutes — they keep context fresh
  • Choose cheaper models for subagents when possible (e.g., Haiku for search rounds)
  • Always check subagent output before synthesizing — catch failures early
  • Save workflow state between steps for resumability

❌ Not Recommended

  • Don't use subagents for simple tasks (< 5 minutes) — overhead isn't worth it
  • Don't spawn too many subagents simultaneously — resource contention
  • Don't pass huge contexts to subagents — that defeats the isolation purpose

Limitations

| Limitation | Detail | |------------|--------| | Subagent overhead | Each spawn takes time to initialize | | No streaming | Subagent output is available only after completion | | File-based output | Results are saved to disk, not streamed back | | Sequential pipeline | Research pipeline steps run one at a time |

Architecture

pi-workflow/
├── index.ts         # Entry: register workflow tool
├── subagent.ts      # Subagent spawning + output capture
├── pipeline.ts      # Research pipeline (search → evaluate → synthesize → conclude)
├── state.ts         # Workflow state management + persistence
└── package.json

Dependencies:

  • @earendil-works/pi-coding-agent — ExtensionAPI (peer)

License

MIT