AgentTrails: Towards Trust and Reuse for Agentic Tasks

Eden Wu, Sonia Castelo, Yurong Liu, Cláudio T. Silva, Juliana Freire
7/21/2026
cs.DBcs.AI

No confident code implementation found for this paper.

Abstract

LLM-powered agents increasingly tackle complex tasks by invoking tools, querying databases, executing code, and manipulating intermediate artifacts. These agents follow trajectories that are typically stored as chronological logs, obscuring the underlying dataflow -- the dependencies between their actions and the artifacts they create and manipulate.

Show full abstract

This limits developers' ability to understand the agents' trails, compare executions, debug failures, and re-use the computations. We present AgentTrails, a prototype system for agent provenance and sensemaking. AgentTrails converts raw trajectories into structured provenance graphs, where tool calls are modeled as computational actions and inputs and outputs as data artifacts. The system supports the comparison of executions by placing multiple provenance graphs on a shared canvas and constructing a joined quotient graph that aligns recurring tools, artifacts, and dependency structures across trajectories. On top of this representation, AgentTrails supports pattern extraction, downstream analysis, and skill abstraction. We demonstrate AgentTrails on real-world agent trajectories, showing that it reveals hidden dependencies, aligns divergent executions, and surfaces recurring tool-use patterns beyond chronological logs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wu2026agenttrails,
  title  = {AgentTrails: Towards Trust and Reuse for Agentic Tasks},
  author = {Eden Wu and Sonia Castelo and Yurong Liu and Cláudio T. Silva and Juliana Freire},
  year   = {2026},
  eprint = {2607.18816},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.18816v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.18816.svg)](https://codeofpaper.com/paper/2607.18816)

Discussion