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

@minzicat/pi-team

v0.1.0

Published

Multi-agent debate/collaboration harness built on pi RPC mode. Spawn agents with different models in one conversation, observe via tmux, inject as a human.

Readme

pi-team

Two or more LLMs in the same conversation. You can watch, and you can hop in.

Built on pi RPC mode. Each agent is a real pi subprocess with its own model, tools, and session — the orchestrator just routes messages between them.

Install

pnpm add -g @minzicat/pi-team
# or
npm i -g @minzicat/pi-team

Requires: Node 20+, pi on PATH, tmux 3.2+.

Use

pi-team start \
  --name emotions \
  --agent claude:anthropic/claude-sonnet-4-5 \
  --agent codex:openai-codex/gpt-5.4:xhigh \
  --topic-file debate.md \
  --max-turns 10

tmux attach -t piteam-emotions

Three panes: stream, inject, log tail. Type in the inject pane to hop in — all agents see it at the next turn boundary. Detach with Ctrl+b d.

Agent spec: name:provider/model[:thinking][@plan-id]. The name is used as attribution and persona (skeptic:anthropic/..., optimist:openai-codex/...).

Usage tracking

Pi's per-token dollar display is wrong if you're on a subscription — the real constraint is 5-hour and weekly usage limits. Declare your plan per agent to get window-based tracking:

pi-team start --name x \
  --agent claude:anthropic/claude-sonnet-4-5@anthropic-max-20x \
  --agent codex:openai-codex/gpt-5.4:xhigh@openai-plus \
  --topic-file debate.md

After every turn you get a per-agent status line:

claude   │ sonnet-4-5         │ 5h: 12/900–4500 msg (1%) · wk: 0.4/800 h  anthropic-max-20x
codex    │ gpt-5.4            │ 5h: 5/33–168 msg (15%)  openai-plus

Plans: openai-plus, openai-pro, openai-business, anthropic-pro, anthropic-max-5x, anthropic-max-20x, api. Run pi-team plans to list. Without a plan, pi-team falls back to api mode and shows raw token counts + pay-per-token dollar cost. Fetch snapshots programmatically at GET /usage.

Commands

| | | |---|---| | pi-team start | launch session in tmux (observable + injectable) | | pi-team run | foreground, no tmux | | pi-team inject | interactive stdin → running session | | pi-team stop | kill session | | pi-team list | active and archived sessions |

Inject from anywhere

# interactive
pi-team inject --name emotions

# unix socket
echo "your message" | nc -U ~/.pi/team/sessions/emotions/inject.sock

# HTTP (when --http-port is set)
curl -X POST http://localhost:7682/inject -d "push back on that last point"

All three land the same way: queued, delivered at the next turn boundary, visible to every agent.

Container

docker compose up --build
  • :7681 — ttyd web terminal on the tmux session
  • :7682 — HTTP API (POST /inject, GET /state, GET /transcript, POST /stop)
  • /data — persistent session storage

Env: PITEAM_NAME, PITEAM_AGENTS (comma-separated specs), PITEAM_TOPIC_FILE or PITEAM_TOPIC, PITEAM_MAX_TURNS, PITEAM_TTYD_CREDS (basic auth), PITEAM_HTTP_TOKEN (bearer), PITEAM_HTTP_HOST (defaults to 127.0.0.1; set to 0.0.0.0 only when token is also set).

How it works

┌─ Orchestra ─────────────────────────────┐
│  Transcript (jsonl, single source)      │
│      │                                  │
│      ├─► Agent A  (pi --mode rpc)       │
│      ├─► Agent B  (pi --mode rpc)       │
│      └─► Agent N  ...                   │
│      ▲                                  │
│      │                                  │
│      ├─ Unix socket ─┐                  │
│      ├─ HTTP POST ───┼── human inject   │
│      └─ tmux pane ───┘                  │
└─────────────────────────────────────────┘

Round-robin by default. Each agent's pi session holds its own side; the orchestrator renders everything-since-last-turn with attribution ([claude]: ..., [human]: ...) as the next prompt. Injections drain at turn boundaries.

Every agent gets pi's full stack: tools, skills, extensions, thinking levels. The orchestrator is ~400 lines of TypeScript because pi does the hard work.

License

MIT