Developer proposes a daily cron job to check LLM pricing against vendor pages
11/28/2026 — 11/28, 22:17·1 sources (all)·1 reports (all)
Key takeaways
- A developer proposes moving hard-coded model prices out of source code into a prices.json file, then running a daily cron job that compares…
Background & analysis
On November 28, 2026, DEV Community's AI section published a post by an author who argued against hardcoding LLM prices in code. The author noted that most agent cost dashboards he sees contain a dictionary such as PRICES = {"model-x": 3.00}, pasted in months earlier. Prices had moved considerably that month, with cache costs cut, search fees reduced and a scheduled doubling, and third-party trackers even disagreed with one another on same-day swings. A stale constant, the author wrote, silently wrecks budget math.
The proposed fix is to move prices out of code constants and into a prices.json file, then run a nightly job that compares that file against vendors' official pricing pages. The job is triggered by cron and only flags drift from official prices; it never edits prices itself, leaving confirmation to a human. When a discrepancy appears, it sends an email notification. The post also includes a ready-to-use cron command line.
As of this report, the approach remains a suggestion from the author. The material does not mention any vendor, product or third-party service adopting or responding to it.
AI-generated from 1 reports · updated 16 hours ago
- Heat index
- 63
- All sources
- 1
- All reports
- 1
- First seen
- 16 hours ago
Reports on this story headlines open the original
Agent cost dashboards often rely on a hardcoded price dict that goes stale as vendors cut cache fees, drop search pricing or schedule increases. The author suggests keeping prices in a prices.json file and running a nightly job that compares it against official pricing pages, flagging drift for a human to confirm rather than editing prices automatically. A cron line triggers the script and emails a report when prices diverge.
DEV Community · AIAI score 60
Other stories people are talking about
- Heat index 763RisingOpenAI countersues Apple over trade secrets and supplier pressure14 sources
- Heat index 367SurgeAnthropic Denies Claims Claude Sabotages ML Research5 sources
- Heat index 293Musk says Google is interested in renting more compute from SpaceX5 sources
- Heat index 166RisingGoogle ships Workspace MCP servers and CLI, mandating agent access path2 sources
- Heat index 166Claude Code adds /ship command for automated PR review3 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

