calm-artist-7206
11/22/2025, 9:30 PMapply_patch tool for GPT-5.1*.
We have noticed ever since the first tests of GPT-5 that it had been trained with an “applypatch” program, which it was trying to use for edits “naturally”. For 5.1, OpenAI has made it into a Tool, and apparently has trained GPT-5.1 on it.
They have it made available as a hosted tool, but they have also open sourced a reference implementation, so we could learn from it. This PR adapts it for us:
https://github.com/OpenHands/software-agent-sdk/pull/1166