[tooling] · · 4 min read
LM Warden publishes leanprompt audit findings for 20+ open-source repos
A new audit service identifies hidden token waste in popular AI coding tools, revealing that cache misses and retry loops are costing developers millions of tokens per month.
By ByteBulletin Editor · Editor

AI-generated illustration · Z-Image-Turbo, self-hosted
The Audit Report
LM Warden has released a new public audit service that analyzes open-source repositories for inefficient LLM usage patterns. According to the LM Warden audit page, the service identifies specific code patterns that lead to unnecessary token consumption, such as cache misses, retry loops, and oversized prompts. The audits are not based on live measurements but are estimates derived from reading the code, providing a static analysis of potential waste. Each audit names the specific commit and the version of the leanprompt tool used to generate the findings, ensuring reproducibility and transparency for maintainers.
The service covers a wide range of popular projects, from educational resources like shareAI-lab/learn-claude-code (81k GitHub stars) to production-grade tools like Mintplex-Labs/anything-llm (68.7k stars). The findings are categorized by the type of inefficiency, with "Cache never hits" being the most common issue. For example, the audit of shareAI-lab/learn-claude-code estimates that approximately 7,700,000 tokens per 1,000 calls are being billed at full price because the prompt tokens could have been served from the cache. This is a significant cost driver for developers using default Claude models, where cache efficiency is a primary lever for reducing spend.
Specific Findings and Patterns
The audits reveal that even well-maintained projects with active teams are susceptible to these inefficiencies. One notable finding is in webbrain-one/webbrain, an open-source AI browser agent. The audit notes that while the project’s spend meter already counts cache reads and writes, it still incurs an estimated 12,000,000 tokens per 1,000 calls of prompt read at full price on Anthropic and Vertex Claude paths. This suggests that while the tooling is present, the implementation may not be fully leveraging the provider’s caching mechanisms.
Another recurring pattern is the "Retry loop" issue, where cut-off answers are requested again without adjusting parameters. In assafelovic/gpt-researcher (31k stars), the audit estimates 660,000 tokens per 1,000 calls are wasted on empty or cut-off answers that are asked for again unchanged. The maintainers of yihong0618/bilingual_book_maker have already fixed this upstream, demonstrating that the audit findings can directly lead to code improvements. The audit page notes that maintainers are told before an audit is published, and where a repository has no public channel for reporting, the audit page says so. This approach aims to foster collaboration rather than public shaming.
Context: The Cost of Inefficiency
As LLM usage scales, the cost of inefficient token usage becomes a critical concern for developers and organizations. The audits highlight that these are not just theoretical issues but have tangible financial impacts. For instance, ChatGPTNextWeb/NextChat (89k stars) is estimated to waste 360,000 tokens per 1,000 calls on prompt tokens that the cache could have served on gpt models. While this may seem small in isolation, when multiplied by the number of users and calls, it adds up to significant monthly costs.
The service also identifies "Oversized prompt" issues, where unnecessary data is sent with each request. In Usagi-org/ai-goofish-monitor (21.2k stars), the audit estimates 3,500,000 tokens per 1,000 calls are spent on prompt tokens for the seller's whole rating and listing lists, which are sent again for each item. This is a classic case of not optimizing the context window, leading to wasted tokens and potentially slower response times.
What It Means for Developers
For developers, the LM Warden audits provide a concrete way to identify and fix token waste in their projects. The service is particularly useful for open-source maintainers who may not have the resources to perform detailed cost analysis. By providing specific estimates and code references, the audits make it easy to prioritize fixes. Developers should pay close attention to the "Cache never hits" and "Retry loop" categories, as these are often the most impactful and easiest to fix.
To get started, developers can run the leanprompt tool on their own codebases to identify similar issues. The tool is designed to be lightweight and non-invasive, making it easy to integrate into existing CI/CD pipelines. By adopting these practices, developers can reduce their LLM costs and improve the performance of their applications.
What to Watch
- Adoption by Major Projects: Will large open-source projects like
anything-llmandgpt-researcheradopt the fixes suggested by the audits? This will be a key indicator of the service’s impact. - New Audit Categories: Will LM Warden expand its audits to cover other types of inefficiencies, such as model selection or prompt engineering? This could broaden the service’s utility.
- Community Feedback: How do maintainers respond to the audits? Will they view them as helpful or intrusive? This will determine the long-term viability of the service.
- Integration with CI/CD: Will the
leanprompttool be integrated into popular CI/CD platforms, making it easier for developers to adopt? This could accelerate the adoption of best practices for LLM usage.
Get the signal, not the noise.
One short email when it matters. No recaps of recaps.
SHARE
RELATED

[models] ·
Baidu releases ERNIE-5.5-Flash-Base weights

[tooling] ·
ramgod runs MoE LLMs larger than RAM on Mac 3-5x faster than llama.cpp

[tooling] ·
Fleetlayer launches as control plane for multi-machine AI agents

[tooling] ·
Verfy launches security layer for AI coding agents

[tooling] ·
This week in AI dev tools: Anthropic IPOs amid safety and supply chain crises (Nov 16–22, 2026)

[tooling] ·