AI Engineer Guide

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.

2025-11-14-at-23.14.462x.png

It works only in responses API alone. But overall it looks good.

Reference

#Openai

Stay Updated

Get the latest AI engineering insights delivered to your inbox.

No spam. Unsubscribe at any time.