OpenAI's GPT-5.1 apply_patch Tool for Code Edits
OpenAI’s latest model family GPT-5.1 has a new built‑in tools include an apply_patch that helps to edit free-form code edits.
The freeform apply_patch tool lets GPT‑5.1 create, update, and delete files in a codebase using structured diffs. Instead of just suggesting edits, the model emits patch operations that an application applies and reports back on, enabling iterative, multi-step code editing workflows.
It works only in responses API alone. But overall it looks good.