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

@henryqw/pi-herdr-btw

v1.0.2

Published

Open and merge tool-enabled Pi side threads in Herdr panes.

Downloads

247

Readme

@henryqw/pi-herdr-btw

Open a focused Pi side thread in a Herdr pane, then merge its transcript and follow-up prompt into Main.

Install

pi install npm:@henryqw/pi-task-models
pi install npm:@henryqw/pi-herdr-btw

Requires Pi Coding Agent 0.84.2+, Herdr 0.7.4+, and a Herdr-managed pane.

With

| Package | Why | | --- | --- | | @henryqw/pi-task-models | Required. Shared model profiles for side-thread routes. |

Use

| Surface | Type | Purpose | | --- | --- | --- | | /btw | command | Open a side thread, configure its defaults, or recover a pending merge. |

/btw                              open an empty side pane
/btw <question...>                open side pane with draft question
/btw ask <question...>            escape reserved first words
/btw config [...]                 show or change launch defaults
/btw merge <prompt...>            merge side thread into Main and continue
/btw help                         show grammar

ask, config, merge, and help route only when exact first words. Other input is a question. A provided question is an editable draft by default. /btw snapshots Main's compaction-aware context, inherits its working directory, and uses shared task pi-herdr-btw/btw, which defaults to fast. It selects first authenticated viable profile route before pane launch.

In side pane, /btw merge <prompt> sends user/assistant text transcript to Main, refocuses Main, and closes side pane. Main appends transcript without starting a turn, then submits prompt. Bare /btw merge opens prompt editor. Pending delivery waits for Main to settle and current model authentication; it survives side-pane shutdown until consumed or 24-hour stale cleanup.

Side pane gets static parent context and shares Main's working directory, so enabled tools can change parent-visible files. Large parent contexts can exceed child context limits. Launch data stays in private temporary directory.

Config

~/.pi/agent/config/pi-herdr-btw.json

{
  "autoSubmit": false,
  "tools": "inherit",
  "split": "right"
}

/btw config shows defaults. Set auto-submit on|off, tools inherit|all|read-only|none, or split right|down; reset removes config. Missing config uses defaults. Malformed config fails visibly and remains unchanged. Model routes live in ~/.pi/agent/config/pi-task-models.json.

Remove

pi remove npm:@henryqw/pi-herdr-btw

Development

npm test --workspace @henryqw/pi-herdr-btw
npm run typecheck --workspace @henryqw/pi-herdr-btw
npm run pack:check --workspace @henryqw/pi-herdr-btw