Auditing 20 open-source LLM apps reveals how most silently break their own prompt cache

protrener · reddit · 2026-11-27

The author of leanprompt (free, Apache-2.0) audited open-source LLM apps like gpt-researcher, anything-llm and bilingualbookmaker and found recurring cache killers:

A reverse lesson: moving the date to the end of the prompt to protect the cache dropped correct date answers from 10/12 to 1/12 without helping the cache — meaning comes first, then cache.

Smaller finds: toggling thinking on/off between turns on a hybrid-thinking model lost 47% of the reusable prefix; tools built from unsorted dicts change order between calls.

How it works: leanprompt ships skills for coding agents — /leanprompt audit ranks token waste, fix proposes diffs, measure proves changes with before/after numbers; install via npx leanprompt install. Audit numbers are estimates; measure turns them into measurements.

Original post →

More from coding & agent

coding & agent channel →