The page leanprompt report --html writes for basecamp/basecamp-cli at commit d8583ae, audited 2026-11-27. Every figure on this page is an estimate from reading the code, not a measurement of the app in use. Corrections and takedown: email info@podwarden.com or open an issue. Back to the audit of basecamp/basecamp-cli

leanprompt audit of basecamp/basecamp-cli

Unattended audit: nobody was asked during the run, so priority, volume and prices were left open; the questions for the owner are listed at the end.

The audit found no place where this app pays for tokens it doesn't need

Plus 2 other problems the audit found, listed after the findings. Not scored.

What's wrong and what to change

0 open, 0 fixed. Largest first, by the audit's estimate of tokens lost per 1,000 calls.

No confirmed findings.

Other problems the audit found

Problems the audit checked in the code that cost no tokens of their own, such as a spend meter that ignores cache tokens or a cut-off answer accepted as complete. They are not scored. Check each one before you change anything.

The skill-eval runner defaults to a model Anthropic retired on 2026-06-15

Note 1. skill-evals/run:39 LP-GE-13 high not scored

The runner's default model, and the default in skill-evals/Makefile line 1, is claude-sonnet-4-20250514. Anthropic's deprecations page lists it as retired on June 15, 2026, with claude-sonnet-5-5 as the replacement, and says requests to a retired model return 404 not_found_error. CI runs `make skill-eval` with no MODEL override, and api_call raises on any non-200 reply.

What to change
Change the default to a model Anthropic still serves (the page recommends claude-sonnet-5-5) in skill-evals/run and skill-evals/Makefile, then re-run the cases once to see whether any expectations need adjusting.

How to check the fix Run `make skill-eval` with a key: the first request returns 200 instead of 404. Without a key, `grep -rn claude-sonnet-4-20250514 skill-evals` finds nothing.

A summary cut off at the token limit is cached for 24 hours as if complete

Note 2. internal/tui/workspace/summarize/summarize.go:129 LP-GE-12 high not scored

Summarize asks for max_tokens = TargetChars/3 (66 for the 200-character gap summaries) and none of the three HTTP providers reads the stop reason (provider_anthropic.go:68-79 ignores stop_reason, provider_openai.go:74-87 ignores finish_reason, provider_ollama.go:68-74 ignores done_reason). Whatever text came back is written to the cache at summarize.go:135 and shown in the collapsed gap row. A reply that ran into the limit (a model that ignores 'under 200 characters', or text in a script that takes more tokens per character) is stored for 24 hours without its end.

What to change
Have Complete report whether the reply was cut off. On a cut-off reply, trim to the last whole sentence or word and add an ellipsis before caching, or do not cache it and keep the extractive summary for that segment.
Why it matters
The cut-off text is what the user sees for the whole cache lifetime, and the same segment is not summarized again until the entry expires.

How to check the fix A fake Provider that returns a truncated reply with the truncation flag set must not leave the raw text in the cache; a normal reply is cached unchanged.

Fix it with your coding agent

Paste this into Claude Code, Codex, Cursor or any coding assistant. It will check each finding against your code and propose fixes one at a time, asking before it changes anything.

Please check and fix the LLM-call findings from a leanprompt audit of this repository.

1. If the leanprompt skills are not installed for you here, install them: npx leanprompt@0.1.0-dev.15 install
2. Read .leanprompt/findings.json and leanprompt-report.md. If they are missing, use the list below.
3. Check each finding against the code before you change anything. The audit can be wrong: if a finding does not hold, tell me why and leave that code alone.
4. Fix one finding at a time. Show me the change as a small diff and apply it only after I say yes.
5. Prove each fix with the measure-loop skill: a before and after on the same scenario. Ask me before running anything that sends real, billed requests.
6. When a fix is proved, set "fixed": true on its finding in .leanprompt/findings.json and run npx leanprompt@0.1.0-dev.15 score.

Other problems found (check each against the code first; not scored):
- The skill-eval runner defaults to a model Anthropic retired on 2026-06-15 (skill-evals/run:39) [LP-GE-13]: The runner's default model, and the default in skill-evals/Makefile line 1, is claude-sonnet-4-20250514. Anthropic's deprecations page lists it as retired on June 15, 2026, with claude-sonnet-5-5 as the replacement, and says requests to a retired model return 404 not_found_error. CI runs `make skill-eval` with no MODEL override, and api_call raises on any non-200 reply. Change: Change the default to a model Anthropic still serves (the page recommends claude-sonnet-5-5) in skill-evals/run and skill-evals/Makefile, then re-run the cases once to see whether any expectations need adjusting.
- A summary cut off at the token limit is cached for 24 hours as if complete (internal/tui/workspace/summarize/summarize.go:129) [LP-GE-12]: Summarize asks for max_tokens = TargetChars/3 (66 for the 200-character gap summaries) and none of the three HTTP providers reads the stop reason (provider_anthropic.go:68-79 ignores stop_reason, provider_openai.go:74-87 ignores finish_reason, provider_ollama.go:68-74 ignores done_reason). Whatever text came back is written to the cache at summarize.go:135 and shown in the collapsed gap row. A reply that ran into the limit (a model that ignores 'under 200 characters', or text in a script that takes more tokens per character) is stored for 24 hours without its end. Change: Have Complete report whether the reply was cut off. On a cut-off reply, trim to the last whole sentence or word and add an ellipsis before caching, or do not cache it and keep the extractive summary for that segment.

Score

One number from 0 to 100 for how well this app avoids paying for the same tokens twice; higher is better. It is computed from the findings above (static) or from your usage log (measured).

100static
E, prefill reuse
1.00
S, prefix stability
1.00
G, generation waste
0.00
Default shares
0 of 0

Findings scored with severity defaults, not estimates. The fewer, the more the static score says about this app.

A static score is an estimate from the audit's findings, not a measurement.

Scored 2026-11-27 (the date on the machine that ran it).

Questions for the owner

These were not answered during the audit. Until they are, the page shows tokens only and ranks the advice without a priority.

  • Priority: which matters most for this app, cost, speed or quality (or weights)? Not set, so the advice uses equal weights. Answer with priority: in leanprompt.yaml.
  • Volume: how many calls does the app make a month? Answer with volume: {calls_per_month: N, source: "..."} in leanprompt.yaml.
  • Prices: what does each model cost (input, cached input, output per 1M tokens, with the source and the date it was read, and the currency if not US dollars)? Answer with prices: in leanprompt.yaml.