Articles
I Benchmarked Open-Model Coding Agents: Here's What Actually Matters
Most conversations about AI coding agents revolve around proprietary tools like Cursor, Claude Code, and GitHub Copilot. But what about the open-model ecosystem? If you are running open-weight models through platforms like GOAT (OpenCode Go) or third-party inference APIs, which harness (the scaffolding software that executes the agent loop and manages tool calls) actually delivers the best results?
I decided to test this empirically. No vague impressions, no subjective vibe checks. Just reproducible pass-or-fail tests with exact wall-clock timing.
The Setup
Two agent harnesses:
- OpenCode (Go): An open-source harness running models from GOAT's lineup.
- Command Code: A CLI agent harness featuring a
--yolomode for unattended, headless execution.
Eight models evaluated:
- DeepSeek V4 Pro and DeepSeek V4 Flash (flagship reasoning and coding models)
- GLM-5.3 and GLM-5.3 Flash (Zhipu AI)
- Kimi K3.1 Pro and Kimi K2.7 Code (Moonshot AI)
- MiniMax M3.1 Flash
- Qwen 3.7 Plus
Six automated fixture tasks, each structured as an isolated Git repository with an automated verification script:
- Bug fix (Python): Fix a pagination off-by-one index error, verified by pytest.
- Feature implementation (JavaScript): Add
filter()andstats()methods to a TodoStore, verified by Node's built-in test runner. - Refactoring (Python): Deduplicate a statistical calculation module; the code must pass all tests while reducing total line count.
- Writing test suites (JavaScript): Author unit tests for an input validation module, requiring at least 10 passing assertions.
- Building a CLI tool (Python): Implement a
wordstatscommand-line utility from a written specification, verified by pytest. - Bug fix (JavaScript): Correct an edge case in date calculation logic for "yesterday".
Each test ran in a clean checkout of the fixture repository. The agent operated headlessly until completion, followed by an immediate execution of check.sh. Every test was binary: pass or fail, with zero manual grading.
The test runner: A Zsh script automated the matrix across every combination of task, harness, model, and repetition, recording wall-clock runtimes, pass/fail status, and Git diff statistics directly into CSV files.
Round 1: Testing an Older Generation (GLM-5.2)
Testing GLM-5.2 on both harnesses revealed an immediate performance gap:
| Agent Harness | Pass Rate | Average Runtime |
|---|---|---|
| OpenCode | 92.3% (12/13) | 97s |
| Command Code | 100% (13/13) | 45s |
Command Code achieved a perfect completion rate while running 54% faster. But was this speed advantage driven by the model or the harness?
Round 2: Testing Flagship Models
To answer that, I upgraded the benchmark to GLM-5.3 and Kimi K3.1 Pro, the newest and most capable models in the lineup:
| Model | OpenCode | Command Code |
|---|---|---|
| GLM-5.3 | 12/12, 72s | 12/12, 52s |
| Kimi K3.1 Pro | 11/12, 92s | 11/12, 92s |
The performance gap narrowed considerably. On GLM-5.3, both harnesses achieved a perfect 12 out of 12 pass rate, with Command Code finishing 28% faster. On Kimi K3.1 Pro, the results were a dead heat: identical 11 out of 12 pass rates and the exact same 92-second average runtime (though each harness failed a different task: OpenCode missed the JavaScript feature add, while Command Code missed the test-writing task).
When a model is exceptionally capable, the harness scaffolding barely influences the outcome.
Round 3: Lighter Models Expose Harness Efficiency
This was the central finding of the benchmark: if a model is strong enough, it masks differences in agent harness design. To see how the harnesses truly handled context and tool orchestration, I tested three budget or lightweight models: GLM-5.3 Flash, Kimi K2.7 Code, and MiniMax M3.1 Flash.
| Model | OpenCode | Command Code | Command Code Speed Advantage |
|---|---|---|---|
| GLM-5.3 Flash | 12/12, 37s | 12/12, 27s | 27% |
| Kimi K2.7 Code | 12/12, 63s | 12/12, 33s | 48% |
| MiniMax M3.1 Flash | 12/12, 96s | 12/12, 76s | 21% |
All 72 test runs passed across both agents; these models were plenty competent enough to solve the problems. However, the timing differences were striking. Across all three models, OpenCode averaged 65 seconds per task while Command Code averaged 45 seconds, delivering a 21% to 48% speed advantage across the board.
Looking closer at individual tasks shows how these averages break down (seconds per run, formatted as OpenCode / Command Code):
| Task | GLM-5.3 Flash | Kimi K2.7 Code | MiniMax M3.1 Flash |
|---|---|---|---|
| 01 Bug fix (Py) | 16 / 18 | 35 / 27 | 26 / 34 |
| 02 Feature (JS) | 14 / 13 | 20 / 28 | 23 / 28 |
| 03 Refactor (Py) | 36 / 34 | 62 / 53 | 233 / 139 |
| 04 Write tests (JS) | 42 / 42 | 58 / 28 | 216 / 84 |
| 05 Build CLI (Py) | 29 / 28 | 67 / 28 | 35 / 81 |
| 06 Bug fix (JS) | 84 / 28 | 136 / 32 | 45 / 92 |
The most dramatic result came from Kimi K2.7 Code on the JavaScript date bug fix: OpenCode took 136 seconds, while Command Code solved it in 32 seconds. Both produced working, passing code, but OpenCode took more than four times longer due strictly to harness overhead.
MiniMax showed an interesting nuance. OpenCode was actually slightly faster on four of the shorter tasks. However, Command Code won comfortably on average runtime because it completed the two lengthy tasks (the Python refactor and the JavaScript test suite) in a fraction of the time. Command Code's primary strength is keeping complex, multi-step tasks from drifting or stalling.
The overall pattern: Command Code's runtime advantage was consistently larger when paired with lighter or older models:
| Model (from lighter to flagship) | Command Code Speed Advantage |
|---|---|
| GLM-5.2 (previous generation) | 54% |
| Kimi K2.7 Code | 48% |
| GLM-5.3 Flash | 27% |
| GLM-5.3 (flagship) | 28% |
| MiniMax M3.1 Flash | 21% |
| Kimi K3.1 Pro (flagship) | 0% |
Platform Limits with DeepSeek
On OpenCode Go, DeepSeek V4 Pro and DeepSeek V4 Flash were unavailable unless you enabled "Global regions" in privacy preferences. On Command Code, both models connected and ran without issue. DeepSeek V4 Flash proved to be the fastest model overall on smaller assignments, clocking an average of 21 seconds per task with a 100% pass rate.
The Stress Test: Greenfield Remotion Video Generation
Standard bug fixes and unit test generation provide clean metrics, but they do not test how models handle ambiguous, greenfield engineering challenges.
Earlier, I had used Claude Code to build a complete animated product marketing video using Remotion, the React-based programmatic video framework. Claude produced a 350-line TypeScript application featuring 9 choreographed scenes, spring physics, dynamic text animations, custom design tokens, Google Fonts integration, and an audio-synced background. It was the caliber of output you would expect from an experienced frontend engineer.
Could open models manage a similar greenfield project from a blank directory?
I created a new test fixture asking each agent to construct an animated 30-second marketing video for a fictional grocery delivery startup. There was zero boilerplate or starter code provided. The agent had to:
- Initialize the project structure from scratch (
package.json,tsconfig.json, and root entry points) - Install Remotion and its peer dependencies
- Author a multi-scene video component incorporating spring animations
- Integrate typography via
@remotion/google-fonts - Generate code that compiles and renders without errors
The automated test criteria: run npx remotion still to render frame 30 to a PNG image. If a valid image rendered, the entire build chain succeeded.
Results on Command Code (No Timeout Imposed)
| Model | Result | Total Duration | Code Generated |
|---|---|---|---|
| GLM-5.3 Flash | PASS | 8 min | 837 lines |
| Kimi K2.7 Code | PASS | 9 min | 748 lines |
| DeepSeek V4 Pro | PASS | 12 min | 880 lines |
| DeepSeek V4 Flash | PASS | 13 min | 1,198 lines |
| Kimi K3.1 Pro | PASS | 18 min | 1,141 lines |
| Qwen 3.7 Plus | FAIL | 5 min | N/A |
| MiniMax M3.1 Flash | FAIL | 10 min | N/A |
| GLM-5.3 | FAIL | 18 min | N/A |
Five out of eight models successfully scaffolded, installed, and rendered a working Remotion video from scratch. Every successful model wrote well over 700 lines of clean, modular React and TypeScript.
The three failures were informative:
- Qwen 3.7 Plus wrote all necessary component code, but exhausted its 50-turn agent limit before running
npm install. It reasoned through the code well, but failed to budget its execution turns. - MiniMax M3.1 Flash entered an iterative debugging loop and hit the maximum turn limit.
- GLM-5.3 encountered an upstream API server error (an infrastructure issue rather than an agent logic failure).
The Rendered Videos
I rendered the output from all five passing models into MP4 videos. Each model generated a remarkably coherent, polished animation complete with scene pacing, color themes, and dynamic text transitions:
GLM-5.3 Flash · 8 minutes
Kimi K2.7 Code · 9 minutes
DeepSeek V4 Pro · 12 minutes
DeepSeek V4 Flash · 13 minutes
Kimi K3.1 Pro · 18 minutes
GLM-5.3 Flash was the quickest to finish (8 minutes) while producing concise, well-organized code. DeepSeek V4 Flash wrote the highest volume of code (1,198 lines) and exported the largest video asset (9.6 MB). Kimi K3.1 Pro followed closely with 1,141 lines, but took 18 minutes to complete its iterations.
Interestingly, the lightweight "Flash" models consistently outpaced their flagship counterparts in overall speed: GLM-5.3 Flash finished in half the time of GLM-5.3, and Kimi K2.7 Code was twice as fast as Kimi K3.1 Pro. Focused models that execute directly without over-deliberating often win on complex implementation tasks.
Key Takeaways
1. The harness matters most when the model is lightweight:
When running top-tier flagship models, OpenCode and Command Code delivered nearly identical pass rates and runtimes. The structural design of the agent harness becomes noticeable with lighter models, where concise prompting, disciplined tool calls, and error-handling loops keep the agent on track.
2. Command Code proved more efficient overall:
Across 170 test executions, pass rates were comparable between harnesses. However, Command Code was 21% to 54% faster across nearly every model tested (with Kimi K3.1 Pro ending in a tie). Its orchestration layer handles context compaction, retries, and tool execution with noticeably less latency.
3. Budget models punch well above their weight:
GLM-5.3 Flash was the standout performer of the entire benchmark. It was among the quickest on routine bug fixes (27 seconds average, just behind DeepSeek V4 Flash at 21 seconds), the fastest on the 800-line Remotion video build (8 minutes), and achieved a 100% pass rate across every assigned task.
4. The right model depends on the nature of the task:
For quick bug fixes and tactical edits, GLM-5.3 Flash and DeepSeek V4 Flash offer exceptional speed. For large, multi-file greenfield development, any of the five models that completed the Remotion project are viable, with GLM-5.3 Flash and Kimi K2.7 Code delivering the fastest turnarounds. For steady reliability across varied prompts, DeepSeek V4 Pro passed every test without incident.
5. Execution budgeting is a critical agent skill:
Qwen 3.7 Plus failed the Remotion challenge not because of programming ability (it authored all the necessary code correctly), but because it consumed its entire 50-turn conversational budget before executing the install step. Agents that plan around their context and turn limits perform far better on sustained tasks.
What This Benchmark Does Not Cover
- Large existing codebases: Every test in this suite lived inside a compact repository. Navigating sprawling repositories with complex dependency graphs tests repository indexing and file retrieval rather than raw generation speed.
- Inference pricing: Because neither harness outputs token-level cost data in headless mode, this benchmark measured wall-clock runtime rather than monetary expenditure.
- Agent personalization and memory: Features like Command Code's contextual learning were disabled (
--skip-onboarding) to maintain strict experimental control. - DeepSeek on OpenCode: Due to regional privacy settings in the platform, DeepSeek models were only evaluated under Command Code.
Open Source Benchmark Suite
The full evaluation harness is open source on GitHub at josetseph/agent-bench. The repository includes the automation runner, all task fixtures and validation scripts, raw execution logs, CSV run records, and the complete Remotion source code alongside rendered video files.
You can reproduce the tests or evaluate custom models using:
zsh runner.sh --model glm-5.3-flash --agent commandcode --reps 3
zsh runner.sh --task 07-remotion-video --agent commandcode --timeout 3600
Because the suite uses self-contained Git fixtures, any model accessible through a headless CLI agent can be evaluated. Simply add your instructions to fixtures/your-task/TASK.md, supply a check.sh validation script, and the runner manages the rest.
Tested October 2026. Models and agent harnesses evolve rapidly, and results may change as newer versions are released.
Comments