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-pool-mcp

v1.7.3

Published

MCP Server for multi-agent task delegation and orchestration via Gemini CLI

Readme

npm version License: MIT Node.js

agent-pool-mcp

Multi-agent orchestration via Gemini CLI — parallel task delegation, sequential pipelines, cron scheduling, and cross-model peer review.

Compatible with Antigravity, Cursor, Windsurf, Claude Code, and any MCP-enabled coding agent.

Your primary IDE agent delegates background tasks to Gemini CLI workers in parallel — all sharing the same authentication from a single Gemini subscription.

When the primary agent and Gemini workers are different foundation models (e.g. Claude + Gemini), consult_peer gives you cross-model review — two models check each other's reasoning independently.

┌─────────────────────────────────┐
│  Primary IDE Agent              │  ← Claude, GPT, Gemini, etc.
│  (Antigravity / Cursor / ...)   │
└────────────┬────────────────────┘
             │ MCP (stdio)
┌────────────▼────────────────────┐
│  agent-pool-mcp                 │  ← This server
│  (task router + process mgmt)  │
└──┬─────────┬─────────┬─────────┘
   │         │         │
   ▼         ▼         ▼
  gemini    gemini    gemini       ← Gemini CLI workers
  (task1)   (task2)   (review)       (same auth, parallel)

[!TIP] A single $20/month Google AI Ultra subscription can power dozens of parallel workers — no additional API keys required.

Task Delegation

Non-blocking task delegation to Gemini CLI workers. The primary agent fires off a task and continues working — polling for results when ready. Workers get full filesystem access (delegate_task) or read-only mode (delegate_task_readonly). Cancel anytime with cancel_task.

Pipelines — Sequential Task Chains

Multi-step workflows with automatic handoff between steps:

create_pipeline({
  name: "article-workflow",
  steps: [
    { name: "research", prompt: "Research the topic and write notes to research.md" },
    { name: "draft", prompt: "Read research.md and write article draft" },
    { name: "review", prompt: "Review the draft for accuracy and style" }
  ]
})
run_pipeline({ pipeline_id: "article-workflow" })

Steps support triggers: on_complete (chain after one step), on_complete_all (fan-in after several), and on_file (start when a file appears). Agents can bounce_back to a previous step with feedback if data is incomplete.

Cron Scheduler

Schedule agents on a cron expression — a detached daemon survives IDE/CLI restarts. Uses atomic file locks to prevent duplicate execution.

"0 9 * * MON-FRI"    — 9am weekdays
"*/30 * * * *"       — every 30 minutes
"0 */2 * * *"        — every 2 hours

Results are saved to .agents/scheduled-results/ and retrievable via get_scheduled_results.

3-Tier Skill System

Skills are Markdown files with YAML frontmatter that extend agent behavior:

  1. Project.gemini/skills/ (local to repo, takes precedence)
  2. Global~/.gemini/skills/ (available across all projects)
  3. Built-in — shipped with agent-pool (code-reviewer, test-writer, doc-fixer, orchestrator)

Install a built-in or global skill into the project for local customization with install_skill.

Per-Task Policies

Restrict tool usage for specific tasks using YAML policies:

  • "read-only" — disables all file-writing and destructive shell tools
  • "safe-edit" — allows file modifications but blocks arbitrary shell execution
  • Custom path — "/path/to/my-policy.yaml"

Cross-Model Peer Review

consult_peer sends architectural proposals to a Gemini worker for structured review. The worker responds with a verdict: AGREE, SUGGEST_CHANGES, or DISAGREE. Supports iterative rounds until consensus.

Security

  • Path Traversal Protection — all skill and policy operations are sanitized to prevent access outside designated directories
  • Process Isolation — tasks run as detached processes; cancel_task and server shutdown kill entire process groups
  • Credential Safety — uses your local Gemini CLI authentication; no keys are stored or transmitted

Quick Start

Prerequisites: Node.js >= 20, Gemini CLI installed and authenticated.

npm install -g @google/gemini-cli
gemini    # First run: opens browser for OAuth

Add to your IDE's MCP configuration:

{
  "mcpServers": {
    "agent-pool": {
      "command": "npx",
      "args": ["-y", "agent-pool-mcp"]
    }
  }
}

Restart your IDE — agent-pool-mcp will be downloaded and started automatically.

| IDE | Config path | |-----|------------| | Antigravity | ~/.gemini/antigravity/mcp_config.json | | Cursor | .cursor/mcp.json | | Windsurf | .windsurf/mcp.json | | Claude Code | Run: claude mcp add agent-pool npx -y agent-pool-mcp |

npm install -g agent-pool-mcp

Then use "command": "agent-pool-mcp" in your MCP config (no npx needed).

Verify

npx agent-pool-mcp --check

Runs diagnostics: checks Node.js, Gemini CLI, authentication, and remote runner connectivity.

CLI

npx agent-pool-mcp --check      # Doctor mode: diagnose prerequisites
npx agent-pool-mcp --init       # Create template config (for SSH runners)
npx agent-pool-mcp --version    # Show version
npx agent-pool-mcp --help       # Full help

Remote Workers (SSH)

Run workers on remote servers via SSH — same interface, transparent stdio forwarding. Create agent-pool.config.json in your project root or ~/.config/agent-pool/config.json:

{
  "runners": [
    { "id": "local", "type": "local" },
    { "id": "gpu", "type": "ssh", "host": "gpu-server", "cwd": "/home/dev/project" }
  ],
  "defaultRunner": "local"
}

Nested Orchestration

Install agent-pool inside Gemini CLI to enable hierarchical delegation — workers can spawn their own workers.

| Variable | Purpose | Default | |----------|---------|--------| | AGENT_POOL_DEPTH | Current nesting level (auto-incremented) | 0 | | AGENT_POOL_MAX_DEPTH | Max allowed depth | not set (no limit) |

See parallel-work guide and built-in orchestrator skill for patterns.

MCP Ecosystem

Best used as part of mcp-agent-portal — a unified MCP aggregator that bundles agent-pool, project-graph, and other servers behind a single config entry:

{
  "mcpServers": {
    "agent-portal": {
      "command": "npx",
      "args": ["-y", "mcp-agent-portal"]
    }
  }
}

Also works standalone alongside project-graph-mcp — AST-based codebase analysis:

{
  "mcpServers": {
    "agent-pool": {
      "command": "npx",
      "args": ["-y", "agent-pool-mcp"]
    },
    "project-graph": {
      "command": "npx",
      "args": ["-y", "project-graph-mcp"]
    }
  }
}

[!IMPORTANT] Each Gemini CLI worker gets its own MCP server instance but shares pipeline state via filesystem — no coordination overhead.

Documentation

Related Projects

License

MIT © RND-PRO.com


Made with ❤️ by the RND-PRO team