ratchet-herd

Validates herd configuration and starts or attaches to the fleet supervisor script.

2|Updated Jun 13, 2026
One-click install
npx skills add https://github.com/praveenvijayan/Ratchet --skill ratchet-herd-praveenvijayan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ratchet-herd
Source: https://github.com/praveenvijayan/Ratchet/tree/main/plugin/skills/ratchet-herd
Command: npx skills add https://github.com/praveenvijayan/Ratchet --skill ratchet-herd-praveenvijayan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Operating a headless fleet supervisor for GitHub-based coding agents requires careful preflight checks: validating the .ratchet/herd.json config, avoiding duplicate supervisors, and knowing how to inspect live worker state. This Skill wraps those operations into a safe, repeatable procedure so nothing is started with a missing or invalid config. ## Core Features & Use Cases - Config validation without side effects: Runs node scripts/herd.mjs run --dry-run to validate .ratchet/herd.json and print the reconciled plan without spawning workers, surfacing the init hint when the config is missing. - Start or attach logic: Detects a running supervisor via pgrep -f "herd.mjs run", starts one in the foreground if none exists, or attaches to the running instance and summarizes live workers, attempts, and pending escalations from .ratchet/herd-state.json and .ratchet/herd-escalations.md. - Pinned worker dispatch contract: Defines the canonical rules for dispatched workers, including single-issue scope, branch resume behavior, and PR submission exclusively through node scripts/ratchet-submit.mjs. - Use Case: An operator wants to launch the agent fleet for the night. The Skill dry-runs the config, finds it valid, confirms no supervisor is running, and starts the poll loop — or, finding one already active, reports the three live workers and one pending escalation instead of launching a duplicate. ## Quick Start Ask the agent to validate the herd configuration and start the fleet supervisor, or summarize the currently running one.

Frequently Asked Questions about ratchet-herd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start the ratchet-herd fleet supervisor?

Run node scripts/herd.mjs run to start the poll loop in the foreground after validating the config with a dry run. Use --once for a single bounded pass or --max to override maxWorkers for that run.

How do I validate the herd.json config without starting workers?

Run node scripts/herd.mjs run --dry-run. It validates .ratchet/herd.json, prints the reconciled plan, and spawns no workers because the dry run implies a single pass and never enters the poll loop.

What happens if .ratchet/herd.json is missing?

The script prints an init hint and exits non-zero without starting anything. Run node scripts/herd.mjs init to write the default config, then edit adapters and routing before starting the supervisor.

Can I run two herd supervisors at the same time?

No. Detect a running supervisor with pgrep -f "herd.mjs run" and attach to it instead of launching a second one. Read .ratchet/herd-state.json and .ratchet/herd-escalations.md to summarize live workers and pending escalations.

Does the herd supervisor merge or approve pull requests?

No. The supervisor never merges, approves, closes, or labels anything. The auto-merge workflow handles normal-risk PRs and human reviewers handle risk:high PRs; the supervisor only dispatches, monitors, and verifies.