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-thread-engine

v0.2.4

Published

Thread engineering for pi — all 7 thread types, stories, fusion, zero-touch, TUI dashboard

Readme

🧵 pi-threads

Thread engineering for pi — all 7 thread types + stories.

Wraps pi-subagents for P/C/B threads (inheriting agent specialization, chain artifacts, live progress). Builds natively what nobody else has: F-Thread (multi-model fusion), Z-Thread (verify gate), and Stories (goal → auto-decomposed thread phases).

Install

pi install npm:pi-thread-engine

Or from source:

pi install ./path/to/pi-threads

Commands

| Command | Type | Backend | What | |---------|------|---------|------| | /pthread | P-Thread | subagent | N independent tasks in parallel | | /cthread | C-Thread | subagent | Sequential phases via subagent chain | | /bthread | B-Thread | subagent | scout → plan → build → review pipeline | | /fthread | F-Thread | native | Same prompt → N models → compare (UNIQUE) | | /zthread | Z-Thread | native | Autonomous + verify command gate (UNIQUE) | | /lthread | L-Thread | native | Extended autonomous run | | /story | Stories | mixed | Auto-decompose goal into thread phases (UNIQUE) |

Unique Features (not in pi-subagents or pi-messenger)

Fusion (/fthread)

Same prompt sent to multiple models in parallel. Compare results, pick the best.

/fthread "Design the caching architecture" --count 5
/fthread "Refactor the auth module" --models anthropic/claude-sonnet-4,google/gemini-2.5-pro,openai/gpt-4o

Zero-Touch (/zthread)

Autonomous execution with a verification gate. Only ships if the verify command passes.

/zthread "Fix all ESLint warnings" --verify "npm run lint"
/zthread "Add input validation" --verify "npm test"

Stories (/story)

A goal gets auto-decomposed into thread phases. pi-threads picks the right thread type for each phase.

/story "Add dark mode to the dashboard" --verify "npm test"

Auto-generates phases:

  1. Scout (meta) — research the codebase
  2. Plan (fusion) — 3 models brainstorm approaches
  3. Decide (chained) — human picks the winner
  4. Build (parallel) — implement across files
  5. Verify (zero) — run tests

Dashboard

/threads          — show all threads + stories
/threads kill t-001 — kill a thread
/threads review   — see completed results (fusion shows comparison)
/threads prune    — clear finished threads
/stories          — list all stories with phase progress

LLM Tools

  • thread_spawn — Start any thread type (auto-selects backend)
  • thread_status — Check progress of threads and stories
  • thread_kill — Stop a thread

Architecture

Wrapper layer (pi-subagents):     Native layer (pi -p):
┌──────────────────────────┐     ┌────────────────────────┐
│ /pthread  → /parallel    │     │ /fthread  → N models   │
│ /cthread  → /chain       │     │ /zthread  → run+verify │
│ /bthread  → scout chain  │     │ /lthread  → long run   │
└──────────────────────────┘     └────────────────────────┘
                    ↕                        ↕
              ┌─────────────────────────────────┐
              │  ThreadRegistry (state machine)  │
              │  ThreadExecutor (dispatch)        │
              │  /threads dashboard               │
              │  /story orchestrator              │
              └─────────────────────────────────┘

The Thread Framework

Based on thread-engineering:

A thread is a unit of engineering work: prompt at the start, review at the end, agent tool calls in between. The metric: tool calls per unit of your attention. Maximize this.

Base → P-Thread → C-Thread → F-Thread → B-Thread → L-Thread → Z-Thread
                                                                  ↑
                                                          The north star