Writing
Teaching LLMs to Estimate Projects (Without Letting Them Guess)
An evidence-based estimating workflow that grounds project effort in historical work, separates evidence from judgment, and makes staffing assumptions reviewable.
It’s hilarious when you ask a frontier model how long something will take, it estimates three weeks, and then proceeds to finish all of it in 15 minutes.
For a long time, I assumed accurate effort estimation was out of reach for LLMs. Recently, though, I’ve made real progress by changing the job we ask the model to do. We ask it to assemble an estimate from our own project history, with explicit assumptions and a record of where each number came from.
On a recent project, we ran this evidence-based estimating approach before a single hour of work was logged. The estimate came in about 50% lower than one produced by asking an LLM without company context. When we finished the project and compared the numbers against actuals, that lower estimate turned out to be remarkably accurate.
That result is encouraging. The workflow behind it is what I want to explain: how we use historical evidence, account for the people doing the work, and keep judgment visible.
Build the Estimate From Evidence
When a naive LLM estimates a project, scope ambiguity, industry folklore, optimism bias, calendar time, and cost can collapse into a single opaque number. Even dumping raw past tickets into a retrieval pipeline (RAG) doesn’t fix this. The model may average a 30-minute bug fix with a 100-hour bundled feature because their titles share a keyword.
We built an evidence corpus and structured analysis workflow around three components:
- A curated, read-only historical snapshot. We generate an audited, offline snapshot of past work: hundreds of completed tasks spanning dozens of projects, across different technologies and non-technical work such as content, creative assets, research, and operational coordination. Completed client work is kept separate from internal reference tasks. Known data limitations are attached directly to the records.
- An estimating workflow (skill). The model breaks new scope into discrete work packages, each with a clear unit and quantity. It searches for comparable historical tasks, inspects what those tasks included, and builds low, base, and high person-hour ranges from the bottom up.
- A strict output contract. Every estimate conforms to a formal JSON schema with separate fields for observed history, forecast adjustments, calendar schedule, and money.
An engineer or manager reviewing the estimate should be able to see which numbers came from historical evidence and which came from judgment.
What It Looks Like in Practice
Imagine a new project includes the work package “Connect a third-party service and validate it on one supported device.”
The system produces a structured breakdown for that package:
- Selected analog: A completed past task with an immutable ID and 16 logged person-hours, chosen because it had the same integration boundary and a single device target.
- Rejected analog: A similar-sounding past task excluded because it bundled three devices instead of one. Requiring the model to record what it rejected, and why, helps catch sloppy reasoning.
- Historical anchor: 12 / 16 / 22 person-hours (low / base / high), anchored to the comparable work.
- Explicit adjustments: The new project introduces an unfamiliar authentication provider. The model adds a separate adjustment of
+2 / +4 / +8hours, labeledengineering_judgmentrather thansource_supported, with a note confirming it doesn’t overlap with the anchor’s scope. - Package result: 14 / 20 / 30 person-hours, paired with a qualitative confidence rating (
medium) tied to evidence quality. A narrow range alone doesn’t justify high confidence.
We do this across every work package, keeping discovery, implementation, content/assets, QA, release, and coordination distinct. Reviewers can question a particular analog or adjustment without having to reconstruct an unexplained project total.
Account for the People Doing the Work
One of the biggest surprises in building this has been how well an LLM handles the human element of project delivery when given the right context.
A task that takes one person a day might take someone else a week. Prior exposure to a framework, domain, or codebase matters. Our historical data spans many kinds of technical and non-technical work, along with who contributed to each task.
That gives the model evidence about who has worked in a domain, who has shipped similar work solo or as part of a larger group, and where a project introduces genuinely new technology. We can run staffing scenarios before committing. For example, how does the effort and risk profile change if we staff an integration with someone who has done it twice before, versus pairing someone new to the stack with a senior reviewer?
We built guardrails into the workflow and schema to keep that reasoning honest:
- Assignee ≠ contributor. The person currently assigned to a closed ticket is often not the person who did the work. Effort is attributed to people who logged time. Missing historical data for someone is recorded as missing evidence, never low capability.
- Team share ≠ solo cost. If an engineer logged 15 hours on a 60-hour team task, the system is prohibited from treating 15 hours as the solo cost of delivering that scope.
- No invented “developer speed multipliers.” Historical time-tracking data almost never supports a statistically valid claim that Developer A is “1.3x faster” than Developer B. Our output schema enforces
speedMultiplier: null. Team familiarity can inform a clearly labeled judgment adjustment; it cannot be presented as a measured multiplier. - Effort ≠ calendar time ≠ money. Ranges are always in person-hours first. Two people do not automatically halve elapsed duration, so schedule estimates require explicit availability, dependency, and sequencing assumptions. Labor rates, external costs, contingency, and markup stay separate from effort until the budget calculation. If rates aren’t supplied, the system returns
nullplus a formula. - Explicit overlap checks. Bundled tasks, shared infrastructure, and cross-cutting QA or project management allowances carry additive-versus-included flags to prevent double-counting.
- Honest data boundaries. Every record carries caveats. Logged hours aren’t guaranteed to capture all real effort, and a task’s current estimate field in a tracker is rarely a verified original pre-work forecast.
What AI Builders and Leaders Can Use
For AI builders, this approach applies beyond project estimation. When an LLM is unreliable on a business task, look at the evidence it receives and the decisions you allow it to make:
- Curate a clean, read-only evidence layer with explicit provenance.
- Require the model to show its work, including the evidence it rejected.
- Use schemas to separate observed facts from human or model judgment. Enforce constraints such as null speed multipliers in the schema, and keep write access to source systems out of the workflow.
For team leaders and people driving AI enablement, the estimate gives you specific decisions to review before a project starts:
- Staffing and scope scenarios. Test different staffing allocations, scope cuts, or technical approaches and inspect how the effort and risk ranges shift.
- Estimate reviews. Review concrete analogs, explicit assumptions, and open questions instead of arguing over a gut-feel total.
- Calibration against actuals. Freeze the proposed scope and original low/base/high range before work starts. Later, compare the estimate against actual outcomes and scope changes. That creates the prospective data needed to assess accuracy over time.
Unknowns are still unknowns, and historical data is never spotless. We have an encouraging project result, but we still need to see how these estimates hold up across more work. Freezing each forecast before work starts, then recording actual effort and scope changes, gives us a way to find out.
Try It With Your Own Agent
I published a free, lightweight version of the estimating skill at github.com/JMBartelt/evidence-based-estimating-lite. It guides an agent to break down scope, compare relevant historical work, and show low/base/high effort ranges while separating evidence from assumptions and judgment.
It’s company, platform, and data-source agnostic. No project history is included; you’ll need to provide or connect your own relevant records.
Paste this into your coding agent:
Install the evidence-based-estimating-lite skill from
https://github.com/JMBartelt/evidence-based-estimating-lite
so I can use it in this agent.
You may need to restart your agent after installation. The repository README also includes a manual installation command for Codex.