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

@claxedo/agent-runtime-stats

v0.1.4

Published

Analyze local AI coding-agent transcripts by minimum execution runtime

Readme

Agent Runtime Stats

Dependency-free Node.js CLI for analyzing local coding-agent transcripts and answering four placement questions:

  1. What percentage of whole sessions and agent turns complete without a full machine?
  2. Once a turn needs a full machine, how often does it need that machine again?
  3. How much observed execution remains after the first full-machine need?
  4. What percentage of individual calls cannot be classified honestly?

Every discovered session is reported. The analyzed-session sample includes only sessions with at least one observed execution call.

npx @claxedo/agent-runtime-stats

For a local checkout:

npx ./packages/agent-runtime-stats

The same JavaScript package runs on macOS, Linux, and Windows, on both ARM64 and x64. It requires Node.js 22.13 or newer and has no native binaries, compiler requirement, post-install scripts, or runtime dependencies. SQLite support uses Node's built-in read-only SQLite API.

Options

--harness codex,claude,grok
--path codex=/custom/transcripts
--home /custom/home
--format table|json
--list-harnesses

Interactive scans show live file counts, elapsed time, and the active harness. The report preserves a bordered table in wide, compact, and narrow terminals, then renders definitions and caveats as spaced, labeled notes with restrained terminal colors. Set NO_COLOR to disable ANSI styling. The terminal table is deliberately limited to the placement decision, runtime split, full-machine causes, and on-demand timing. Every selected source and any read warnings or errors remain visible below it. --format json prints the complete analysis model, including diagnostics omitted from the terminal summary.

The report also measures the local execution-demand pattern:

  • Sessions with observed execution calls, split into full-machine, just-bash-only, and unresolved-runtime-only sessions; discovered sessions with no readable execution calls remain separate.
  • Turns with stable IDs, split into full-machine, just-bash-only, and unresolved-runtime turns.
  • The share of full-machine turns that issue another full-machine call.
  • Median execution-call count and median/p95 observed execution span after the first full-machine call in a turn. The observed span ends at the last timestamped execution call, not at the true end of the agent turn.
  • Median and p95 full-machine calls per session that requires one.
  • Median and p95 lead time from the first timestamped execution call to the first full-machine call in the same agent turn.
  • Median and p95 duration of full-machine calls with observed start and completion timestamps.
  • Median and p95 time between full-machine calls in the same turn when the preceding call or overlapping call cluster has an observed completion.
  • The count and percentage of measured gaps longer than 30, 60, and 120 seconds.

These are local demand measurements only. The report does not estimate sandbox provisioning, workspace synchronization, cache restoration, service startup, or total environment-readiness time; those require telemetry from the execution platform.

The CLI output links to a complete browser report. Its thirteen aggregate placement metrics are encoded in the URL fragment, which browsers do not send in the request. The browser report leads with sample size and the main machine-demand findings, followed by a compact supporting-metrics list. Save page and share on X creates a permanent claxedo.com/r/:id URL and opens the X composer. That URL includes a generated social preview image for X and other Open Graph consumers. Set AGENT_RUNTIME_STATS_SHARE_URL to use another compatible deployment.

Harness coverage

| Harness | Local source | Coverage | | ----------- | ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | | Codex | ~/.codex/sessions, ~/.codex/archived_sessions | Tool names, inputs, start/end timestamps, turns, parent sessions | | Claude Code | ~/.claude/projects | tool_use/tool_result, timestamps, turns | | Cursor ACP | ~/.cursor/acp-sessions/*/store.db | Detects JSON messages; reports partial coverage for proprietary protobuf tool records | | Grok CLI | ~/.grok/sessions/**/updates.jsonl | ACP tool calls, inputs, completion timestamps | | Kimi CLI | ~/.kimi/sessions/**/context*.jsonl | OpenAI-compatible tool calls; full-machine interval requires timestamps present in the installed version | | Pi | ~/.pi/agent/sessions | Tool-call/result blocks and timestamps | | Gemini CLI | ~/.gemini/tmp/**/chats/*.json | OpenAI-compatible local chat records | | Antigravity | ~/.gemini/antigravity-ide/conversations | Detection only; partial because the local format is schema-less protobuf | | OpenCode | $XDG_DATA_HOME/opencode/opencode*.db, otherwise ~/.local/share/opencode/opencode*.db | Sessions and tool parts through Node's read-only SQLite API |

Absent and partially readable stores are reported explicitly; they are not silently treated as zero-call sessions. SQLite stores are opened read-only.

Classification

The three headline tiers are mutually exclusive:

  • just-bash: every resolved command segment is present in Vercel Labs' just-bash Node-hosted command manifest, assuming configured and allowlisted network access. File tools and explicit host capabilities are also included.
  • Full workspace VM / isolation boundary*: package/dev runners, local Git state, interactive processes, local browser testing, native executables, and generated code execution.
  • Unknown: the tool or executable cannot be resolved from the persisted transcript. Unknowns are never folded into either headline tier; the report prints classified coverage.

* Generated code execution is deliberately counted as full-machine because running agent-generated code crosses the isolation boundary, even when an optional just-bash runtime exists.

Control-plane calls such as planning, subagent coordination, waiting, and task/thread management are excluded from the execution-call denominator across Codex, Claude Code, and OpenCode naming conventions.

The Cloudflare Worker, D1 migrations, report site, and social-image renderer live in this package under worker/; deployment commands are documented in worker/README.md.