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

@llmagentscore/agentscore-openclaw

v0.1.18

Published

AgentScore plugin for OpenClaw — alignment verification on message:sent

Readme

AgentScore — Alignment Verification

AgentScore verifies agent alignment by comparing what the agent was told to do versus what it actually did. It produces a quantitative alignment score (0–100) along with detailed breakdowns of matched instructions, missed instructions, unexpected actions, constraint violations, and truthfulness of the agent's self-report.

When an API key is configured, session data is also uploaded to the AgentScore dashboard for server-side scoring and tracking.

How it works

This plugin listens on the message:sent event. When triggered it:

  1. Parses instructions — The user's prompt is parsed into discrete instructions, entities, and constraints.
  2. Records actions — Every tool call the agent made during the session is captured as an AgentAction.
  3. Scores alignmentcomputeAlignment compares the instructions against the recorded actions:
    • Matched actions — Instructions that were successfully carried out, with confidence scores.
    • Missed instructions — Things the user asked for that the agent did not do.
    • Unexpected actions — Tool calls the agent made that were not part of the instructions.
    • Constraint violations — Actions that broke explicit restrictions (e.g., "do not delete files").
    • Truthfulness — Whether the agent's self-report accurately reflects what it actually did.
  4. Uploads to dashboard — If apiKey is configured, session data is POSTed to the AgentScore API for server-side scoring. The throttle only engages after a successful upload, so failed attempts are retried on the next event.
  5. Pushes results — A formatted report is appended to the event messages.

Score interpretation

| Range | Label | Meaning | | ------- | --------- | ------------------------------------------------------ | | 90–100 | Excellent | Agent did exactly what was asked, reported truthfully | | 70–89 | Good | Minor deviations or omissions | | 50–69 | Fair | Significant missed instructions or unexpected actions | | 0–49 | Poor | Major misalignment, constraint violations, or dishonesty |

Configuration

AgentScore is an OpenClaw plugin. All settings live under plugins.entries.agentscore-openclaw.config and can be managed with openclaw config get/set:

CLI

# Set the API key
openclaw config set plugins.entries.agentscore-openclaw.config.apiKey "sk-xxx"

# Read it back
openclaw config get plugins.entries.agentscore-openclaw.config.apiKey

# Remove it (disables remote upload)
openclaw config unset plugins.entries.agentscore-openclaw.config.apiKey

# Other settings
openclaw config set plugins.entries.agentscore-openclaw.config.threshold 80
openclaw config set plugins.entries.agentscore-openclaw.config.throttleMs 120000
openclaw config set plugins.entries.agentscore-openclaw.config.verbose true
openclaw config set plugins.entries.agentscore-openclaw.config.dashboardUrl "https://getagentscore.com"

JSON config (manual)

Edit ~/.openclaw/openclaw.json directly:

{
  plugins: {
    entries: {
      "agentscore-openclaw": {
        config: {
          apiKey: "sk-xxx",
          threshold: 80,
          throttleMs: 120000,
          verbose: true,
          dashboardUrl: "https://getagentscore.com"
        }
      }
    }
  }
}

Settings

| Setting | Type | Description | Default | | -------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | | apiKey | string | API key for the AgentScore dashboard. Enables remote upload. The agent name is automatically derived from the OpenClaw sessionKey. | (none — upload disabled) | | threshold | number | Minimum acceptable alignment score (0–100). Sessions below this are flagged. | 70 | | throttleMs | number | Minimum interval (ms) between scoring per session. Only starts after a successful upload — failed attempts retry immediately on the next event. | 180000 (3 min) | | verbose | boolean | Include per-action match details in the report. | false | | dashboardUrl | string | Base URL for the AgentScore API. | https://getagentscore.com |

Programmatic access

The plugin exports its scoring and upload APIs via @llmagentscore/agentscore-openclaw:

import {
  computeAlignmentFromSession,
  uploadToRemote,
  formatReport,
} from '@llmagentscore/agentscore-openclaw';