The page leanprompt report --html writes for iamajmeena/neonclipping at commit 6a3b9e7, audited 2026-11-28. 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 iamajmeena/neonclipping

leanprompt audit of iamajmeena/neonclipping

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 3 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 Gemini preset names gemini-2.5-flash, which is rerouted to a different model on 1 December 2026

Note 1. llm.py:21 LP-GE-13 medium not scored

The Google Gemini preset fills in gemini-2.5-flash. Google's deprecation page says that from December 1, 2026 all API requests to gemini-2.5-flash automatically route to gemini-3.5-flash-lite and are billed at Gemini 3.5 Flash-Lite rates. The saved settings and the clip reason text (smart.py:292) keep naming the old model while another one answers.

What to change
Change the preset's model to a model the provider still serves and, optionally, tell users who saved the old id in data/llm.json that it now routes to gemini-3.5-flash-lite.

How to check the fix Press Find models with a Gemini key and check that the preset's id is in the list the provider returns.

A cut-off model answer is not detected, so a clip or a whole 15-minute window is silently left unread

Note 2. llm.py:156 LP-GE-12 medium not scored

_chat returns only the message content and the Ollama branch only 'response' (llm.py:196); no finish reason is read. Caps are small (judge 420 at smart.py:105, heading 180, whole-talk 120+90*n at wholepass.py:75). A reply cut at the cap is a successful call, so nothing is resent; the cut JSON makes parse_json raise and the caller swallows it: wholepass.py:80-81 does `continue` and drops that window's picks, smart.py:294 only appends '(skipped reading ...)'. Open PR #82 raises only the connection test's budget (30 to 512) for models that spend it on reasoning.

What to change
Read choices[0].finish_reason in _chat (and the done signal on the Ollama branch if the project wants it) and raise a specific error on 'length'. Have cloud_complete resend once with a larger budget on that error (a different request, so not an unchanged retry), and report a skipped window in wholepass.proposals instead of continuing silently.

How to check the fix Call cloud_complete with budget=5 against a stub that answers finish_reason 'length' and check that it raises or resends with a larger max_tokens; then run a whole-talk pass with the stub failing one window and check that the progress report names the skipped window.

The edit planner sends up to 45,000 characters to a local Ollama model with no num_ctx

Note 3. studio_plans.py:177 not scored

The planner builds one prompt of up to 45,000 characters (studio_plans.py:170; about 11,000 tokens at 4 characters per token, an estimate) and sends it through smart._payload, which sets only temperature and num_predict; no file sets num_ctx. Ollama's context-length page gives 4k context below 24 GiB VRAM, 32k for 24-48 GiB, 256k from 48 GiB. The page does not say what happens to an overflow. wholepass.py:15 records Ollama answering HTTP 500 on 15-minute windows and shrinks them to 5 minutes locally; the planner has no such local limit.

What to change
For a local model, either send options.num_ctx sized to the prompt (and fall back to a smaller source range when it does not fit), or lower the 45,000-character guard when the model is not a cloud model, as wholepass.py does with LOCAL_WINDOW.

How to check the fix On a machine with under 24 GiB VRAM, plan a 45,000-character range in 'topic' mode, then read the context length Ollama reports for the loaded model (ollama ps) and check that it covers the prompt.

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 Gemini preset names gemini-2.5-flash, which is rerouted to a different model on 1 December 2026 (llm.py:21) [LP-GE-13]: The Google Gemini preset fills in gemini-2.5-flash. Google's deprecation page says that from December 1, 2026 all API requests to gemini-2.5-flash automatically route to gemini-3.5-flash-lite and are billed at Gemini 3.5 Flash-Lite rates. The saved settings and the clip reason text (smart.py:292) keep naming the old model while another one answers. Change: Change the preset's model to a model the provider still serves and, optionally, tell users who saved the old id in data/llm.json that it now routes to gemini-3.5-flash-lite.
- A cut-off model answer is not detected, so a clip or a whole 15-minute window is silently left unread (llm.py:156) [LP-GE-12]: _chat returns only the message content and the Ollama branch only 'response' (llm.py:196); no finish reason is read. Caps are small (judge 420 at smart.py:105, heading 180, whole-talk 120+90*n at wholepass.py:75). A reply cut at the cap is a successful call, so nothing is resent; the cut JSON makes parse_json raise and the caller swallows it: wholepass.py:80-81 does `continue` and drops that window's picks, smart.py:294 only appends '(skipped reading ...)'. Open PR #82 raises only the connection test's budget (30 to 512) for models that spend it on reasoning. Change: Read choices[0].finish_reason in _chat (and the done signal on the Ollama branch if the project wants it) and raise a specific error on 'length'. Have cloud_complete resend once with a larger budget on that error (a different request, so not an unchanged retry), and report a skipped window in wholepass.proposals instead of continuing silently.
- The edit planner sends up to 45,000 characters to a local Ollama model with no num_ctx (studio_plans.py:177): The planner builds one prompt of up to 45,000 characters (studio_plans.py:170; about 11,000 tokens at 4 characters per token, an estimate) and sends it through smart._payload, which sets only temperature and num_predict; no file sets num_ctx. Ollama's context-length page gives 4k context below 24 GiB VRAM, 32k for 24-48 GiB, 256k from 48 GiB. The page does not say what happens to an overflow. wholepass.py:15 records Ollama answering HTTP 500 on 15-minute windows and shrinks them to 5 minutes locally; the planner has no such local limit. Change: For a local model, either send options.num_ctx sized to the prompt (and fall back to a smaller source range when it does not fit), or lower the 45,000-character guard when the model is not a cloud model, as wholepass.py does with LOCAL_WINDOW.

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-28 (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.