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

@lukecai/ralph-codex

v0.3.1

Published

Codex-first Ralph task runner packaged as an npm CLI.

Readme

Ralph Codex

Ralph Codex 是面向 Codex 的 Ralph 任务执行器,作为 npm CLI 发布。它把通用 runner 放在 npm 包内,把每个项目自己的任务状态放在项目根目录的 .ralph/ 下。

安装

在目标 git 项目里安装并初始化:

pnpm add -D @lukecai/ralph-codex
pnpm exec ralph init

安装后先提交或暂存 package.json 和 lockfile,再开始跑任务,避免把依赖变更混进业务提交。

日常入口

创建任务:

pnpm exec ralph new "Task name" --task "Requirement or confirmed proposed_plan"
pnpm exec ralph run

Codex 桌面版建议使用低噪声入口:

pnpm exec ralph new "Task name" --task "Requirement or confirmed proposed_plan"
pnpm exec ralph run-desktop

普通终端或需要完整 stdout/stderr 时:

pnpm exec ralph run

第一次创建任务后,new 会写入 .ralph/state/current-prompt.md。先把这个 prompt 交给 Codex,让它生成 .ralph/tasks/work/<taskId>/prd.md.ralph/tasks/work/<taskId>/prd.json,然后再执行 runrun-desktop

常用命令

| 命令 | 用途 | | --- | --- | | pnpm exec ralph doctor | 检查本机和项目配置。 | | pnpm exec ralph current | 查看当前任务。 | | pnpm exec ralph run-desktop | Codex 桌面版执行或继续当前任务。 | | pnpm exec ralph run | 普通终端执行或继续当前任务。 | | pnpm exec ralph status | 查看 brief 运行状态;详细路径用 status --verbose。 | | pnpm exec ralph archive | 归档已完成任务。 |

完整参数和更多场景见 docs/usage.md,配置项见 docs/configuration.md

更新版本

查看当前 npm 最新版本:

pnpm view @lukecai/ralph-codex version

更新项目内版本:

RALPH_REQUIRE_CLEAN_WORKTREE=false pnpm exec ralph run 1

更新或指定版本

项目内安装推荐使用 pnpm up -D 更新到 npm registry 上的 latest 版本;如果团队需要固定版本或回退版本,可以用 pnpm add -D @lukecai/ralph-codex@版本号 明确写入 package.json 和 lockfile。

pnpm view @lukecai/ralph-codex version
pnpm list @lukecai/ralph-codex
pnpm exec ralph --version
pnpm up -D @lukecai/ralph-codex@latest
pnpm exec ralph doctor

安装或回退到指定版本:

pnpm add -D @lukecai/[email protected]

如果你使用的是全局安装的 ralph,全局版本需要单独更新:

pnpm add -g @lukecai/ralph-codex@latest

.ralph/ 会写什么

Ralph 会维护项目内的 .ralph/

  • .ralph/config.json.ralph/.gitignore 是团队共享配置,通常提交。
  • .ralph/tasks/work/<taskId>/prd.mdprd.jsonprogress.txt 是任务状态,任务激活后通常提交。
  • .ralph/state/.ralph/runs/.ralph/ralphrc 和 lock 文件是本地状态,默认忽略。

更多文档