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

@arcevico/opencode-agent-pulse

v0.2.7

Published

Agent effectiveness analytics for OpenCode — health scores, tool performance, agent comparison, and prompt change tracking. Not just token counts.

Downloads

2,745

Readme

opencode-agent-pulse

Agent effectiveness analytics for OpenCode.

What it does

Every other OpenCode analytics tool counts tokens and dollars. This one answers the questions that actually matter:

  • Is my agent working? → Health score (0-100) per session
  • Which tools keep failing? → Tool success rates and latency, grouped by agent version
  • Did my prompt change help? → Agent config change tracking with before/after metrics

Prerequisites

  • Bun — required runtime (the plugin and CLI use bun:sqlite)

Install

bun add @arcevico/opencode-agent-pulse

Add to your opencode.json:

{
  "plugin": ["@arcevico/opencode-agent-pulse"]
}

Restart OpenCode. Done.

Data is stored locally at ~/.local/share/opencode/agent-pulse.db.

Usage

bunx @arcevico/opencode-agent-pulse

Example output:

=== Agents (last 7 days) ===
┌───┬────────┬────────┬──────────┬──────────┬────────────┬─────────┐
│   │ agent  │ health │ sessions │ avg cost │ avg tokens │ error % │
├───┼────────┼────────┼──────────┼──────────┼────────────┼─────────┤
│ 0 │ coder  │ 82     │ 15       │ $0.1200  │ 3800       │ 5%      │
│ 1 │ fast   │ 71     │ 8        │ $0.0400  │ 1200       │ 12%     │
└───┴────────┴────────┴──────────┴──────────┴────────────┴─────────┘

=== Evolution: coder ===
┌───┬──────────┬───────────────────┬──────────┬────────────┬──────────────────┬────────────────┬─────────┐
│   │ version  │ changed           │ sessions │ health     │ avg cost         │ avg tokens     │ error % │
├───┼──────────┼───────────────────┼──────────┼────────────┼──────────────────┼────────────────┼─────────┤
│ 0 │ a3f2...  │ 4/10/2026, 14:00  │ 5        │ 65         │ $0.1500          │ 4500           │ 12%     │
│ 1 │ b7c1...  │ 4/12/2026, 09:30  │ 8        │ 82 (+17.0) │ $0.1000 (-0.05)  │ 3200 (-1300)   │ 5%      │
└───┴──────────┴───────────────────┴──────────┴────────────┴──────────────────┴────────────────┴─────────┘

=== Tools by Agent Version (last 7 days) ===
┌───┬────────┬──────────┬────────────┬───────┬────────┬─────────┬────────┐
│   │ agent  │ version  │ tool       │ calls │ errors │ error % │ avg ms │
├───┼────────┼──────────┼────────────┼───────┼────────┼─────────┼────────┤
│ 0 │ coder  │ b7c1...  │ file_write │ 42    │ 1      │ 2.4%    │ 120    │
│ 1 │ coder  │ b7c1...  │ bash       │ 31    │ 3      │ 9.7%    │ 850    │
│ 2 │ coder  │ a3f2...  │ file_write │ 28    │ 4      │ 14.3%   │ 145    │
└───┴────────┴──────────┴────────────┴───────┴────────┴─────────┴────────┘

How it works

The plugin hooks into OpenCode's event system and tracks every session automatically.

When you modify an agent config file (.opencode/agents/*.md), the plugin detects the change in real-time via the file watcher — no restart needed. It hashes the new content, creates a new version, and all subsequent sessions are tagged with that version so you can compare performance across config changes.

Health score

Each session gets a 0-100 score based on:

| Signal | Weight | Logic | |---|---|---| | No errors | 30 | Full if clean, partial if 1 error | | No reverts | 25 | Did the user undo the agent's work? | | Low retries | 15 | Degrades per retry | | Tool success | 15 | Ratio of successful tool calls | | Reasonable steps | 15 | Sweet spot is 2-15 steps |

Data stored

Every session writes structured data to SQLite:

| Table | What's in it | |---|---| | sessions | Health score, cost, tokens, tool stats, errors, reverts, config version | | tool_executions | Per-tool success/failure, duration | | model_calls | Per-LLM-call tokens, cost, latency, errors | | step_metrics | Per-step token breakdown | | agent_changes | Every config change with timestamp, hash, and content snapshot |

License

MIT