llama.cpp fork dedups repeated prompts losslessly, cutting 108k to 71k tokens in agent loops

Odd_Cauliflower_8004 · reddit · 2026-09-26

A developer published a llama.cpp fork targeting a common agent-loop cost: the same large content resent over and over — a file re-read ten turns later, or a tool returning identical output — every copy sitting in context and getting prefilled.

Limits: catches only exact repeats, not near-duplicates; end-to-end wall-clock speedup not yet benchmarked.

Original post →

More from coding & agent

coding & agent channel →