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

claw-harness

v0.3.1

Published

Testing framework for OpenClaw bots. Spin up real agents, load skills, drive multi-turn prompts, and capture results.

Readme

Claw Harness

Testing framework for OpenClaw bots. Spin up real agent instances, load skills and personas, drive multi-turn prompts, and capture results.

Can a real AI agent, given only your skill.md, figure out how to use your site?

Unlike API-level test harnesses, Claw Harness tests the full agent experience end-to-end — skill comprehension, API discovery, tool usage, and multi-agent interaction.

Quick Start

npm install claw-harness

Prerequisites:

  • Node.js >= 22
  • OpenClaw installed (npm install -g openclaw@latest)
  • ANTHROPIC_API_KEY set in environment

Run an example

# Try the hello world scenario (no target app needed)
claw-harness run examples/hello-world.yaml

# Or scaffold your own
claw-harness init my-test
claw-harness run my-test.yaml

See examples/ for more scenarios you can run immediately.

Programmatic API

import { ClawHarness } from 'claw-harness'

const bench = new ClawHarness({ mode: 'local' })

const bot = bench.bot('alpha', {
  preset: 'default',
  skills: [{ url: 'http://localhost:3000/skill.md', name: 'my-app' }],
  soulMd: 'You are a friendly bot.',
})

await bench.start()
const response = await bot.send('Register yourself on the platform')
console.log(response.text)
await bench.stop()

Scenario Format

Scenarios are YAML files that define bots and a sequence of steps:

name: "Chat Test"

bots:
  alpha:
    preset: default
    model: anthropic/claude-haiku-4-5-20251001
    soul_md: presets/personas/friendly.md
    skills:
      - url: "http://localhost:3000/skill.md"
        name: target-app

  beta:
    preset: default
    soul_md: presets/personas/curious.md
    skills:
      - url: "http://localhost:3000/skill.md"
        name: target-app

steps:
  # Serial steps
  - bot: alpha
    prompt: "Read the skill docs and register yourself."
    timeout: 60s

  - bot: beta
    prompt: "Register yourself on the platform."
    timeout: 60s

  # Parallel steps
  - parallel:
      - bot: alpha
        prompt: "Join a lounge and introduce yourself."
      - bot: beta
        prompt: "Find a lounge with another bot and join."

  # Repeat block
  - repeat: 3
    interval: 15s
    steps:
      - bot: alpha
        prompt: "Check for new messages and respond."
        timeout: 30s
      - bot: beta
        prompt: "Check for new messages and respond."
        timeout: 30s

CLI

claw-harness run <scenario.yaml> [options]   Run a test scenario
claw-harness init [name]                     Scaffold a new scenario
claw-harness presets                         List available presets

Options:
  --model <model>       Override model for all bots
  --reporter <format>   Output format: console (default) | json

Presets

Claw Harness ships with presets for common configurations:

Configs — merged into each bot's openclaw.json:

  • default — Full tools, Haiku model
  • minimal — Restricted tools, lower cost

Personassoul.md templates that shape bot personality:

  • friendly — Outgoing, asks follow-up questions
  • curious — Thoughtful, explores ideas deeply
  • terse — Brief, technical, to the point

Examples

The examples/ directory has self-contained scenarios you can run right away — no target app required:

| Scenario | What it shows | |----------|---------------| | hello-world.yaml | Simplest possible scenario — one bot, one prompt | | assertions.yaml | contains, not_contains, and matches assertions | | two-bots.yaml | Two bots with different personas, parallel execution | | with-cleanup.yaml | after: cleanup steps that run even on failure | | secret-menu.yaml | Load a custom SKILL.md and verify the bot follows it |

How It Works

Each bot gets full isolation:

  1. Workspace — A dedicated profile directory (~/.openclaw-claw-harness-<id>/) with its own openclaw.json, USER.md, and skills
  2. Gateway — Its own OpenClaw gateway process on a dedicated port
  3. Communication — Prompts sent via the OpenAI-compatible HTTP API (/v1/chat/completions)

Bots have no shared state. They interact only through the target application, just like real users would.

Development

git clone https://github.com/dasconnor/claw-harness.git
cd claw-harness
npm install
npm test          # Run tests (vitest)
npm run build     # Build to dist/
npm run lint      # Type check

License

MIT