Token Forecaster is a local, open-source tool designed to predict how long a large language model (LLM) response will take before generation begins. It does not alter requests or consume tokens—it simply observes and estimates duration based on a user’s own historical interactions with LLMs.
What Happened
Introduced on Product Hunt in 2026, Token Forecaster addresses a critical yet overlooked aspect of AI interaction: the unpredictability of how long a response will take to generate. When users prompt an LLM, they often don’t know in advance how long the reply might run—especially in complex coding or reasoning tasks. This uncertainty can lead to inefficient resource use, poor user experience, or even system crashes if the response runs too long.
The tool provides two estimates before a user presses Enter: a usual length and a worst-case duration that has been validated on 4,146 unseen prompts. It shows real-time feedback during generation—indicating whether the response is running ‘typical,’ ‘long,’ or ‘very long.’ This allows users to make informed decisions about whether to proceed, pause, or split a task.
Key Facts
- Token Forecaster was launched in 2026 and is built by Eduardo Nunes at Sumcap Research.
- It is open-source under the MIT license and runs entirely on the user’s local machine—no data is uploaded or stored.
- On 4,146 previously unseen prompts, 90.6% of responses fell below the worst-case threshold, indicating strong predictive accuracy.
- Extended thinking—such as deep reasoning or iterative edits—can stretch response times up to 2.5 times beyond the usual length.
- Prompt wording has a modest influence, contributing about 1% to response duration, but the primary driver is the agent loop length, which is invisible before generation begins.
- It runs in terminal status lines, macOS menu bar, a local dashboard, and a Chrome extension—offering multiple access points.
- It is currently calibrated on Claude Code history with experimental Codex ingestion.
- A bundled profile is based on one developer’s 16,687 past interactions; a personal profile is dynamically selected when it outperforms the bundled one.
- One user achieved 88.3% worst-case coverage on their own held-out prompts, demonstrating adaptability.
How It Works
Token Forecaster operates by analyzing a user’s local history of past LLM interactions. It does not modify requests or set max_tokens—it only observes and learns from the data that has already been generated.
When a user inputs a prompt, the tool retrieves historical data from their own usage patterns and applies statistical models to predict two durations:
- Usual length: The average response time based on similar past prompts.
- Worst-case duration: A high-confidence upper bound derived from 90.6% of unseen prompts, indicating how long a response might stretch under extreme conditions.
During generation, the tool continuously monitors the response and updates its status in real time—showing whether the reply is progressing ‘typical,’ ‘running long,’ or ‘very long.’ This feedback loop helps users detect runaway loops early.
Every experiment that fails the model’s validation gate is documented in the README, ensuring transparency and reproducibility. The tool does not save or transmit any user data—only reads history to make predictions.
Why It Matters
For developers and AI users, knowing how long a response will take is essential for managing system resources and workflow efficiency. In coding environments, where context spans multiple files and edits are iterative, long-running responses can consume memory, delay builds, or even crash local environments.
Token Forecaster enables proactive decision-making: users can decide whether to split a complex task, abort a long-running prompt, or adjust their prompt structure. This is especially valuable in environments where context window limits are tight or where real-time responsiveness is critical.

Moreover, the tool highlights a key insight: the agent loop—how many times the model iterates over a prompt—has a far greater impact on response time than visible prompt content. This suggests that future AI systems could benefit from better loop-length prediction or control.
As AI agents grow more complex and autonomous, tools like Token Forecaster help bridge the gap between user expectations and actual performance. They provide a form of behavioral transparency that was previously absent in interactive AI systems.
Limitations and Open Questions
While effective, Token Forecaster has notable limitations:
- Scope is narrow: It is currently calibrated on Claude Code and experimental Codex data, limiting generalizability across models and domains.
- Performance on complex tasks is unverified: Users have asked how it performs on multi-file coding tasks with scattered context—this remains an open question.
- Does not prevent runaway loops: It only detects them after they begin; it cannot stop or redirect a loop in progress.
- Limited to local history: It cannot generalize beyond a user’s own past interactions, which may not represent broader use cases.
- No integration with workflow tools: It does not connect to IDEs, version control, or task managers—making it a standalone utility rather than a workflow enhancer.
One key limitation is that the tool lacks an oracle for agent loop length—something that could reduce forecast error by 63%. Without access to internal loop metrics, predictions remain probabilistic rather than deterministic.
What to Watch Next
As AI agents become more autonomous, tools that predict behavior before execution will grow in importance. In the near term, users should watch for:
- Integration of Token Forecaster with development environments like VS Code or JetBrains IDEs—enabling real-time warnings during coding.
- Expansion of model coverage beyond Claude and Codex to include broader LLMs such as Llama, Mistral, or Gemini.
- Development of loop-length oriterative behavior oracles that could improve prediction accuracy.
- Broader adoption in AI-powered workflows where resource efficiency is critical—such as in edge computing or low-latency applications.
For developers working with AI, Token Forecaster offers a practical, transparent way to manage response duration. While not a panacea, it represents a meaningful step toward making AI interactions more predictable and efficient.
Original source: Product Hunt
Learn more about AI system readiness in infrastructure with Validate GPU Cluster Readiness Before AI Workloads Land.
Explore how AI reasoning can be applied to medical imaging with NV-Reason-CT: Bringing Radiologist-Style Reasoning to 3D CT Scans.
Sources & further reading
Featured image: This logo is owned by Server Technology. by Server Technology, Public domain, via Wikimedia Commons. Image source

