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
codex-core
This crate implements the business logic for Codex. It is designed to be used by the various Codex UIs written in Rust.
Dependencies
Note that codex-core makes some assumptions about certain helper utilities being available in the environment. Currently, this
macOS
Expects /usr/bin/sandbox-exec to be present.
Linux
Expects the binary containing codex-core to run the equivalent of codex debug landlock when arg0 is codex-linux-sandbox. See the codex-arg0 crate for details.
All Platforms
Expects the binary containing codex-core to simulate the virtual apply_patch CLI when arg1 is --codex-run-as-apply-patch. See the codex-arg0 crate for details.