opencode vs Claude Code, both on the same model (DeepSeek V4.1 Flash), same 3 jobs:
- Both passed all 29 checks
- Claude Code: 35 min in total. opencode: 3 hours
- Claude Code cost $0.31, opencode $1.30
- opencode built the better 3D savanna scene
The setup. opencode 2.4.4 and Claude Code 2.1.337, both on DeepSeek V4.1 Flash through DeepSeek's own API. A proxy between each agent and DeepSeek turned thinking on, set the same 64K output limit and recorded every request. Each agent ran as its own macOS user, in an empty folder, with no memory and full permissions. Same three prompts word for word, one run each, 29 automatic checks.
Job 1: a savanna waterhole at sunset in three.js. Two giraffes walk to the water, a mother elephant sprays water with her trunk, zebras graze nearby.
opencode wrote its whole scene at 3 min 20 s, then kept looking at its own screenshots and changing the water. At 49 min it wrote: "The water still reads as a flat pink disc." At 72 min: "The water is now reading too uniformly mauve." At 98 min it went back to an older version of the water, and two minutes later it added a real reflection. Done at 2 h 25 min, after 271 changes to the scene (about 100 to the water) and 243 screenshots.
Claude Code wrote its scene at 5 min. After its first screenshot it wrote that the camera sat too high to see the sunset. It cut each animal out of its screenshots and zoomed in. In its thinking: "Giraffe legs are missing!" The elephant's spray did not show, so it put a red marker on the tip of the trunk and read the spray's position from the page: the spray started just above the water, not at the trunk. It fixed it. Done at 22 min 40 s, after 42 screenshots.
Both passed 8/8. opencode's scene looks better: its water mirrors the sky and the animals and ripples where a giraffe drinks. But some of its zebras stand in the water, and the spray is hard to see. In Claude Code's scene the spray is easy to see and the zebras graze around the water, but the water is a flat purple and the giraffes look blocky.
Job 2: Slalom Run, a ski game seen from above. A missed gate adds 5 seconds.
opencode wrote its game at 5 min, Claude Code at 6 min 24 s. Claude Code tested in Chrome that a run can finish, that the next level is harder, that the skier can fall and that the game works on a phone. Done at 11.5 min. opencode wrote a new test script for each part of the game and looked at 52 screenshots. Done at 37 min. Both passed 14/14. opencode's game looks more finished (a number on each gate, a progress bar); Claude Code's skier is bigger and easier to see.
Job 3: a bug hunt in a bike rental backend. 3 of 37 tests failed, and the staff reported that customers sometimes pay the station change fee twice.
Both found and fixed the same four bugs at their cause: ride time rounded to whole minutes, rented bikes still counted in the docks, a lost charge when two charges hit one wallet at the same time, and the double fee on a swap. Both passed our 21 hidden tests. opencode was done at 32 s, Claude Code at 54 s. A tie.
How they used their tools. Both wrote a first version in 3 to 7 minutes. The difference came in the looking and fixing: on the savanna, 2 h 21 min for opencode, 17.5 min for Claude Code. In the two build jobs, opencode changed its page 360 times and looked at 295 screenshots; Claude Code changed it 43 times and looked at 51.
One slip each: both tried to crop a screenshot with a Python library that was not installed. opencode used the macOS tool sips instead, Claude Code used ffmpeg.
One issue from our setup: a web server from opencode's run still held its port, so Claude Code's first screenshot was an error page. That folder was already deleted, so Claude Code saw no files; it took another port. We now stop such servers after each run.
Behind the scenes: one step took about 9 to 10 seconds for both. Claude Code wrote about 2,000 tokens a step, often a whole script with several changes; opencode about 740, one small edit at a time. So opencode sent 1,015 requests and Claude Code 168. Each request sends the whole history again: 213M tokens vs 25M, 99% of them cached. Same price per token, so $1.30 vs $0.31.
My take: on the same model, Claude Code did the three jobs 5x faster for a quarter of the cost. opencode built the better savanna scene and tested its game the most, but on an open job like a 3D scene, keep an eye on the time. One run of each job, on one day.
Which agent do you use with DeepSeek, opencode or Claude Code?
@opencode @AnthropicAI @deepseek_ai #AICoding
来源:Zcoder · x.com