Research foundations of Evals and the optimizer
The three papers whose methods run in Mehtagent's Evals and optimizer, and what we took from each.
Mehtagent asks whether you used the result and treats your answer as the outcome. With no answer, it infers one from the session log, such as a commit or a deploy, and labels it inferred. The optimizer drafts changes to the skills and Guides around the model, never the model itself.
How it works in detail
Estimates of time saved stay apart from measured time
Becker, Rush, Barnes and Rein (METR), Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity, arXiv preprint, July 2025.
In METR's randomized controlled trial, 16 experienced open-source developers did 246 tasks from their own repositories, each randomly assigned to allow or disallow AI tools. With AI they took 19% longer, though they had expected a 24% cut in time and afterwards believed in a 20% one.
So Mehtagent records your sense of time saved as an estimate. When a task ends it asks "About how long by hand?", with four answers from 15 minutes to a day or more. Active minutes come separately from message timestamps, leaving out gaps over five minutes. Evals shows the two side by side as separate numbers. Mehtagent sees only tasks done with AI, so the by-hand answer stays your estimate.
Each task gets an O*NET activity and a collaboration pattern
Handa, Tamkin, McCain and others (Anthropic), Which Economic Tasks are Performed with AI? Evidence from Millions of Claude Conversations, arXiv preprint, February 2025.
The authors matched Claude.ai conversations to O*NET task statements and sorted each into five collaboration patterns. Evals groups tasks by O*NET intermediate work activity and gives each one of the five patterns, using fixed keyword rules.
We count failure loops as wasted work
Li, Xu, Singh and others (11 authors), TokenEconomizer: Experience-Driven Black-Box Cost Control for Coding Agents, arXiv preprint, October 2026.
TokenEconomizer is a controller outside a coding agent that learns from earlier tasks in the same repository. It chooses skills to inject and tools to remove, and interrupts a failure loop it spots from repeated errors or a run past a turn budget. Across Claude Code, Codex and GitHub Copilot CLI, the authors report 18.4 to 30.9% fewer tokens with comparable task success.
After a task, Mehtagent counts retried steps, loops (a file or command that failed at least twice) and loops the agent escaped. The counts go on the task's row with no command or path.
DecisionBench defines the measures behind Evals, and Optimizers describes the before-and-after screen.
Mehtagent