Topic 3 of 5 · 5 min read
Estimating agent work in ranges
Goal: Give a range estimate for a feature that accounts for agent retries, review time and integration risk.
Estimate agent-assisted work as a range with named assumptions, and include time for retries, review and integration, not just the time to generate code. A single number hides the uncertainty. A range shows it.
Check yourself · 1 of 3
Which estimate is most useful for a feature with one major unknown?
Why it matters
Agent work has a wide spread. Sometimes the first attempt is right and you are done in an hour. Sometimes the agent goes down a wrong path, and you spend a day undoing it. An estimate that says "2 days" is wrong in both cases. An estimate that says "1 to 4 days, depending on whether the payment API behaves as documented" is useful. Martin Fowler's point about estimation is that its purpose is to support decisions, such as whether to do the work at all. A range supports that decision better than a false point.
How to build the range
- Split the feature into tasks small enough to judge, such as a half-day to two days each.
- Mark each task as pattern-following (agent likely helps), new or unclear (agent helps less), or unknown.
- Give each task a low and a high number. The low case is a clean first try. The high case includes retries, a rewrite of the prompt and fixes after review.
- Add review time explicitly. Reading and testing agent code is real work. A common starting point is to budget a fixed share, such as 30 to 50% of the generation time, then adjust with your own data.
- Add integration and release time. Environments, migrations, contract changes, feature flags.
- Spike the unknowns. A spike is a short, time-boxed experiment, for example half a day to call the real API and see what comes back. Replace the biggest unknown with a fact before you commit to a date.
- Write the assumptions. "Assumes the vendor sandbox works. Assumes no schema change."
Shape Up adds a useful turn: instead of asking how long, ask how much time this is worth (the appetite), and cut scope to fit.
Before and after
Weak: "Export feature: 2 days."
Better: "Export feature: 2 to 5 days. Mapping and tests follow the existing JSON export (0.5 to 1 day). Large-account handling is unknown, so a half-day spike first. Review and fixes 0.5 to 1 day. Release behind a flag 0.5 day. The high end applies if the spike shows we need background jobs."
What goes wrong
- A point estimate with false precision. "3.5 days" for a task nobody has tried.
- Estimating only generation. Retries and review are left out, and the estimate is wrong every time.
- Skipping the spike. The biggest unknown is hit on day four.
Examples
A range with assumptions
Feature: bulk invoice download.
- Endpoint and tests, copying the existing export: 0.5 to 1 day
- Spike on the PDF service rate limit: 0.5 day
- Large-batch handling: 1 to 3 days, depending on the spike
- Review and fixes: 1 day
- Release behind a flag: 0.5 day
Total: 3.5 to 6 days. Assumes the PDF service allows 20 requests per second.
Appetite instead of estimate
A product owner asks how long a search redesign takes. The team replies: we can do a good version in two weeks. If you want more, tell us which parts to add. The team agrees to cut filters and saved searches first if the two weeks run short.
Key points
- Give a range with a low case of a clean first try and a high case that includes retries, rewrites and fixes.
- Budget review and integration time explicitly; they are real work, not overhead to ignore.
- Use a time-boxed spike to turn the biggest unknown into a fact before committing to a date.
- Write the assumptions next to the range so readers know what would move it.
- Estimates exist to support decisions, so say what the range means for the decision.
Common mistakes
- Quoting a single number for work with real unknowns.
- Estimating only code generation and leaving out review, retries and integration.
- Skipping a spike on the riskiest unknown.
- Leaving assumptions unwritten, so nobody knows when the range stops being valid.
Check yourself · 2 of 3
What is a spike, in estimation?
Check yourself · 3 of 3
An estimate counts only the time the agent needs to write the code. What is missing?
Practice items, not counted towards your mastery.
Start here
- Early-2025 AI and experienced developer productivity (METR) (opens in a new tab)PaperFree
A randomised study of 246 real issues: developers expected a 24% speed-up and measured 19% slower.
- Purpose of Estimation (martinfowler.com) (opens in a new tab)ArticleFree
Why estimates exist: to support decisions, not to promise dates.
- Shape Up (Basecamp) (opens in a new tab)BookFree
Appetite, fixed time with variable scope, and hill charts for showing real progress.