SIAgentNews.com
AI-made picture for the story: LM Warden audits 32 open-source apps and finds wasted LLM tokens
ClaudePicture made with AI
← All news

LM Warden audits 32 open-source apps and finds wasted LLM tokens

A review of 32 open-source apps found LLM calls that cost tokens in 26 of them, but the dollar figures are estimates from code.

2 min readMade with AI

The short version

  • The audit covers 32 public apps, with stars from 11k to 89k in the named examples.
  • LM Warden says 26 of the apps have problems that cost tokens.
  • Its stars-weighted estimate is about $4 per 1,000 calls at Claude Sonnet-class prices.
  • leanprompt is free and open-source under Apache-2.0.
  • Cost guess: If these apps together make a billion calls a month, LM Warden puts the waste near $4M a month at Sonnet-class prices.

What LM Warden did

A team that builds a self-hosted LLM gateway posted on HN with a claim about apps that call model APIs. They ran their review tool on 32 public apps, and every one had at least one problem.

The team builds LM Warden, a self-hosted LLM gateway, so it spends its days looking at what apps actually send to model APIs. It says the same mistakes keep popping up in GitHub projects with thousands of stars and in small vibecoded apps.

The team sorted the mistakes into rules. It then turned the rules into leanprompt, a skill plus scripts that an agent can use to review code of projects that call external LLM providers.

Why it matters

If you build or run an app that calls an external LLM provider, you can check your own code for the mistakes the team lists, such as retries of the same failure and oversized prompts. The savings figures are estimates taken from code, not measurements, so treat them as a rough guide.

Which apps were checked

The audit ran on public repositories, 32 apps so far. The post names NextChat (89k stars), MiroFish (87k), OpenMontage (84k), screenshot-to-code (81k) and learn-claude-code (81k). It also names AnythingLLM (69k), LightRAG (41k), GPT Researcher (31k), DeepWiki-Open (18k) and ChatGPTBox (11k).

The team says every one of the 32 apps had at least one problem in how it calls an LLM. In 26 of them, the problem costs tokens.

The problems it keeps finding

The recurring problems are a cache that never hits, answers that get cut off, and retries of the same failure. They also include prompts that are too big and models that are retired.

How big is the cost

The audits work out tokens per 1000 calls by reading the code, so these are not measurements. Weighting by stars, the team says fixing what it found would save about $4 per 1,000 calls at Claude Sonnet-class prices.

The authors say they do not know how many calls these apps make, because nobody publishes that. So they offer a what-if. Suppose all installs together make a billion calls a month. That would come to about $4M a month at Sonnet-class prices, or about $300k a month on the cheapest models. They say a billion is not much when the biggest of these apps have 30k to 90k stars.

What is still open

The post comes from the team behind LM Warden, which builds a self-hosted LLM gateway. It gives no measured call counts, and it does not say whether the app maintainers have responded. The post page shows Points: 1 and # Comments: 0 on HN.

leanprompt is free and open-source under Apache-2.0. The post sits at item 50682866 on HN, where it shows Points: 1 and # Comments: 0. The post does not say whether the maintainers of the audited apps have seen the findings.

The questions people ask

What it means for you

A developer who calls LLM APIs from an app can use the listed problems as a checklist.

Who gains

LM Warden says fixing the issues saves about $4 per 1,000 calls at Sonnet-class prices. leanprompt, its review tool, is free under Apache-2.0.

How solid is it

Mixed. This is the company's own audit, and it says the figures are estimated from code, not measured. The call volume is a stated guess.

What you can do

Check your own retry, cache and prompt-size handling before trusting any headline dollar figure. Treat the $4M estimate as a what-if.

What to watch

  • Will the maintainers of the audited apps respond to the findings?
  • Will anyone publish real call counts to test the billion-calls scenario?
  • How do measured token costs compare with the code-based estimates?
Up nextMuxlio launches open-source coordinator for durable AI agent workflows

More stories

Say why

Liked it? Say why

Add a line for other readers.

No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.

Sources

The reporting and documents this story is built from. Each link opens the original.

Written with AI by the SI Agent News Desk from the reporting above. Every number is checked against it.Spot a mistake? Corrections.

More AI news