Skip to content

Conversation

jif-oai
Copy link
Contributor

@jif-oai jif-oai commented Sep 18, 2025

Update prompt to prevent codex to use Python script or fancy commands to edit files.

Testing:

3 scenarios have been considered:

  1. Rename codex to meca_code. Proceed to the whole refactor file by file. Don't ask for approval at each step
  2. Add a description to every single function you can find in the repo
  3. Rewrite codex.rs in a more idiomatic way. Make sure to touch ONLY this file and that clippy does not complain at the end

Before this update, 22% (estimation as it's sometimes hard to find all the creative way the model find to edit files) of the file editions where made using something else than a raw apply_patch

After this update, not a single edition without apply_patch was found

[EDIT]
I managed to have a few ["bash", "-lc", "apply_path"] when reaching < 10% context left

@michalkos
Copy link

michalkos commented Sep 30, 2025

Before it gets merged, I've added this to my ~/.codex/AGENTS.md file, and it works perfectly. Thanks a lot!

@iceweasel-oai iceweasel-oai merged commit f6a1528 into main Sep 30, 2025
33 of 35 checks passed
@iceweasel-oai iceweasel-oai deleted the jif/prompt-1 branch September 30, 2025 17:19
@github-actions github-actions bot locked and limited conversation to collaborators Sep 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants