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: Minimal ipython harness matches complex agent frameworks for small models(16 posts)→
More from coding & agent
- Dev ships throwaway Postgres for agents: pg19 via pglite on Cloudflare DO over raw TCP — ritakozlov · 2026-11-29
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- 38 free agent skills distilled from shipping three live AI products — PawelHuryn · 2026-11-29
- Step 5: run evals on synthetic data pre-launch, watch real traces after — PawelHuryn · 2026-11-29
- Break your agent before attackers do: 6 tests mapped to OWASP LLM Top 10 — PawelHuryn · 2026-11-29
- PM shares playbook for shipping 4 customer-facing Claude agents into production — PawelHuryn · 2026-11-29