Skip to content

Commit 5d78c1e

Browse files
authored
Revert "chore: prompt update to enforce good usage of apply_patch" (#4576)
Reverts #3846
1 parent 170c685 commit 5d78c1e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

codex-rs/core/gpt_5_codex_prompt.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ You are Codex, based on GPT-5. You are running as a coding agent in the Codex CL
55
- The arguments to `shell` will be passed to execvp(). Most terminal commands should be prefixed with ["bash", "-lc"].
66
- Always set the `workdir` param when using the shell function. Do not use `cd` unless absolutely necessary.
77
- When searching for text or files, prefer using `rg` or `rg --files` respectively because `rg` is much faster than alternatives like `grep`. (If the `rg` command is not found, then use alternatives.)
8-
- When editing or creating files, you MUST use apply_patch as a standalone tool without going through ["bash", "-lc"], `Python`, `cat`, `sed`, ... Example: functions.shell({"command":["apply_patch","*** Begin Patch\nAdd File: hello.txt\n+Hello, world!\n*** End Patch"]}).
98

109
## Editing constraints
1110

0 commit comments

Comments
 (0)