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-messenger-swarm

v0.15.4

Published

Swarm-first multi-agent messaging and task orchestration extension for Pi

Readme

Pi Messenger (Swarm Mode)

Pi Messenger is a file-based multi-agent coordination extension for Pi.

  • Agents in different terminals can join the same mesh
  • Any agent can create and claim tasks
  • Main agents can spawn dynamic subagents with custom roles/personas/objectives
  • No daemon required (all state is file-backed)

This swarm-first fork is inspired by and built upon the original project by Nico Bailon: https://github.com/nicobailon/pi-messenger

npm version License: MIT

Screenshots

| Swarm Details | Swarm Messenger | | --- | --- | | Swarm Details | Swarm Messenger |

Install

From npm:

pi install npm:pi-messenger-swarm

From git (Pi package settings):

{
  "packages": [
    "git:github.com/monotykamary/pi-messenger-swarm@main"
  ]
}

Tip: after release tags are published, pin to a version tag instead of main (for example @vX.Y.Z).

Quick Start

pi_messenger({ action: "join" })
pi_messenger({ action: "task.create", title: "Investigate auth timeout", content: "Repro + fix" })
pi_messenger({ action: "task.claim", id: "task-1" })
pi_messenger({ action: "task.progress", id: "task-1", message: "Found race in refresh flow" })
pi_messenger({ action: "task.done", id: "task-1", summary: "Fixed refresh lock + tests" })

Spawn a specialized subagent:

pi_messenger({
  action: "spawn",
  role: "Packaging Gap Analyst",
  persona: "Skeptical market researcher",
  message: "Find productization gaps in idea aggregation tools",
  content: "Focus on onboarding, monetization, and UX friction"
})

Core Actions

Coordination

  • join
  • status
  • list
  • whois
  • feed
  • set_status
  • send
  • broadcast
  • reserve
  • release
  • rename

Swarm Board

  • swarm — summary of tasks + spawned agents

Task Lifecycle

  • task.create
  • task.list
  • task.show
  • task.ready
  • task.claim (alias: task.start)
  • task.unclaim (alias: task.stop)
  • task.progress
  • task.done
  • task.block
  • task.unblock
  • task.reset (cascade: true supported)
  • task.delete
  • task.archive_done (moves completed tasks to .pi/messenger/swarm/archive/)

Compatibility aliases:

  • claimtask.claim
  • unclaimtask.unclaim
  • completetask.done

Subagent Management

  • spawn
  • spawn.list
  • spawn.stop

Overlay

Run /messenger to open the swarm overlay.

Overlay includes:

  • live agent presence
  • swarm task list/detail
  • live feed
  • DM/broadcast input

Planning UI and worker +/- controls were removed in swarm mode.

Storage Layout

By default, swarm state is project-scoped (isolated per project):

.pi/messenger/
├── feed.jsonl
├── swarm/
│   ├── tasks/
│   │   ├── task-1.json
│   │   ├── task-1.md
│   │   └── task-1.progress.md
│   └── blocks/
└── locks/           # File locks for race-safe coordination

This ensures agents in different projects never interfere with each other.

Environment Variables

Override the default project-scoped behavior:

| Variable | Effect | |----------|--------| | PI_MESSENGER_DIR=/path/to/dir | Use custom directory for all state | | PI_MESSENGER_GLOBAL=1 | Use legacy global mode (~/.pi/agent/messenger) |

# Custom location
PI_MESSENGER_DIR=/tmp/swarm-state pi

# Legacy global mode (not recommended)
PI_MESSENGER_GLOBAL=1 pi

Global Mode (Legacy)

For backwards compatibility only - agents from ALL projects share state:

  • ~/.pi/agent/messenger/registry - Agent registrations
  • ~/.pi/agent/messenger/inbox - Cross-agent messaging

Legacy Orchestration Actions

Legacy PRD planner/worker/reviewer actions are disabled in swarm mode:

  • plan*
  • work*
  • review*
  • crew.* (legacy alias namespace)

Use task.*, spawn.*, and swarm instead.

License

MIT