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

@lazymac/agent-handoff-mcp

v1.0.0

Published

Persistent multi-agent task handoff state — atomic claim, lineage audit, and pending-task queues for cross-agent orchestration.

Readme

Agent Handoff MCP

Agent Handoff MCP is a small production-oriented Model Context Protocol server for coordinating work between autonomous agents. It gives agents a shared, file-backed handoff queue with atomic claiming, lineage tracking, terminal state cleanup, and aggregate status reporting. The goal is simple: stop duplicated agent work and make cross-agent ownership explicit.

Why This Exists

Multi-agent systems fail when two workers pick up the same task, when a failed handoff disappears from context, or when stale pending work silently accumulates. This server keeps the handoff lifecycle in one durable JSON store under ~/.local/share/agent-handoff by default. It is intentionally local-first, dependency-light, and easy to inspect. The store can be moved with AGENT_HANDOFF_DIR.

Tools

  • create_handoff creates a pending handoff from one agent to another. It records sender, receiver, title, optional context, optional payload, parent lineage, and an optional TTL.
  • claim_handoff atomically claims a pending handoff. If another agent already claimed it, the call fails instead of creating duplicate work.
  • complete_handoff marks a claimed handoff as completed or failed and records result/error data.
  • list_pending lists pending work assigned to a specific target agent and expires stale TTL-bound records.
  • stats returns counts by status, counts by agent pair, and stale pending totals.
  • purge_terminal deletes completed, failed, or expired records older than a configurable number of days.

Usage

Install dependencies, then run through any MCP client that supports stdio:

npm install
node index.js

Example handoff flow:

{
  "from_agent": "planner",
  "to_agent": "worker-a",
  "title": "Fix RapidAPI sync drift",
  "payload": {"path": "scripts/rapidapi-sync.sh"},
  "ttl_seconds": 86400
}

The receiving agent calls claim_handoff, performs the task, then calls complete_handoff. Every state transition appends an event, so the record remains auditable after completion.

Operational Notes

The server uses an atomic lock file around store reads/writes. It is designed for low-volume local orchestration, not a distributed queue across machines. For a single workstation or one shared mounted home directory, it is enough to prevent double-pickup and keep lineage available to later agents. If the process dies mid-call, terminal states remain readable and stale lock files are recovered after a short timeout.

Monetization Path

This is ready for MCPize-style distribution as a developer operations utility. The buyer value is cross-agent reliability: fewer duplicate edits, clearer ownership, and a durable record of what was delegated, claimed, and completed. It pairs naturally with coding-agent teams, local automation suites, and revenue/ops loops that need bounded ownership.