omp packages

pi-apply-patch0.1.1

OpenAI Codex apply_patch file-editing tool for GPT models on Pi

kennyfrc Published 2 months ago MIT ~145 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-apply-patch

OpenAI Codex apply_patch file-editing tool for Pi, active only for GPT-family models, where it replaces the built-in edit and write tools.

Install

pi install npm:pi-apply-patch

Config lives in ~/.pi/agent/pi-apply-patch.json. Omit it for the default auto mode.

{
  "mode": "auto",
  "gptIdPatterns": ["^gpt", "^o\\d"]
}

mode is auto (default), on, or off:

  • auto: enables apply_patch and removes edit and write for GPT-family models; every other model keeps edit/write and has apply_patch hidden.
  • on: enables apply_patch for every model.
  • off: disables apply_patch for every model.

gptIdPatterns are regexes tested against the model id. Models whose api is openai-codex-responses always count as GPT.

License

MIT.