Why traces cannot tell whether an agent actually used its retrieved context

PersonalityWhich1780 · reddit · 2026-07-29

This long post argues that execution traces alone cannot tell you whether an agent actually used the documents it retrieved.

The author explains the difference between:

Because control-flow traces only show that the retriever ran and passed documents downstream, they miss whether the generator consumed that evidence. The post proposes a few ways to estimate “used,” including leave-one-out regeneration, lexical overlap, and possibly NLI entailment.

The author also shares a practical lesson from their own knowledge-graph retriever over GitHub events: highly connected hub nodes were being retrieved constantly but rarely used, and naive node-level suppression silently discarded 47% of PRs. They fixed this by suppressing hubs at the node-plus-relation level instead of per node alone.

The tool, GraphSight, is MIT licensed, runs locally, and is pip-installable.

Original post →

More from coding & agent

coding & agent channel →