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

agent-friction

v0.2.2

Published

Find what slows AI coding agents — turn waste, instruction tax, skill/rule bloat, and whether a change helped

Readme

agent-friction

Telemetry and observability for AI coding agents — find what slows them down: turn waste, instruction tax, skill/rule bloat, and whether a change actually helped.

Philosophy: measure first → diagnose patterns → change skills/rules/code only when evidence keeps pointing at the same friction.

Install

npm install agent-friction
# or globally
npm install -g agent-friction

Quick start

In your project root:

npx agent-friction init

This writes agent-friction.config.json, installs the skill under .agents/skills/agent-friction, and creates relative symlinks into:

  • .cursor/skills/agent-friction
  • .claude/skills/agent-friction
  • .codex/skills/agent-friction

So each harness sees the skill, but only .agents holds the real files.

init also wires hooks (idempotent merge — keeps your existing hooks):

  • .cursor/hooks.json — stop, sessionStart, postToolUse, afterShellExecution, sessionEnd
  • .claude/settings.json — Stop, SessionStart, PostToolUse, SessionEnd
  • .codex/hooks.json — same nested events as Claude

Hooks write to .cursor/agent-friction/ and never inject into the model.

npm install alone does not touch your repo — run init once per consumer project.

CLI

agent-friction latest                    # last auto-generated turn report
agent-friction surface --days=30         # instruction tax + skill usage + epochs
agent-friction watch --browser           # live dashboard
agent-friction compare --days=30         # baseline before/after
agent-friction task <session-uuid>       # full turn audit
agent-friction aggregate --days=7        # cross-session rollup
agent-friction rediscovery               # repeated pre-edit file clusters
agent-friction hook run-on-stop          # harness hook entrypoint

Options: --json, --repo=PATH, --transcripts=PATH, --live-blast

Disable auto-run: AGENT_FRICTION_AUTO=0 or touch .cursor/agent-friction/off

Config

agent-friction.config.json in the consumer repo:

| Key | Default | | --- | ------- | | dataDir | .cursor/agent-friction | | skillRoots | [".agents/skills"] | | ruleRoots | [".cursor/rules"] | | contracts | AGENTS.md, CLAUDE.md, GEMINI.md, PRODUCT.md | | hookConfigs | .cursor/hooks.json, .claude/settings.json, .codex/hooks.json | | skillInstallPath | .agents/skills/agent-friction | | skillMirrors | .cursor/skills, .claude/skills, .codex/skills |

Publish (maintainer)

npm test
npm publish --dry-run
npm login
npm publish

License

MIT