Download-speed digits break small-model agents: a 40-line regex normalizer fixes it

yb2698 · x · 2026-10-14

The author shows that tool outputs carry stochastic noise — e.g. pip progress bars show different download speeds each run — and small models aren't robust to these artifact changes, degrading agent (harness+model) performance.

The fix: a 'normaliser' applying regex filtering to tool outputs, plus a quiet env to strip artifacts — about 40 lines of Python, now open-sourced.

Iterating from pandas-etl trajectory analysis across harness versions, benchmarks show Qwen3.5-9B going from ipython-v0 to v3: reward 0.70→0.95, input tokens 530k→52k, matching the best external harness (openhands) with 34% fewer input tokens. Lesson: when building harnesses for small LMs, watch out for these environment tricks; large models are likely unaffected.

Related event: Single-tool ipython harness matches complex frameworks in small-model agent experiments(15 posts)→

Original post →

More from coding & agent

coding & agent channel →