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

@lumea-technologies/polpo

v0.1.2

Published

Agent-agnostic framework for orchestrating teams of AI coding agents

Readme


OpenPolpo coordinates teams of AI agents working together on complex software tasks. Define plans, assign tasks to specialized agents, and let Polpo handle orchestration, assessment, approval gates, notifications, and recovery.

Polpo includes a built-in engine (Pi Agent) — a full agentic loop with 7 coding tools, 18+ LLM providers, and MCP support. No API key needed — the default model is free.

Installation

One-line install (recommended)

macOS / Linux / WSL:

curl -fsSL https://raw.githubusercontent.com/lumea-labs/polpo/main/install/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/lumea-labs/polpo/main/install/install.ps1 | iex

The installer detects your platform, ensures Node.js >= 18 is available (installing it via your system package manager if needed), and installs @lumea-labs/polpo globally.

Manual install

npm install -g @lumea-labs/polpo    # or: pnpm add -g @lumea-labs/polpo

Docker

docker run -it -p 3000:3000 -v $(pwd):/workspace lumea-labs/polpo

Quick Start

Path 1: Chat with an agent (30 seconds)

mkdir my-project && cd my-project
polpo init
polpo

That's it. You're in the interactive TUI. Type what you need, hit Enter, and the agent does it.

Path 2: Orchestrate a team (5 minutes)

1. Init your project

mkdir my-project && cd my-project
polpo init

2. Configure your team in .polpo/polpo.json:

{
  "project": "my-project",
  "team": {
    "name": "default",
    "agents": [
      {
        "name": "backend-dev",
        "role": "Backend developer specializing in Node.js and databases"
      },
      {
        "name": "frontend-dev",
        "role": "Frontend developer specializing in React and TypeScript"
      }
    ]
  },
  "settings": {
    "maxRetries": 3,
    "workDir": ".",
    "logLevel": "normal"
  }
}

3. Create a plan

polpo plan create "Build a REST API with SQLite database and Express endpoints"

Polpo uses AI to generate a plan with tasks, dependencies, and agent assignments. Review it, then:

4. Execute

polpo run

Polpo assigns tasks to agents, respects dependencies, scores every result with LLM judges, retries what fails, and reports when it's done.

5. Monitor (optional)

polpo status -w    # Live dashboard in another terminal
polpo serve        # HTTP API + Web UI at http://localhost:3000

Features

Core

  • Multi-agent orchestration — coordinate any number of agents with plan-based task execution, dependency resolution, and inter-agent communication
  • 7 task statespendingawaiting_approvalassignedin_progressreviewdone / failed, with validated transitions
  • 8-phase assessment pipeline — G-Eval LLM-as-judge scoring across configurable dimensions (correctness, completeness, code quality, edge cases)
  • Crash-resilient runners — detached agent subprocesses tracked in a persistent RunStore; automatic reconnection on restart
  • Deadlock detection — identifies circular dependencies and uses LLM-assisted resolution

Quality & Operations

  • 15 lifecycle hooksbefore/after hooks on task, plan, assessment, quality, scheduling, and orchestrator events; before-hooks can cancel or modify operations
  • Approval gates — hybrid auto/human gates; automatic condition evaluation or blocking for human review with configurable timeouts
  • Notification system — Slack, Telegram, Email, and Webhook channels with template-based routing
  • 4-level escalation chain — automatic escalation from retry → reassign → notify → human intervention
  • Quality gates — plan-level quality checkpoints that block progression until score thresholds are met
  • SLA deadline monitoring — warning and violation events for task and plan deadlines
  • Cron-based plan scheduling — recurring plan execution via cron expressions

Interfaces

  • REST API — Hono-based HTTP server with Zod-validated endpoints
  • SSE — real-time event streaming with reconnection support
  • Terminal UI — Ink-based TUI with Dashboard, Tasks, Plans, Agents, Logs, and Chat tabs
  • Web UI — Vite + React monitoring dashboard with shadcn/ui (see ui/)
  • React SDK — type-safe hooks with SSE-backed push updates (see packages/react-sdk/)

Developer Experience

  • Multiple store backends — File (default), JSON, and SQLite for tasks, runs, sessions, and logs
  • MCP support — connect external tool servers to any agent with automatic tool bridging
  • Filesystem sandbox — restrict agent file access via allowedPaths
  • Skills system — reusable agent instructions in .polpo/skills/, auto-injected into system prompts
  • 55+ typed events — organized across 19 categories, consumed by TUI, SSE, and notifications
  • SecuritysafeEnv strips secrets from subprocesses, no-eval condition DSL, localhost-only default binding

Architecture

                       polpo.json
                           |
                           v
                   ┌───────────────┐
                   │  Orchestrator  │
                   │   (5s tick)    │
                   └───────┬───────┘
                           |
             ┌─────────────┼─────────────┐
             v             v             v
       ┌──────────┐ ┌──────────┐ ┌──────────┐
       │  Runner   │ │  Runner   │ │  Runner   │
       │ (detached)│ │ (detached)│ │ (detached)│
       └─────┬────┘ └─────┬────┘ └─────┬────┘
             v             v             v
        Built-in      Built-in      Built-in
         Engine         Engine        Engine

The orchestrator runs a supervisor loop every 5 seconds, assigning pending tasks to agents, monitoring health, and driving the assessment pipeline.

Task State Machine

                      ┌───────────────────┐
                      v                   |
pending ──> awaiting_approval ──> assigned ──> in_progress ──> review ──> done
                |                                               |
                v                                               v
              failed <──────────────────────────────────────  failed
                |
                v
             pending (retry)

Seven states with validated transitions. Tasks flow forward through assignment, execution, and review. Failed tasks can be retried back to pending. Approval gates optionally intercept the pending → assigned transition.

Project Structure

polpo/
├── src/
│   ├── core/               # Orchestrator, config, types, events, hooks, state machine
│   │                       #   approval manager, escalation, task/plan managers
│   ├── adapters/           # Built-in engine (Pi Agent)
│   ├── assessment/         # G-Eval assessor, scoring dimensions, fix phase
│   ├── quality/            # Quality controller, SLA monitor
│   ├── scheduling/         # Cron parser, plan scheduler
│   ├── notifications/      # Notification router + channels (Slack, Telegram, Email, Webhook)
│   ├── tools/              # 7 coding tools, path sandbox, safeEnv
│   ├── mcp/                # MCP client manager and tool bridging
│   ├── stores/             # File, JSON, SQLite stores (tasks, runs, sessions, logs, config)
│   ├── llm/                # LLM queries, prompts, plan generation, skills
│   ├── tui/                # Terminal UI (Ink) + TUI commands
│   ├── server/             # Hono HTTP API, SSE bridge, routes
│   ├── cli/                # Commander CLI entry point + subcommands
│   └── index.ts            # Barrel exports
├── ui/                     # Vite + React monitoring dashboard
├── docs/                   # Mintlify documentation site
├── packages/
│   └── react-sdk/          # React hooks + SSE client (@lumea-labs/polpo-react)
└── .polpo/polpo.json       # Your project configuration

Documentation

Full documentation is available at openpolpo.dev, including:

  • Configuration reference (polpo.json schema)
  • API endpoint documentation
  • Built-in engine guide
  • Assessment and quality pipeline details
  • Notification and escalation setup
  • Hook and event reference

Contributing

We welcome contributions! See CONTRIBUTING.md for setup instructions, coding standards, and PR guidelines.

git clone https://github.com/lumea-labs/polpo.git
cd polpo
pnpm install
pnpm run build
pnpm run test -- --run

Security

If you discover a security vulnerability, please report it responsibly. See SECURITY.md for details.

License

MIT