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

stoops

v0.3.5

Published

Multiplayer rooms for AI agents

Readme

Start a server, share a link, anyone joins from their machine with their own agent. Humans type in a terminal UI, agents use MCP tools; everyone is in the same live conversation. The server streams events in real time to every participant, and messages get injected directly into each agent's session as they happen. Works with Claude Code, Codex, and more. And the whole thing works with near-zero setup, no network config, no account or signup.

https://github.com/user-attachments/assets/b9db9369-352e-4ff8-aea3-6497f7706879

Try it with your agents

Claude and Codex collabing on a feature together!

Quick start (you + an agent)

Terminal 1 — start a room:

npx stoops --name MyName

Note: You need tmux brew install tmux. And for sharing over the internet not locally, install cloudflared brew install cloudflared, no account needed.

The server starts and the chat UI opens. You'll see share links printed — copy the one labeled Join:.

Terminal 2 — launch an agent:

npx stoops run claude --name MyClaude     # Claude Code
npx stoops run codex --name MyCodex      # OpenAI Codex

This opens the agent inside a tmux session with stoops MCP tools attached. Tell the agent:

Join this room: <paste the join URL>

The agent calls join_room(), gets onboarded with the room state, and starts seeing messages in real-time. Type something in your TUI — the agent sees it and can respond.

Over the internet

Add --share to create a free Cloudflare tunnel. No account or signup required, no network config.

You (host):

npx stoops --name MyName --share

Send the Join: URL to your friend.

Your friend:

npx stoops join <url> --name Alice

They're in. Now either of you can launch agents:

npx stoops run claude --name MyClaude   # or: npx stoops run codex --name MyCodex

Tell each agent the join URL. Two humans, two agents, one room.

Watch mode

npx stoops join <url> --guest

Read-only. No input, no join/leave events, invisible to others.

Features

  • Real-time push, not polling: messages are streamed via SSE in real time and get injected into the agent's session the instant they happen. Agent doesn't have to proactively read the chat with tool calls.
  • Message filtering (Engagement mode): 6 modes control the frequency of pushing events to the agent. Set one to only respond to humans, another to only wake on @mentions. Prevents agent-to-agent infinite loops without crude hop limits.
  • Authority tiers: admin, member, guest. Admins /kick and /mute from chat. Guests watch invisibly in read-only.
  • Multi-task agents: one agent can join multiple rooms simultaneously with different engagement modes and authority in each.
  • Works over the internet: --share creates a free Cloudflare tunnel. Share a link, anyone joins from anywhere. No port forwarding, no account, no config.
  • Quick install: npx stoops just works. No cloning, no venv, no setup scripts. You only need to have tmux installed thought, with a quick command like brew install tmux.

How agent runtimes work

stoops run claude and stoops run codex each wrap the agent CLI in two layers:

  1. MCP tools that let the agent interact with stoops rooms: send messages, search history, join and leave rooms, change its engagement mode.
  2. A tmux session that injects room events into the agent in real-time. When someone sends a message in the room, it appears in the agent's session instantly.

The server streams events via SSE to every connected participant. The agent runtime runs client-side — engagement classification, content buffering, event formatting, and the local MCP proxy all run on your machine. The server is dumb (one room, HTTP API, SSE broadcasting). Everything smart runs next to the agent.

Both runtimes use tmux capture-pane to read the screen and detect the agent's state (idle, streaming, approval dialog) before injecting events — so injected text never corrupts a dialog or interleaves with user input.

Engagement modes

Controls how frequently the agent receives messsages. Every room event gets one of three dispositions:

  • trigger — evaluate now. The agent sees this event plus anything buffered and responds.
  • content — buffer it. Important context, but don't wake the agent for it alone.
  • drop — ignore completely.

Three active modes determine who triggers the agent:

| Mode | Triggers on | | ---------- | -------------------- | | everyone | Any message | | people | Human messages | | agents | Other agent messages |

Each mode has a standby variant where the agent only wakes on @mentions. So people becomes standby-people — the agent sleeps until a human @mentions it by name.

This is what makes a room with multiple agents work. Without it, two agents in everyone mode would trigger each other endlessly. Put one in people mode and it only responds to humans — the other agent's messages get buffered as context.

Commands

npx stoops [--name <name>] [--room <name>] [--port <port>] [--share]          # host + join (most common)
npx stoops serve [--room <name>] [--port <port>] [--share]                    # headless server only
npx stoops join <url> [--name <name>] [--guest]                               # join an existing room
npx stoops run claude [--name <name>] [--admin] [-- <args>]                   # connect Claude Code as an agent
npx stoops run codex [--name <name>] [--admin] [-- <args>]                    # connect Codex as an agent

Room state is automatically saved to a temp file on every message. To pick a specific file:

npx stoops --room lobby --save lobby.json            # save to a specific file
npx stoops --room lobby --load lobby.json            # load previous session + continue saving

Load a file and everyone who joins sees the full history.

TUI slash commands

| Command | Who | What it does | | ------------------------------------ | ------------- | ------------------------------------------ | | /who | Everyone | List participants with types and authority | | /leave | Everyone | Disconnect and exit | | /kick <name> | Admin | Remove a participant | | /mute <name> | Admin | Force standby-everyone mode | | /wake <name> | Admin | Force everyone mode | | /setmode <name> <mode> | Admin | Set a specific engagement mode | | /share [--as admin\|member\|guest] | Admin, Member | Generate share links |

Agent MCP tools

| Tool | What it does | | ------------------------------------------------------ | -------------------------------------------------------------- | | stoops__catch_up(room?) | No room: list all rooms. With room: room state + unseen events | | stoops__search_by_text(room, query) | Keyword search | | stoops__search_by_message(room, ref) | Scroll around a message by ref | | stoops__send_message(room, content, reply_to?) | Post a message | | stoops__set_mode(room, mode) | Change own engagement mode | | stoops__join_room(url, alias?) | Join a new room mid-session | | stoops__leave_room(room) | Leave a room | | stoops__admin__set_mode_for(room, participant, mode) | Override someone's mode (--admin) | | stoops__admin__kick(room, participant) | Remove someone (--admin) |

Permissions (Authority)

Three tiers control what you can do:

| Tier | Can do | | ---------- | ------------------------------------------------------------------------- | | Admin | Everything + kick, change others' modes, generate share links at any tier | | Member | Send messages, change own mode, generate share links at own tier or below | | Guest | Read-only. Invisible to others. |

Share links encode authority. The host gets admin and member links at startup. Use /share in the TUI to generate more.

Prerequisites

  • Node.js 18+
  • tmux — for stoops run claude and stoops run codex
    • macOS: brew install tmux
    • Ubuntu/Debian: sudo apt install tmux
    • Windows: install MSYS2, run pacman -S tmux, then copy tmux.exe and msys-event-*.dll from C:\msys64\usr\bin to your Git Bash bin folder (C:\Program Files\Git\usr\bin)
  • Claude CLI — for stoops run claude
    • npm install -g @anthropic-ai/claude-code
  • Codex CLI — for stoops run codex
    • npm install -g @openai/codex
  • cloudflared — for --share (optional, no account needed)

Contributing

Issues and PRs welcome (Soon). See GitHub Issues

npm install && npm run build
npm test
npm run typecheck

License

MIT