r/devtools • u/awesomebirder • 27d ago
How I checked that a token-saving proxy for coding agents was not quietly making answers worse
The obvious question about any tool that trims what a model sees is whether the answers get worse. I build a local proxy (probe0) that sits under Claude Code and Codex and logs every request, and that question ended up being most of the work, so here is how I handled it.
The rule: any change that alters the bytes the model receives does not go on by default until it passes a blind check. Changes that only alter timing, like when the prompt cache gets refreshed, skip that, because the model gets the exact same request.
What the testing looked like:
- Live answers, not synthetic ones. Answers with and without a change, judged blind, so the judge did not know which version produced which. 314 answers went through that before anything was turned on by default.
- Objective checks where possible. For coding turns a test either passes or it does not, which is a lot harder to argue with than a preference score.
- Reasoning effort surprised me. On tool heavy turns I ran 25 prompts at three effort levels, and all 17 objective checks passed at every level, while the lower levels used way less.
- Same story for easy turns ("read this file", "run the tests") on a cheaper model. Sending them to Sonnet instead of Opus scored the same on the objective checks.
How it is built: TypeScript on Node, running locally on a Mac. It trusts a root certificate so it can read your own agent's HTTPS traffic, and nothing about prompts or code leaves the machine. Mac only, free beta, and probe0 uninstall removes all of it. Replaying 12 days of my own traffic, the default settings cut the bill by 12.8%, which is one person's numbers, not a promise.
Question for anyone building tooling around LLM calls: how are you catching quality regressions? Blind judging feels softer than I would like, but writing objective checks for every kind of turn does not scale either.
Numbers and method: https://probe0.xyz/benchmarks?utm_source=reddit&utm_campaign=devtools
Terminal install if you want to try it: curl -fsSL https://probe0.xyz/install | bash
1
u/Armannss 27d ago
I would distinguish replaying individual requests from letting the agent finish a task with the change enabled. If each recorded request is replayed independently, later requests still contain history produced by the original agent. That can miss a quality regression where one compacted tool result changes which file the agent opens next.
A small closed-loop suite could start each condition from the same repo commit and task, then let the agent choose its own tool calls. Grade the final patch with held-out regression tests and include correction/retry cost. Run compaction and model routing separately first, so a failure can be attributed to one change.
For the broader traffic sample, I would keep blind judging but report results by task category and count independent tasks, not only answers; several turns from one session are correlated. Are the 314 answers mostly individual-turn comparisons, or do some cover full tasks through the final diff and tests?