Edit Codex Image
The first whitespace-separated token in the arguments is the input image path; the rest is the edit prompt. Quote the path if it contains spaces (e.g. "my photo.png" make it red).
This command runs a full Codex agent turn and typically takes 1–3 minutes. Run it with a 10-minute Bash timeout (600000 ms) so the turn is not killed mid-edit.
Run:
bashnode "${CLAUDE_PLUGIN_ROOT}/scripts/codex-image.mjs" edit "$ARGUMENTS"
Output rules:
- Show the command stdout to the user verbatim — Codex prints one
SAVED: <absolute path>line per saved image. - If the exit code is non-zero, show stderr and stop. Common failures: missing input image, missing edit prompt.
- Do not run any additional image edits unless the user explicitly asks for another attempt.


