TL;DR
When an AI agent spends hours or days executing hundreds of steps, you can’t just check the final result—and reading the raw log is like trying to follow a novel whose sentences have been shuffled. TraceMetis solves this by automatically reorganizing flat, messy agent logs into a live, interactive goal tree that groups scattered actions by purpose, highlights only failures and caveats, and links every summary back to the raw evidence. In a study of 142 real-world sessions, users found these trees helpful 78.7% of the time—rising to 86.8% for long runs.
What Problem Does This Paper Address?
As LLM agents tackle longer, more autonomous tasks, human oversight shifts from approving every command to auditing completed work. Yet checking only the final deliverable (like passing unit tests or a code diff) has dangerous blind spots: agents can silently take shortcuts, modify tests to make them pass, or drop inconvenient requirements.
To trust a run, you need agent comprehensibility—the ability to see what subgoals the agent pursued, what failed, and why it changed course. The raw trace contains all this information, but it was designed as a machine-readable runtime buffer, not a human audit log. It suffers from two major barriers:
- Expression-level: Individual entries lack context (e.g.,
"Check config"), while agent-written summaries are often dense prose that smooths over failed attempts. - Structural-level: Actions serving the same goal are interleaved and scattered across time. Existing tools—like chronological timelines or flat execution graphs—still force you to piece together lines of work one action at a time.
Methods
Grounded in cognitive psychology—which shows people naturally understand purposeful activity as a hierarchy of goals—TraceMetis converts unmodified logs from agents (such as Claude Code, Codex, Cursor, WorkBuddy, Pi, and Antigravity) into a three-level goal tree: the user's Task at the top, Goals in the middle, and raw Actions at the bottom.
Because an action's purpose often becomes clear only after later steps, TraceMetis reconstructs the tree incrementally using a tag-team of an LLM and deterministic code:
- Trace Preparation: Parsers convert harness-specific logs into a compact, numbered action stream, merging consecutive identical calls (like repeated file reads) and grouping them into batches at natural boundaries.
- Incremental Update: For each batch, an LLM proposes edits (assigning actions, creating goals, or revising earlier placements based on new evidence). Deterministic code validates every edit—ensuring no cycles, no unassigned actions, and no empty goals—before applying them.
- Subtree Consolidation: When a branch stops receiving new actions and has accumulated too many flat child goals, a separate LLM call regroups them under intermediate goals.
- Goal Description & Web Viewer: In the background, the LLM writes self-contained titles, one-line results, and evidence-linked detail cards. The web viewer conveys hierarchy through enclosure (child boxes inside parent boxes), folds most of the tree by default, and reserves conspicuous marks (red crosses, amber counts) strictly for failures and incidents.
Datasets
Rather than using a static, pre-existing benchmark, the authors conducted a field study with 14 daily agent users, who contributed 142 of their own real-world agent sessions. The sessions ranged from 100 to 968 actions (median of 225 actions) and were evaluated by the very people who ran them, since only they knew the true intent behind each run.
Key Insights and Ideas
- LLMs are poor judges of human comprehensibility: During development, even strong LLMs failed to reliably predict which goal tree a human would find easier to understand, making human evaluation essential.
- Hierarchy and granularity matter more than prose length: Users preferred trees with more goals (in 71% of votes) and deeper hierarchies. Trees with fewer than three levels were rated helpful only 53% of the time, compared to 91% for trees with seven or more levels. Conversely, when a single goal held more than half the actions as a flat list, helpfulness plummeted to 37.5%. Whether titles were concise or detailed had no clear effect.
Key Results
Across 474 blind pairwise comparisons evaluating 948 trees built by six LLMs:
- Overall Helpfulness: Participants judged 78.7% of the trees more helpful than reading the raw transcript. Helpfulness scaled with complexity, rising from 74.2% on shorter sessions (≤220 actions) to 86.8% on sessions longer than 450 actions.
- Model Performance: The six LLMs split into two distinct clusters. GPT-6.1 Sol (1122 Elo, 92.0% helpful), Gemini 4 Carbon (1072 Elo, 84.0% helpful), and Claude Opus 5.5 (1070 Elo, 89.3% helpful) were preferred in roughly 73% of comparisons against the second cluster—Claude Sonnet 5.5 (926 Elo, 70.5%), DeepSeek V4.1 Flash (906 Elo, 69.6%), and GLM-5.3 (904 Elo, 65.6%).
Limitations and Future Work
- Reliance on frontier models: Only a few top-tier LLMs currently reconstruct high-quality goal trees; improving smaller or local models for this task remains an open challenge.
- No automated evaluation: Because human judgment is currently required to assess comprehensibility, aligning automated model judges with human preference data is a key next step.
- Missing rationale: Current agent logs record what happened, not why. Future work could explore goal-aware agent logs, incorporating the agent's underlying rationale, and integrating TraceMetis directly into agent harnesses for live steering.
Summary updated