jahau

Agent Session Diff — Testing skill for Claude Code

Testing community

Compare two AI coding-agent session exports (Claude Code, Codex CLI): file changes, commands, test runs and timing, using only what the logs record.

How to install Agent Session Diff

This entry records only its repository, not the path inside it, so there is no exact command to give. Open jahau/agent-session-diff and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Session Diff does

Compare two AI coding-agent session exports (Claude Code, Codex CLI): file changes, commands, test runs and timing, using only what the logs record. Offline, deterministic, never executes logged commands.

Alternatives in Testing

  • Marketing Skills Versions — Current versions of all skills 13.8k ★
  • Debug — You are tasked with helping debug issues during manual testing or implementation 10k ★
  • L Debug Trace — Analytically debug issues by tracing data flow through code - no logs, no test-and-see 3k ★

README

agent-session-diff

Compare two AI coding-agent session exports side by side: which files each agent changed, which commands it ran, how its test runs went, and how long it took. The comparison is built only from what the exports record.

agent-session-diff claude-session.jsonl codex-rollout.jsonl --html report.html

![Terminal summary](docs/screenshots/terminal-summary.png)

What it guarantees

  • Explicit inputs only. You pass exactly two files. The tool does not scan ~/.claude or ~/.codex, find sessions for you, or make network requests.
  • Logged commands are never executed. No package in this module imports os/exec, syscall or net. A test (TestNoProcessExecution) enforces this.
  • No inference. Values come from the exports or are shown as not recorded. The tool does not fill in a Claude Code exit code of 0 for a successful command. It does not compute durations from timestamps. It does not turn shell commands such as rm or sed -i into file changes.
  • Unsupported fields are labelled. Every report has a field-support table. It lists each compared field as recorded, partial (with coverage, for example 1/6 commands), not recorded, or unsupported, with a note explaining why.
  • Deterministic. The same inputs and flags always give byte-identical terminal, HTML and JSON output. There is no "generated at" timestamp. Map order never affects output. Results don't depend on the OS the tool runs on.
  • Redaction on request. --redact removes secrets and local paths before anything is compared or rendered.

Install

With Go 1.24 or newer:

go install github.com/jahau/agent-session-diff/cmd/agent-session-diff@latest
agent-session-diff version

Or download a prebuilt binary for Linux, macOS or Windows (amd64 and arm64) from the [Releases page](https://github.com/jahau/agent-session-diff/releases). Check the archive against `SHA256SUMS` before you run it:

sha256sum --check --ignore