In GitHub Copilot, Opus 4.1 fumbled a C# method GPT-5 understood
An 80-line, self-contained C# method that matches object positions by ID and delta-encodes them from the prior frame. Opus 4.1, via GitHub Copilot, got confused and wrote wrong code; GPT-5 understood immediately.
Done withGitHub CopilotSpotted· by HN user nearbuy· Nov 5, 2026
Result Now they use GPT-5 instead
“I asked it to optimize a roughly 80 line C# method that matches some object positions by object ID and delta encodes their positions from the previous frame. It seemed to be confused about how all this should work and output completely wrong code.”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
They asked Opus 4.1, through GitHub Copilot in VS Code, to optimize a roughly 80-line, self-contained C# method that matches object positions by object ID and delta-encodes their positions from the previous frame.
How it went
Opus 4.1 seemed confused about how it should all work and output completely wrong code, though the file held all the context it needed. Other models did much better: GPT-5 understood what to do immediately. After a few more underwhelming tasks with Opus 4.1, which they found maybe worse than Sonnet and GPT 4.1, they switched to GPT-5.
Try it yourself with GitHub Copilot
Optimize this C# method: [method code]. It matches [objects] by ID and delta-encodes their positions from the previous frame. Keep behavior identical, and explain what you changed and why.
A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.
A few security issues turned up, prompting a full code review. Cursor and GitHub Copilot reported a dozen more that would otherwise have taken a few weeks to find. The fixes took a week by hand.
Getting back into frontend after years away, using Blazor. GitHub Copilot gave a working combo box example and workable pagination code for a Bootstrap table, but the authentication code it gave just didn't work.
A semi-complex UI addition had a full week allocated. GitHub Copilot, with 4o and Claude 3.7, finished it in an afternoon, about 95% functionally complete but ugly, since it didn't know their Tailwind classes.
A portfolio site for the writer's wife became a way to learn Terraform. GitHub Copilot wired up S3, IAM, CloudFront, DynamoDB, secrets, Cloudflare DNS and Lambda functions, running commands from inside VS Code.
A full React and Node.js app stack, built with GitHub Copilot over about 20 hours. They didn't manually edit the code except for one small piece of math they couldn't explain well enough for Copilot to produce.
A file had 38 mypy errors. They handed it to Copilot running Claude Sonnet 4 and had a 15-minute chat with their wife. They returned to a summary of the fix, debated one change, and mypy passed.