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

@khaentertainment/pi-greenlight

v0.5.4

Published

Greenlight: System One classifiers (TypeSafe Jev and others, via TypeSafe, OpenRouter, Cloudflare and more) as a decision layer for Pi: judges mutating tool calls before they run, reads tool output for secrets and failure class after, escalates flagged ca

Readme

greenlight

The go-ahead from whoever's in charge

When your coding agent tries something risky, it asks its boss first.

License: MIT CodeRabbit Pull Request Reviews Built with Showrunner

Try it | The problem | The solution | Full reference

The problem

You let AI agents work in your repo and step away. One of them is fixing a test, and decides the fastest fix is to delete a folder and force-push to main.

pi-jev already catches that for Pi. Before a risky command runs, it asks a fast decision model (Jev) whether it's a good idea, then warns you or asks you to confirm.

That works when you're at the keyboard. More and more, you aren't. Agents run under other agents: an orchestrator splits the work and hands pieces to helpers. When a helper's command gets flagged, a warning goes unread and a confirm prompt waits forever. The safety check either does nothing or freezes the work.

The solution

Greenlight sends the decision up the chain of command.

When a command looks risky, Greenlight pauses it and asks the agent's orchestrator: approve, deny, or ask a human. The orchestrator knows the plan, so it can tell a planned cleanup from a mistake. If it doesn't answer in time, you're asked instead, the same as in pi-jev.

It works with:

  • Traycer, the first supported agentic development environment (ADE). A helper agent's flagged command goes straight to its parent agent in Traycer.
  • A parent Pi agent, when one Pi runs another.
  • Any orchestrator that speaks A2A, the open agent-to-agent protocol.
  • You, if you're working one-on-one with an agent.

Orca and Xirp, two more ADEs, are next.

Greenlight also lets you reach Jev through the provider you already use: TypeSafe, OpenRouter, Cloudflare, Vercel, or OpenCode. Jev is the default, not the only option: Mercury Decide can run the output check, and Clef Flash through OpenRouter is calibrated for the gate with the same thresholds. The calibration data covers all three.

Everything pi-jev does is still here. It checks risky commands in about a third of a second, warns when a command prints a password, and never blocks your agent if the check itself fails.

Try it in two minutes

  1. Install it:

    pi install npm:@khaentertainment/pi-greenlight
  2. Give it a key. Run /login typesafe in Pi, or set TYPESAFE_API_KEY.

  3. Keep working as usual. Greenlight starts by only warning you, so nothing gets blocked. Run /greenlight log to see what it caught.

  4. Running agents under Traycer or another orchestrator? Hand the decisions up the chain:

    /greenlight mode escalate

    Working alone? Use /greenlight mode enforce to be asked before risky commands run.

Install Greenlight now, and give your agents a boss to answer to.

Want the details?

Orchestrator setup, providers, settings, and the measurements behind every threshold are in the reference guide.


A fork of y0usaf/pi-jev, which built the command check this is based on. MIT licensed.