Backporting code with Claude Code Opus 4.6
In the Fall of 2025 we’ve experimented with AI agents backporting upstream patches to CentOS Stream. For more info feel free to read:
- First test of Claude Sonnet 4.5 for an agent that backports a patch
- More reliable agents
- Backporting upstream patches with Code Assistants
There was one backport that served as “the final boss”: CVE-2025-59375 in expat. The upstream fix has 19 commits and changes almost 1000 lines. The models back then couldn’t handle this for Stream 9 where the drift in code was severe. I recall the backporting process halting several times with a message saying “this is too complex, a human developer with an IDE should do this work”.
It’s March 2026, let’s try to do this with Claude Code, imperfect prompt, and Opus 4.6.
…
…
…
…