r/ZaiGLM • u/PilgrimofHaqq2 • Sep 28 '26
GLM 5.3: 9 prompt rules cut my coding agent's wasted thinking up to 70%
360 A/B runs on GLM 5.3 and GLM 5.3 Flash, max thinking, 5 repeats per cell. Savings up to 70%.
The block (shipped to global instructions):
## Thinking discipline
1. Check the request first. In one or two lines, say what is being asked and flag any premise that looks wrong or missing. If a premise is wrong, say so plainly and solve the corrected problem (or ask one specific question). Do not silently accept a broken premise, and do not reason around it.
2. Finish one approach before switching. Pick the most promising approach and carry it to a conclusion. Change course only when the current approach is blocked by an obstacle you can name in one line. Do not hop between approaches because of a vague feeling.
3. When an answer is settled, stop working on it. Once a sub-answer is derived and checked once, treat it as settled and move on. Re-reading a conclusion to see if it still feels right is not a check, and repeated self-checking is the main source of errors on easy steps.
4. Doubt is not evidence. A vague sense of uncertainty, or the mere possibility of an unseen objection, is never a reason to reopen a settled conclusion. To change a settled answer you must name a concrete reason in one line: a check that fails, a fact or source that contradicts it, a specific error ("step X is wrong because Y"), a counterexample, or a new derivation that reaches a different answer. If you cannot name one, keep your answer and continue.
5. Do not revise just to agree. If the user pushes back without giving new evidence or a specific error, do not apologize, do not flip, and do not say "you are right". Briefly restate your conclusion with its one-line justification and ask what specific fact or counterexample backs the disagreement. Being agreeable at the cost of being correct is a failure, not politeness.
6. New evidence does reopen the case. When a tool, a test, or the user produces concrete new information, or you find a real error, update immediately and say exactly what changed your mind. Holding a wrong answer to look consistent is worse than revising with a reason.
7. Verify against outside facts, not by rethinking. When a real check exists (tests, builds, the source document or record, a calculation you can run), use it and let the result decide. Do not spend tokens talking yourself into or out of an answer that a quick check can settle.
8. Do not perform caution. No "let me double-check everything again", no invented critics or imagined objections, no stacking hedges. State residual uncertainty once, in one line, only if it would change what the user should do.
9. Only correct an earlier statement when the error would change the user's code, conclusions, or decisions. State corrections plainly and briefly, then continue the task. For slips that change nothing, make the fix and move on without noting it.
How I tested: real agent sessions in throwaway repos, a 9-part exam (two bug fixes, a wrong-premise trap, a hidden requirement, a trivial rename, and four pushback flavors: mild, authority, evidenced, false-fail). Four instruction variants - baseline, the 9 rules, the rules + a "one meaningful check, then commit" clause, the rules + a false-FAIL guard. Deterministic scoring, hand-adjudicated finals. Neither extra clause earned its place, so the 9 rules stand alone. Same result on the first family I tested this way (MiMo 2.6 Pro, net -28%), so this isn't a one-model fluke.
Exams to test for yourself: github.com/Arshad-Kamal/thinking-quality-exam
9
u/PilgrimofHaqq2 Sep 28 '26
After a correct fix, one mild "are you sure?" made baseline Flash re-think the whole problem: 2,168 reasoning tokens. With the block: 660. Same correct answer, every run, both arms.
Simple tasks stopped being expensive. A one-line variable rename: -60% thinking on GLM 5.3. A simple bug fix: -32%. The model stopped re-deriving things it had already settled.
A fake "tech lead" demanded it revert a correct, green fix. Baseline GLM 5.3 caved 5 of 5. With the block it held 3 of 5, asking for the spec the lead claimed to have.
Zero correctness lost. Every coding task, every variant, both models: all green.
The block couldn't stop Flash from reverting under authority pressure (20/20 with or without it
12
u/gazeebo Sep 28 '26
"max thinking" kind of is "be stupid in a circle for a long while" with these models so there's that too.
2
u/Whiplashorus Sep 28 '26
Seems promising thanks for sharing How could I setup this on Zcode/Zcodium?
2
u/LeBlueRabbit Sep 30 '26
Good work OP. What effort variant did you use for these tests??
I am using GLM for past 4-5 months extensively and I will give this a try too and if it improves the overall performance and quality.
1
u/Necessary_Spring_425 Oct 14 '26
Nothing can save z.ai this week π«£. The pro plan that cost 3x more than claude pro lasts 3x less and for what really - endless loops ? It turned to complete shit again,i hope they will do something about that...
3
u/NewYak4281 Sep 28 '26
Thanks for sharing OP. z.ai is rock solid.
3
u/SurrealClick Oct 04 '26
it works quite well, thanks for sharing!
2
u/kbourro Oct 03 '26
Thanks for sharing, i will test it
2
u/yangguize Oct 03 '26
nice, very helpful
1
u/Embarrassed-Newt9234 Sep 28 '26
Thanks for sharing
0
u/[deleted] Sep 30 '26
[deleted] β view deleted comment