DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to check what an agent read before it edited a file with Agentplay

Replay a session to see which files the agent opened before changing code, and which it never opened.

Short answer: Run uvx agentplay in a terminal to build maps and open the local viewer; then open the session you want to review from the session list in the viewer; use the map to find the edited file and check which files were seen or read before it. All steps.

Who it is forA developer reviewing an agent's pull-ready changes who wants to confirm it looked at the right code first.

The problemA diff shows the final edit but not the investigation that led to it, so a reviewer cannot tell whether the agent read the relevant files.

The outcomeA clear list of files read, edited, and skipped in the session, with the order they were touched.

What you need first

  • Python 3.11 or newer
  • uv, pipx, or pip to run agentplay
  • Existing session transcripts from a supported agent such as Claude Code, Codex, or Cursor on the same machine

Steps

  1. Run uvx agentplay in a terminal to build maps and open the local viewer.
  2. Open the session you want to review from the session list in the viewer.
  3. Use the map to find the edited file and check which files were seen or read before it.
  4. Press Space to play the timeline and watch the order of reads and edits.

Prompt for your agent

In the agentplay repo at https://github.com/Entelligence-AI/agentplay, run `uvx agentplay` and open the session that edited <target file path>. Report which files the agent read before the first edit to that file and which related files it never opened. Verify by confirming each listed read appears earlier than the first edit on the timeline.

Caveat. The map shows files and actions, not the agent's reasoning or the text of its prompts, so you still need the diff to judge the change itself.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for Entelligence-AI/agentplay and "Check what an agent read before it edited a file"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer