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-agent-review

v0.2.0

Published

A pi coding-agent extension that reviews every tool call and tool output with an LLM reviewer, hard-denies secret access, and gates risky actions behind user approval.

Readme

Agent Review for pi

CI

A pi coding-agent extension that reviews tool calls and tool output with an LLM reviewer, hard-denies access to secrets, and gates risky actions behind user approval.

Install

pi install git:github.com/everettmorgan/[email protected]

Or add it to settings.json:

{
  "packages": ["git:github.com/everettmorgan/[email protected]"]
}

For local development, place the directory at ~/.pi/agent/extensions/agent-review and run /reload in pi.

Commands

  • /agent-review status — current config and the last request/output review
  • /agent-review on / off — enable or disable review for this session
  • /agent-review config — interactive menu to toggle the review stages
  • /agent-review input on|off — review tool calls before they run
  • /agent-review output on|off — review tool output for leaks
  • /agent-review model — pick a reviewer model (current, or provider/model)
  • /agent-review test <tool-name> <json-args> — dry-run a request review

How it works

Review runs in two stages, each independently toggleable.

Request review (before a tool runs). A deterministic gate hard-denies access to secret paths (.env, ~/.ssh, key files, credential stores) for any tool. Everything else goes to the reviewer model, which approves low-risk actions and denies risky ones. Denied calls are blocked; reviewer or config failures block (fail-closed).

Output review (after a tool runs). Tool output is checked for secrets, credentials, keys, and tokens. A confirmed leak withholds the output from the model and transcript and stops the turn. If the reviewer can't run, the unreviewed output is withheld.

User approval. When the reviewer denies a call the user wants, the agent calls request_user_approval, which shows the full tool name and arguments for confirmation. An approval is recorded with a unique nonce and a ~10 minute expiry, and describes the approved action. On the next call to that tool, the reviewer is shown the approved action and authorizes the call if it matches that action's scope — so the retry need not be byte-identical. The grant is consumed only on a terminal approve, authorizes one execution, and never overrides hard-safety denials.

Logging. Each review appends a log entry to the chat history with its verdict and reasoning. Entries persist in the transcript but are not sent to the model.

Config

Optional, at ~/.pi/agent/agent-review/config.json:

{
  "review": {
    "reviewInput": true,
    "reviewOutput": true,
    "timeoutMs": 30000,
    "denyOnReviewerFailure": true,
    "consecutiveDenialLimit": 3,
    "rollingDenialLimit": 10
  },
  "reviewer": {
    "type": "direct-model",
    "provider": "current",
    "model": "current"
  }
}

provider/model of current use the active session model. Enable/disable state is session-scoped and never written to this file.

Development

npm test        # vitest
npm run typecheck
npm run lint    # xo

See docs/architecture.md for the module layout and CONTRIBUTING.md for the contribution workflow.