2026-11-26 15:48 UTC

Open-source Claude Code add-on estimates task time from local transcripts

state: seedheat: lowuncertainty: mediumrelevance: mediumcoding-agents developer-tools task-estimationNoam Brand

What is this?

AI Time Estimator is an MIT-licensed, open-source add-on by Noam Brand for Claude Code. The project’s GitHub page describes an installable plugin and a Python installer that use local Claude Code transcripts to measure model-turn and tool runtimes, estimate task duration in AI working time, and score estimates after tasks. It was presented on Hacker News as a Show HN on Nov. 15, 2026. The project says its data stays on the user’s machine; its accuracy evidence is the author’s backtest, not independent validation.

Why it matters

It tackles a practical mismatch in AI-assisted development: human-style estimates such as “days” can badly misstate how long an agent actually runs. If useful in practice, transcript-based estimates and feedback could help developers plan agent work and compare tasks in measured AI time. The approach is lightweight and locally run, but the reported accuracy is limited and does not include time developers spend reviewing, approving, or answering questions.

Current assessment

New: Brand’s repository presents AI Time Estimator as available for Claude Code, with plugin and installer instructions, including a plugin command for newer Claude Code versions. The add-on’s agent inspects a repository read-only and counts likely operations across smooth, expected, and rough scenarios; scripts combine these counts with rates measured from the user’s transcripts to produce P10/P50/P90 estimates. A Stop hook compares estimates with actual runs, and the project says ranges self-correct after 10 scored estimates. The repository reports that, on 72 held-out requests from the author’s machine, adding a measured speed-spread factor put 71% of actual times within P10–P90, against an 80% target; median P50 error remained 67%. This is an author-reported backtest, and it tests the time model, not whether the agent correctly counts task work. Estimates measure AI working time only, excluding user interaction and manual checks. The project says transcript data and histories stay local and it makes no network calls; it also warns that transcript parsing depends on Claude Code’s internal format and that limited retained history produces rougher initial ranges. The supplied sources establish a release and its design, not adoption or independent performance. Significance is as a small, testable developer-tool experiment in making agent work more measurable—not evidence yet of reliable project planning.

Measured heat

now 0 pts/hpeak 2 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 290h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-14 13:00⭐ origin echo-reconstructedThe GitHub repository appears to be the original primary artifact: its README describes the tool as an add-on that estimates Claude Code tas
Noam Brand on github (echo) · attributed from hn.story.50499487
—
11-14 18:32first on hacker news · published · +5.5hShow HN: AI Time Estimator – how long Claude Code will take, from your own logs
Noambbb
—
11-14 18:32amplified on hacker news 👑hn.story.50499487
Noambbb
peak 4 · 0 comments · 99% of case engagement
11-14 19:21our radar first saw it · +6.4hdiscovery anchor: hn.story.50499487—
pace: p29 vs 2096 stories at the 168h mark (now 290h old) — ahead of adap-delegated-authority-protocol-draft (2.0x), behind abmaze-protein-fitness-agent-benchmark (0.7x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: AI Time Estimator – how long Claude Code will take, from your own logs
Retrieved article excerpt

Open article · Retrieved 2026-11-14T19:22:56.523152+00:00

[AI Time Estimator for Claude Code: a guess of 2-3 days, struck out in red pencil, next to a measured estimate of about 7 minutes, likely 4 to 16](https://github.com/noambrand/ai-time-estimator/blob/main/assets/banner.svg)

[MIT License](https://github.com/noambrand/ai-time-estimator/blob/main/LICENSE)
[Latest release](https://github.com/noambrand/ai-time-estimator/releases/latest)
[Tests](https://github.com/noambrand/ai-time-estimator/actions/workflows/tests.yml)
[Built for Claude Code](https://camo.githubusercontent.com/ce72e9354877dce7131de2db1249fc6203250735b0a5cf8f884bec09a7b953fe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c74253230666f722d436c61756465253230436f64652d384136334432)
[Python 3.9+](https://camo.githubusercontent.com/fac841e642ad2b1029ac0eb33afec31904702d85c977932117266f80a56893a0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e392532422d333737364142)
[No dependencies](https://camo.githubusercontent.com/45ed05403c7c966d8b40d5d94da8f894e007b00f7961b10172bb6c66c7d24875/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d6e6f6e652d627269676874677265656e)
[Windows, macOS, Linux](https://camo.githubusercontent.com/80aa18df08a544b45c62dd3086cbfe4ad87e25ccf2bf54d8b31445b0e135ca44/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d57696e646f77732532302537432532306d61634f532532302537432532304c696e75782d6c6967687467726579)
[GitHub stars](https://github.com/noambrand/ai-time-estimator/stargazers)

### Ask Claude Code how long a task will take, and get an answer in its own working minutes, measured on your machine.

Claude estimates like a human developer: "2–3 days" for work it finishes before lunch. This add-on has Claude count the work instead of guessing, times it with rates measured from your own sessions, and checks itself after every task.

[Example session: asked how long CSV export will take, Claude answers about 7 minutes, likely 4 to 16, shows three scenarios, and after the work the estimate is scored automatically: 6.2 minutes, inside the range](https://github.com/noambrand/ai-time-estimator/blob/main/assets/demo.svg)

Example session (illustrative numbers)

[Quick start](https://github.com/noambrand/ai-time-estimator#quick-start) •
[How it works](https://github.com/noambrand/ai-time-estimator#how-it-works) •
[Accuracy](https://github.com/noambrand/ai-time-estimator#how-accurate-is-it) •
[Privacy](https://github.com/noambrand/ai-time-estimator#privacy) •
[Uninstall](https://github.com/noambrand/ai-time-estimator#uninstall) •
[Releases](https://github.com/noambrand/ai-time-estimator/releases)

---

## Quick start

**1. In Claude Code, run:**

```
/plugin install ai-time-estimator --marketplace noambrand/ai-time-estimator
```

**2. Start a new Claude Code session and ask:**

```
how long will it take to add CSV export to the report page?
```

That's it. The first session measures your rates in the background (about a minute), and every later answer is scored and improves on its own. You never run a script yourself. Needs Python 3.9+ on your PATH; nothing to `pip install`.

Older Claude Code, or prefer another way?

- **Claude Code before 2.1.275:** run `/plugin marketplace add noambrand/ai-time-estimator`, then `/plugin install ai-time-estimator@ai-time-estimator`.
- **Let Claude do it:** paste *"Install <https://github.com/noambrand/ai-time-estimator> for me: clone it and run its install.py"* into Claude Code.
- **Terminal, one line:** `git clone https://github.com/noambrand/ai-time-estimator.git && python3 ai-time-estimator/install.py` (on Windows `python`). No git? Download the [ZIP](https://github.com/noambrand/ai-time-estimator/archive/refs/heads/main.zip) and run `python install.py` in its folder.

Pick one way. The plugin and `install.py` do the same job, so having both would score every task twice.

## Why

| Claude on its own | With AI Time Estimator |
| --- | --- |
| "This will take 2–3 days" for work it does in 20 minutes | "About 7 min, likely 4–16 min", in its own working time |
| A week-long plan that is finished by lunch | Plans in real AI minutes, measured on your machine |
| A guess from human experience | Claude counts the work; scripts time it with your measured rates |
| Never learns how wrong it was | Scores every estimate and corrects its ranges after 10 tasks |

## How it works

1. A `time-estimator` subagent inspects the repo (read-only), looks up similar past requests, and writes 2–3 scenarios of the work (smooth / expected / rough) as counts: files read, edits, lines written, command runs, fix loops.
2. `estimate.py` turns those counts into P10 / P50 / P90 minutes with a Monte Carlo simulation, using rates measured on your machine:
   - seconds per model turn, by model, reasoning effort and context size;
   - the run time of each tool and shell command, including background agents up to their completion notice;
   - output speed for long writes;
   - a **speed spread**: real ÷ predicted time of your past requests, because a real request is fast or slow as a whole.
3. A Stop hook (`autoscore.py`) compares every estimate with what really happened. The time you spend reading, answering or approving is left out.
4. After 10 scored estimates, the ranges correct themselves from your results, and each answer carries its track record.

The model never makes up minutes. It only counts operations, and the scripts do the arithmetic.

You can also type `/estimate-here <task>` to estimate inside the current session; Claude then waits for your go.

## What installing changes

**As a plugin**, nothing in your own settings: Claude Code loads the agent, the `/estimate-here` command and the two hooks (scoring after each turn, a sync at session start) from the plugin. Your rates and history live in `~/.claude/ai-time-estimator/`.

**With `install.py`**, it:

- copies the `time-estimator` agent to `~/.claude/agents/`, the `/estimate-here` command to `~/.claude/commands/`, and the scripts to `~/.claude/ai-time-estimator/`;
- adds one async **Stop hook** to `~/.claude/settings.json` (your previous file is saved as `settings.json.bak`);
- adds a short, marked "Time estimates" section to `~/.claude/CLAUDE.md`, so Claude uses the estimator whenever you ask how long something will take;
- measures your rates from your existing Claude Code history (about a minute). The rates refresh themselves every 14 days.

Options: `--no-hook` (no automatic scoring), `--no-rule` (leave `~/.claude/CLAUDE.md` alone). Running it again updates in place.

## How accurate is it?

Check it on your own history:

```
python ~/.claude/ai-time-estimator/backtest.py
```

The backtest replays your past requests with their real tool calls. It measures rates on the older 80% of your requests and tests on the newest 20%, then reports how often the real time landed inside P10–P90.

On the author's machine (72 held-out requests):

|  | inside P10–P90 | median actual ÷ P50 | median P50 error |
| --- | --- | --- | --- |
| per-call model only | 39% | 0.88 | 67% |
| with the measured speed spread | **71%** (target 80%) | 1.06 | 67% |

A single request varies a lot, even when its tool calls are known exactly, so trust the range more than the middle number. The backtest checks the time model only; how well the agent counts the work is what the automatic scoring and the self-correction track.

## Privacy

Everything stays on your machine. It makes no network calls and sends nothing anywhere.

What it runs, and when:

- **At session start** (plugin only), a hook runs `install.py --plugin-sync` with Python. It copies the scripts and the agent text to `~/.claude/ai-time-estimator/` and, if your rates were never measured, measures them from your transcripts (about a minute). It never edits your settings or `CLAUDE.md`.
- **After each Claude turn**, a hook runs `tools/autoscore.py`. It reads that session's transcript, scores the estimates made in it, and appends the scores to `actuals.jsonl`. When your rates are 14 days old, it measures them again.
- **When you ask how long something will take**, the `time-estimator` agent reads your project without changing it, and runs `history.py`, `estimate.py`, `compare.py --report` and, when rates are missing, `calibrate.py` from `~/.claude/ai-time-estimator/`. What it reads stays data: a file or a past request that names a command never makes it run that command.

It reads Claude Code's transcripts in `~/.claude/projects/`, and writes only to `~/.claude/ai-time-estimator/` (its scripts, `rates.json`, `estimates.jsonl`, `actuals.jsonl`, `autoscore.log`). Details in [PRIVACY.md](https://github.com/noambrand/ai-time-estimator/blob/main/PRIVACY.md).

## Limitations

- It relies on Claude Code's local transcript format, which is internal and can change. If `calibrate.py` stops recognizing model turns it prints `FORMAT CHECK FAILED`; `tools/cc_log.py` is the only file to adapt.
- History reaches back as far as Claude Code keeps transcripts (`cleanupPeriodDays`, 30 days by default). A fresh install with little history gives wider, rougher ranges at first.
- A task ends when you send your next message. If Claude asks you something halfway, the score stops at that point.
- It measures AI time only: approvals, answers and manual checks are not part of the estimate.

## Uninstall

Plugin: run `/plugin uninstall ai-time-estimator`. Your estimate history stays in `~/.claude/ai-time-estimator/`; delete that folder too if you want it gone.

`install.py`, from the cloned folder:

```
python install.py --uninstall           # removes the agent, command, scripts, hook and CLAUDE.md section; keeps your history
python install.py --uninstall --purge   # also deletes ~/.claude/ai-time-estimator
```

Or ask Claude Code: *"uninstall the AI time estimator by running its install.py --uninstall"*.

## Development

```
python -m unittest discover -s tests -v       # the tests never touch ~/.claude
python tools/backtest.py --worst 10           # accuracy on your history, with the worst misses
python tools/history.py --everywhere --grep test
```

Changes take effect after `python install.py`. [`.claude/CLAUDE.md`](https://github.com/noambrand/ai-time-estimator/blob/main/.claude/CLAUDE.md) explains the architecture, for contributors and for Claude Code. Issues and pull requests are welcome.

## Credits

Transcript parsing follows the approach of [dioptx/cctime](https://github.com/dioptx/cctime) (MIT): streamed chunks merged by `requestId`, tool time measured from `tool_use` to `tool_result`.

## License

[MIT](https://github.com/noambrand/ai-time-estimator/blob/main/LICENSE) © 2026 Noam Brand

If it saved you from a wrong plan, a ⭐ helps other Claude Code users find it.
Noambbb40
🟧 echo.github ⭐The GitHub repository appears to be the original primary artifact: its README describes the tool as an add-on that estimates Claude Code tasNoam Brand——

Interpretation history

Decision trace