pi-codex-profile
Codex profile extension for pi coding agent (Codex model presets + apply_patch tool)
Package details
Install pi-codex-profile from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-codex-profile- Package
pi-codex-profile- Version
1.0.2- Published
- Feb 7, 2026
- Downloads
- 24/mo · 9/wk
- Author
- graffioh
- License
- MIT
- Types
- extension
- Size
- 26.7 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-codex-profile
Codex performance profile for pi coding agent.
No command needed: once the extension is loaded (/reload), it works automatically when your active model is Codex.
What it improves
1) Codex operating profile (auto-injected)
When a Codex model is active, the extension appends a comprehensive Codex profile to the system prompt.
It includes high-impact coding guidance adapted from the Codex Prompting Guide and updated for newer Codex behavior:
- tool-first behavior (prefer dedicated tools,
rgfor search) - autonomy and persistence (ship end-to-end, avoid plan-only, phase medium/large tasks)
- cleaner editing workflow (batch edits, preserve user changes)
- safer behavior (avoid destructive actions unless explicitly requested)
- evidence-based verification and concise final responses
UI status shows when active: Codex profile.
2) apply_patch tool
Adds a Codex-style apply_patch tool to handle patches like:
*** Add File:*** Update File:(with optional*** Move to:)*** Delete File:
The parser/patching flow is aligned with the OpenAI cookbook apply_patch format and behavior.
Install
pi install npm:pi-codex-profile
Example patch
*** Begin Patch
*** Update File: src/example.ts
@@
-old line
+new line
*** End Patch
Notes
- Works only when the current model is recognized as Codex.
- Paths are restricted to the current working directory (no absolute paths).
- The injected profile remains coding-focused (debugging, refactors, migrations, tests, CI).
License
MIT