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

agentps

v0.1.12

Published

ps/top for your AI coding agent — see and live-watch every shell command Claude Code, Codex, or OpenCode runs, with live CPU/RAM per process.

Readme

agentps

ps/top for your AI coding agent. See — and live-watch — every shell command it runs.

Works with Claude Code, Codex, and OpenCode. When your agent runs a shell command, agentps tees it — automatically, no cooperation from the model — into a per-command logfile under ~/.local/share/agentps/runlogs/, and a terminal UI lets you browse them, follow any one live, and watch real-time CPU/RAM per process.

 #  TMUX  SESSION   START     DUR   END       STATUS      CPU   RAM  DESC                    COMMAND
  1  work  8f3a1c2b  14:22:07  6m01s -         ● running   98%  1.8G  Train the model         python train.py --epochs 50 ↵ ...
  2  work  8f3a1c2b  14:21:55     3s 14:21:58  ✔ exit 0      -     -  Check git status        git status --short
  3  -     oc-9d2e1  14:19:30    12s 14:19:42  ✗ exit 1      -     -  Run the test suite      pytest -q ↵ ...

Columns: which tmux/agent session it ran in, start / duration / end, status (running / exit code), live CPU & RAM (whole process subtree), the agent's own one-line description, and the command.

Install

npm:

npm install -g agentps

git (zero Node dependency — just bash + jq):

git clone https://github.com/DanielCarmon/agentps
cd agentps && make install

Either way this installs the agentps CLI and wires up a capture adapter for each agent it detects (Claude Code, Codex, OpenCode). Start a new agent session afterwards — hooks load at startup. Pick specific agents with ./install.sh --agent claude,opencode.

Requirements: bash 4.2+, jq, tput; tmux/less/vim for the viewers.

Usage

agentps                 # interactive TUI (newest session)
agentps all             # every session, every agent
agentps watch           # read-only auto-refreshing dashboard
agentps last            # jump straight to live-tailing the most recent command
agentps list            # one-shot table, no TUI
agentps clean [days]    # prune capture logs older than N days (default 7)

Keys: ↑/↓ (or j/k) select · ←/→ (or h/l) change a process's view mode (tail-live / vim / pager) · Enter open · Tab focus the "go to #" field · q/Esc quit. Each process remembers the view mode you last used for it.

Architecture

One agnostic core, a thin adapter per agent:

bin/agentps               the viewer (agent-agnostic; just reads ~/.local/share/agentps/runlogs)
lib/capture-core.sh       shared: wraps a command as { cmd; } 2>&1 | tee <log>,
                          preserving exit code, recording cmd/desc/cwd/tmux/pid/agent
adapters/
  claude-code/hook.sh     PreToolUse hook  → core → updatedInput            (settings.json)
  codex/hook.sh           PreToolUse hook  → core → updatedInput            (hooks.json, experimental)
  opencode/…-capture.ts   tool.execute.before plugin → core                 (auto-loads)

Adding an agent = one adapter that hands its command to the core; the log format and viewer are shared. Your permission model is untouched (no permissionDecision). Disable capture per-session with RUNLOG_HOOK_OFF=1.

Uninstall

make uninstall     # or: ./install.sh uninstall  — removes CLI, core, all adapters; keeps ~/.local/share/agentps/runlogs

License

GNU General Public License v3.0 or later — see LICENSE.

Vibecoded by Daniel Carmon and Claude Opus 4.8.