A local receipt for session evidence and the current Git diff
I built agent-change-receipt for reviewing a coding session after the work is done. It reads one native JSONL session and captures the current Git worktree as a separate source of evidence. The result is a local HTML and Markdown report. The main design choice is to keep the session and worktree evidence distinct. Calls and results are correlated by session ID and call ID. A result counts only…
The agent-change-receipt tool aids in reviewing coding sessions after completion. It generates a local HTML and Markdown report, distinguishing session evidence from Git worktree data. The session and worktree evidence are interconnected through session ID and call ID. Only results with integer exitCode or exit_code in their structured metadata are considered valid.
The parser does not execute commands found in the session, ignores raw command output, user messages, and assistant prose. The Git section of the report reflects the worktree state at the time of report generation. A modified file and a recorded command can coexist in the report, but this does not imply the session produced or verified that file.
This distinction is crucial when a later edit, manual correction, or another process alters the checkout. The provided demo constructs a temporary synthetic Git repository, alters two tracked files, adds an untracked path, and creates a synthetic session. No personal transcript data is included in the HTML/GIF. The runtime is Node 20 or newer, with no runtime dependencies.
The report remains local unless the user decides to share it. The tool handles common credential shapes through secret masking, which is best effort, and advises reviewing the files before sharing. The project focuses on one receipt instead of a live dashboard or a full session history browser. The author seeks feedback on the report format, the separation between evidence sources, and any native session fields that could be better supported. Visit https://github.com/Arthur031221/agent-change-receipt for the project.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.