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

a-hud

v0.5.1

Published

One terminal HUD for Codex, Claude Code, Cursor and Antigravity

Readme

Agent HUD

English | 简体中文

一套本地 HUD 核心,同时支持 Codex、Claude Code、Cursor CLI 和 Antigravity CLI。

Sonnet 5 | H | 90k/45% 26t | *19:04 | #15%/70% | ↻13:10/Fri19:00
$5.32 | →~3t
agent-hud |  main*↑2 | +128/-17 | /workspace/agent-hud

UI 契约继承已有 shell HUD:颜色只表达风险,亮度负责层级;上下文压力、缓存新鲜度、 额度节奏、compact 建议和窄终端行为保持统一语义。

两层实现,五个宿主

  • @agent-hud/provider 收集并规范化原始事实,负责 I/O、事件状态、Git 和派生遥测, 不包含颜色、字符或布局策略。
  • UI 插件把事实适配成统一展示模型,再由纯 renderer 输出 ANSI 文本。

各宿主只展示自身真实提供的数据:

  • Claude Code:在原生 statusline 中运行完整三行 renderer。
  • Cursor CLI:使用相同 renderer 和原生生命周期 hooks。Auto 和 API 用量来自缓存的账号读取,缓存为空时省略。
  • Antigravity CLI:使用相同 renderer,并接入原生额度、VCS、生命周期和后台任务事实。
  • Codex:原生 footer 展示模型、上下文、额度、Git 和进度;可选 companion 展示工具、 子代理和计划活动。
  • pi:自带 footer 已有 token、成本、上下文和分支,扩展只在旁边插一段,放当前 API 的 优惠时段和厂商故障提示。

实现不会读取 Codex、Cursor 或 Antigravity 的内部 transcript。

常用命令

从 workspace 根目录运行:

npm test
node plugins/agent-hud/dist/cli.js demo
node plugins/agent-hud/dist/cli.js setup claude
node plugins/agent-hud/dist/cli.js setup codex --preset balanced
node plugins/agent-hud/dist/cli.js setup cursor
node plugins/agent-hud/dist/cli.js setup antigravity
node plugins/agent-hud/dist/cli.js setup both
node plugins/agent-hud/dist/cli.js setup all
node plugins/agent-hud/dist/cli.js watch --cwd "$PWD"
node plugins/agent-hud/dist/cli.js watch --once --json

配置写入是原子的;修改已有文件前会创建时间戳备份。使用 --dry-run 可只查看结果。 完整命令和参数契约见 CLI reference。

目录结构

.codex-plugin/plugin.json
.claude-plugin/plugin.json
.cursor-plugin/plugin.json
plugin.json
hooks/hooks.json
skills/agent-hud/SKILL.md
commands/setup.md
src/
dist/
docs/

Codex 与 Claude Code 共用打包后的 hook manifest;Cursor 与 Antigravity 使用各自的 原生 hook schema,由幂等 setup patcher 写入配置。

隐私与降级

事件保存在 ~/.agent-hud,只记录时间、模型、工作目录、工具名、短目标、代理类型和 计划标签。不会保存 prompt、命令输出或工具响应。私有目录和文件权限会修复为 0700/0600,事件与缓存维护有数量、时间和并发边界。

Hook 失败不会中断会话。唯一的网络读取是带缓存的服务状态检查;刷新失败时保留上一次 有效结果。