pi-gpt55-complete
Pi package that folds GPT-5.5 518n-2 reasoning truncations for OpenAI Codex.
Package details
Install pi-gpt55-complete from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-gpt55-complete- Package
pi-gpt55-complete- Version
0.1.0- Published
- Aug 4, 2026
- Downloads
- 183/mo · 17/wk
- Author
- ypquinn
- License
- MIT
- Types
- extension
- Size
- 16.5 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./extensions/gpt55-complete.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-gpt55-complete
A pi package that mitigates GPT-5.5's intermittent 518n - 2 reasoning truncation pattern (516, 1034, 1552, ...) for the built-in openai-codex/gpt-5.5 model.
The extension only applies to:
openai-codex/gpt-5.5
Other OpenAI Codex models are delegated to pi's built-in provider unchanged.
What it does
When a GPT-5.5 round ends with usage.reasoning == 518 * n - 2 and the reasoning block contains encrypted replay state, the extension:
- streams reasoning blocks live;
- buffers tentative text/tool-call output;
- appends a commentary
Continue thinking...replay message carrying the encrypted reasoning signature; - opens another round;
- folds the reasoning blocks plus the final clean round's output into one assistant message.
Continuation rounds are capped at 3.
Install
From npm, after publishing:
pi install npm:pi-gpt55-complete
From GitHub:
pi install git:github.com/YPQuinn/pi-gpt55-complete@v0.1.0
For local development:
pi -e . --model openai-codex/gpt-5.5:xhigh
Development smoke test
pi --no-extensions -e . --list-models gpt-5.5
npm pack --dry-run
Security
Pi extensions run with the same permissions as your local pi process. This package does not persist or log credentials; it delegates transport/auth to pi's built-in OpenAI Codex provider.
Credits
The detect-and-continue mechanism is inspired by the codexcomp / CodexCont approach for GPT-5.5's 518n - 2 reasoning truncation fingerprint.
License
MIT