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

leopold-driver

v0.4.5

Published

Leopold SDK driver: a persistent conductor that orchestrates fresh Claude Code workers per task, decides from your charter, and notifies you. Uses your Claude Code auth. Git stays locked.

Readme

@leopold/driver

The external conductor. Where the in-session engine (skills + hooks) keeps one Claude Code session going, the driver is a persistent process that conducts fresh Claude Code workers, one per plan item, and holds your mission and charter across the whole run. It is the tier that turns Leopold from "a better loop" into a real harness you brief and walk away from.

What it does differently

  • Persistent conductor, fresh workers. The driver (the "you") remembers the mission, charter, and every decision for the entire run. Each plan item gets a brand-new worker with clean context, so quality does not rot as the run grows. This is the best of both worlds: Ralph's fresh-context-per-task plus a conductor that Ralph does not have.
  • Real message exchange. The worker closes each turn with a structured status block. The conductor reads it, decides from your charter, and either pushes a concrete instruction back into the same worker session or ends the item. That is a genuine back-and-forth between two agents, not a blind "continue".
  • It decides, then notifies. Reversible or charter-clear forks are decided and logged. Only a genuinely irreversible-and-ambiguous fork stops the run and pings you. You get a notification on completion or escalation, not a screen to babysit.
  • Git stays locked. The worker runs under a canUseTool guard with the same policy as the in-session hook: commit, push, force-push, rm -rf, PR/release, and publish are blocked unless you drop an explicit opt-in token.

Auth: it uses YOUR Claude Code, not a separate API key

Both the worker and the conductor run through the Claude Agent SDK, which uses your existing Claude Code login (your subscription). There is no separate API key and no split billing. ANTHROPIC_API_KEY is only needed in a headless environment with no Claude Code auth configured.

The conductor <-> worker protocol

worker  -> works on the item, closes the turn with:
           ```leopold-status
           STATUS: done | needs-decision | blocked
           ITEM / SUMMARY / DECISION-NEEDED / NEXT / EVIDENCE
           ```
driver  -> parses the status, the conductor (your charter as system prompt)
           returns a verdict: answer | finish | escalate
           - answer   -> push a concrete instruction into the worker session
           - finish   -> mark the plan item done, start the next item (fresh worker)
           - escalate -> notify you, pause the run

Install and build

cd packages/driver
npm install
npm run build

Usage

This package is the whole of Leopold from npm — it bundles the harness (skills, hooks, installer, extensions) so the CLI runs everything without cloning the repo or make. The binary is exposed as both leopold-driver and leopold.

npm i -g leopold-driver

leopold install              # copy skills + hooks into ~/.claude (also: --with-gstack)
leopold menu                 # toolchain manager (serena / gstack / ovmem)
leopold watch [--port N]     # live dashboard at http://127.0.0.1:4179  (needs Python 3)
leopold serena install       # manage an extension directly (also: gstack, ovmem)
leopold doctor               # run every extension's doctor
leopold update               # reinstall from this package
leopold run [--dry-run]      # conduct the .leopold run (the SDK driver below)

watch reads the current project's .leopold/ and shows run status, cost meters, the event feed, decisions, and a Stop button. run needs a .leopold/ brief (from /leopold-brief) and your Claude Code login.

Environment

| Var | Default | Purpose | |---|---|---| | LEOPOLD_CONDUCTOR_MODEL | your Claude Code default | the conductor's model | | LEOPOLD_WORKER_MODEL | your Claude Code default | the worker's model | | LEOPOLD_MAX_TURNS_PER_ITEM | 40 | worker turn budget per item | | LEOPOLD_WEBHOOK | none | URL for JSON POST notifications (Slack/Discord/etc.) | | ANTHROPIC_API_KEY | none | only for headless environments without Claude Code auth |

Stop conditions (plan complete, kill switch via .leopold/STOP, repeated failures, iteration budget) come from .leopold/GUARDRAILS.md, same as the in-session engine.

Status and known limits

Alpha. Verified: compiles against @anthropic-ai/claude-agent-sdk, the CLI and dry-run work, and the status parser + canUseTool guard have unit tests (make driver-test / npm test) covering the same bypass attempts as the bash guard's red-team suite. Not yet built: a watchdog for a worker that ends a turn without emitting a status block (today the worker is strongly instructed to always emit one), parallel multi-worker waves, and the live dashboard. See the repo roadmap.