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

iterate-harness

v1.16.2

Published

npm distribution wrapper for iterate-harness — installs the Python harness (ih CLI) into a managed venv on install and exposes it as a global command

Readme

iterate-harness(npm 分发包装器)

iterate-harness 的一行 npm 安装入口—— 面向 iterate 评审/修复闭环的专用 agent harness(ih CLI、React TUI、 六个 iterate_* 工具、引擎级收敛控制)。

npm install -g iterate-harness
ih --version        # 首次运行引导安装 Python 端,随后打印版本

这个包是什么(以及不是什么)

harness 本身是一个 Python 包。这个 npm 包是一个薄分发包装器:它不重新实现任何 逻辑,只是让 ih 可以通过 npm 安装并保持更新。

npm install 一结束,postinstall 钩子就会创建托管虚拟环境并安装 harness—— 所以 ih 装完即用。安装时与运行时共用同一套代理逻辑:

  1. 找到一个 >= 3.10 的 Python 解释器(py -3 / python / python3, 可通过 ITERATE_HARNESS_PYTHON 覆盖)。
  2. ~/.iterate-harness-npm/venv 创建托管虚拟环境 (可通过 ITERATE_HARNESS_NPM_HOME 覆盖)。
  3. pip install 与本 npm 包版本锁定的 harness 发布版本 —— npm 的 1.6.0 总会安装 harness v1.6.0。升级 npm 包会在下次运行时自动重装对应的 harness 版本。 首选官方 PyPI 索引:pip 会按你配置的镜像源(如 pypi.tuna.tsinghua.edu.cn) 解析 iterate-harness==X.Y.Z,即使 GitHub 不可达或 TLS 证书校验失败也能安装。 若 PyPI 不可用,再兑底 GitHub release 上的预构建 wheel(已内置编译好的前端 资源——与 iterate-skill-installer 分发预打包资源一致),最后才用锁定的源码归档
  4. 代理调用 venv 里真正的 ih 可执行文件,转发 argv、stdio、信号与退出码。

npm install 期间无法完成安装(无 Python、无网络,或 ITERATE_HARNESS_SKIP_INSTALL=1),钩子只会打印提示而不让 npm 安装失败, ih 会在首次运行时补装——惰性兑底保证两种情况下包都可用。

交互式体验

每次运行 ih,都会出现青色 ITERATE ASCII 横幅(claude-code 风格);首次安装 会像 iterate-skill-installer 一样进入交互式向导

  • 先打印 "Installing" 信息框,包含锁定的版本号与运行时目录。
  • 下载前询问 Install iterate-harness vX.Y.Z ...? [Y/n]——选否会以 0 退出码 干净退出而不是报错。
  • 装完打印 "Done" 信息框,附上快速上手提示(ih --helpih statusih iterate --help)。

所有交互输出都写到 stderr,所以 ih --version | jq '...' 得到的 stdout 依旧干净、可机器解析。

React TUI 的前端依赖(node_modules)会在首次启动 TUI 时由 harness 自动安装—— npm 用户必然有 Node,所以 TUI 始终可用。

环境要求

  • Node.js >= 16(你通过 npm 安装它,必然已具备)
  • Python >= 3.10(可用 ITERATE_HARNESS_PYTHON=/path/to/python3.12 覆盖)
  • 能访问 registry.npmjs.org(已完成)、pypi.org 和 github.com(用于一次性 pip 安装)

环境变量

| 变量 | 作用 | | --- | --- | | ITERATE_HARNESS_PYTHON | 使用该解释器,而非自动检测 | | ITERATE_HARNESS_NPM_HOME | 运行时目录(默认 ~/.iterate-harness-npm) | | ITERATE_HARNESS_INSTALL_URL | 从这个 pip URL 安装,而非锁定的发布 wheel(例如测试用的 git 分支) | | ITERATE_HARNESS_SKIP_INSTALL=1 | 完全跳过引导安装,直接运行已装好的 ih |

npx(免全局安装)

npx -y iterate-harness iterate review --changed

卸载

npm uninstall -g iterate-harness
rm -rf ~/.iterate-harness-npm   # 托管虚拟环境

版本管理

本包的版本与 harness 保持同步:包装器 x.y.z 安装 harness 的 vx.y.z 标签。 包装器在 iterate-skill monorepoharness/iterate-harness/npm/ 维护,通过 git subtree 同步到 iterate-harness 发布仓库 并从那里发布到 npm。

⚠️ 免责声明

本包按「现状」(AS IS)提供,不附带任何明示或暗示的担保,包括但不限于对适销性、特定用途适用性及不侵权性的担保。它所安装的 harness 会执行自动化的代码审查与修复,normal 模式下产生的所有改动均由 AI 模型生成,可能引入缺陷、回归或非预期行为。使用者需为本项目所产生、修改或提交的代码负全部责任。完整说明与安全指引见 iterate-harness README

License / 许可证

MIT —— 与 harness 相同。iterate 语义层源自 iterate-skill