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

@taewooopark/agent-blackbox

v0.47.15

Published

Local-first flight recorder + context-efficiency profiler for coding agents — records Claude Code, OpenCode, and Gajae-Code. Run with npx.

Downloads

3,433

Readme

Agent-Blackbox

Open your coding agent's black box.

A local-first flight recorder and context-efficiency profiler for Claude Code and OpenCode. It turns every agent run into a live, replayable map of what the agent actually did — what it read, changed, ran, decided, delegated, blocked on, and verified — reconstructed from observed events, not from the agent's own summary. Then it scores how economically the run used its context window and tells you, concretely, how to make the next one cheaper and faster.

Everything runs on your machine. No API key. Nothing leaves your computer.

"The transcript is what the agent said. The black box is what it did — and what it cost."

Quickstart

One command (needs Node 20+):

# Record Claude Code — nothing to install; the daemon tails the session
# transcripts it already writes (~/.claude/projects/)
npx @taewooopark/agent-blackbox up --host claude-code

# …or record OpenCode (installs the recorder into OpenCode's global plugin dir)
npx @taewooopark/agent-blackbox up

# …or record both hosts at once, into one dashboard
npx @taewooopark/agent-blackbox up --host all

It starts a local daemon and opens the dashboard at http://127.0.0.1:5173/. Now use your agent exactly the way you already do — the map fills in live:

claude            # Claude Code, in any folder — zero setup, just run it
opencode          # …or OpenCode (terminal or the desktop app)

Stop recording any time with npx @taewooopark/agent-blackbox uninstall.

Why

You can't just ask an agent what a task cost. A 2026 study of eight frontier models on agentic coding found they predict their own token usage with a correlation of just 0.39 — and systematically underestimate the bill; the same task varies up to 30× in tokens, and agentic runs burn ~1000× more tokens than ordinary coding. So don't ask — measure.

Bai et al., How Do AI Agents Spend Your Money?, arXiv:2604.22750 (2026).

What you get

| Feature | What it does | |---|---| | Live session map | the run forms in real time — reads, edits, commands, subagents, decisions — over a WebSocket, no refresh | | Replay | scrub the timeline to any moment; the graph and files rewind to that exact point | | Subagent genealogy | real delegations fork into their own lane, attributed to the subagent that did the work | | Context-efficiency score | cache reuse, redundant re-reads, read-vs-edit amplification, oversized tool dumps, retry waste — with reclaimable tokens | | Concrete fixes | rule-based by default, or tailored by a free/local model with no API key — and optionally written back to AGENTS.md so the next run avoids the waste | | Handoff export | one-click Markdown summary (objective, files, decisions, blockers, next step) to resume elsewhere | | Local-first | traces stay on your machine; prompts, secrets, and file contents are redacted by default |

Hosts

  • Claude Codeno install at all. The daemon tails the JSONL transcripts the CLI already writes, so any folder, any session is recorded the moment you run claude. Add --optimize to also install the opt-in in-run actuator hooks.
  • OpenCode — records via a recorder dropped into OpenCode's global plugin directory (~/.config/opencode/plugins/), so any session is captured, the desktop app included. Scope to one project with up --project <dir>.

Common flags

up --host claude-code|opencode|all   # which agent(s) to record (default: opencode)
up --suggest free                    # tailored fixes from a rotating pool of free models
up --port 48000 --ui-port 4000       # custom daemon / dashboard ports
up --no-open                         # don't auto-open the browser
uninstall                            # remove the global recorder (+ any Claude Code hooks)

Documentation

Full docs, screenshots, architecture, and the optimization actuator: https://github.com/TaewoooPark/Agent-Blackbox

📊 Scoring & analysis reference — every metric + threshold, the task archetypes, the effectiveness axis, the rules.json schema, and the honest known-limitations.

English · 한국어 · 中文 · 日本語

License

MIT © Taewoo Park