Your privacy choices

Allow optional cookies for referral attribution, visit analytics, Google Analytics, and Google Ads purchase measurement.

Back to blog

GLM-5.4 General Coding Test: A Gear-Shifting Bicycle That Pedals Backward, and the Idler Wheel 20 Passing Checks Missed

GLM-5.4general codinginteractive demophysics simulationprompting

This article compiles public material and third-party tests. It is not a self-test by Guishu Intelligence. The bicycle case comes from a single-round test run on 2026-11-23 by JavaGuide, the author of a WeChat official account, and the decoding speed comes from Sulat's API tests. Neither is a Guishu Intelligence measurement, and neither is an industry-wide benchmark.

The short version: in this test, GLM-5.4 delivered a 35.9 KB HTML file in 27 minutes 46 seconds. State accumulation after shifting and backward pedaling were both computed correctly, and all 20 in-browser self-checks passed. But when the author opened the page and looked, the chain did not route around the rear derailleur idler wheels, and a further round of edits in ZCode was needed. For background, see 5 changes in GLM-5.4 compared with GLM-5.3.

What "general coding" means

Zhipu AI promotes "general coding". In JavaGuide's reading, it means work that used to be clicked together by hand in specialist software, such as interactive diagrams, technical videos and 3D models, now driven by code. An interactive physics demo fits this well: the output is a page you can drag in a browser, and correctness can be checked with numbers.

The task and the checkable conditions

The author asked for "a bicycle drawing that really transmits power":

  • The frame sits on a repair stand with both wheels off the ground.
  • Dragging the pedal forward one full turn makes the chain drive the rear wheel, while the front wheel stays still.
  • Front chainring of 42T, rear sprockets of 14T / 21T / 28T.
  • The prompt stated that after a reset, one full pedal turn should turn the rear wheel 3, 2 and 1.5 times on 14T, 21T and 28T respectively.

These numbers can be recomputed: 42 ÷ 14 = 3, 42 ÷ 21 = 2, 42 ÷ 28 = 1.5.

Delivery and in-browser self-checks

ZCode delivered a single 35.9 KB HTML file in 27 minutes 46 seconds. According to ZCode's self-test log:

  • With 21T selected, one crank turn gives two rear-wheel turns.
  • Pedal one turn on 21T (2 rear-wheel turns), then shift to 28T and pedal one turn (1.5 more), for a cumulative 3.50 turns.
  • Dragging only a quarter turn on 21T turns the rear wheel half a turn.
  • When pedaling backward, the pedal turn count winds back and the rear-wheel reading stays unchanged.
  • There were 20 self-checks in total, and all passed.

Why "shift, then pedal another turn" is the key case

If a program multiplies the current gear ratio by the total pedal turns, each of the 14T, 21T and 28T gears passes when tested alone. Chaining them breaks it: after two turns in total, the 28T calculation gives 3 turns, not 3.50. To pass, the page has to store the accumulated rear-wheel angle and add only an increment at the current ratio each time. This is a classic state-accumulation problem, and single-gear tests do not cover it.

The problem after all checks passed

The author opened the page and looked closely. Something near the rear wheel seemed off, and only after tracing the chain all the way around did he see the problem: in the earlier version, the chain ran diagonally from the rear sprocket straight back to the chainring and skipped the section that goes around the rear derailleur idlers. He made one more simple round of edits in ZCode. After the fix, the chain under the rear wheel passes around both idlers before returning to the chainring.

This shows that the tests checked readings, while the chain path is visual structure that numeric tests do not reach. If the prompt does not say "the chain must pass around the idler wheels," neither the model nor the tests have any reason to check it.

How to write a verifiable prompt

  1. Give numbers that can be recomputed. State tooth counts and expected turns so both the model and you can check them.
  2. Write test cases where state carries over. For example: "pedal one turn on 21T, then shift to 28T and pedal one turn, for a cumulative 3.50 turns."
  3. Cover reverse and partial motion. Spell out edge cases such as backward pedaling and a quarter turn.
  4. State structural constraints. For example, "the chain passes in order around the chainring, the sprocket and two idler wheels," and ask the model to check with a screenshot.
  5. Keep one round for human eyes. After the automated checks pass, open the page and look over the key parts.

Extra: Sulat's API speed measurement

Sulat's API tests show streaming decoding at 58–81 tok/s, with a lowest time to first token of 1.65 seconds. This is a single measurement from 2026-11-23 and will shift with load. For demo tasks that need several rounds of self-checking and revision, what affects total time more than speed is the thinking level: /effort defaults to max, with low, high and max available.

Unverified items and limits

  • This is one single-round test by the author, with no repeat runs.
  • The 27 minutes 46 seconds comes from the ZCode interface and includes self-testing.
  • Zhipu AI has not published benchmark scores or a parameter count.
  • This article ran no tests of its own.
  • An upstream release does not mean the model can be called on this site.

Main references

Checked on 2026-11-23.

Related reading: 5 changes in GLM-5.4 compared with GLM-5.3, a four-pillar pavilion built in Blender.