LM Warden

Audits of LLM calls in open-source code: the mistakes found, their token cost and each maintainer's response

Working when we checked on .

Visit LM Warden

What is LM Warden?

LeanPrompt (LM Warden) audits public open-source repositories for problems in how their LLM calls are made, such as missing prompt cache marks, oversized prompts, and redundant scheduled model calls. Each audit names the commit and LeanPrompt version it ran on, estimates the wasted tokens and cost, and links the maintainers' issue and response. It is aimed at developers and maintainers of LLM-based apps who want to cut token spend. The audits page reports 33 open-source apps audited, 206 problems found, 6 fixed upstream, and 29 reported to maintainers. Findings are estimates from reading the code, not measurements, and maintainers are contacted before publication.

LM Warden pricing

Pricing model: Freemium

LM Warden pros

  • 33 open-source apps audited with 206 problems found
  • Each audit names the commit and LeanPrompt version used
  • Links maintainers' issue and response for each finding
  • Maintainers are notified before an audit is published
  • 6 problems already fixed upstream, 29 reported to maintainers
  • Estimates wasted tokens, e.g. about 7.7M tokens per 1,000 loop calls in one case

LM Warden cons

  • Figures are estimates from reading the code, not measurements
  • Some audited repositories have no public channel for reporting problems
  • Corrections and takedowns are only available via email or GitHub issues
  • Only 6 of 206 found problems have been fixed upstream

Frequently asked questions about LM Warden

What does LeanPrompt find in public repositories?

It finds problems in apps' LLM calls, such as prompts with no cache mark that get billed in full each turn, oversized prompts, cache reads billed at full price, and scheduled jobs that re-ingest unchanged files nightly.

How many audits has LeanPrompt published?

The audits page lists 33 open-source apps audited, with 206 problems found. Of those, 6 were fixed upstream, 29 were reported to maintainers, and 1 was already planned by the maintainers.

Are the audit figures measured or estimated?

They are estimates from reading the code, not measurements. For example, one audit estimates about 7,700,000 tokens per 1,000 calls that a prompt cache could have served.

Does LeanPrompt tell maintainers before publishing an audit?

Yes. The site states that maintainers are told before an audit is published, and where a repository has no public channel for reporting, the audit page says so.

Who is LeanPrompt for?

It is for developers and maintainers of LLM-based applications who want to understand what their LLM calls get wrong and what it costs in wasted tokens.

How are corrections or takedown requests handled?

Corrections and takedown requests can be sent by email to [email protected], or by opening an issue on the LeanPrompt GitHub repository.

What does each audit record about how it was produced?

Each audit names the commit and the LeanPrompt version it ran on, so the finding can be traced to specific code and tool state.

What kinds of caching mistakes does LeanPrompt identify?

It identifies prompts resent in full each turn with no cache_control mark, changing document chunks placed before chat history so the cache cannot match, and gateways that bill cached tokens at full price.

Categories

Use cases

Alternatives to LM Warden

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z