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

advisor-pi

v1.0.3

Published

Advisor-style strategic model guidance for Pi Coding Agent workflows

Readme

advisor-pi

Advisor-style strategic guidance for Pi Coding Agent.

advisor-pi screenshot

advisor-pi adds an LLM-callable advisor tool. During complex workflows, the executor model can pause and consult a configured higher-capability advisor model for planning, risk analysis, course correction, or review guidance.

The advisor receives the current conversation transcript plus the executor's question. It has no tools and cannot modify files; it only returns strategic advice to the executor.

Behavior

  • Registers an advisor tool for complex or high-risk tasks.
  • Lets the executor decide when a consultation is useful.
  • Calls a configured advisor model through Pi's model registry and auth.
  • Tracks advisor uses per session branch and stops after the configured limit.
  • Passes a prompt-cache preference (none, short, or long) where the selected provider supports it.
  • Defaults to openai-codex/gpt-5.6-sol with high thinking.
  • Shows a compact advisor:<provider>/<model> <thinking> <remaining> status in Pi's footer when UI is available.

Commands

/advisor-pi status
/advisor-pi enable
/advisor-pi disable
/advisor-pi model <provider>/<model>
/advisor-pi thinking <minimal|low|medium|high|xhigh|max>
/advisor-pi max-uses <number>
/advisor-pi cache <none|short|long>
/advisor-pi reset

Examples:

/advisor-pi model openai-codex/gpt-5.6-sol
/advisor-pi thinking high
/advisor-pi max-uses 5
/advisor-pi cache long

CLI flags

pi --advisor-model openai-codex/gpt-5.6-sol \
   --advisor-thinking high \
   --advisor-max-uses 5 \
   --advisor-cache short

Disable on startup:

pi --advisor-enabled=false

Install

Published on npm: advisor-pi. Register the package with Pi (pi install) — plain npm install does not add it to Pi's settings.json.

pi install npm:advisor-pi
pi install npm:[email protected]   # pin version
pi install -l npm:advisor-pi      # project-local (.pi/settings.json)
pi -e npm:advisor-pi              # one session, no install

Then run /reload in Pi (or restart).

pi list
pi update npm:advisor-pi
pi remove npm:advisor-pi

From pi-extensions (git):

cp -r extensions/advisor-pi ~/.pi/agent/extensions/
# or: curl -fsSL .../install.sh | bash -s -- --auto

Cost and latency

Each advisor consultation is a separate model call. That means:

  • Advisor input and output are billed separately by the selected provider.
  • Streaming from the executor pauses while the advisor call runs.
  • Longer transcripts cost more because the advisor reads the conversation context.
  • The max-uses setting is a safety budget; raise it only when deeper review is worth the extra cost.

Caching

advisor-pi passes the configured cache preference to Pi's AI provider layer:

  • none — do not request prompt caching.
  • short — request normal/short cache retention where supported.
  • long — request long cache retention where supported.

Provider support varies. Some providers ignore cache preferences, some require specific model compatibility, and cache reads/writes may still be billed.

Known limitations

  • This is a portable Pi custom-tool approximation, not Anthropic's native beta advisor_20260301 server tool.
  • Native provider-specific advisor usage fields may not appear in provider usage reports.
  • The advisor has no tools and cannot inspect files beyond what appears in the transcript.
  • Very long conversations can make advisor calls slower and more expensive.
  • max-uses is tracked per Pi session branch from extension state and tool result details; manual session editing can affect reconstruction.