Will this PR create an unstable AI workload?
See callsites, model swaps, max-token changes, retry/fallback exposure, MCP schema overhead, and the exact controls that reduce the tail.
Class1
Class1 estimates how an AI code change will affect monthly costs before the pull request is merged.
Forecast LLM cost estimation and AI budget controls — the quote, before the invoice.
Most AI cost tools hand you a chart of money already spent. Class1 reads the diff the moment it is proposed and answers the only question that matters before merge: what does this do to next month's bill? Set a budget and the pull request cost analysis can fail the CI check — advisory by default. P50/P90/P95, model fit, tail drivers, and an estimate class adapted from AACE 18R-97 principles.
- model="gpt-4o-mini"
+ model="gpt-4.1"
+ max_tokens=8192
+ retries=5
Class1 reads a pull request, prices the monthly AI cost delta it introduces, and can fail the CI check when the P90 forecast exceeds a declared budget. The estimate is a distribution, not a single number: it reports P50, P90 and P95 from a paired Monte Carlo simulation over a frozen, effective-dated rate basis, then calibrates against post-merge actuals.
The category
Dashboards tell you what happened after the money is gone. Class1 answers the decision while the change is still a pull request.
The method is cost engineering: quantity takeoff, rate basis, contingency, escalation, an estimate class adapted from AACE 18R-97 principles (Class1-adapted, not an official AACE class), and actuals calibration.
Class1 is named for AACE Class 1 — the definitive end of that five-to-one ladder. Every estimate is born Class 5, a screening estimate on assumed risk factors, and earns its way toward Class 1 as measured actuals calibrate it. The ladder is explicit: 1 validated pair reaches Class 4, 5 reaches Class 3, 20 reaches Class 2, and 50 reaches Class 1.
Buyer moment
Most AI cost tools start after production telemetry exists. By then the model choice, retry policy, context shape, fallback path, and tool schema architecture have already become habits. Class1 moves the decision upstream, where the team can still cap output, narrow context, lazy-load tools, choose a fit-for-purpose model, or require a budget owner before merge.
The buyer is not buying a prettier dashboard. The buyer is buying a governance moment: a repeatable way to ask whether a software change creates recurring AI spend, whether that spend is justified, and which control lowers the tail without blocking useful engineering work.
That is why the homepage leads with P90 after scale. Expected cost is useful for discussion, but P90 is the number a finance team can approve against. Class1 keeps both numbers visible and separates the modeled risk band from the estimate class, so a report can be useful without pretending to be definitive.
See callsites, model swaps, max-token changes, retry/fallback exposure, MCP schema overhead, and the exact controls that reduce the tail.
Review expected, P50, P90, P95, the P99.5 deep tail, estimate class, budget gate status, and the 0/1/2-year escalation curve.
Approve, defer, or require controls with one report that engineering and finance can both defend.
Why now
Free to estimate. Paid to enforce.
Open core proves the forecast. The Team Gate pilot adds private repo installation and blocking P90 policy gates; the Business Pilot then adds actuals ingestion, a private Blue Book basis, and monthly variance reports.
Apply for the Business PilotExplore the system
FAQ
Pre-merge AI cost review is the process of estimating and approving the recurring cost implications of an AI feature while it is still a pull request, before the architecture is deployed to production.
We scan the diff for callsites, model names, max_tokens, and retry/fallback parameters, translate those into a scenario, and run Monte Carlo simulations (with Common Random Numbers) against a frozen baseline to forecast the P90 monthly delta.
When you configure a budget, our GitHub Action calculates the P90 monthly cost delta. If that delta exceeds your budget, the CI check fails. If no budget is set, it posts a detailed comment but stays advisory.