Batch evaluation defaults to Gemini 2.5 models that reroute on Dec 1, 2026
An AI job search agent that scans job boards and scores offers; its single-offer evaluator already defaults to a current Gemini model.
Audited with leanprompt 0.1.0-dev.15
Estimates, not measurements. Every figure on this page is an estimate from reading the code, not a measurement of the app in use.
- Repository
- career-ops-hq/career-ops 85.6k GitHub stars
- Commit audited
e399fad- 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 e399fad and found 0 places where its LLM calls could use fewer tokens, plus 2 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.
-
Batch Gemini evaluator defaults to models that retire on 2026-12-01
batch-evaluate-gemini.mjs:150·LP-GE-13Default to a model the provider still serves · severity mediumWhat happens. spendTierToModel() returns gemini-2.5-flash for the default spend_tier (standard, config/profile.example.yml:201) and gemini-2.5-pro for premium. The Gemini deprecations page says that from 2026-12-01 requests to both route automatically to other models (gemini-3.5-flash-lite and gemini-3.8-flash), billed at those models' rates (page checked on 2026-11-30). This script has no GEMINI_MODEL override, so a user who passes no --model gets the swap without a message. gemini-eval.mjs already defaults to gemini-3.6-flash and its header lists gemini-2.5-flash as deprecated.
The change. Point the standard and premium tiers at current ids (the ones gemini-eval.mjs uses), or read GEMINI_MODEL here as gemini-eval.mjs does, and update the 2.5 rows in utils/token-tracker.mjs:18 with them.
Why it matters. From 2026-12-01 the model that runs, and its price, change with no line in the batch output saying so.
To check. Run node batch-evaluate-gemini.mjs --limit 1 with spend_tier standard and check that the 'Calling Gemini (<model>)' line names a current id.
-
Gemini evaluator cost estimate leaves out thought tokens; Gemini batch records no usage
gemini-eval.mjs:566·LP-GE-11Meter every billed token, cached and unfinished ones too · severity mediumWhat happens. gemini-eval.mjs sets completion_tokens from usageMetadata.candidatesTokenCount and never reads thoughtsTokenCount, which the API reference lists as its own field ('Number of tokens of thoughts for thinking models'). The pricing page says the output price includes thinking tokens (both pages checked on 2026-11-30). estimateCost (utils/token-tracker.mjs:134) prices only completion_tokens, so for a model that thinks the printed cost can be below the bill. batch-evaluate-gemini.mjs (line 424) reads no usage at all, so a batch run prints no token or cost figure.
The change. Add thoughtsTokenCount to completion_tokens at gemini-eval.mjs:566, and have the batch evaluator record usageMetadata through the same TokenAccumulator.
Why it matters. The cost breakdown is the only spend figure a user sees for the Gemini paths; it may read low for a thinking model, and for batch runs it does not exist.
To check. For one request, the printed completion count equals candidatesTokenCount plus thoughtsTokenCount from the response.
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.