pi-codex-profile
v1.0.2
Published
Codex profile extension for pi coding agent (Codex model presets + apply_patch tool)
Downloads
227
Maintainers
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-profileExample patch
*** Begin Patch
*** Update File: src/example.ts
@@
-old line
+new line
*** End PatchNotes
- 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
