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 🙏

© 2025 – Pkg Stats / Ryan Hefner

too-many-cooks

v0.3.0

Published

Multi-agent Git coordination MCP server - enables multiple AI agents to safely edit a git repository simultaneously with file locking, messaging, and plan visibility

Downloads

287

Readme

Too Many Cooks

Multi-agent coordination MCP server - enables multiple AI agents to safely edit a codebase simultaneously.

Features

  • File Locking: Advisory locks prevent agents from editing the same files
  • Agent Identity: Secure registration with API keys
  • Messaging: Inter-agent communication with broadcast support
  • Plan Visibility: Share goals and current tasks across agents
  • Real-time Status: System overview of all agents, locks, and plans
  • Written in Dart: Made with dart_node

Installation

npm install -g too-many-cooks

Usage with Claude Code

Add to your Claude Code MCP configuration:

claude mcp add --transport stdio too-many-cooks -- npx too-many-cooks

Or configure manually in your MCP settings:

{
  "mcpServers": {
    "too-many-cooks": {
      "command": "npx",
      "args": ["too-many-cooks"]
    }
  }
}

Example Rules

## Multi-Agent Coordination (Too Many Cooks)
- Keep your key! It's critical. Do not lose it!
- Check messages regularly, lock files before editing, unlock after
- Don't edit locked files; signal intent via plans and messages
- Coordinator: keep delegating via messages. Worker: keep asking for tasks via messages
- Clean up expired locks routinely
- Do not use Git unless asked by user

MCP Tools

register

Register a new agent. Returns a secret key - store it!

Input:  { name: string }
Output: { agent_name, agent_key }

lock

Manage file locks.

Actions: acquire, release, force_release, renew, query, list
Input: { action, agent_name?, agent_key?, file_path?, reason? }

message

Send/receive messages between agents.

Actions: send, get, mark_read
Input: { action, agent_name, agent_key, to_agent?, content?, message_id? }

Use * as to_agent for broadcast.

plan

Share what you're working on.

Actions: update, get, list
Input: { action, agent_name?, agent_key?, goal?, current_task? }

status

Get system overview of all agents, locks, and plans.

Input: { }
Output: { agents, locks, plans, messages }

subscribe

Subscribe to real-time notifications.

Actions: subscribe, unsubscribe, list
Events: agent_registered, lock_acquired, lock_released, message_sent, plan_updated

Architecture

The server uses SQLite for persistent storage at ~/.too_many_cooks/data.db. All clients connect to the same database ensuring coordination works across multiple agent sessions.

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│   Claude Code   │     │ VSCode Extension│     │  Other Agents   │
└────────┬────────┘     └────────┬────────┘     └────────┬────────┘
         │                       │                       │
         └───────────────────────┼───────────────────────┘
                                 │
                                 ▼
                    ┌────────────────────────┐
                    │   Too Many Cooks MCP   │
                    │        Server          │
                    └───────────┬────────────┘
                                │
                                ▼
                    ┌────────────────────────┐
                    │   ~/.too_many_cooks/   │
                    │        data.db         │
                    └────────────────────────┘

Workflow Example

  1. Agent registers: register({ name: "agent-1" }) -> stores returned key
  2. Agent acquires lock: lock({ action: "acquire", file_path: "/src/app.ts", agent_name: "agent-1", agent_key: "xxx" })
  3. Agent updates plan: plan({ action: "update", goal: "Fix auth bug", current_task: "Reading auth code" })
  4. Other agents can see the lock and plan via status()
  5. Agent releases lock when done: lock({ action: "release", ... })

License

MIT