Track worked-on files

Resolved 💬 2 comments Opened Feb 25, 2026 by davidgilbertson Closed Feb 25, 2026

What variant of Codex are you using?

CLI

What feature would you like to see?

If the codex harness tracked which files were being read and modified, and for each of those files, tracked if they were changed since the last turn, you could inject into the prompt something like "by the way, file X has changed on disk since you last used it" which could eliminate a lot of annoying behaviour.
By default, Codex will regularly overwrite changes you make to a file, assuming it knows what's in the file. Right now the workaround is to forcefully state in an agents file that the agent must re-read each file before making changes, but a lot of the time this is wasted tokens and time as it re-reads files that haven't changed.

The harness could even provide a diff of what changed to save a round trip (perhaps only if simple or small).

This would make Codex a much better pair programmer. Right now I find myself typing ridiculous things like "change that value from 100 to 102" even though the file is right in front of me, because I know if I do it myself there's a chance Codex is just going to undo it, so it makes for a clumsy experience like I'm "not allowed" to touch my own files.

As for tracking which files are being read, seems like a small suite of tools for reading/writing files would be handy (for this and other reasons), but I assume you've already thought of this and there's a good reason that doesn't exist (I'd love to know it).

Additional information

_No response_

View original on GitHub ↗

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