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

@rezabaram/amux

v1.0.0

Published

Agent Multiplexer -- multi-agent coordination for AI coding agents

Downloads

101

Readme

amux -- Agent Multiplexer

Multi-agent coordination for AI coding agents. Agents discover each other, communicate via file-based inboxes, share documents, manage tasks, and build shared knowledge.

Framework-agnostic core with a Pi extension included.

Architecture

core/                          Pi-independent, reusable
  registry.ts                  Agent identity (UUID, online/offline)
  messaging.ts                 Crash-safe file-based inboxes
  backlog.ts                   Ordered task queue
  reservations.ts              File/directory reservations
  journal.ts                   Decision & learning log
  index.ts                     Public API + built-in roles

pi/                            Pi extension (uses core)
  index.ts                     Tools, commands, prompt injection

cli/                           Command-line interface (uses core)
  index.ts                     CLI entry point

Install

Pi Extension

# Stable (npm)
pi install npm:@rezabaram/amux

# Latest (git)
pi install git:github.com/rezabaram/amux

Standalone (core module)

git clone https://github.com/rezabaram/amux.git

Import the core module directly in your project:

import { createAgent, sendMessage, addTask } from "./amux/core/index.ts";

Quick Start (Pi)

# Terminal 1: set up the project
pi
/amux manage          # → Projects > New → create project
                      # → Roles > New → define roles (or use built-ins)
                      # → Agents > New → create agents with workspaces
/amux join            # → select project → select your agent

# Terminal 2: another agent joins
cd ~/myapp-agent1 && pi
/amux join            # → select project → select agent → start working

Commands

All commands are subcommands of /amux:

| Command | Purpose | |---------|---------| | /amux | Status and available commands | | /amux join | Join a project as an agent | | /amux leave | Leave project, return to solo mode | | /amux manage | Manage projects, agents, and roles | | /amux workspace | Git workspace operations (sync, status) |

Manage

/amux manage
  → Projects     new, rename, delete, set main repo
  → Agents       new (with role + optional workspace), rename, delete
  → Roles        new, delete

Tools (8)

| Tool | Actions | Purpose | |------|---------|---------| | amux_role | add, list, remove | Manage role definitions | | amux_list | -- | List online/offline agents | | amux_send | -- | Send message to an agent | | amux_broadcast | -- | Broadcast to all agents | | amux_artifacts | -- | List shared documents | | amux_reserve | claim, release, list | File/directory reservations | | amux_task | add, list, assign, pick, done, drop, block | Task backlog | | amux_journal | add, list | Record decisions and learnings |

Built-in Roles

Five role templates ship with amux, ready to use during agent creation:

| Role | Description | |------|-------------| | developer | Write clean, well-structured code | | architect | System design, trade-offs, technical decisions | | reviewer | Code review, quality, constructive feedback | | devops | Infrastructure, CI/CD, deployment | | planner | Task breakdown, requirements, coordination |

Built-in roles are copied to the project on first use and can be customized.

Workspaces

Agents can work in isolated git worktrees:

# Architect sets up (from /amux manage)
Agents > New → name, role, workspace: "New worktree"
  → creates ~/myapp-AgentName on branch agent/AgentName

# Agent starts in their worktree
cd ~/myapp-agent1 && pi
/amux join

# Sync from main
/amux workspace > sync

# Check status
/amux workspace > status

Key Features

  • Framework-agnostic core -- works with any agent framework, not just Pi
  • Zero overhead -- invisible until you opt in
  • UUID identity -- agents persist across restarts
  • Crash-safe messaging -- messages survive crashes, delivered on reconnect
  • File reservations -- claim files before editing, prevent conflicts
  • Task backlog -- assign/pick/done with auto file reservation
  • Shared journal -- decisions and learnings in every agent's context
  • Git workspaces -- isolated worktrees per agent
  • Built-in roles -- ready to use, customizable per project
  • Zero dependencies -- just Node.js

Session Files

~/.amux/sessions/<project>/
├── agents.json             Agent registry (UUID-keyed)
├── roles.json              Role definitions
├── config.json             Project config (main repo path)
├── backlog.json            Task backlog
├── reservations.json       File reservations
├── journal.jsonl           Decisions & learnings
├── messages.log            Message history
├── inbox/<agent-uuid>/     Per-agent message inbox
└── artifacts/
    ├── project/            Shared across all agents
    │   └── CONTEXT.md      Auto-injected into agent prompts
    └── agents/<uuid>/      Private per-agent space

Development

npm test    # Verify all files parse correctly

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT -- see LICENSE.