TraceMetis: Towards Agent Comprehensibility
Zhao Zhang, Chao Peng, Peijie Dong, Laiheng Song, Guoqing Wang, Hande Dong, Qiang Lin, Yingfei Xiong
Abstract
Large language model (LLM) agents now carry out tasks that span hundreds of steps over hours or days, and people increasingly review such runs only at milestones or after they finish. To trust a run, a reviewer must tell which subgoals the agent pursued, which attempts failed, why it changed approach, and what caveats qualify its result; we call this property agent comprehensibility. The trace of a run records every action, yet it answers none of these questions directly: it interleaves actions from different goals, scatters actions serving the same goal across the log, and provides no grouping between a single action and the whole run. Following evidence that people understand purposeful activity as a hierarchy of goals, we reorganize the trace into a goal tree, which attaches each action to the goal it served and each goal to the larger goal it served, up to the user's task, and states for every goal what it set out to do and what it produced. We present TraceMetis, which reconstructs goal trees from unmodified logs of agents such as WorkBuddy, Claude Code, Codex, Cursor, Pi, and Antigravity, and updates them while the agent runs. Because the purpose of an action often becomes clear only from later actions, TraceMetis revises the tree with an LLM as each batch arrives and checks every revision with code. A web viewer draws child goals inside their parents, marks only exceptions such as failures, and links every statement to the raw actions behind it. In a blind pairwise study, 14 agent users compared trees built by six LLMs on 142 of their own sessions. They judged 78.7% of the trees helpful for understanding the run, rising to 86.8% for sessions longer than 450 actions. Trees from GPT-6.1 Sol, Gemini 4 Carbon, and Claude Opus 5.5 were preferred in about 73% of comparisons against the other three LLMs, and preferred trees tended to have more goals and levels.
Create a lesson
Metadata
- Categories
- cs.AI, cs.HC, cs.SE
- Comments
- Technical report. 23 pages, 14 figures. Project page: https://tencent.github.io/TraceMetis ; code: https://github.com/tencent/tracemetis
Related papers
Copanion: Towards a Trustworthy Autonomous Research Agent
Shared title terminologycs.AIXiaohe Bo, Ruifeng Hu, Jianxun Lian et al.
MedLean: A Modest Step Toward Reviving Formal Medical Verification as a Safety World Model in the Era of MLLMs
Shared title terminologycs.AIZhihao Tang, Chao Li, Jun Zhao
StageGate-RSI: Stage-Decoupled Attribution and Statistically Gated Recursive Self-Improvement for Agentic Vulnerability Discovery
Shared title terminologycs.AIJingyang Lu, Jingwei Zhang, Jialin Yu et al.
CADAgentBench: Benchmarking LLM Agents on End-to-End Mechanical Engineering Workflows
Shared title terminologycs.AIJiale Liu, Guanguan Ke, Shaokun Zhang et al.
Cheap Date? Measuring The Cost of Agentic AI Romance Scam
Shared title terminologycs.AIJohn Francis, Jonathan Bright, John D Gallacher
RLVR Makes Agents Win More, but Not Necessarily Reason More Reliably
Shared title terminologycs.AIWenhao Lu, Josua Spisak, Jae Hee Lee et al.