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

@roelven/openclaw-session-scorer

v1.0.3

Published

OpenClaw plugin that scores sessions on accuracy, completeness, autonomy, and consistency. Includes CLI for trend analysis

Readme

session-scorer

An OpenClaw plugin that automatically scores every agent session on four quality dimensions — accuracy, completeness, autonomy, and consistency. Scores are written to disk as JSON for trend analysis over time.

What it does

When an agent session ends, this plugin analyzes the full conversation transcript and produces a score from 0 to 1 on four dimensions:

  • Accuracy — Did the agent verify its work? Measures the ratio of "verifiable" tool calls (exec, write, edit, etc.) that were followed by a verification step (read, exec) within 2 turns. An agent that writes a file and then reads it back scores higher than one that writes and moves on.
  • Completeness — Did the agent finish the task? Looks at the final assistant message for completion signals like "done", "ready", "all set" (score: 1.0), or failure signals like "unable", "failed" (score: 0.3).
  • Autonomy — Did the agent work independently? Calculated as 1 - (user corrections / user turns). If the user had to say "no", "wrong", "try again", or "you forgot" frequently, the autonomy score drops.
  • Consistency — Did the agent avoid repetitive loops? If the same tool call with identical parameters appears 3 or more times, the consistency score drops to 0. This catches retry loops where the agent keeps doing the same failing thing.

An overall score is the simple average of all four dimensions.

Scores are written as individual JSON files to ~/.openclaw/scores/<sessionId>.json. Sessions shorter than 3 turns, cron sessions, and subagent sessions are skipped.

Why use it

  • Track agent quality over time — are things getting better or worse?
  • Identify problematic sessions that need human review
  • Measure the impact of prompt changes, model upgrades, or new plugins
  • The scores are lightweight heuristics, not LLM-based — zero additional API cost

Compatibility

  • OpenClaw version: Requires OpenClaw main branch (post-February 2026) with the plugin hook system wired.
  • Hook used: agent_end — this hook is part of the standard plugin API and does not require any core modifications.
  • No external dependencies.

Installation

openclaw plugins install @roelven/openclaw-session-scorer

Then register it in your ~/.openclaw/openclaw.json:

{
  "plugins": {
    "allow": ["session-scorer"],
    "entries": {
      "session-scorer": { "enabled": true }
    }
  }
}

Restart the gateway:

openclaw gateway stop && openclaw gateway start

Setup

No additional configuration is needed. The plugin starts scoring sessions immediately.

Scores are written to ~/.openclaw/scores/. This directory is created automatically on first use.

Using the CLI

The plugin ships with a CLI tool for analyzing scores:

# Show 7-day averages
npx openclaw-scores summary

# Show score trend over the last 30 days
npx openclaw-scores trend --days 30

# Show the 5 worst sessions
npx openclaw-scores worst --n 5

All commands support --json for machine-readable output:

npx openclaw-scores summary --json

Example output:

Session Quality Summary (last 7 days)
────────────────────────────────────────
Sessions scored: 12
Overall:         0.83
  Accuracy:      0.75
  Completeness:  0.92
  Autonomy:      0.88
  Consistency:   0.78
Success rate:    92%

License

MIT