๐ŸŽ™๏ธ How I AI: GLM-5.2 review & How Gusto built a new product line with Claude Code

ยท Source: Lenny's Newsletter ยท Field: Technology & Digital โ€” Artificial Intelligence & Machine Learning, Software Development & Engineering, Robotics & Autonomous Systems ยท Depth: Intermediate, extended

Summary

GLM-5.2, an open-weight model from Beijing-based Z.ai, demonstrates production-grade capabilities, benchmarking near Claude Opus 4.8 and above GPT-5.5 on SWE Bench Pro. It features a million-token context window, reasoning mode, function calling, structured output, and context caching. Live testing in a ChatPRD codebase involved audits, UI redesigns, and a 45-minute autonomous bug-hunting task, costing \$3.36 for 6 million tokens. Concurrently, Gusto's CTO, Eddie Kim, detailed how a five-person team built the "Gusto Cofounder" product line in just 10 weeks using Claude Code, bypassing traditional processes like Figma or Jira. This approach highlights how AI, acting as a primary contributor, can accelerate product development from zero code to a tier-one launch, significantly reducing coordination overhead and infrastructure complexity.

Key takeaway

For AI Engineers and ML Directors evaluating model choices, open-weight models like GLM-5.2 present a compelling alternative to expensive frontier models. You should integrate GLM-5.2 into your development rotation for tasks like frontend work or autonomous bug triage, leveraging its competitive performance and significantly lower cost of \$3.36 for 6 million tokens. This strategy reduces vendor lock-in and optimizes operational expenses, but test its consistency with React-heavy workloads.

Key insights

Open-weight models like GLM-5.2 offer production-grade coding capabilities at significantly lower costs, challenging proprietary alternatives.

Principles

Method

Configure GLM-5.2 in Cursor by routing an OpenRouter API key, overriding the OpenAI base URL to "openrouter.ai/api/v1/cursor", and adding "z-ai/glm-5.2" as a custom model.

In practice

Topics

Best for: NLP Engineer, CTO, VP of Engineering/Data, AI Engineer, Machine Learning Engineer, Director of AI/ML

Related on AIssential

Open in AIssential โ†’

Editorial summary, takeaway, and curation by AIssential. Original article published by Lenny's Newsletter.