arXiv cs.AI· Zhao Zhang, Chao Peng, Peijie Dong, Laiheng Song, Guoqing Wang, Hande Dong, Qiang Lin, Yingfei Xiong·· 2 天前AI 评分49
TraceMetis:面向智能体可理解性的目标树重建方法
TraceMetis: Towards Agent Comprehensibility
AI 导读
TraceMetis 是一种从 Claude Code、Codex、Cursor 等智能体的原始运行日志中重建目标树的方法,把每个动作挂到其所服务的目标上,并在智能体运行时用 LLM 逐步修订、用代码校验。
正文 · 原文
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.
| Comments: | Technical report. 23 pages, 14 figures. Project page: this https URL ; code: this https URL |
| Subjects: | Artificial Intelligence (cs.AI); Human-Computer Interaction (cs.HC); Software Engineering (cs.SE) |
| ACM classes: | H.5.2; I.2.11; D.2.5 |
| Cite as: | arXiv:2612.05953 [cs.AI] |
| (or arXiv:2612.05953v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2612.05953 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Chao Peng [view email]
[v1]
Thu, 3 Dec 2026 15:45:50 UTC (6,505 KB)
来源:arXiv cs.AI · arxiv.org