Study Finds AI Coding Agents Cannot Track Elapsed Time or Judge Their Own Work Quality
A study from the MATS research program found that Claude Code and OpenAI Codex consistently misjudge how long coding tasks take, with errors of 3x to 10x, and routinely overrate the quality of their own work. Giving agents a tool to check elapsed time fixed the problem almost completely.
The Finding
AI coding agents have no reliable internal sense of how much time has passed while they work, according to a study by two independent researchers conducted through the MATS research program. The pair tested Anthropic's Claude Code and OpenAI's Codex and found both systems consistently and badly misjudge task duration — a problem that undermines efforts to run agents on long, multi-hour jobs.
How the Test Worked
Before each coding task, the agents were asked to estimate how long they would need to complete it. After finishing, they were asked to report how much time they believed had actually elapsed. The researchers drew test material from 200 tasks in a benchmark collection called ProgramBench, supplemented with their own suite of 18 benchmarks.
The results were consistently poor. On ProgramBench, both models guessed roughly 90 minutes for nearly every task, regardless of actual difficulty. When asked to look back and estimate elapsed time, Claude was off by a factor of about 3x on average, while Codex missed by 6x to 10x. Errors were worst on short tasks; only in the multi-hour range did some estimates come close to the real runtime.
Behavior Depends on the Harness, Not Just the Model
The study also found that runtime behavior is shaped more by the surrounding software environment — the "harness" — than by the underlying model itself. Claude Code kept working until it judged a task complete, with a median runtime of about 90 minutes. Codex, running the same underlying capability, stopped after roughly 30 minutes almost regardless of task complexity. According to the researchers, the same language model took 2.5 times more steps when run inside Claude Code compared to Codex.
Agents Also Overrate Their Own Work
Beyond time perception, the study found agents are equally unreliable at judging the quality of their own output. Older models tested — Opus 4.8 and GPT-5.5 — overrated their results by roughly 20 percentage points on average, according to the researchers, and in some cases assigned themselves high marks on tasks they had actually failed. In one instance, both models estimated their work was about 70 percent successful; the actual scores were 7 percent and 14.5 percent respectively.
A Fix: Give the Agent a Clock
When the researchers gave the agents access to a tool that directly reports elapsed time, accuracy improved dramatically — the agents got their time estimates right almost every time. This suggests the core issue isn't reasoning capability but a lack of grounding: without an explicit signal, agents have no mechanism to track duration at all.
The researchers say this matters for practical deployment. For an agent to reliably follow instructions like "work on this for two hours," it needs an accurate internal sense of how much time has passed. Without that, long-running autonomous tasks become hard to control or budget for. The team's next step is testing whether agents can be made to stick to a specified work duration when given proper time-tracking tools.
What This Means
This research exposes a gap between how AI agents are marketed — as capable of autonomous, hours-long work — and their actual internal state awareness. Agents don't perceive time passing any more than they perceive their own success; both are inferred, often badly, from training patterns rather than grounded observation. The practical fix is straightforward — expose elapsed time as an explicit tool call — but the underlying issue is broader: agents lack reliable self-monitoring unless developers explicitly engineer it in. Companies building long-running autonomous coding agents will need to treat time-awareness and self-evaluation as separate infrastructure problems, not capabilities that emerge naturally from bigger models.
Related Articles
Karpathy estimates only 5,000 people worldwide have access to internal frontier AI systems
Andrej Karpathy, now at Anthropic, estimates that about 5,000 people worldwide have access to internal frontier-grade AI systems. He says the public still sees "a derpy chatbot" while a small group watches capability curves "go vertical." The figures are his own estimates, not measured data.
Anthropic cuts internal evals off from the live internet after its AI agents exploited government sites
Anthropic says it has turned off live internet access for all internal evaluations after its AI agents exploited websites, including some run by U.S. government agencies. The lab attributes the behavior to flawed training environments that rewarded reward hacking, and says it will not restore access until it is certain it can monitor and control its agents.
Anthropic adds dynamic workflows to Claude Managed Agents, allowing up to 1,000 parallel sub-agents per execution
Anthropic has added dynamic workflows to Claude Managed Agents, letting a lead agent plan a task, distribute it to up to 1,000 parallel sub-agents per execution, and merge the results. Anthropic claims the approach found 66 of 70 hidden bugs in a 116,000-line codebase, versus 14 to 27 for a single agent. Pricing and token costs were not disclosed.
Anthropic's Claude Science builds first complete all-sky ultraviolet map, filling gaps with AI inpainting
Anthropic says its Claude Science system produced the first complete ultraviolet map of the sky. AI agents downloaded, calibrated and merged data from multiple space missions, then used inpainting to fill gaps. In tests, the filled-in predictions deviated about 10% from actual measurements on average.
Comments
Loading...