TraceMetis: Toward Agent Comprehensibility

TraceMetis structures raw agent traces into hierarchical goals and evidence cards for human review and auditing.

0 SDK Edits
Zero Instrumentation
Analyzes raw conversations directly
6 Harnesses
Cross-Agent Support
Claude Code · Codex · Cursor · WorkBuddy · Antigravity · Pi
1-File HTML
Portable Replays
Self-contained timeline & Goal-Tree export
TraceMetis reconstructs flat trajectory logs into hierarchical Goal & Attempt blocks, linking every claimed outcome to observed environment outputs and human steering turns.
Key Highlights
  • Zero SDK instrumentation: no cloud telemetry. Trajectories are parsed locally, and only trajectory analysis calls the LLM service you provide.
  • Separates observed environment outputs from self-reported agent summaries to catch silent constraint skips.
  • Exports single-file, zero-dependency HTML replays with interactive timeline scrubbing.

Why Long-Horizon Agent Runs Need Sensemaking

Modern coding and research agents routinely execute hundreds of shell commands, file edits, and tool invocations within a single engineering session. When a 500-action run finishes, inspecting a flat chronological transcript is too noisy to audit reliably, while trusting the model’s own final summary risks missing subtle regressions or silently skipped constraints.

TraceMetis bridges the gap between raw event logs and human oversight. Instead of summarizing text into another paragraph of prose, it reconstructs the causal structure of the session—showing what goals were opened, which attempts failed or were superseded, where human feedback redirected scope, and what concrete evidence backs each final claim.

Interactive Demo

How TraceMetis Visualizes Its Own Build

Explore a real 501-action agent run from building TraceMetis itself—reconstructed into 23 incremental batches and 66 hierarchical goal blocks. Launch full-screen view to replay the timeline and inspect evidence cards.

Try Interactive Demo

Evidence-Anchored Goal & Attempt Trees

Grounded in goal-directed cognitive modeling, TraceMetis incrementally segments raw action streams into batches and updates a live hierarchy of Goal and Attempt blocks. Every status transition is tied back to verifiable span indices in the underlying trajectory.

  • Observed vs. Claimed Separation: Distinguishes ground-truth environment signals (test runner exit codes, compiler output, git diffs) from self-reported assistant text.
  • Human Steering Attribution: Surfaces mid-run user interventions as first-class pivot nodes, revealing how human corrections prune unproductive branches.
  • Incremental Batch Replay: Steps batch-by-batch through how the tree grew over time—highlighting newly created and newly settled sub-goals at each milestone.

Local Quickstart & Interactive Self-Build Demo

TraceMetis runs on your local machine with no SDK wrapper or cloud account required. There is no cloud telemetry: trajectories are parsed locally, and only trajectory analysis calls the LLM service you provide. Point it at existing local session directories or launch the local web workspace with a single command—or click Try Interactive Demo on this page to inspect a real 501-action run from building TraceMetis itself in full screen.

Terminal · Launch Local Sensemaking Workspace
npx tracemetis web --open

Paper & Citation

The paper describes the goal-tree representation, how TraceMetis reconstructs and renders it, and the user study behind these results. Read it on arXiv. If you use TraceMetis in your research, please cite:

BibTeX
@misc{zhang2026tracemetisagentcomprehensibility,
  title={TraceMetis: Towards Agent Comprehensibility},
  author={Zhao Zhang and Chao Peng and Peijie Dong and Laiheng Song and Guoqing Wang and Hande Dong and Qiang Lin and Yingfei Xiong},
  year={2026},
  eprint={2612.05953},
  archivePrefix={arXiv},
  primaryClass={cs.AI},
  url={https://arxiv.org/abs/2612.05953},
}

TraceMetis: Toward Agent Comprehensibility

TraceMetis 将原始智能体轨迹整理为层级化的目标与证据卡片,供人类审阅与审计。

0 处 SDK 改动
零埋点
原始对话直接分析
6 种 Harness
跨智能体支持
Claude Code · Codex · Cursor · WorkBuddy · Antigravity · Pi
单文件 HTML
便携回放
自包含的时间线与目标树导出
TraceMetis 将扁平的轨迹日志重建为层级化的目标(Goal)与尝试(Attempt)区块,把每一项声称的结果关联到实际观测到的环境输出与人类引导轮次。
核心亮点
  • 零 SDK 埋点:没有云端遥测,轨迹在本地解析,仅分析轨迹时调用你提供的 LLM 服务。
  • 区分实际观测到的环境输出与智能体的自述总结,揪出被悄悄跳过的约束。
  • 导出单文件、零依赖的 HTML 回放,支持交互式时间线拖动。

为什么长程智能体运行需要轨迹理解

如今的编码与科研智能体,在一次工程会话中往往要执行数百条 Shell 命令、文件编辑和工具调用。当一次 500 步的运行结束时,逐条查看扁平的时间顺序记录噪声太大,难以可靠审计;而直接相信模型自己给出的最终总结,又可能漏掉细微的回归或被悄悄跳过的约束。

TraceMetis 填补了原始事件日志与人类监督之间的鸿沟。它不是把文本再总结成另一段文字,而是重建会话的因果结构:开启了哪些目标、哪些尝试失败或被取代、人类反馈在哪里调整了范围,以及每一项最终结论背后有哪些具体证据。

交互演示

TraceMetis 如何可视化自身的构建过程

探索构建 TraceMetis 本身时一次真实的 501 步智能体运行,它被重建为 23 个增量批次和 66 个层级目标区块。进入全屏视图即可回放时间线并查看证据卡片。

体验交互演示

锚定证据的目标与尝试树

基于目标导向的认知建模,TraceMetis 将原始动作流增量切分为批次,并持续更新目标与尝试区块组成的层级结构。每一次状态变化都能追溯到底层轨迹中可验证的片段位置。

  • 观测与声称分离:区分真实的环境信号(测试运行器退出码、编译器输出、git diff)与助手自述的文本。
  • 人类引导归因:将运行中的用户干预作为一等的转折节点呈现,揭示人类纠正如何剪除低效分支。
  • 增量批次回放:逐批查看目标树如何随时间生长,在每个里程碑高亮新建和新完成的子目标。

本地快速上手与自构建交互演示

TraceMetis 在本地运行,无需 SDK 封装或云端账号;没有云端遥测,轨迹在本地解析,仅分析轨迹时调用你提供的 LLM 服务。只需指向现有的本地会话目录,或用一条命令启动本地 Web 工作台;也可以点击本页的“体验交互演示”,全屏查看构建 TraceMetis 本身时一次真实的 501 步运行。

终端 · 启动本地轨迹理解工作台
npx tracemetis web --open

论文与引用

论文介绍了目标树的表示、TraceMetis 如何重建和呈现目标树,以及支撑这些结果的用户研究。可以在 arXiv 上阅读。如果你在研究中使用了 TraceMetis,请引用:

BibTeX
@misc{zhang2026tracemetisagentcomprehensibility,
  title={TraceMetis: Towards Agent Comprehensibility},
  author={Zhao Zhang and Chao Peng and Peijie Dong and Laiheng Song and Guoqing Wang and Hande Dong and Qiang Lin and Yingfei Xiong},
  year={2026},
  eprint={2612.05953},
  archivePrefix={arXiv},
  primaryClass={cs.AI},
  url={https://arxiv.org/abs/2612.05953},
}