repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/model-info/README.md

Raw

model-info

Model and thinking telemetry for Pi.

Install / load

Loaded through the root pi-ext package. See root README.

Commands / tools / settings

Commands: none.

Tools: none.

Settings read: none.

Hooks:

Events emitted:

UI status:

Behavior

Shows current model id plus thinking level:

gpt-5.5:off
gpt-5.5:high

Model label uses the last /-separated model id segment. Missing model becomes no-model.

Thinking level comes from thinking_level_select; otherwise from the latest thinking_level_change session entry; fallback is off.

When the shared footer is loaded, the extension publishes footer segment model with color syntaxKeyword, zone llm, and order 0.

Without the shared footer, it clears the footer segment and writes the model-info UI status fallback.

Publishing only runs when UI is available. On shutdown, the extension clears its footer segment and status fallback.

Markdown source
File outline
# model-info

Model and thinking telemetry for Pi.

## Install / load

Loaded through the root `pi-ext` package.
See [root README](../../README.md).

## Commands / tools / settings

Commands:
none.

Tools:
none.

Settings read:
none.

Hooks:

- `session_start`, `model_select`, `session_compact`:
  publish telemetry from the current session state.
- `thinking_level_select`:
  publish telemetry using the selected thinking level from the event.
- `session_shutdown`:
  clears the footer segment and status fallback.

Events emitted:

- `footer:segment`:
  publishes or clears segment `model` in the `llm` zone.

UI status:

- `model-info` status fallback when `@bugabinga/pi-ext-footer` is not loaded.

## Behavior

Shows current model id plus thinking level:

```text
gpt-5.5:off
gpt-5.5:high
```

Model label uses the last `/`-separated model id segment.
Missing model becomes `no-model`.

Thinking level comes from `thinking_level_select`; otherwise from the latest
`thinking_level_change` session entry; fallback is `off`.

When the shared footer is loaded, the extension publishes footer segment
`model` with color `syntaxKeyword`, zone `llm`, and order `0`.

Without the shared footer, it clears the footer segment and writes the
`model-info` UI status fallback.

Publishing only runs when UI is available.
On shutdown, the extension clears its footer segment and status fallback.