Overview
GLM-5.2 is a flagship model built for the era of long-horizon tasks. With truly usable 1M-token context, it has been tested to handle project-scale engineering context, delivering more stable long-task execution, more reliable adherence to engineering standards, and higher success rates in development scenarios. A single task can complete the full development workflow—from requirements to deployable products across multiple platforms.Positioning
Input Modalities
Output Modalitie
Context Length
Maximum Output Tokens
Capability
Thinking Mode
Streaming Output
Function Call
Context Caching
Structured Output
MCP
Usage
Project-Level Codebase Takeover: Let the Model Understand an Entire Project in One Go
Project-Level Codebase Takeover: Let the Model Understand an Entire Project in One Go
Please read the current project and output a system architecture map, core module responsibilities, key API contracts, major data flows, core call chains, potential technical debt, and the engineering constraints that must be followed in future refactoring.
Long-Horizon Refactoring: Let It Run a Real Engineering Task End to End
Long-Horizon Refactoring: Let It Run a Real Engineering Task End to End
/goal mode:Please complete the decoupling and refactoring of the current module without changing the business logic, API signatures, or runtime behavior. First provide the execution plan, impact scope, risk boundaries, and verification method. After completion, run the necessary tests and output the verification results.
Production-Grade Standards Stress Test: See Whether It Can Hold the Line on Hard Engineering Constraints
Production-Grade Standards Stress Test: See Whether It Can Hold the Line on Hard Engineering Constraints
CLAUDE.md or Agent.md. Then give it a real modification task:Please strictly follow the engineering standards of the current repository. Do not introduce new dependencies, do not modify API contracts, and do not commit changes proactively. After completing the modification, run the build, lint, and tests, then report the verification results and any uncovered risks.
Mobile On-Device Debugging Loop: From Code Implementation to Device Validation
Mobile On-Device Debugging Loop: From Code Implementation to Device Validation
Please implement a native Android client in Kotlin that connects to the existing server-side API and supports multi-session conversations, streaming messages, voice input, notifications, and reconnection after disconnection. After completion, install it on a real device using ADB, and debug it with logcat and screenshots.
WeChat Mini Program Development: Migrating from a Web App to a WeChat Mini Program
WeChat Mini Program Development: Migrating from a Web App to a WeChat Mini Program
wx.request wrapping and API-layer adaptation, authentication and login state maintenance (wx.login + custom login state), app/page/component lifecycle management, and exception handling in Mini Program development. It is suitable for testing whether the model can reorganize an existing Web page, official website, or backend capability into a runnable project that complies with Mini Program platform requirements.Recommended way to try it: Choose an existing Web project, specify the target technology stack — native Mini Program, Taro, or uni-app — and migrate all Web features into a Mini Program version:Please migrate all features of the current Web project into a WeChat Mini Program. Use the [native/Taro/uni-app] technology stack. First analyze the page structure, core user paths, backend API contracts, and platform constraints, including package size limits, domain allowlists, and HTTPS requirements. Then complete the implementation of pages, components, page navigation, and data flows. After completion, explain how to run the project, which APIs have been integrated, which features remain uncovered, and what can be optimized next.
Mini Game Development: From Gameplay Rules to a Playable Loop
Mini Game Development: From Gameplay Rules to a Playable Loop
Please develop a lightweight level-based mini game. First design the core gameplay loop, state machine, level structure, scoring rules, failure and settlement logic, then implement basic features including start, pause, resume, settlement, restart, and local save. After completion, explain the project structure, verified features, and possible next-step extensions.
Research Reproduction: From Paper and Data to a Runnable Engineering Project
Research Reproduction: From Paper and Data to a Runnable Engineering Project
Please reproduce the experiments based on this paper and dataset. Fill in implementation details not explicitly described in the paper. Use PyTorch to build the model architecture and loss functions, construct the data pipeline and training/inference scripts, and ensure the project runs successfully with consistency across multiple files. Autonomously identify and fix runtime issues, verify the paper’s metrics item by item until they are aligned, and explain the reproduction path, key changes, and any remaining gaps.
Code-to-Video Loop: From Natural-Language Ideas to a Demo-Ready Video
Code-to-Video Loop: From Natural-Language Ideas to a Demo-Ready Video
Please create a new composition in Remotion and add a map. Start from Los Angeles, zoom the camera out while keeping LA in focus. Then draw an animated route from Los Angeles to New York and have the camera follow the route. Add one more stop to the journey — this time, we are going to Paris.
Introducing GLM-5.2
1M Context: Making Long-Horizon Tasks Stable and Practical

Coding Capabilities Validated by Both Benchmarks and Developers
Before its official release, GLM-5.2 was made available in advance to GLM Coding Plan users. Developers reported improvements mainly in the following areas:- Stronger project-level context capacity, enabling an entire codebase to be placed within a single reasoning workflow;
- More stable long-horizon task execution, allowing complex tasks to progress continuously without easily going off track;
- More reliable adherence to production-grade engineering standards, helping enforce hard constraints in team development workflows;
- Stronger client-side and mobile engineering capabilities, going beyond app generation to support a complete on-device debugging loop.
Resources
- API Documentation: Learn how to call the API.
Quick Start
The following is a full sample code to help you onboard GLM-5.2 with ease.- cURL
- Official Python SDK
- Official Java SDK
- OpenAI Python SDK