{"slug": "how-i-ai-glm-5-2-review-how-gusto-built-a-new-product-line-with-claude-code", "title": "🎙️ How I AI: GLM-5.2 review & How Gusto built a new product line with Claude Code", "summary": "Claire tests GLM-5.2, an open-weight model from Z.ai, in her ChatPRD codebase, finding it production-grade and capable of replacing Opus for some coding workflows. The model benchmarks near Claude Opus 4.8 and above GPT-5.5 on SWE Bench Pro, with a million-token context window, and costs $3.36 for 6 million tokens. Claire recommends using it in rotation but not as the sole model due to React-related friction.", "body_md": "# 🎙️ How I AI: GLM-5.2 review & How Gusto built a new product line with Claude Code\n\n### Your weekly listens from How I AI, part of the Lenny’s Podcast Network\n\n### GLM-5.2: why I’m replacing Opus in Claude Code with this new model\n\nListen now on [YouTube](https://youtu.be/ZoBfQZ5utQk) • [Spotify](https://open.spotify.com/episode/4fnfOEDbeM7X0DpYdLkJU0) • [Apple Podcasts](https://podcasts.apple.com/us/podcast/glm-5-2-why-im-replacing-opus-in-claude-code-with-this/id1809663079?i=1000774026946)\n\nBrought to you by:\n\n—Radically different banking, loved by over 300K entrepreneurs[Mercury]\n\nClaire tests GLM-5.2, the new open-weight model from Z.ai, inside her actual ChatPRD codebase. She runs it through codebase audits, UI redesigns, and a 45-minute autonomous bug-hunting task in Cursor and Claude Code, and breaks down where it surprised her, where it struggled, and why it may be good enough to replace Opus for some coding workflows.\n\n#### Biggest takeaways:\n\n**Open-weight models are no longer a hobbyist curiosity—they are production-grade alternatives.** GLM-5.2, built by Beijing-based Z.ai, benchmarks near Claude Opus 4.8 and above GPT-5.5 on SWE Bench Pro, with a million-token context window and full support for reasoning mode, function calling, structured output, and context caching. The decision is no longer about capability ceilings but, instead, about cost, control, and vendor dependency. Claire’s live testing confirmed it: this is not a toy.**Self-hosting changes the vendor power dynamic in ways that matter at scale.** Open-weight means the trained model weights are publicly available, letting teams run inference on their own hardware, fine-tune on proprietary data, and route around any single provider’s API terms. When frontier labs change pricing or policy, teams using open-weight models can switch inference providers without touching a line of application code. The key: you’re not locked in.**Getting GLM-5.2 running in Cursor took 30 minutes, and Claire documented the undocumented part.** Route your API key through Open Router, override the OpenAI base URL in Cursor’s settings to`openrouter.ai/api/v1/cursor`\n\n(the`/cursor`\n\nsuffix isn’t documented anywhere), and add`z-ai/glm-5.2`\n\nas a custom model. Claude Code requires two environment variable changes and one edit to`claude/settings.json`\n\n. Total time: under an hour, once you have the exact strings.**The 45-minute autonomous task revealed both the ceiling and the floor.** Claire gave GLM-5.2 a single prompt inside Claude Code: pull the last 72 hours of Sentry errors and Vercel logs, then build a prioritized bug-fix plan. Over 45 minutes, it ran MCP tool calls, authenticated into external services, and produced a dark-mode engineering canvas with 20 Sentry errors, five Vercel log signals, and 14 planned fixes, including two P0s Claire hadn’t spotted through normal monitoring. The model surfaced signal-to-noise issues in their error pipeline that weren’t showing up elsewhere.**It hit a wall with React, then recovered.** During the long-running task, GLM-5.2 struggled with TypeScript compilation errors before eventually producing clean React output. Claire’s read: HTML and CSS generation is reliable; React under agentic, multi-step pressure is shakier. For teams whose codebase is primarily React (she estimates it covers 98% of her own use), this is the friction point to test before committing the model to critical paths.**The cost math is striking: $3.36 for 6 million tokens, including the full 45-minute agentic session.** A 72% cache rate helped, but even at full price, open-weight inference through Open Router sits well below Opus or GPT-5.5 rates for equivalent coding capability. For agents accumulating long context windows over extended sessions (the exact workload where frontier model costs compound fastest), open-weight alternatives offer a structurally different cost curve.**Claire’s recommendation: put GLM-5.2 in rotation, not in the spotlight.** She’s keeping it in Cursor for frontend and design work, and in Claude Code for long-running agentic tasks, alongside closed frontier models rather than as a replacement. The constraint she’s watching: can it handle her React-heavy workload at the same consistency she gets from Composer? If it can, the cost-and-control argument gets much harder to ignore.\n\n#### Blog and detailed workflow walkthroughs from this episode:\n\nGLM 5.2: A Live Review of an Opus-Level Open-Weights Model: [https://www.chatprd.ai/how-i-ai/glm-5-2-review-open-weights-model](https://www.chatprd.ai/how-i-ai/glm-5-2-review-open-weights-model)\n\n↳ How to Deploy an Autonomous AI Agent for Bug Triage and Prioritization: [https://www.chatprd.ai/how-i-ai/workflows/how-to-deploy-an-autonomous-ai-agent-for-bug-triage-and-prioritization](https://www.chatprd.ai/how-i-ai/workflows/how-to-deploy-an-autonomous-ai-agent-for-bug-triage-and-prioritization)\n\n↳ How to Perform an AI-Powered Codebase Audit and Architecture Visualization: [https://www.chatprd.ai/how-i-ai/workflows/how-to-perform-an-ai-powered-codebase-audit-and-architecture-visualization](https://www.chatprd.ai/how-i-ai/workflows/how-to-perform-an-ai-powered-codebase-audit-and-architecture-visualization)\n\n↳ How to Configure the Open-Weight GLM 5.2 Model in Cursor: [https://www.chatprd.ai/how-i-ai/workflows/how-to-configure-the-open-weight-glm-5-2-model-in-cursor](https://www.chatprd.ai/how-i-ai/workflows/how-to-configure-the-open-weight-glm-5-2-model-in-cursor)\n\n### No Figma. No Jira. No docs. How Gusto built a new product line with Claude Code | Eddie Kim (CTO)\n\nListen now on [YouTube](https://youtu.be/5FKBkUCaLa8) • [Spotify](https://open.spotify.com/episode/74S7FEy0h9TfRuUpfiNbBP) • [Apple Podcasts](https://podcasts.apple.com/us/podcast/no-figma-no-jira-no-docs-how-gusto-built-a-new/id1809663079?i=1000774685029)\n\nBrought to you by:\n\n—Prototypes that look like your product[Magic Patterns]\n\n—Prioritize with insights, build with confidence[Jira Product Discovery]\n\n**Eddie Kim** is the co-founder and CTO of Gusto. In this episode, he shares how a five-person team used Claude Code, a permanent Zoom room, and almost none of the usual product process—no PM, no Figma, no Jira, no long specs—to build Gusto Cofounder from scratch in just 10 weeks.\n\n#### Biggest takeaways:\n\n**A five-person team with no process can outship a large team with full process, if AI handles the engineering.** Eddie’s product launched at Gusto’s tier-one level after 10 weeks, starting from zero code. The constraint wasn’t a liability—it was the design. When AI does the building, coordination overhead doesn’t scale the engineering; it just slows it down. The key: strip process to what the team actually needs, then let AI fill the gap.**“Zero code to tier-one launch” is now a viable founding path.** The team reached a production milestone at Gusto without a line of pre-existing code. This flips the assumption that early teams spend months on infrastructure before shipping anything real. With Claude Code as the primary builder, the initial sprint becomes about direction and judgment, not typing. It compresses the time between idea validation and real user contact from months to weeks.**No meetings, no Jira, no text threads. It shipped anyway.** The team had no standup cadence, no ticket system, no async thread to resolve blockers. What replaced all of that: shared context held inside the AI loop. When the model carries state and the team is small and aligned, human coordination overhead becomes optional.**The technical stack for a production AI agent is shockingly minimal.** The entire agent loop ran on Cloudflare Workers with the Vercel AI SDK. Nothing else. No proprietary orchestration layer, no third-party agent framework. Everything else was built in-house. Teams often over-architect before they’ve proven anything; Eddie’s stack is evidence that infrastructure minimalism accelerates the path to learning what the agent actually needs to do.**Building agents is not as complicated as the community makes it sound.** An agent is an AI SDK running somewhere in the cloud, able to look up files and call tools. That’s the full definition. The complexity people fear (state management, orchestration, reliability) is solvable with the same judgment calls any backend system requires. Eddie’s team shipped one at production quality in 10 weeks without specialist AI infrastructure experience.**The “permanent Zoom” model of AI development changes how teams think about context.** Claude Code running in a persistent loop means the model has continuous access to the codebase’s current state. That’s closer to having an engineer who never closes their laptop than a chat interface you query on demand. For small teams, this is the equivalent of a senior engineer who is always available, always current, and never needs onboarding after a break.**The lesson for founding teams isn’t “use Claude Code.” It’s “design your process for AI as a team member.”** Most early teams graft AI tools onto a human-scaled workflow: standups, tickets, PRs reviewed by three people. Eddie’s team treated the AI as a primary contributor from day one and built their coordination model around that assumption. The result: a workflow that gets faster as the AI improves, not one that merely offloads tasks to it.\n\n#### Blog and detailed workflow walkthroughs from this episode:\n\nHow Gusto Built a New Product Line in 10 Weeks with Claude Code, No Jira, and No Docs: [https://www.chatprd.ai/how-i-ai/how-gusto-built-a-new-product-line-in-10-weeks-with-claude-code-no-jira-and-no-docs](https://www.chatprd.ai/how-i-ai/how-gusto-built-a-new-product-line-in-10-weeks-with-claude-code-no-jira-and-no-docs)\n\n↳ How to Build a New AI Product in 10 Weeks Using the ‘No-Process’ Method: [https://www.chatprd.ai/how-i-ai/workflows/how-to-build-a-new-ai-product-in-10-weeks-using-the-no-process-method](https://www.chatprd.ai/how-i-ai/workflows/how-to-build-a-new-ai-product-in-10-weeks-using-the-no-process-method)\n\n↳ How to Fix Bugs Using an AI-Powered Test-Driven Development (TDD) Workflow: [https://www.chatprd.ai/how-i-ai/workflows/how-to-fix-bugs-using-an-ai-powered-test-driven-development-tdd-workflow](https://www.chatprd.ai/how-i-ai/workflows/how-to-fix-bugs-using-an-ai-powered-test-driven-development-tdd-workflow)\n\nIf you’re enjoying these episodes, reply and let me know what you’d love to learn more about: AI workflows, hiring, growth, product strategy—anything.\n\nCatch you next week,\n\nLenny\n\n*P.S. Want every new episode delivered the moment it drops? Hit “Follow” on your favorite podcast app.*", "url": "https://wpnews.pro/news/how-i-ai-glm-5-2-review-how-gusto-built-a-new-product-line-with-claude-code", "canonical_source": "https://www.lennysnewsletter.com/p/how-i-ai-glm-52-review-and-how-gusto", "published_at": "2026-06-29 15:02:35+00:00", "updated_at": "2026-06-29 15:32:55.548473+00:00", "lang": "en", "topics": ["large-language-models", "ai-tools", "ai-products", "ai-research", "developer-tools"], "entities": ["Z.ai", "Claude Code", "Cursor", "Open Router", "GLM-5.2", "Claude Opus", "GPT-5.5", "Mercury"], "alternates": {"html": "https://wpnews.pro/news/how-i-ai-glm-5-2-review-how-gusto-built-a-new-product-line-with-claude-code", "markdown": "https://wpnews.pro/news/how-i-ai-glm-5-2-review-how-gusto-built-a-new-product-line-with-claude-code.md", "text": "https://wpnews.pro/news/how-i-ai-glm-5-2-review-how-gusto-built-a-new-product-line-with-claude-code.txt", "jsonld": "https://wpnews.pro/news/how-i-ai-glm-5-2-review-how-gusto-built-a-new-product-line-with-claude-code.jsonld"}}