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

@benvargas/pi-openai-verbosity

v1.0.1

Published

Per-model OpenAI Codex text verbosity overrides for pi

Readme

@benvargas/pi-openai-verbosity

Per-model text verbosity overrides for pi's openai-codex provider.

Why This Exists

This extension was originally created because pi sent OpenAI Codex provider requests with the default Responses API text verbosity, which made some models, especially gpt-5.5, noticeably more verbose than the Codex CLI. The goal was to align openai-codex/gpt-5.5 with Codex CLI behavior by setting:

{
  "text": {
    "verbosity": "low"
  }
}

pi has since shipped an upstream fix: OpenAI Codex Responses requests now default to low verbosity when no explicit verbosity is provided.

That upstream change addresses the original gpt-5.5 issue, but it also means pi now defaults every openai-codex model to low. That may not be ideal for all model slugs. For example, you may prefer low on gpt-5.5, but medium on an older or different model such as gpt-5.3-codex.

This extension now provides the missing user-facing control: per-slug verbosity settings for pi's openai-codex provider.

Requires pi 0.74.0 or newer.

What It Does

The extension uses pi's before_provider_request hook to rewrite outgoing provider payloads for configured openai-codex/<model> keys.

For matching models, it sets:

{
  "text": {
    "verbosity": "low | medium | high"
  }
}

Non-matching models are left unchanged.

Install

pi install npm:@benvargas/pi-openai-verbosity

Or try without installing:

pi -e npm:@benvargas/pi-openai-verbosity

Usage

Run pi with the extension enabled:

pi -e npm:@benvargas/pi-openai-verbosity --model openai-codex/gpt-5.5

Use /openai-verbosity status inside pi to report the configured rewrite for the current model. The command also reloads the config file.

Config

Config files follow pi's project-over-global pattern:

  • Project: <repo>/.pi/extensions/pi-openai-verbosity.json
  • Global: ~/.pi/agent/extensions/pi-openai-verbosity.json

If neither exists, the extension writes a default global config on first run.

Example config:

{
  "models": {
    "openai-codex/gpt-5.5": "low",
    "openai-codex/gpt-5.4": "low",
    "openai-codex/gpt-5.3-codex": "medium",
    "openai-codex/gpt-5.3-codex-spark": "medium",
    "openai-codex/gpt-5.2": "medium"
  }
}

Settings:

  • models: object mapping openai-codex/<model-id> strings to low, medium, or high.

Project config overrides global config per model key. Any model not listed is left unchanged, which means pi's native default behavior applies.

Default Config

By default, the extension preserves the original workaround behavior and sets known supported OpenAI Codex models to low:

{
  "models": {
    "openai-codex/gpt-5.4": "low",
    "openai-codex/gpt-5.5": "low",
    "openai-codex/gpt-5.4-mini": "low",
    "openai-codex/gpt-5.3-codex": "low",
    "openai-codex/gpt-5.3-codex-spark": "low",
    "openai-codex/gpt-5.2": "low",
    "openai-codex/codex-auto-review": "low"
  }
}

You can change any value to medium or high to override pi's native low-verbosity default for that model.

Debugging

Pi does not currently expose a simple CLI flag to print the final provider request body. To verify this extension is matching and rewriting a request, set PI_OPENAI_VERBOSITY_DEBUG_LOG to a JSONL file path.

| Variable | Description | |---|---| | PI_OPENAI_VERBOSITY_DEBUG_LOG | Set to a file path to enable debug logging. Matching requests write "before" and "after" JSON entries with the full provider payload. Non-matching requests write one "skipped" entry. |

PI_OPENAI_VERBOSITY_DEBUG_LOG=/tmp/pi-openai-verbosity.jsonl \
  pi -e npm:@benvargas/pi-openai-verbosity \
  --model openai-codex/gpt-5.3-codex \
  -p "Reply in one short sentence."

Then inspect the last entries:

tail -n 5 /tmp/pi-openai-verbosity.jsonl | jq .

These entries include prompts, messages, tools, and the rest of the provider payload, so keep the file local and delete it when you are done debugging.

Notes

  • This extension only changes outgoing provider request payloads.
  • Existing text fields are preserved, and only text.verbosity is replaced.
  • Only the openai-codex provider is supported.
  • This extension is most useful if you want different verbosity settings for different OpenAI Codex model slugs.

Uninstall

pi remove npm:@benvargas/pi-openai-verbosity

License

MIT