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

@osfactory/har

v0.64.0

Published

HAR: open agent harness CLI and MCP server for coding agents, isolated worktrees, and software-factory workflows

Readme

HAR: The open harness for multi-agent coding workflows

Release CI Documentation GitHub stars

HAR is an open-source agent harness — a CLI and MCP server — for multi-agent coding workflows. Run a fleet of coding agents in isolated worktrees, with deterministic validation, verifiable proof, and full observability. Use it as a portable software factory for Claude Code, Cursor, Codex, or any MCP agent.

Works with Claude Code · Cursor · Codex · any MCP agent.

What's included out of the box

  • HAR. The core harness, available as both a CLI and an MCP server. It turns any repository into isolated worktrees with deterministic launch, verify, and teardown stages for coding agents to work in.
  • Mission Control. HAR's open-source local dashboard. It gives you one place to keep track of every repository, worktree, run, validation, and artifact across your projects.
  • Plugins. A growing ecosystem of open source plugins that further expand HAR's customizability and functionality.

Install

npm install -g @osfactory/har

Get started

cd my-app
har onboard               # scaffold .har/ and print a prompt for your coding agent
har env launch 1          # isolated worktree + running stack for agent slot 1
har env verify 1 --full   # run the project's real checks, record what passed

Full walkthrough: Quickstart.

Why HAR

Getting a single coding agent to work in a repo is easy. Scaling that into a real multi-agent workflow, where several agents run at once and humans still trust the output, is where it breaks down. HAR was built to close those gaps:

  1. No standard way to run or verify a repo. That knowledge is scattered across a README, a CLAUDE.md, Cursor rules, and CI yaml today, drifting out of sync with each other and the actual codebase. HAR replaces all of that with one machine-readable contract (.har/) that Claude Code, Cursor, Codex, or any MCP agent reads the same way.

  2. Multiple agents on one repo collide. Shared dev server, shared database, shared ports, conflicting git state. HAR gives each agent its own worktree, ports, and database per slot, so a fleet can genuinely run concurrently.

  3. Trusting an agent's change means re-verifying it yourself. Every task runs the same deterministic verify step and leaves an evidence trail, logs, artifacts, a validated tree hash, so a reviewer can check proof of what ran instead of relying on the agent's self-report.

  4. One platform's sandbox locks you in. If the contract lives inside a vendor's hosted dashboard, switching coding agents later means rebuilding the whole verification setup. HAR's contract is an open standard living in the repo itself, portable across whichever agent or tool you adopt.

  5. Hand-rolled scripts rot as the stack changes. A new dependency, a new service, a new env var, and nobody updates the script until an agent's run fails for a confusing reason. har env maintain diffs your installed harness against current templates and flags drift before it causes a silent failure.

HAR coordinates the work around the model, so agents can focus on the code and reviewers can trust the result.

How HAR works

flowchart LR
    D["Discover<br/>reads the harness contract"] --> I["Isolate<br/>one slot per agent"]

    I --> A1["Agent 1<br/>own worktree, branch, ports, DB"] --> B1["Build"] --> V1["Verify"]
    I --> A2["Agent 2<br/>own worktree, branch, ports, DB"] --> B2["Build"] --> V2["Verify"]

    V1 --> H["Hand off<br/>branch + evidence"]
    V2 --> H
  1. Discover. The agent asks the harness what this project looks like, including its stack, its scripts, and what checks are available.

  2. Isolate. Every task gets its own slot. That means a fresh copy of the repo on its own branch, with its own ports and, where the project needs it, its own database. Nothing is shared with the main checkout or with any other agent's slot.

  3. Build. The agent edits and tests its work entirely inside that isolated copy. The main checkout stays untouched the whole time.

  4. Verify. The project's own checks, whatever they are, run through the same pipeline every time and produce a consistent result. A full verification goes further and captures the state of the entire codebase at that moment, so a pass is tied to the exact code that was checked.

  5. Hand off. Once verification passes, the session is torn down, but the branch and the proof of what ran are kept. A reviewer gets the code plus the evidence that it was checked.

Documentation

Everything beyond install and first commands lives at harproject.dev.

  • Core concepts. Defines the terms the rest of the docs rely on, things like harness, slot, worktree, stage, run, and validation.
  • Agent integrations. How to install HAR workflows for Cursor, Claude Code, Codex, and other MCP clients.
  • Verification and commit gate. How HAR binds a successful check to exact code and enforces that result at commit time.
  • Plugins. How to install framework-specific verification bundles, like Playwright and RocketSim, that register stages in your harness.
  • CLI reference. Every command and option the har executable exposes.
  • MCP tools. The structured tools an MCP-connected agent calls directly, for discovery, session control, verification, and evidence.
  • Mission Control. How to run the local dashboard that tracks repositories, worktrees, runs, validations, and artifacts.
  • Architecture. HAR's internal layers, contracts, and extension points, for anyone building a plugin or contributing to the core.

Contributing

See CONTRIBUTING.md for local setup, the dogfood harness loop, and architecture. Coding agents working on this repo should start with AGENTS.md. Maintainer release process: RELEASING.md.

Sponsors

HAR is sponsored by Kerno, runtime code and security tester for coding agents.

License

Licensed under the Apache License 2.0.

Security

Report vulnerabilities via SECURITY.md.