← Catalog

@mzwing/pi-codex-downgrade-detector

Detects when a Pi turn is served by a model other than the one you selected

Extension

Install

Install with PiG

pig install npm:@mzwing/pi-codex-downgrade-detector

Install with Pi

pi install npm:@mzwing/pi-codex-downgrade-detector
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./dist/index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 0.8.1 (README.md). PiG does not review it.

@mzwing/pi-codex-downgrade-detector

npm

A Pi extension that tells you when a turn was served by a model other than the one you selected. It compares the model the server names — the openai-model response header, or the model a relay echoes back — with the one Pi asked for.

Install

pi install npm:@mzwing/pi-codex-downgrade-detector

Usage

The footer keeps one glyph for the latest turn:

GlyphMeaning
·No turn has finished yet
✓The server confirmed your model
↓Something cheaper answered
↑Something else answered, still not what you picked
⚠A different model, or the reasoning effort differed
?Nothing named a model, so nothing is confirmed

When a turn diverges, a row above the editor names both models, and the first substitution of each pair raises a notification.

/codex-downgrade lists the turns this session observed; /codex-downgrade show prints the resolved config.

Configuration

Optional. ~/.pi/agent/extensions/pi-codex-downgrade-detector/config.json and .pi/extensions/pi-codex-downgrade-detector/config.json are merged, the project over the global one.

FieldDefaultDescription
providers["openai-codex"]Provider ids to watch. [] watches every provider.
tiers{}Extra slug → rank entries, higher meaning more capable.
checkEfforttrueAlso compare the reasoning effort Pi sent with your selected level.
notifytrueNotify the first time a pair is substituted.

Credits

https://t.me/c/2502727045/42320

Super thx for opening the detecting verdict out!

License

MIT