Agent Transcript Auditor

Your coding agent keeps a receipt for everything it did. Read it before you trust it.

An agent session transcript is the line-by-line record of everything an AI coding agent did — every tool call it made and every result that came back. Claude Code writes one for every session, as a .jsonl file under ~/.claude/projects/. Paste that file here and this auditor reads it in your browser — never uploaded — and flags destructive commands, secret reads, network calls that post file contents outward, prompt-injection-looking tool output, error loops, and writes outside the project. The companion article what your AI agent did while you weren't looking walks through a real transcript by hand. Also see the Agent Readiness Checker and the MCP Server Probe.

Last updated:

1. Audit a transcript

Drop a .jsonl file here, or choose one below

A Claude Code session file from ~/.claude/projects/<project>/<session-id>.jsonl, or any JSONL agent log. Up to 20 MB — parsed in chunks, in your browser.

Comma-separated, e.g. example.com, api.example.com. Hosts outside this list are flagged Info — there is no blocklist, and none is invented.

🔒 The audit runs entirely in your browser: the transcript is never uploaded, never stored, and never sent anywhere. A session file can hold live secrets — that is exactly why it stays on your machine.

What a session transcript is

Claude Code writes one transcript file per session, as JSONL at ~/.claude/projects/<project>/<session-id>.jsonl, where <project> is your working directory path with non-alphanumeric characters replaced by -. Each line is one JSON object: a message, a tool use or result, a record of a request sent to the model, or a metadata entry. Transcripts are kept for 30 days by default (cleanupPeriodDays). That location and shape come from Anthropic’s own docs — see the Format reference row below.

Inside a session, the shape this auditor reads is the observed one: an assistant line carries message.content with tool_use blocks — each with an id, a tool name and its input — and a later user line carries the matching tool_result block, with tool_use_id, the result content and is_error. Text blocks are read and ignored for findings; the pairing by id is what turns a pile of lines into a timeline of calls.

One honest caveat, straight from the same docs: the entry format is internal to Claude Code and changes between versions, so a parser written against it can break on any release. This auditor is best-effort by design — lines it cannot read are counted under “Unparsed lines” and listed, never silently dropped — and it also accepts a generic shape: any JSONL line carrying a tool or function name plus input or arguments fields parses as one call.

OpenAI Codex writes its sessions in a different format, and this auditor does not parse Codex as Codex — a Codex file only ever reaches the generic fallback above. Live agent sessions are never fetched: there is no session to fetch from, and the audit only ever reads the file you paste or drop.

What this auditor does — and what it does not

It parses the transcript in your browser, in chunks so a multi-megabyte log does not freeze the page, pairs every tool_use with its tool_result by id, and runs seven rule groups over the calls: destructive shell commands, secret reads and exfiltration-shaped posts, outbound hosts, prompt-injection-looking tool output, errors and retry loops, and writes outside the project root. Results are a summary, findings grouped by severity with a fix for each, a timeline with expandable raw input, a hosts table, and the unparsed-line count — with findings CSV and full JSON export.

It does not judge intent: a finding is a pattern, not a verdict. It does not know about calls outside the pasted file — a session the agent ran yesterday, a subagent transcript in another file, or anything the model did without a tool call are all invisible here. It does not send anything anywhere, and it does not fetch a live session.

The demo is a synthetic session in the observed Claude Code shape — a fictional project, invented values, labelled “Demo transcript” — with one destructive rm -rf, one .env read, one exfiltration-shaped curl, one injection-looking result, three consecutive failed test runs, a force-push, a write to /etc and a sudo. One click fills the input and shows the timeline and findings on the first screen.

Be honest about what a finding means

A finding means “this pattern matched”, not “something bad happened”. rm -rf in a scratch directory, reading your own .env to debug a connection string, or sudo inside a throwaway container may all be exactly what you asked for. Read each finding with its evidence — the quoted command, path or phrase — and with the context only you have, then decide.

And a clean audit is not a clean bill of health. This tool sees only the file you gave it: it cannot see a call the agent made in another session, a secret it read and never wrote down, or an instruction it followed that left no trace in the output. “No findings” means no risky pattern was found here — not that the session was safe.

Key facts

Session transcriptThe line-by-line record of one agent session: every prompt, every tool call and every result, kept as a file so the session can be resumed later.
JSONLJSON Lines: a text file with one JSON object per line. A session file is JSONL, so it can be read line by line without loading the whole file into memory at once.
tool_useA content block inside an assistant message: the model calling a tool, with an id, the tool name and its input. The id is what the result is matched against.
tool_resultA content block inside a user message: what a tool returned, with tool_use_id pointing back at the call, the result content, and is_error when the call failed.
Format referenceClaude Code — Manage sessions (official docs)
Prompt injection (signal)Instruction-like text arriving in tool output — output the agent did not write and should not obey. A matching phrase is a signal to review by hand, never a verdict that an injection happened.
Project rootThe working directory the session ran in, read from the transcript’s cwd field. Writes to absolute paths outside it are flagged as out of scope.
Unparsed lineA line the parser could not read as JSON, or a JSON line in no shape it recognises. Unparsed lines are counted and listed — never silently dropped — so a gap in the timeline stays visible.

Frequently asked questions

Why does the audit run in my browser instead of on a server?

Because a transcript can hold live secrets. The file contains every file the agent read and every command it ran — database URLs, API keys, tokens — in plaintext. Sending that to a server to audit it would create the exact exposure the audit is meant to catch. Parsing it locally means the secrets never leave your machine.

My transcript has findings — did the agent do something wrong?

Not necessarily. A finding is a pattern that matched, and many matches are intended: deleting a build cache with rm -rf, reading your own .env, retrying a flaky test three times. Open the finding, read the quoted evidence, and ask whether the call was what you wanted. The suspicious ones deserve a closer look: injection-looking output is a signal, and an exfiltration-shaped curl is worth tracing even when it turns out to be a test.

Some lines are unparsed — is my transcript broken?

Probably not. The session format is internal to Claude Code and changes between versions, so any parser written against it will meet lines it does not recognise — summaries, mode changes, request records, newer block types. Unparsed lines are counted and listed so you can see what was skipped; the calls that did parse are still audited. If most lines are unparsed, the format has likely moved on — check the Format reference row for the current docs.