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

@agent-stack2/coordinator

v0.2.0

Published

Multi-agent coordination MCP server — sessions, claims, handoffs, merge-risk prediction, and team metrics

Downloads

193

Readme

Agent Coordinator

Agent Coordinator is the control plane for multi-agent software work.

It answers the questions that every serious agent team eventually hits:

  • Who is working right now?
  • On what task?
  • With what mission?
  • Which files or modules do they plan to touch?
  • Is it safe for me to continue, review, or take over?

This repo starts from a small MCP server and grows toward a full multi-agent coordination layer for coding teams.

Product thesis

Strong coding agents do not fail only because they lack reasoning. They also fail because they lack shared operational state.

Without coordination, multiple agents:

  • duplicate work
  • edit the same area at once
  • leave vague handoffs
  • lose track of blockers
  • make humans guess who owns what

Agent Coordinator exists to make multi-agent execution feel normal, reliable, and commercially useful.

What "good" looks like

In the ideal flow, every agent session has four visible steps:

  1. Announce presence and mission.
  2. Claim a workset before editing.
  3. Leave structured checkpoints, blockers, and handoffs.
  4. Hand work off or close the session cleanly.

The next agent should not need to guess. It should know:

  • who was here before
  • what they were trying to do
  • what they touched
  • what is still blocked
  • whether it is safe to continue

Current status

The current implementation includes:

  • actor registry (auto-registered on session start)
  • session v2 with heartbeat, stale/terminal enforcement
  • workset claims: project-scoped with conflict severity
  • handoff v2: ownership-enforced accept/complete/cancel lifecycle
  • assignment model with priority routing, accept/complete lifecycle
  • agent inbox: handoffs + assignments in one call
  • watch model: target-aware subscriptions (project/node/claim/actor) with eventTypes filtering
  • notifications: event-aware fanout for handoffs, assignments, conflicts, stale expiries
  • notification read-state: mark_notification_read, mark_all_notifications_read
  • team status: compact operational summary with alerts
  • activity feed with consistent project filtering
  • memory bridge: deterministic mapping layer from coordinator events to Agent Memory descriptors (15 event types)
  • memory recorder: live recording of coordinator events into Agent Memory with pluggable writer, node resolver, fail-open policy, and actor provenance
  • memory runtime: production wiring with LocalMemoryWriter (JSONL to .agent-memory/) and CoordinatorNodeResolver
  • boot overlay: coordinator state snapshot for agent startup — who is active, what is claimed, what is waiting, what is risky, what can I take over
  • end-to-end resume demo: proven two-actor handoff/resume with safe claim ownership transfer and durable memory evidence
  • cross-vendor resume benchmark: symmetric Claude↔Codex resume with call counts, guarantees, and limitations
  • merge-risk heuristics: directory overlap, test-surface overlap, and semantic module coupling for predictive conflict detection
  • predict_merge_risk: MCP tool combining heuristic engine with live coordinator state for proactive conflict assessment against active claims; emits merge_risk_predicted activity
  • multi-project registry: auto-registered on all write paths (sessions, claims, handoffs, assignments), explicit registration via register_project
  • cross-project actor view: get_actor_projects shows where an actor is active, blocked, or overloaded across repos
  • consistent actor identity: actors auto-registered on all write paths so get_actor_projects never returns null for active participants
  • coordination metrics: quantitative ROI signals — conflicts detected, handoff acceptance/completion rates, assignment pickup, stale work, pickup latency, per-project breakdown, human-readable highlights
  • team control plane demo: proven 3-agent + 1-human scenario with merge-risk prevention, human reassignment, handoff pickup, and durable memory evidence
  • MCP server v0.5 with 37 tools (369 tests passing)

Phases 1-6 complete. The module is ready for design-partner adoption.

Quickstart

npm install
npm run build
npm test          # 369+ tests
npm run smoke     # build + team demo

Wire into your MCP client by pointing at dist/server.js:

{
  "mcpServers": {
    "agent-coordinator": {
      "command": "node",
      "args": ["/path/to/agent-coordinator/dist/server.js"]
    }
  }
}

Full setup instructions: docs/INSTALL.md

Docs

Relationship to Agent Memory

agent-memory-kit stores durable execution memory.

agent-coordinator stores live operational coordination state.

The long-term goal is:

  • memory tells the next session what happened
  • coordinator tells the next session who is active right now

Together they give an agent both continuity and situational awareness.

Product shape across the toolkit

The right end-state is not one app per tool.

The better model is:

  • one unified toolkit app / workbench
  • agent-memory as the continuity core and likely UI nucleus
  • each subrepo keeping its own MCP surface, storage, tests, and domain logic

That gives the user one coherent product while preserving clean ownership in each tool repo.

Development workflow

This project uses Agent Memory (local mode via .mcp.json).

If .agent-memory/ is empty on a fresh clone, bootstrap it with:

./scripts/bootstrap-memory.ps1

Recommended workflow for future work:

  1. boot_context()
  2. Read README.md, ROADMAP.md, PAIN-POINTS.md, and docs/
  3. If memory does not resolve an active node, run ./scripts/bootstrap-memory.ps1
  4. Execute the next task from docs/BACKLOG.md
  5. Record meaningful decisions and blockers in memory
  6. finalize_node(summary="...")

Treat Agent Memory as mandatory, not optional. A coding session in this repo is incomplete if it changed code or product direction but did not leave memory updates behind.

Long-term promise

The real value proposition is not "more tools for agents".

It is:

"Run multiple coding agents on the same codebase without chaos."