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

@mhdsemps_/phi

v0.1.0

Published

Planning-first agent-native orchestration for Claude Code and Codex projects.

Readme

phi

Phi is a planning-first, agent-native orchestration layer for software work in Claude Code and Codex-style agents. It creates recoverable run artifacts under .phi/runs/<run-id>/, separates planning from implementation, and routes work through validation, audit, fix-loop, and final-summary stages.

Install in a project

From the root of the project where you want to use Phi:

npx @mhdsemps_/phi@latest

This installs or updates:

  • AGENTS.phi.md — Codex-facing adapter instructions
  • .claude/commands/phi.md — Claude Code /phi command dispatcher
  • .phi/config.md — points adapters at the project-local Phi skill
  • .phi/.gitignore — keeps run history and installer metadata out of commits
  • .phi/skill/ — the Phi orchestration skill, roles, references, and templates

The installer is non-destructive for run history: it never deletes, renames, or rewrites .phi/runs/.

Update an existing project

Run the same command again whenever you want the latest adapter and skill files:

npx @mhdsemps_/phi@latest update

Active projects keep their existing .phi/runs/ history. Managed adapter and skill files are updated in place. If a managed file has local changes, the installer creates a timestamped .bak-... backup before replacing it unless you pass --force.

Check an installation with:

npx @mhdsemps_/phi@latest check

Preview changes without writing files:

npx @mhdsemps_/phi@latest update --dry-run

Usage guide

Claude Code

After installation, run Phi from Claude Code with:

/phi <your request>

Examples:

/phi add password reset with tests
/phi refactor the billing webhook safely
/phi continue

Phi will bootstrap a run under .phi/runs/<run-id>/, write original-request.md and _state.json, then follow the project-local skill at .phi/skill/.

Codex-style agents

Tell the agent to use Phi, for example:

Use phi to plan and implement CSV export for invoices.

The Codex adapter instructions live in AGENTS.phi.md. If your project already has an AGENTS.md, add a short reference to AGENTS.phi.md so the agent knows to load it.

Continue or recover a run

Phi stores durable state in .phi/runs/<run-id>/_state.json.

Use:

/phi continue

or name a run id explicitly:

/phi continue 2026-05-18-141500

The adapter resumes from _state.json; it should not continue from chat history alone.

CLI reference

npx @mhdsemps_/phi@latest [install]
npx @mhdsemps_/phi@latest update
npx @mhdsemps_/phi@latest check

Options:

  • --cwd <path> — install/check a different project directory
  • --dry-run — show planned changes without writing files
  • --force — overwrite changed managed files without backups
  • --help — show CLI help
  • --version — show package version

What Phi writes during runs

Runtime artifacts are written only under:

.phi/runs/<run-id>/

Common artifacts include:

  • original-request.md
  • _state.json
  • plan.md
  • implementation-report.md
  • test-gap-report.md
  • validation-report.md
  • audit-report.md
  • fix-loop-01.md, fix-loop-02.md, ...
  • final-summary.md
  • error.md or pause-summary.md when stopped

Safety notes

  • The npm installer does not publish, commit, push, deploy, or mutate remote services.
  • The installer preserves .phi/runs/ so active users can update adapters without losing run history.
  • Phi run orchestration is agent-native; this package installs instructions and skill files, not a standalone task runner.

License

MIT