Ticket estimates
The Estimates tab on a project gives a synced Jira ticket, when someone clicks Estimate on it, an effort size, a token estimate for a coding agent to finish it, and a model to run it with. This page records the method.
What the user sees
For each ticket in raw/jira/tickets/:
- Effort as a t-shirt size (XS to XL) and story points.
- Total tokens a coding agent would spend, input plus output.
- The best model for it, with the reason.
- A cheaper option from a smaller proprietary model, and the cheapest option from an open model, each with the trade-off.
- The files the change is likely to touch.
Method
One LLM call, made with the model chosen in Admin, Assistant model. It reads:
- The ticket file from the knowledge repo, up to 12,000 characters.
graphify-out/GRAPH_REPORT.md, up to 10,000 characters. The report names the modules and how they connect, so the estimator can judge how many modules a change crosses. Ticket text alone is what every other tool has; the graph is the difference.- The project brief.
- The models a developer can actually pick: models published for agents in Admin, Router that the Router also serves right now. Each comes with its list price where
apps/web/lib/model-limits.tsknows it.
Estimates are on demand only. Nothing estimates tickets automatically.
Models are grouped into three tiers by model family, not by connector (modelTier in apps/web/lib/estimates.ts):
- Best: the proprietary frontier models, such as Claude Opus, GPT-6 Astra, Gemini Argon and Gemini Pro.
- Cheaper: the smaller proprietary models, such as Sonnet, Haiku, GPT-6 Sol and Luna, and Gemini Flash.
- Open: open-weight models through OpenRouter or OpenCode Zen.
The best option is always from the Best tier when one is live, followed by one Cheaper and one Open option. This is a fixed starting rule. It will be learnt from which model users actually pick, and from the recorded actuals.
The prompt gives token ranges per size (XS 20k to 80k up to XL above 2.5M) as an anchor. The answer is JSON. Model ids not in the live list are dropped, and the tier rule is enforced on what remains, whatever order the model answered in. If no valid model remains, the estimate fails rather than suggesting a model nobody can select.
Cost is computed, not asked of the model: tokens are split 90% input and 10% output (coding agents mostly re-read context) and priced at list price. Models on a flat-rate plan or missing from the price table show "plan or unpriced".
How accurate it is
It is not measured yet. Every estimate is stored in ticket_estimates. When a ticket is done, record the tokens it really used (the Router's per-key usage on the History page shows them) with "Record actual". The tab header then reports the median absolute percentage error over every ticket with an actual. Until there are actuals, the header says accuracy is not yet measured.
The TAWOS paper (Agile Effort Estimation: Have We Solved the Problem Yet?) found deep models barely beat a median baseline on story points, so the first thing to check once actuals exist is whether these estimates beat "every ticket costs the median".
Not done yet
- Actual tokens are entered by hand. Linking a ticket to the Router requests that worked on it would fill them in automatically.
- No calibration against benchmark runs. Coding benchmarks such as SWE-bench record real token counts per task, which could seed the error measurement.
- RouteLLM and RouterBench were not compared against; the picks are the estimator's judgement within each tier.
- Learning the tiers from what users select is not built yet.