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

@czottmann/pi-whoami

v1.0.0

Published

pi extension that adds a `whoami` tool reporting the active provider, model, and thinking level.

Readme

@czottmann/pi-whoami

A pi extension that adds a whoami tool. The tool reports the active provider, model, and thinking level of the current pi session.

Install

pi install npm:@czottmann/pi-whoami

From a local checkout:

pi install .

For one run from a local checkout:

pi -e ./extensions/whoami.ts

Usage

The extension registers one tool: whoami. It takes no arguments. Ask the agent something like "who am I running on?" and it can call the tool.

Example output:

{
  "provider": "openrouter",
  "model": "google/gemma-3-27b-it",
  "modelName": "Gemma 3 27B",
  "thinkingLevel": "high",
  "providerThinkingLevel": "high",
  "projectDir": "/Users/you/Code/my-project"
}

Fields

| Field | Description | |---|---| | provider | The active provider ID, for example openai-codex or openrouter. | | model | The active model ID, for example glm-5.3. | | modelName | The human-readable model name. Equal to the model ID when the catalog sets no name. | | thinkingLevel | The pi thinking level: off, minimal, low, medium, high, xhigh, or max. | | providerThinkingLevel | The thinking value that pi sent to the provider. See below. | | projectDir | The directory where pi started the session. |

providerThinkingLevel

Pi maps its thinking levels to values that the provider API accepts. The result depends on the provider and model:

  • Most providers get a level string, for example high or xhigh. Pi can clamp levels. For example, a model without max support can receive high.
  • Budget-based providers (older Anthropic models, some Google models) get a token budget. In this case the field holds a number.
  • The field is null when the provider received no thinking directive, for example when thinking is off.

The extension reads this value from the outgoing provider request. Before the first request of a session, it falls back to the model's thinkingLevelMap.

Development

npm run check
npm run build
pi -e . --provider nebius-token-factory

Publishing

GitHub Actions publishes the package to npm when a GitHub Release is published. Releases are tagged vX.Y.Z, where X.Y.Z must match package.json exactly (for example tag v1.0.0 for version 1.0.0).

The workflow uses npm Trusted Publishing, so it does not need an npm token secret. Configure this package on npm with this repository and workflow file (.github/workflows/publish.yml). The workflow builds the package, runs npm run check, and publishes with npm provenance.

Author

Carlo Zottmann, [email protected]

  • Website: https://actions.work
  • GitHub: https://github.com/czottmann
  • My other Pi plugins: https://pi.dev/packages?name=%40czottmann
  • Bluesky: https://bsky.app/profile/zottmann.dev
  • Mastodon: https://norden.social/@zottmann