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

@juicesharp/rpiv-advisor

v1.16.1

Published

Pi extension. A second opinion the model can request from a stronger reviewer model before it acts.

Downloads

17,514

Readme

rpiv-advisor

Let the model ask a stronger model for a second opinion before it acts. rpiv-advisor adds the advisor tool and /advisor slash command to Pi Agent - the working model can hand the full conversation to a reviewer (e.g. Opus) and resume with its plan, correction, or stop signal.

Advisor model selector

Features

  • Reviewer model selector - /advisor opens a picker over any model in Pi's registry, plus a reasoning-effort picker for reasoning-capable models. Start typing to fuzzy-filter the list by model name or provider:id.
  • Persisted across sessions - selection saved at ~/.config/rpiv-advisor/advisor.json (chmod 0600).
  • Off by default - the advisor tool is excluded until you pick a model; choose "No advisor" to disable.
  • Per-executor blocklist - list executor models in disabledForModels (in advisor.json) to strip the advisor tool when those models drive the session. Entries can be plain strings (block at any effort) or { "model": "<provider:id>", "minEffort": "<level>" } to block only when the executor's effort meets or exceeds the threshold. Available levels, lowest to highest: minimal, low, medium, high, xhigh.
  • Zero-parameter handoff - calling advisor forwards the full serialized conversation branch; no manual prompt needed.

Install

pi install npm:@juicesharp/rpiv-advisor

Then restart your Pi session.

Usage

Configure an advisor model with /advisor - the command opens a selector for any model registered with Pi's model registry, plus a reasoning-effort picker for reasoning-capable models. Selection persists across sessions at ~/.config/rpiv-advisor/advisor.json (chmod 0600).

The advisor tool is registered at load but excluded from active tools by default; selecting a model via /advisor enables it. Choose "No advisor" to disable.

advisor takes zero parameters - calling it forwards the full serialized conversation branch to the advisor model, which returns guidance (plan, correction, or stop signal) that the executor consumes.

Tool

  • advisor - escalate the current conversation branch to the configured reviewer model. Inactive until a model is selected via /advisor.

Schema

advisor() // zero parameters

The full conversation branch is auto-serialized from ctx.sessionManager - the LLM does not (and cannot) pass it explicitly.

Returns:

{
  content: [{ type: "text", text: string }], // reviewer's guidance, or error message
  details: {
    advisorModel?: string,        // "<provider>:<modelId>"
    effort?: ThinkingLevel,       // reasoning effort, when applicable
    usage?: Usage,                // token usage from the side-call
    stopReason?: StopReason,      // pi-ai stop reason
    errorMessage?: string,        // populated on auth/abort/error/empty paths
  }
}

License

npm version License: MIT

MIT