A cut-off model reply is never noticed, so a window of picks is lost

A long cream paper strip runs under a steel blade on a tan desk unit and falls into an open drawer.

Cut-off answer Reported

A local clip maker that turns long streams into captioned vertical clips, finding the moments from the audio first and reading only the chosen parts.

Estimates, not measurements. Every figure on this page is an estimate from reading the code, not a measurement of the app in use.

Repository
iamajmeena/neonclipping
Commit audited
6a3b9e7
leanprompt version
0.1.0-dev.15
Audit date
Status
The maintainers have been told about this audit; no response yet.
Maintainers
the issue
How it ran
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.

leanprompt read the code at commit 6a3b9e7 and found 0 places where its LLM calls could use fewer tokens, plus 3 other problems, not scored. Static score: 100 of 100 (an estimate from the findings). The code may have changed since.

Findings

No open findings.

Other problems the audit found

Problems read in the code that cost no tokens of their own, such as a cost meter or an error path. Not scored.

  1. 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 Default to a model the provider still serves · severity medium

    What happens. 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.

    The 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.

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

  2. 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 Read the finish reason before using an answer · severity medium

    What happens. _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.

    The 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.

    To check. 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.

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

    studio_plans.py:177

    What happens. 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.

    The 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.

    To check. 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.

The maintainers’ response

No response from the maintainers yet.

How this was made

The llm-call-audit skill read the code and wrote findings.json; nothing was run against the project’s providers. The full audit page is what leanprompt report --html writes from the same findings.

Corrections and takedown: email info@podwarden.com or open an issue.