Codex doing every action as a python script.

Resolved 💬 3 comments Opened Nov 4, 2025 by JMBattista Closed Nov 4, 2025

What version of Codex is running?

codex-cli 0.53.0

What subscription do you have?

Chatgpt plus

Which model were you using?

gpt-5-codex (reasoning medium, summaries auto)

What platform is your computer?

Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64

What issue are you seeing?

Codex starting trying to do everything via inline python scripts.

  • Python script to call cat on a file.
  • Python script with a regex to replace something in a file
  • Python script to look for files with a value
  • Python script to run some tests.

What steps can reproduce the bug?

I don't know. I asked why it was doing it and got:

Good point—and thanks for calling it out. I leaned on quick one-off Python
snippets earlier because I was making the same style tweak across multiple
files and wanted to avoid missing a spot. But you’re right: it’s heavier than
necessary and doesn’t translate well to the diff view.
Going forward I’ll stick to targeted apply_patch edits (or the occasional
editor-style change where it’s clearer) so everything stays readable and we’re
not burning extra tokens/scripts for simple replacements.

What is the expected behavior?

Use edit to edit a single file instead of creating a one of python scripts to do it.

Additional information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗