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

dispatch-agents

v0.5.2

Published

Orchestrate Claude Code agents in git worktrees

Readme

dispatch

CLI tool for orchestrating Claude Code agents in git worktrees. Dispatch work from Linear tickets or free text, run agents in named terminal tabs or headless.

The Problem

You're running 15 Claude Code sessions and your terminal looks like this:

* Unit... | * App... | * Prod... | * DOI... | * Prof... | * Mov... | * Code...

Which tab is doing what? No idea.

The Solution

dispatch run HEY-837                    # Opens named tab: "HEY-837: eval improvements"
dispatch run HEY-842 --headless         # Runs in background
dispatch list                           # See all agents + status

Each agent gets:

  • Its own git worktree (isolated branch, no conflicts)
  • A named tmux window that shows as an iTerm2 tab
  • Color-coded tabs so you can tell them apart at a glance
  • Optional headless mode for fire-and-forget tasks

Install

npm install -g dispatch-agents

Or from source:

git clone https://github.com/paperMoose/dispatch.git
cd dispatch
npm install && npm run build
npm link

Requirements

  • Node.js 20+
  • tmuxbrew install tmux
  • claudeClaude Code CLI
  • git — for worktree management
  • iTerm2 (recommended) — for native tab integration via tmux -CC

MCP Server

Dispatch includes an MCP server so Claude Code can orchestrate agents directly — no shell commands needed.

Setup

After installing dispatch, register the MCP server with Claude Code:

claude mcp add --scope user dispatch node $(which dispatch-mcp)

This exposes 6 tools to Claude Code:

| Tool | Description | |------|-------------| | dispatch_run | Launch an agent with a prompt (inline text, not a file) | | dispatch_list | List all running agents with status | | dispatch_stop | Stop a running agent | | dispatch_resume | Resume a stopped agent | | dispatch_cleanup | Remove worktrees and optionally branches | | dispatch_logs | Get recent output from an agent |

How it works

The MCP server wraps the dispatch CLI over stdio using the Model Context Protocol. When Claude Code calls dispatch_run, the server writes the prompt to a temp file, runs dispatch run --prompt-file <file>, and cleans up. Interactive agents open iTerm tabs; headless agents run in the background.

Working directory

By default the MCP server uses the directory Claude Code is running in. To override, set DISPATCH_CWD:

claude mcp add --scope user dispatch -e DISPATCH_CWD=/path/to/repo node $(which dispatch-mcp)

Usage

Launch an agent

# From a Linear ticket (fetches title + description as prompt)
dispatch run HEY-837

# Free text prompt
dispatch run "Fix the auth bug in login.py"

# Headless (background mode)
dispatch run HEY-837 --headless

# With options
dispatch run HEY-837 --model sonnet --max-turns 10 --base main

Monitor agents

# List all running agents with status
dispatch list

# Tail logs from a headless agent
dispatch logs HEY-837

# Attach to the tmux session (see all tabs)
dispatch attach

Manage agents

# Stop an agent (keeps worktree)
dispatch stop HEY-837

# Resume a stopped agent
dispatch resume HEY-837

# Clean up worktree + branch
dispatch cleanup HEY-837

# Clean up everything
dispatch cleanup --all

How It Works

dispatch run HEY-837
  |
  |-- 1. Fetch ticket from Linear (title + description)
  |-- 2. git worktree add -b hey-837 .worktrees/hey-837 origin/dev
  |-- 3. tmux new-window -n "HEY-837" (becomes iTerm2 tab)
  |-- 4. Set tab color + badge
  |-- 5. Launch Claude Code with ticket as prompt
  |
  v
  Agent works in isolated worktree, commits, pushes

Interactive vs Headless

| | Interactive | Headless | |---|---|---| | Tab | Named iTerm2 tab you can watch | Detached tmux window | | Interaction | You can type into Claude Code | Fire and forget | | Output | Live in the tab | dispatch logs <id> | | Safety | Claude Code permission prompts | --allowedTools pre-approved | | Use case | Complex tasks, review as you go | Simple/well-defined tasks |

Configuration

Environment variables

export LINEAR_API_KEY="lin_api_..."      # For ticket fetching
export DISPATCH_BASE_BRANCH="dev"        # Default base branch
export DISPATCH_MODEL="opus"             # Default model

Config file (~/.dispatch.yml)

base_branch: dev
model: opus
max_turns: 20
worktree_dir: .worktrees

iTerm2 Integration

Dispatch uses tmux -CC when it detects iTerm2, which maps tmux windows to native iTerm2 tabs. This means:

  • Each agent gets a real iTerm2 tab with a clear name
  • Tabs are color-coded to tell agents apart
  • iTerm2 badges show the ticket ID as an overlay
  • Sessions survive terminal crashes (tmux persistence)

Tab naming

Disable automatic title overrides in your shell:

# Add to ~/.zshrc
DISABLE_AUTO_TITLE="true"

License

MIT