GLM-5.2: Built for Long-Horizon Tasks
AI-generated summary of reporting by Huggingface Blog. Read the original for the full story.
Why it matters
Z.ai's flagship open-source model GLM-5.2 brings 1M-token context and near-frontier agentic coding performance, giving engineers a usable MIT-licensed alternative to closed frontier models.
A Chinese AI company called Z.ai has released GLM-5.2, a free-to-use AI model anyone can download. It is built for 'long-horizon' tasks, meaning it can handle the huge amounts of text produced when AI agents work for hours on big software projects. On coding tests it beats other open models by wide margins, such as 81.0 versus 63.5 on one benchmark, and nearly matches expensive closed models like Claude Opus 4.8. It is available now through Z.ai's paid plans and on Hugging Face.
Z.ai's GLM-5.2 is its strongest open-source coding model yet, trailing Claude Opus 4.8 by just 1% on FrontierSWE while beating GPT-5.5 on that benchmark. It is MIT-licensed with no usage restrictions, so teams can self-host without vendor lock-in. Coding Plan subscribers face quota multipliers of 3x at peak hours, though off-peak usage is billed at 1x until end of September. Companies relying on closed frontier APIs for coding agents face new competitive pressure.
GLM-5.2 extends context from 200K to 1M tokens using IndexShare, where one indexer serves every four sparse-attention layers, cutting per-token FLOPs 2.9x. Its MTP speculative-decoding layer raises acceptance length up to 20% by reusing topk indices to eliminate training-inference KV-cache discrepancy. Scores: Terminal-Bench 2.1 = 81.0 (vs GLM-5.1's 63.5, Opus 4.8 at 85.0), SWE-bench Pro = 62.1, trailing Opus 4.8 by 13% on SWE-Marathon. Training uses slime for agentic RL with critic-based PPO and an anti-reward-hacking detection module.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
GLM-5.2 GLM-5.1 Claude Opus 4.8 GPT-5.5 Gemini 3.1 Pro Z.ai slime
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Self-hosted YouTube client that falls back to SABR when side doors close
A self-hosted YouTube client lets users watch videos without Google accounts, ads, or tracking, keeping data local and enabling shared libraries across devices.
datasette-charts 0.4a0
Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Speed improvements in speculative decoding mean agents can execute tool calls faster, reducing latency for real-time applications.