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

@controlvector/cv-orchestrate

v0.1.0

Published

Fleet orchestration daemon for CV-Agent

Readme

cv-orchestrate

Fleet orchestration daemon for CV-Agent. Deploy, supervise, and route AI agents across machines.

The Problem

You have agents. You don't have a fleet. Every cva agent session is a manual SSH + terminal process that dies when the shell closes. No auto-restart, no health monitoring, no remote deployment, no capability-based task routing.

cv-orchestrate solves this with two components:

  1. cvod — A daemon that runs on each machine as a systemd service, spawning and supervising agent processes per a YAML manifest
  2. Fleet API — CV-Hub extensions for remote machine management, agent deployment, and intelligent task routing

Architecture

┌─────────────────────────────────────────────────────────┐
│                   CV-Hub (Control Plane)                  │
│                                                          │
│  ┌────────────┐  ┌────────────┐  ┌────────────────────┐ │
│  │ Task Router │  │  Machine   │  │  Fleet Dashboard   │ │
│  │ (affinity,  │  │  Registry  │  │  (health, logs,    │ │
│  │  capability │  │            │  │   cost, metrics)   │ │
│  │  routing)   │  │            │  │                    │ │
│  └──────┬──────┘  └─────┬──────┘  └────────────────────┘ │
└─────────┼───────────────┼────────────────────────────────┘
          │               │
     ┌────┴────┐     ┌────┴────┐     ┌──────────┐
     │ primary │     │  aux-1  │     │   gpu-1  │
     │  cvod   │     │  cvod   │     │  cvod    │
     │         │     │         │     │          │
     │ agent-a │     │ agent-c │     │ trainer  │
     │ agent-b │     │ agent-d │     │          │
     │ mcp-svc │     │ mcp-svc │     │          │
     └─────────┘     └─────────┘     └──────────┘

Quick Start

# Install
npm install -g @controlvector/cv-orchestrate

# Initialize on a machine
cvod init --name aux-1 --role auxiliary

# Edit agent manifest
vim /etc/cvod/agents.yaml

# Start daemon
sudo systemctl enable cvod
sudo systemctl start cvod

# Or run foreground for testing
cvod start --foreground

Agent Manifest

# /etc/cvod/agents.yaml
machine:
  name: aux-1
  role: auxiliary
  tags: [build, network]
  hub_url: https://api.hub.controlvector.io

agents:
  - name: example-mcp
    repo: myorg/example-mcp
    workspace: /home/user/projects/example-mcp
    auto_approve: true
    restart: always        # always | on-failure | never
    max_restarts: 10       # per hour
    backoff_base_ms: 1000
    env_file: ~/.env.example-mcp

  - name: scheduled-job
    repo: myorg/scheduled-job
    workspace: /home/user/projects/scheduled-job
    auto_approve: true
    restart: always
    schedule: "0 */6 * * *"  # cron-style scheduled runs
    env_file: ~/.env.scheduled-job

CLI Commands

cvod init           # Initialize machine, create manifest template
cvod start          # Start daemon (reads agents.yaml, spawns agents)
cvod stop           # Graceful shutdown of all agents
cvod status         # Show all agents, PIDs, uptime, health
cvod logs <agent>   # Tail agent logs
cvod restart <name> # Restart specific agent
cvod deploy <repo>  # Clone repo + add agent to manifest
cvod remove <name>  # Stop agent + remove from manifest
cvod register       # Register machine with CV-Hub fleet API
cvod unregister     # Remove machine from fleet

Fleet API (CV-Hub Extensions)

GET    /api/v1/fleet/machines          List registered machines
GET    /api/v1/fleet/machines/:id      Machine details + agents
POST   /api/v1/fleet/machines/:id/cmd  Send command to machine daemon
GET    /api/v1/fleet/agents            List all agents across fleet
POST   /api/v1/fleet/deploy            Deploy agent to machine
DELETE /api/v1/fleet/agents/:id        Stop + deregister agent
GET    /api/v1/fleet/health            Fleet-wide health summary

Task Routing

CV-Orchestrate extends CV-Hub's task dispatch with machine affinity:

# Task routing rules (in CV-Hub config)
routing:
  rules:
    - match: { repo: "myorg/example-app", requires: ["toolchain-x"] }
      prefer: primary
    - match: { task_type: "deploy", requires: ["gpu"] }
      prefer: gpu-*
    - match: { tag: "build" }
      prefer: aux-1
  fallback: any-available

License

MIT. See LICENSE. Copyright (c) Control Vector LLC.