Claude's edit tool is built around search-and-replace, whereas OpenAI's Codex uses an apply_patch mechanism instead, and OpenAI has publicly discussed training its models specifically to use that apply_patch tool well.
The author contrasts Anthropic's search-and-replace edit tool with OpenAI's apply_patch approach for Codex, noting OpenAI has spoken about deliberately training models to use its own patch mechanism.
transcript
Simon Willison: Claude's edit tool uses search and replace. OpenAI's Codex uses an apply_patch mechanism instead, and OpenAI have talked in the past about how their models are trained to use that tool effectively.