REPL Code Mode cut tool calls up to 35% across DeepSeek, GLM and MiniMax in 64-run benchmark

Alternative_Ad3781 · reddit · 2026-11-24

Inspired by Code Mode for Claude, the author added a REPL to their coding CLI AnyCode so models can combine symbol search and file reading in one call, plus a prompt reminder since models rarely used it unprompted. Rigorous setup: one bug, 8 runs per model with REPL off and 8 with it on (64 total), all fixes passing the same hidden tests. Results (off/on averages): MiniMax M3.1 Flash gained most—9 fewer steps, 3 minutes faster, cost 10.88→8.59 cents; DeepSeek V4.1 Flash tool calls 51.9→35.2, cost 6.71→5.04 cents; GLM-5.3 Flash 38.8→31.5 calls; GLM-5.4 cut calls from 60 to 39 but saved only two model trips, ran 15s slower, and cost 18% less (72.65 vs 88.65 cents). Terminal-Bench runs on GLM-5.3 Flash are underway.

Original post →

More from coding & agent

coding & agent channel →