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

pi-codex

v0.1.1

Published

Use Codex from pi-coding-agent to review code or delegate tasks.

Readme

pi-codex

Use Codex from inside pi-coding-agent to review code or delegate tasks. This is a port of OpenAI's codex Claude Code plugin to the pi runtime.

What it adds

| Command | What it does | |---|---| | /codex:review | Run a Codex code review against local git state | | /codex:adversarial-review | Codex review that challenges design choices and assumptions | | /codex:rescue [task] | Delegate a substantial debugging or implementation task to Codex | | /codex:status | List running and recent Codex jobs for the current repo | | /codex:result <id> | Print the final Codex output for a finished job | | /codex:cancel <id> | Cancel an active background Codex job | | /codex:setup | Check Codex install / auth and toggle the optional review gate | | /codex:gate | Run a stop-time Codex review of the previous turn (opt-in) |

The first three are pi prompt templates — model-driven, with size estimation and a "wait vs. background" prompt via the codex_ask interactive tool. The other five are extension-registered commands that shell out to the companion runtime directly, no model turn needed.

Requirements

  • Node.js 18.18+
  • A local codex binary on PATH and a working Codex auth (run /codex:setup to verify)
  • pi-coding-agent installed (npm install -g @mariozechner/pi-coding-agent)

Install

pi install git:github.com/quantmind-br/pi-codex

Or for a local checkout while developing:

pi install /path/to/pi-codex

After install, run any /codex:* command inside pi.

How it works

The wrapper layer is pi-native; the runtime is the upstream OpenAI companion script reused verbatim. On session_start the extension sets PI_CODEX_ROOT (and also CLAUDE_PLUGIN_ROOT for cross-compatibility) to the package directory, then runs scripts/session-lifecycle-hook.mjs SessionStart. On session_shutdown it runs the same hook with SessionEnd.

The deterministic commands (status, result, cancel, setup, gate) are registered via pi.registerCommand(...) and spawn the companion script directly. The model-driven prompt templates (review, adversarial-review, rescue) read raw arguments, optionally interact with the user via the codex_ask tool, and forward to node "${PI_CODEX_ROOT}/scripts/codex-companion.mjs" <subcmd>.

Differences vs. the Claude Code plugin

  • No automatic Stop-hook. The pre-ship Codex review is opt-in via /codex:gate.
  • No codex-rescue subagent. Pi does not auto-discover package-shipped agents, so the rescue forwarder logic lives directly in the /codex:rescue prompt template.
  • AskUserQuestion (Claude Code tool) is replaced by the codex_ask extension tool, which wraps ctx.ui.select().
  • Two upstream concurrency bugs are patched in pi-codex's runtime copy (broker BROKER_BUSY no longer falls back to a direct app-server; background workers now have their job record persisted before the worker is spawned). See CHANGELOG.md "Runtime patches" for details.

Development

npm install
npm run typecheck
npm test

License

Apache-2.0. Original work copyright OpenAI; pi-codex port modifications copyright diogo. See LICENSE and NOTICE.