GLM-5.4 + GLM-5.3-Flash Workflow: Cut Coding Plan Credits by 27%
Published · 6 min read
Zhipu ships an official pairing guide for its own models: GLM-5.4 makes the plan and reviews the result, GLM-5.3-Flash writes the code in between. The guide comes with working Claude Code settings. The mix costs about 27 percent less per task at standard rates and about 40 percent less during the Flash promotion that runs to 24 December. When a step fails, it escalates to GLM-5.4 alone and the rest of the plan stays on Flash.
In this article
Most model comparisons ask which single model to pick. Zhipu's coding plan docs take a different position: use two. A short page in the learning resources, the model pairing guide, assigns GLM-5.4 to planning and review and hands everything in between to GLM-5.3-Flash. It is the least glamorous page in the docs and the most useful one for anyone paying points per task, because it says exactly where the expensive reasoning belongs.
What each model takes
The guide runs one example end to end: add filter conditions to a list page. The opening question is a design tradeoff, filter on the client or on the server, with pagination and an older endpoint in the picture. That question goes to GLM-5.4, which weighs the options and writes the scope with acceptance cases attached. Once the approach is fixed, the component edits, the parameter wiring and the test runs are volume work, and they go to GLM-5.3-Flash. The finished diff goes back to GLM-5.4, which reads the code against the plan instead of against the vibes.
| Stage | Model | What happens there | Why this model |
|---|---|---|---|
| Plan | GLM-5.4 | Compare approaches, check edge cases, write scope and acceptance cases | The tradeoff call compounds into everything after it |
| Build | GLM-5.3-Flash | Edit components, wire params, add and run tests | Volume work, billed at a fraction of the flagship's coefficients |
| Review | GLM-5.4 | Read the final diff against the plan, rank findings by impact | Catches what the plan implied but the diff missed |
Both models share the 1M context window and the same tool conventions, so the plan the planner writes is the plan the executor reads with no translation step. The review stage is what keeps a cheap executor honest.
Three setups in Claude Code
The guide ships working configuration for Claude Code, in three shapes.
One. The opusplan switch
Map the planner onto Opus and the executor onto Sonnet, then let Claude Code's existing opusplan mode do the routing:
{
"env": {
"ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.4",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.3-flash"
}
}
Save that to ~/.claude/settings.json, run /model opusplan, and the split is live. In Plan Mode the model is GLM-5.4. Approve the plan, leave Plan Mode, and edits run on GLM-5.3-Flash. No scripts, no hooks.
Two. One planner, many Flash workers
/model glm-5.4 keeps GLM-5.4 in the main thread while Flash workers investigate in parallel. Define the worker once:
---
name: flash-worker
description: Investigates call sites, interfaces and existing
tests for a scoped question, returns paths you can verify.
model: glm-5.3-flash
tools: Read, Grep, Glob
---
Search the repo within the given scope. List file paths,
function names and the tests that already cover them.
Flag anything the main session should decide.
Save it as .claude/agents/flash-worker.md. Send scoped research to the worker, keep judgment calls in the main thread, and watch both from /tasks. The guide adds that a second Flash worker with edit and run tools can carry the test workload when it gets heavy.
Three. Flash writes, GLM-5.4 judges the diff
Run the build on /model glm-5.3-flash, stage everything, then pipe the staged diff to the flagship:
git diff --cached | claude --model glm-5.4 -p "Review the staged
changes. Focus on pagination after filtering, the cleared-filter
case and compatibility with the old endpoint. Rank findings by
impact and name the file and trigger for each."
That command is the whole method in one line: the executor never reviews its own work.
The same split in other coding agents
Outside Claude Code the guide drops the specifics and keeps the pattern. Three habits transfer to any agent with a model picker.
- Switch by phase, not by mood. GLM-5.4 while the approach is being shaped, GLM-5.3-Flash while code is being written, back to GLM-5.4 for the review. Manual, and it costs two clicks per phase.
- Bind the roles where the tool allows it. Agents with custom roles or subagents take a planner on GLM-5.4 and workers on GLM-5.3-Flash, and the routing stops depending on memory. Cline's custom model codes slot in here the same way.
- Hand off in writing. When planner and executor live in different sessions, the executor receives the goal, the confirmed plan and the acceptance cases, and the review session receives the actual diff plus test output. Verbal summaries do not count.
What the mix costs in points
The Coding Plan bills points and the formula is public: input tokens times a coefficient, plus cached input times its coefficient, plus output times its coefficient, all divided by 10,000. GLM-5.4 carries 4.6, 1.1 and 16. GLM-5.3-Flash carries 2.3, 0.56 and 8, and from 24 November to 24 December 2026 every Flash coefficient is halved while the promotion runs.
| Model | Input | Cached input | Output |
|---|---|---|---|
| GLM-5.4 | 4.6 | 1.1 | 16 |
| GLM-5.3-Flash | 2.3 | 0.56 | 8 |
| GLM-5.3-Flash, promo rates | 1.15 | 0.28 | 4 |
Push one representative feature task through the formula. Planning reads 60K input tokens at a 30 percent cache hit and writes 8K output. Building reads 150K at 50 percent cached and writes 12K. Reviewing reads 40K at 50 percent cached and writes 5K. Run all three stages on GLM-5.4 and the task draws about 115 points. Split it, and the planning and review bill stays while the build stage drops from 62 points to 31 at standard Flash rates, 15 during the promotion. Task total: 85 points standard, 69 promo.
| Stage | Model | Tokens | All GLM-5.4 | Mix, standard | Mix, promo |
|---|---|---|---|---|---|
| Plan | GLM-5.4 | 60K in, 30% cached, 8K out | 34.1 | 34.1 | 34.1 |
| Build | GLM-5.4 or Flash | 150K in, 50% cached, 12K out | 62.0 | 31.1 | 15.5 |
| Review | GLM-5.4 | 40K in, 50% cached, 5K out | 19.4 | 19.4 | 19.4 |
| Total | 115.5 | 84.6 | 69.0 |
A Pro week carries 60,000 points. At 115 a task that is roughly 520 features; at 69, roughly 870. Same subscription, about two thirds more output. Off-peak hours halve the points for every model, which moves both totals and leaves the gap standing.
GLM-5.4 pay-as-you-go access has not opened yet, so this is plan math, not retail pricing. Today the flagship stages run on Coding Plan points or inside agents that bundle GLM-5.4.
When a Flash step fails
Most steps in a well-scoped plan pass their checks on the first attempt. The fallback path exists for the ones that do not, and it has three moves.
Retry once on Flash with the failure output pasted into the prompt. Most Flash failures are mechanical: a missing parameter, an endpoint nobody mocked. If the retry fails too, stop buying attempts and hand that single step to GLM-5.4 with the failing output, the acceptance case it violates and the files it touched. GLM-5.4 rewrites the step or amends the plan that produced it, and every remaining step stays on Flash.
Escalate steps, never tasks. One escalated step still lands far below the all-flagship bill; a whole task handed over erases the saving.
Long runs in ZCode Agent
The pairing guide covers setup. Run behavior is the other half, and the ZCode agent docs add first-hand detail: ZCode Agent ships co-tuned with the GLM-5.4 family, with dedicated work on long-context retention and multi-turn tool-call stability, the two things that usually decay first in a long agentic run. Files, terminal output, browser state and git history stay inside one task for the whole session.
Reasoning effort is a picker: Low, High or Max, with Max out of the box. Leave it there for planning and review. Execution modes line up with the pipeline: Plan mode produces the numbered plan, Ask before changes gates each edit, and side conversations give Flash investigations a context of their own instead of polluting the main thread.
Where the mix is not worth it
- Single-file edits, renames and quick fixes. Planning overhead outweighs the saving, and plain Flash is the right tool.
- Throwaway prototypes. If the code will be discarded this week, pay for execution only.
- Tasks you have already planned yourself. GLM-5.4 shrinks to a review pass, and the mix converges toward plain Flash work with a check at the end.
The line the official guide draws holds: the pairing earns its keep exactly when a task contains a real decision.
GLM-5.3-Flash and GLM-5.3 are served on the same OpenAI-compatible endpoint at SiAPI.ai with one API key, so the executor lane and the escalation lane share a single bill. Current per-token rates for both are on the pricing page.
FAQ
Do I need Claude Code to run this pairing?
No. Claude Code gets the cleanest setup because the official guide ships working settings for it, but the pattern is one model per phase. Any agent with a model picker or custom roles can put GLM-5.4 on planning and review and GLM-5.3-Flash on execution.
What does the Flash promotion change?
From 24 November to 24 December 2026 the Flash credit coefficients are halved, so the build stage draws half the points. In the worked example the mixed task drops from 85 to 69 points, and returns to 85 when the promotion ends.
Why not let GLM-5.3-Flash plan as well?
A wrong call in the plan gets executed faithfully by everything after it, so planning is where mistakes compound. Flash's published strength is agentic volume work, and the flagship's edge concentrates in exactly the reasoning a plan needs. The official split puts the expensive model at the two ends.