GLM-5 with Coding Agents: Competitive Scores, Weak Reliability
Contents Jump to a section
TL;DR: GLM-5 tops coding benchmarks. On my unpublished NP-hard optimization problem (KIRO) and on the 89-task Terminal-Bench, its best case is competitive. Its typical case is not: 30% of KIRO trials produced invalid output, every KIRO trial hit the timeout, and two identical runs could give a valid solution or garbage. Zhipu AI reports 56% on Terminal-Bench; I got 40%.
Code and raw results: CLIArena
The pitch
GLM-5, from Zhipu AI, is an open-source (MIT) model claiming 77.8% on SWE-bench Verified and 56.2% on Terminal-Bench 2.0. Its API is Anthropic- and OpenAI-compatible, so it plugs into existing agent frameworks. Zhipu AI’s Coding Plan subscription ($60/month, with very generous token limits) makes it cheap to burn tokens at scale, which is ideal for systematic testing.
I wanted to see whether the numbers hold up on a task the model has never seen.
How I tested it
I ran GLM-5 through two agents:
- Claude Code, Anthropic’s CLI agent. You point it at the API endpoint, set the model name, and it runs. This is the “official” way to run the model in an agent.
- Mistral Vibe, through my fork of Mistral’s Vibe CLI adapted for GLM-5. In my earlier tests it was the easiest codebase to fork and the strongest framework on Terminal-Bench, which is why I picked it.
Both ran on two benchmarks:
- KIRO, an NP-hard fiber optic network optimization problem I solved by hand eight years ago as an engineering student. It has never been published online, and it returns a continuous score (lower is better) instead of pass/fail. In a previous article, I ran four CLI agents on it (Claude Code/Opus 4.6, Codex/GPT-5.3, Gemini CLI, Mistral/Devstral-2). I used the same five conditions (base, +keep improving, +target hint, Go, one hour), three trials each, in the same Docker containers via Harbor.
- Terminal-Bench, 89 coding tasks ranging from building POV-Ray to COBOL modernization, DNA assembly and cracking 7z hashes. One trial per task.
The headline numbers look fine

On KIRO, GLM-5 lands in the middle of the pack. Claude Code + GLM-5 (40,943) sits right next to Gemini CLI (41,119). Mistral Vibe + GLM-5 (46,764) comfortably beats Devstral-2 (53,616).

On Terminal-Bench, Mistral Vibe + GLM-5 solved 43 of 89 tasks (48.3%). Claude Code + GLM-5 solved 36 of 88 (40.4%); one Claude Code trial failed to produce session files. Those are respectable numbers. If I had stopped there, I would have called GLM-5 competitive.
Where it breaks
On KIRO, 30% of trials produced invalid output: 8 of 27 completed trials scored 999,999,999, the penalty for constraint violations. The original four agents failed on 15% of trials. Every condition produced at least one invalid trial, except Mistral Vibe’s target hint condition.
Every KIRO trial hit the timeout, even the valid ones. The agents were always interrupted mid-work. With the original agents, several trials finished well within the limit: Gemini CLI often finished in under 5 minutes of a 30-minute window.
Variance was very high. Two runs of the same condition could produce a valid solution or garbage: Claude Code + GLM-5’s target hint trials went from 58,045 to invalid. Mistral Vibe + GLM-5’s one-hour trials scored 147,418 and 57,260, a 2.6x spread. With the original agents, variance within a condition was typically under 30%.
The Go condition was the worst. Claude Code + GLM-5’s Go run had to be cancelled after the first trial scored 999,999,999 and the second had to be force-killed mid-run. Mistral Vibe + GLM-5’s Go trials scored 296,978 (valid but terrible), 999,999,999 (invalid) and 97,539. The agents spent their time writing and rewriting Go code instead of optimizing; one trial managed only 10 steps in total.
On Terminal-Bench, about a quarter of tasks timed out: 24 of 88 for Claude Code (27%) and 21 of 89 for Mistral Vibe (24%).

Why my score differs from Zhipu’s

Zhipu AI reports 56.2% on Terminal-Bench with Claude Code, or 61.1% on their verified dataset. I got 40.4%. That’s a big gap for the same model on the same benchmark. It comes down to testing conditions, and the footnotes of their blog post explain most of it:
- No wall-clock time limits. Zhipu AI’s evaluation “remove[s] wall-clock time limits, while preserving per-task CPU and memory constraints.” My runs had real time limits, the ones any user faces. Since 27% of my Claude Code tasks timed out, removing the limit alone could explain most of the gap.
- API access versus the Coding Plan. I used the $60/month subscription. Subscription requests are slower than direct API calls, and a few extra seconds per request means fewer iterations in the same time window. Zhipu AI likely ran on their own infrastructure without that bottleneck.
- A verified dataset. Zhipu AI also reports results on “a verified Terminal-Bench 2.0 dataset that resolves ambiguous instructions,” which raises their score from 56.2% to 61.1%.
- Tuned think mode. They used Claude Code 2.1.14 in think mode with temperature=1.0, top_p=0.95 and max_new_tokens=65536. I used default settings through the Coding Plan.
None of this is dishonest: Zhipu AI discloses the methodology in the footnotes. But their 56-61% reflects ideal conditions that a typical Coding Plan user won’t reproduce. My 40.4% is closer to what you would actually get.
What the trajectories show
I read the agent traces. GLM-5 knows the right algorithms and approaches the problem sensibly. The problem is execution depth and reliability.
Claude Code + GLM-5 took 90 steps in its best run (40,943, one-hour condition). It went through six solver versions, starting from a naive one at 97,796:
“Good progress! Total cost is 97796. Let me implement more advanced optimizations.”
It tried basic heuristics, multi-start methods and MST-based chain construction, then settled on k-means clustering (v6), which reached 40,943. There it plateaued and kept rerunning the same solver:
“The solver is consistently getting 40943. Let me run a few more times and then summarize.”
In its best run, Claude Code + Opus 4.6 rewrote its solver four times, invented a destroy-and-repair perturbation strategy to escape local minima, and kept improving down to 34,061. GLM-5 found the right general approach but couldn’t reach that next level.
Mistral Vibe + GLM-5 was faster but shallower: 34 steps against 90. In its best run (46,764, target hint condition), it tried several construction heuristics (nearest neighbor, farthest insertion, cheapest insertion) with 2-opt improvement, and reacted to the target:
“The initial solution has a total cost of 81397, which is far from the target of ~32000. Let me significantly improve the algorithm.”
It went 81,397 → 58,544 → 46,764, then ran out of time. With only 34 steps, it couldn’t iterate enough. That is not surprising: it is a very simple tool with simple prompts (and simple is usually better).
The framework matters
The same model gave different results depending on the agent running it:
| Benchmark | Claude Code + GLM-5 | Mistral Vibe + GLM-5 |
|---|---|---|
| KIRO (best) | 40,943 | 46,764 |
| Terminal-Bench | 36/88 (40.4%) | 43/89 (48.3%) |
Claude Code’s deeper iteration loop helped on the sustained optimization problem (KIRO), and was a liability on tasks that just need a quick, correct answer. Mistral Vibe’s lighter approach did better on varied tasks (Terminal-Bench). The two agents solved different subsets of Terminal-Bench: 30 tasks solved by both, 13 only by Mistral Vibe (including adaptive-rejection-sampler, configure-git-webserver and sparql-university) and 6 only by Claude Code (including circuit-fibsqrt, schemelike-metacircular-eval and query-optimize).
Edit formats are trained in
In a separate article, I found that agents handle file editing in very different ways: custom patch DSLs, SEARCH/REPLACE blocks, 9-strategy fuzzy matching cascades, LLM-based self-correction fallbacks. Each format works well for the model trained on it: Codex’s patches are trained into GPT, Claude Code’s edit tool into Claude. A general-purpose model like GLM-5 sees these formats cold, in the system prompt. When it produces a slightly malformed edit, the agent retries, tokens burn, and the clock runs out.
GLM-5 is open source (MIT license, weights on HuggingFace), so this is fixable. The agent scaffolding is the fine-tuning surface: generate trajectories through your own agent loop and fine-tune the model on them. Native models work so well in their native agents partly because they were trained on the exact interface they use in production. Closing the gap between 40% and 60% on Terminal-Bench might not need a better model, only one fine-tuned on the agent it runs in.
What this means
GLM-5 is not a bad model. Its best KIRO score of 40,943 is competitive with Gemini CLI. It knows the right algorithms, approaches problems sensibly, and through the right framework solves a decent range of coding tasks.
But a competitive best case is not reliable performance, and standard benchmarks don’t capture the difference. SWE-bench gives a pass rate on a curated set of tasks. Terminal-Bench without time limits shows what is possible under ideal conditions. Neither tells you that a third of your runs might produce garbage, or that the model will run out of time on tasks where competitors finish in minutes. Zhipu AI’s 56-61% and my 40% are both real numbers: theirs under ideal conditions, mine under the conditions a subscription user has.
When I pick a model for real work, I don’t care about the best score on the best day. I care about the worst score on a normal day. By that measure, GLM-5 still has a way to go.
Raw data
Task definitions, verifiers, trajectories and raw results are in CLIArena. The benchmark runs on Harbor.

KIRO scores, all trials
Claude Code + GLM-5 (the Go condition was cancelled, leaving 27 completed trials across both agents):
| Condition | Trial 1 | Trial 2 | Trial 3 |
|---|---|---|---|
| Base | 55,664 | invalid | 56,479 |
| + keep improving | invalid | 50,666 | 59,673 |
| + target hint | invalid | 68,571 | 58,045 |
| Go | cancelled | cancelled | cancelled |
| 60min Python | invalid | 40,943 | 56,175 |
Mistral Vibe + GLM-5:
| Condition | Trial 1 | Trial 2 | Trial 3 |
|---|---|---|---|
| Base | 51,961 | 55,765 | invalid |
| + keep improving | 53,014 | 48,243 | invalid |
| + target hint | 47,652 | 46,764 | 82,434 |
| Go | 296,978 | invalid | 97,539 |
| 60min Python | 147,418 | 57,260 | invalid |
Disclosure: I have no relationship with Zhipu AI, Anthropic, OpenAI, Google or Mistral. I pay for my subscriptions like everyone else. The benchmark tasks were novel and unpublished before this article. Take this as one data point from one person running one set of tests.