repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/fast/README.md

Raw

fast

Priority service tier for OpenAI Codex in 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, streams OpenAI Codex responses with native serviceTier: "priority".

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

Scope:

On the priority path, 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 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

Priority service tier for OpenAI Codex in 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, streams OpenAI Codex responses with 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

On the priority path, 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 UI indicator.
With `@bugabinga/pi-ext-footer`, emits footer segment `fast` in the `llm` zone.
Without shared footer, uses `fast` status fallback.