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

@whoworked/ai-reporter-cli

v0.1.8

Published

Guarded CLI reporter for WhoWorked AI attribution.

Downloads

1,326

Readme

WhoWorked AI Reporter CLI

Guarded CLI reporter for WhoWorked AI attribution. It captures local AI tool stop events and sends them to a WhoWorked workspace as reviewable AI attributions.

The reporter defaults to guarded content capture: it sends metadata such as tool name, event type, repo, branch, edited file count, and tool-call count, plus bounded, redacted prompt/response snippets when the local tool payload or transcript exposes them. It does not capture screen content or raw full-content logs by default.

Install

One-command setup uses the public npm package, installs the reporter globally, launches the OAuth flow, and configures Stop hooks for Claude Code and Codex when they are detected.

macOS, Linux, and Windows:

npm exec --yes --package @whoworked/ai-reporter-cli@latest -- whoworked-reporter-setup

The monorepo is private, so the installer does not depend on raw GitHub URLs. For convenience, the npm package also ships thin wrappers:

whoworked-reporter-setup

Override endpoints for non-production environments:

WHOWORKED_API_BASE_URL=http://localhost:3001 \
WHOWORKED_WEB_APP_URL=http://localhost:3000/app \
npm exec --yes --package @whoworked/ai-reporter-cli@latest -- whoworked-reporter-setup

Manual install:

npm install -g @whoworked/ai-reporter-cli

Confirm the binary is available:

whoworked-reporter auth status

Authenticate

Each user should authenticate with OAuth so reports are tied to their WhoWorked user. API keys are workspace-level and are not supported for personal Claude Code or Codex reporters.

whoworked-reporter auth login \
  --api-base-url https://api.whoworked.com \
  --web-app-url https://whoworked.com/app

The command opens the WhoWorked authorization flow. Pick the workspace where AI usage should be reported.

Claude Code

Merge templates/claude-code-hooks.json into your Claude Code hooks config. The Stop hook captures the Claude Code stop payload and immediately flushes the local queue:

whoworked-reporter capture claude-code stop && whoworked-reporter capture flush

Codex

Configure Codex's stop command to run one of the provided wrappers:

  • templates/codex-stop-hook.sh
  • templates/codex-stop-hook.ps1

The wrappers accept an optional JSON payload on stdin, capture a guarded Codex stop event, and immediately flush the local queue.

Codex only executes the command once the Stop hook is trusted in the Codex hooks UI (/hooks).

Direct command form:

whoworked-reporter capture codex stop && whoworked-reporter capture flush

Queue

Capture commands write to a local queue first:

~/.whoworked/ai-reporter-queue.jsonl

Flush manually when needed:

whoworked-reporter capture flush

Reporter config is stored at:

~/.whoworked/ai-reporter.json

Commands

whoworked-reporter auth login
whoworked-reporter auth status
whoworked-reporter auth logout
whoworked-reporter capture claude-code session-start
whoworked-reporter capture claude-code stop
whoworked-reporter capture claude-code session-end
whoworked-reporter capture codex stop
whoworked-reporter capture flush