Tsinghua & Microsoft's HarnessMM cuts agent token use by up to 87.93% while raising success rate

rohanpaul_ai · x · 2026-11-02

A Tsinghua and Microsoft paper, HarnessMM: Recursive Self-Improvement for Harness Token Efficiency, tackles a hidden inefficiency in agent harnesses: LLMs are re-invoked after every tool result even when the next step was already decided.

How it works: the model pre-writes future commands with exact arguments plus pass checks (e.g. a successful build). When a tool result passes the check, the agent executes the command directly and skips the LLM call; novel semantic decisions re-invoke the original model.

Results on 98 HumanEval tasks:

Practical takeaway: if your agent runs predictable chains like write → build → test, have the model plan them once with pass checks instead of re-asking the LLM each step.

Related event: HarnessMM from Tsinghua and Microsoft cuts agent tokens 87.93% while boosting success(3 posts)→

Original post →

More from coding & agent

coding & agent channel →