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

@metaharness/pi-dev

v0.1.1

Published

MetaHarness example — pi.dev AGENTS.md harness with a minimal scaffold ready for pi.dev agents (npx @metaharness/pi-dev my-bot)

Downloads

277

Readme

MetaHarness × pi.dev AGENTS.md harness

MetaHarness example — pi.dev AGENTS.md harness with a minimal scaffold ready for pi.dev agents.

Supported environments: Node.js 20+ on Linux, macOS and Windows. The scaffold runs npx metaharness@latest, so the first run needs network access. This is the @metaharness/pi-dev path from metaharness: the same scaffold as npx metaharness new my-bot, plus this example's files.

Quickstart

npx @metaharness/pi-dev my-bot
npx -y -p metaharness harness doctor my-bot | tail -1

Expected output (npm notices removed, temp path shortened to ./):

Scaffolded my-bot into ./my-bot
Files: 16
Manifest: ./my-bot/.harness/manifest.json

Scaffolded pi.dev harness in ./my-bot
Next: cd my-bot && npm install
Then: harness doctor
Result: HEALTHY (./my-bot)

Next: @metaharness/host-pi-dev — the adapter that writes this host's config, if you want to generate it from your own code.

Reference

⚠️ Illustrative output. Transcripts and validation/run output shown in this README are representative examples, not captured from a specific run — actual output depends on your environment, models, and inputs. Run the commands to see real results.

A one-shot scaffold that drops a pi.dev-ready agent harness into a new folder. It wires up the AGENTS.md contract that pi.dev workers read on startup, ships a minimal template (no opinionated multi-agent vertical), and leaves you with a clean working directory you can commit immediately. This is for engineers who already know they want pi.dev as their host runtime and just want the boilerplate done. It does NOT include domain-specific agents, evaluation harnesses, or pre-baked workflows — pick a vertical package if you want that.

Quickstart

npx @metaharness/pi-dev@latest my-bot
cd my-bot
npm install
harness doctor

harness doctor verifies that your AGENTS.md, host config, and MCP wiring all parse and resolve. If it prints green, you can hand the directory to pi.dev and start a session.

What you get

  • AGENTS.md — the canonical contract pi.dev agents read on boot (rules, tools, file boundaries).
  • .pi/config.json — host-specific config for pi.dev (model defaults, sandbox policy, working dir).
  • harness.config.json — metaharness-level config so harness doctor / harness validate know your layout.
  • mcp.json — empty but valid MCP server registry; add servers as you need them.
  • agents/ — one starter agent stub (agents/main.md) you can rename or duplicate.
  • scripts/ — doctor.mjs and validate.mjs shims that defer to the harness CLI.
  • .gitignore, package.json, README.md — sane defaults, no lockfile churn.

Advanced

Validate the AGENTS.md contract and host config without running an agent:

$ harness doctor
[doctor] AGENTS.md           OK
[doctor] .pi/config.json     OK
[doctor] mcp.json            OK (0 servers registered)
[doctor] harness.config.json OK
ready.

Strict-validate every referenced file path and tool name:

$ harness validate --strict
[validate] resolving 1 agent...
[validate] agents/main.md: tools=[Read, Write, Bash] all resolvable
[validate] no dangling references
ok.

Dry-run a pi.dev session against the local scaffold without leaving your shell:

$ pi-dev run --plugin-dir . --dry-run
[pi-dev] loaded AGENTS.md (1 agent)
[pi-dev] sandbox: workspace-write
[pi-dev] would start: agents/main.md

FAQ

Q: Do I have to use pi.dev to run this? A: No — the AGENTS.md file is portable. Other AGENTS.md-aware hosts (Codex, Cursor agents, etc.) will read the same contract. The .pi/config.json is the only pi.dev-specific piece, and it's ignored by other hosts.

Q: Where do I add my own agents? A: Drop new markdown files into agents/ and reference them from AGENTS.md. Run harness validate to confirm the references resolve before committing.

Q: Why does this ship mcp.json with zero servers? A: So harness doctor has a real file to validate against. Add MCP servers with harness mcp add <name> or by editing the file directly — both are supported.

License

MIT. Built on metaharness (https://www.npmjs.com/package/metaharness).

Deep-dive

Full explainer gist: https://gist.github.com/ruvnet/ec3c2bb303ba99d83dc5cb36306d6380