repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/fast/README.md

Raw

fast

OpenAI Codex priority service tier for Pi.

Install / load

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

Commands / tools / settings

Commands: none.

Tools: none.

Hooks:

Settings:

{
  "fast": {
    "enable": true
  }
}

fast.enable is a boolean. Project settings override global settings. Default: disabled.

Behavior

Registers provider openai-codex with API openai-codex-responses.

When enabled, wraps openai-codex streaming and sends native serviceTier: "priority".

When disabled, uses the normal simple OpenAI Codex response stream.

Scope:

Reasoning options are clamped for the selected model before sending. If the clamped reasoning level is off, no reasoningEffort is sent.

No model allowlist.

When active on openai-codex, publishes fast as its own UI indicator. With @bugabinga/pi-ext-footer, emits footer segment fast in the llm zone. Without shared footer, uses fast status fallback.

Markdown source
File outline
# fast

OpenAI Codex priority service tier for Pi.

## Install / load

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

## Commands / tools / settings

Commands:
none.

Tools:
none.

Hooks:

- `session_start`:
  refreshes settings from the session cwd and publishes status.
- `model_select`:
  refreshes settings from the session cwd and publishes status.
- `session_shutdown`:
  clears published status/footer segment.

Settings:

```json
{
  "fast": {
    "enable": true
  }
}
```

`fast.enable` is a boolean.
Project settings override global settings.
Default:
disabled.

## Behavior

Registers provider `openai-codex` with API `openai-codex-responses`.

When enabled, wraps `openai-codex` streaming and sends native `serviceTier:
"priority"`.

When disabled, uses the normal simple OpenAI Codex response stream.

Scope:

- provider:
  `openai-codex`
- API:
  `openai-codex-responses`
- all OpenAI Codex models

Reasoning options are clamped for the selected model before sending.
If the clamped reasoning level is `off`, no `reasoningEffort` is sent.

No model allowlist.

When active on `openai-codex`, publishes `fast` as its own UI indicator.
With `@bugabinga/pi-ext-footer`, emits footer segment `fast` in the `llm` zone.
Without shared footer, uses `fast` status fallback.