AI

ZCode: Zhipus GLM-5.2 challenges Claude Code

3 min read
Abstract geometric illustration: two stylized code windows side by side, connected by a thin balance line, symbolizing the close price-performance comparison of two coding tools Image generated with GPT Image 2
Abstract geometric illustration: two stylized code windows side by side, connected by a thin balance line, symbolizing the close price-performance comparison of two coding tools

TL;DR Too Long; Didn’t read

Zhipu AI (Z.ai) launches ZCode, a development environment specifically tailored to the affordable model GLM-5.2, positioning it as an alternative to Claude Code and OpenAI Codex, with discounts for new and existing customers until the end of July 2026. A practical test published by Snowflake CEO Sridhar Ramaswamy with 103 programming tasks shows that GLM-5.2 is almost on par with Claude Opus 4.7 in three attempts (66 to 67 percent of tasks solved), but falls behind significantly in the first attempt (47.6 to 53.7 percent) and consumes almost twice as many tokens. According to Z.ai's own benchmarks, GLM-5.2 is just behind Anthropic's Opus 4.8 on the long-term coding benchmark FrontierSWE.

Key takeaways

  • Zhipu AI (Z.ai) positions its affordable model GLM-5.2 as a competitor to Claude Code and OpenAI Codex with the development environment ZCode.
  • ZCode combines tasks, file accesses, terminal outputs, and Git status in a continuous agent workflow with a 1-million-token context window.
  • New customers receive five days of free access with up to 5 million tokens daily, while existing customers receive about 1.5 times the quota until the end of July 2026.
  • A practical test by Snowflake CEO Sridhar Ramaswamy shows that in three attempts, GLM-5.2 and Opus 4.7 solve almost the same number of the 103 tested programming tasks (66 to 67 percent).
  • In the first attempt, Opus was clearly ahead with 53.7 to 47.6 percent, and GLM-5.2 consumed almost twice as many tokens as Opus for comparable tasks.
  • According to Z.ai's own benchmarks, GLM-5.2 is only slightly behind Anthropic's Opus 4.8 on the long-term coding benchmark FrontierSWE.

The Chinese AI company Zhipu AI (Z.ai) is now positioning its affordable model GLM-5.2 as a competitor to Claude Code and OpenAI Codex in the field of agentic programming tools. With ZCode, the company is launching its own development environment specifically tailored to GLM-5.2.

What ZCode can do

According to the official ZCode documentation, it is an “Agentic Development Environment” (ADE) that aims to translate GLM-5.2’s capabilities for long contexts and multi-step programming tasks into a stable desktop application. A central ZCode agent keeps goals, files, terminal outputs, browser context, execution modes, and the Git status together throughout the entire task. Users can program, debug, test, and review changes with the agent using natural language, supported by a context window of one million tokens. In addition to the desktop application, the agent can also be controlled via a mobile remote and through bot integrations in Feishu and WeChat, allowing ongoing tasks to be tracked on the go.

The promotional offers for new and existing users

According to Z.ai, new customers can test ZCode for free for five days with up to 3 million tokens daily for GLM-5.2 and an additional 2 million tokens for the faster GLM-5-Turbo. Existing subscribers of the GLM Coding Plan will receive an effectively about 1.5 times higher usage quota until July 31, 2026, as Z.ai reduces costs during peak hours from 2 PM to 6 PM from triple to double billing and outside peak hours from single to 0.67 times billing.

How good is GLM-5.2 really? A practical comparison by Snowflake

GLM-5.2 had already been noted as a powerful but significantly cheaper model before the ZCode launch. According to Z.ai’s own technical blog post, the model is only one percentage point behind Anthropic’s Opus 4.8 on the long-term programming benchmark FrontierSWE and surpasses OpenAI’s GPT-5.5 and Opus 4.7 by several percentage points each.

An independent practical test was provided by Snowflake CEO Sridhar Ramaswamy in a widely noted X post: The internal “Coco” team of the data company had GLM-5.2 and Claude Opus 4.7 compete on 103 programming tasks from the so-called dbt-bench, with each task repeated three times. In three attempts per task, both models were nearly equal with 66 and 67 percent of tasks solved, as OfficeChai reports in its evaluation of the post. However, in the first attempt, Opus had a clearer lead: 53.7 percent correct solutions compared to 47.6 percent for GLM-5.2.

The efficiency difference between the two models was significant: GLM-5.2 required an average of 99 conversation rounds per task compared to 80 for Opus and incurred nearly double the consumption with 860 million billed tokens compared to Opus’s 439 million. Snowflake’s team attributed this to more conversation rounds, more granular API calls, and less reuse of cached prompt content in GLM-5.2. The widespread assumption that GLM checks its own work more thoroughly was only partially confirmed by the evaluations: The model conducts checks more individually and granularly rather than necessarily more comprehensively than Opus.

Classification

ZCode fits into a pattern that has been observable since the release of GLM-5.2 in June 2026: Chinese models are increasingly approaching the performance of Western top models in complex programming tasks while remaining significantly cheaper – although, as Snowflake’s practical test shows, with drawbacks in reliability on the first attempt and a sometimes significantly higher token consumption that eats into part of the nominal price advantage. Whether ZCode can establish itself as a standalone alternative to Claude Code and Codex will therefore likely depend less on pure model benchmarks and more on how well this additional consumption translates into actual total costs for development teams in practice.

Frequently asked questions

What is ZCode?

ZCode is an 'Agentic Development Environment' developed by Zhipu AI (Z.ai) specifically tailored to the model GLM-5.2. An agent keeps tasks, files, terminal outputs, and Git status together during complex programming tasks and can be controlled via natural language.

What offers does Z.ai make for ZCode new customers?

New customers receive five days of free access with up to 5 million tokens daily. Existing subscribers of the GLM Coding Plan receive an effectively about 1.5 times higher usage quota until July 31, 2026, due to reduced billing factors.

How does GLM-5.2 compare to Claude Opus 4.7?

According to an X post by Snowflake CEO Sridhar Ramaswamy, both models solved almost the same number of the 103 tested programming tasks (66 to 67 percent) in three attempts per task. In the first attempt, Opus was clearly ahead with 53.7 to 47.6 percent.

Why does GLM-5.2 consume more tokens than Opus, even though it is cheaper?

GLM-5.2 required an average of 99 conversation rounds per task compared to 80 for Opus and consumed 860 million tokens, almost twice as much as Opus with 439 million – part of the nominal price advantage is thus lost again.

How does GLM-5.2 perform on long-term coding benchmarks?

According to Z.ai's own technical blog post, GLM-5.2 is only one percentage point behind Opus 4.8 on the long-term benchmark FrontierSWE and surpasses GPT-5.5 and Opus 4.7 by several percentage points.

#AI

← Back to the blog