Transcript Digest
ASecurityDigest an Instrument chat's session before reading it, from its records folder (what the app's developer-mode Copy › Developer Details hands over as `Records folder:`) or an exported `*-transcript.md`. Use whenever someone hands over a chat location or a transcript to review, asks how a run went, where its time went, whether it shows harness issues, why a task failed or stalled, or passes a chat transcript whose child tasks matter. Gives timing buckets, failed/repeated/slow calls and one line...
- 6 stars
- 0 votes
- 0 copies
- 1 view
- Added November 9, 2026
Works with
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add instrument-org/instrument --skill transcript-digest --agent claude-codeAre you the author of Transcript Digest?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/instrument-org-transcript-digest)---
name: transcript-digest
description: Digest an Instrument chat's session before reading it, from its records folder (what the app's developer-mode Copy › Developer Details hands over as `Records folder:`) or an exported `*-transcript.md`. Use whenever someone hands over a chat location or a transcript to review, asks how a run went, where its time went, whether it shows harness issues, why a task failed or stalled, or passes a chat transcript whose child tasks matter. Gives timing buckets, failed/repeated/slow calls and one line per step with line numbers, so the Markdown is read only where it matters.
---
# Transcript digest
An exported transcript runs to thousands of lines, most of them the system prompt, loaded skills, and tool output. Reading it top to bottom burns context and still misses what only shows up in aggregate: where the wall clock went, which call failed, which command ran twice, where the run stopped. The digest parses the export once and prints those facts with line numbers into the file.
```bash
node .agents/skills/transcript-digest/scripts/digest.mjs <records> # the chat's own session
node .agents/skills/transcript-digest/scripts/digest.mjs <records> --session <session id> # one session in it, a task's included
node .agents/skills/transcript-digest/scripts/digest.mjs <records> --children # plus every task the chat started
node .agents/skills/transcript-digest/scripts/digest.mjs <file>.md # a transcript already rendered
node .agents/skills/transcript-digest/scripts/digest.mjs <file> --json # the same, structured
```
Developer details, as a chat's Copy › Developer Details copies them, are `Key: value` lines: `Chat`, `Chat ID`, `Work folder`, `Records folder` (the chat's record folder), `Project`, `Main thread` (the chat's own session), `App` and `Computer` (the OS and the computer's name). Pass `Records folder`. Given a folder, the digest first renders the session to Markdown with `script:dump-session-transcript` (the `session-transcript` skill) into `$TMPDIR/transcript-digest/` and prints that file's path on its first line; the `L` numbers point into it. The records are written on the computer `Computer` names. In a workspace that syncs (iCloud Drive), the same folder is on this Mac too, at this Mac's home: swap the user folder in the path. A log still in the cloud is downloaded by the export. Otherwise ask for the transcript or run the dump there.
The digest itself has no dependencies and reads only the Markdown, so it works on a transcript from anyone's machine. `--children` is the one part that needs this Mac: it reads the chat's own records (the record folder the transcript's `chatDir` names, one `<session>.<device>.jsonl` per session per device), takes every session whose header names the chat's session as its parent, which is each task the chat started, and exports each through `script:dump-session-transcript --session` (the `session-transcript` skill). A chat whose folder is not here, or a task that fails to export, is reported with the exporter's message rather than failing the run.
A task's transcript opens with the chat's conversation up to where the task was started, which the task reads as its own history. The export marks where the task's own messages begin with `## Task starts here`, and its front matter counts only those; the digest leaves everything above that heading out of its flags, timings and step list, and says on which line the task starts.
## How to use it
1. Run the digest first, always. Read its header, time split and flags before opening the transcript.
2. Read the transcript only at the line ranges the flags and the step list point to (`sed -n 'A,Bp'` or Read with an offset). The step list's `L` numbers are the step headings; a flagged tool call's line is its `### Tool Call` heading, with the result below it.
3. If the header says the same session was exported more than once, work from the newest export and say which one you used. Identical copies are marked.
4. For a chat (`instrument task new` / `instrument task send` in its calls), rerun with `--children` before judging what a child did; the chat only sees the child's receipt. Each child's header gives the path of its exported transcript; read that file at the child's flagged lines rather than running the digest again.
## Reading the output
- **Where the time went** splits each step's wall clock into waiting for the first token, the model writing, tools running past the end of generation, and what is left. It counts only time inside a turn; gaps before the user's next message are listed separately under "Between turns".
- **Flags**, worst first: `error` (non-zero exit, error result, or a call the export marks failed), `incomplete` (a call that never finished streaming), `unanswered` (the last user message got no reply), `finish` (a step that ended other than `tool-calls`/`stop`, e.g. `aborted`, `length`, `unknown`, with the provider's error message; an `aborted` step the user's mid-turn message `superseded` is only `info`), `ended-open` (the session stopped mid-call, with the idle time before export), `slow-model` (first token over 10s), `slow-tool` (over 20s of the call itself running), `slow-args` (over 20s for the model to write a call's arguments, which `slow-tool` leaves out), `gap` (over 30s unaccounted inside a turn), `repeat` (a call identical to an earlier one), `big-result` (over 25k characters into context), `truncated`, `cache-miss` (a step right after another step that read nothing from cache, over 2k input tokens: the provider lost the session's cache affinity, which is usually a missing header in `packages/ai-gateway/src/routes/provider.ts`). More than three of one kind collapse into one line with every line number.
- `sent with:` under a step names the notes its request went out with and the conversation never shows (`turn`, `skill`, `correction`, ...); the transcript has each one's text under `### Request Note:`. Read these before judging why a model did something unprompted.
- `repeat` is only a lead. Observation commands (`agent-browser snapshot`, `ls`, rereading a file after an edit) legitimately repeat; an identical failing command repeated is the pattern that matters.
## What it cannot see
Anything that needs reading. A tool that reported success but did nothing (a click that returns `✓ Done` without the page changing), a wrong answer, a misread instruction, a model reasoning in circles: none of these trip a flag. The digest says where to look and how long things took; the judgment about what happened still comes from reading those ranges.
A transcript made from a problem report's records has every string the agent read replaced by its length (`<1524 chars>`, `report-outline.ts`), so whatever the export works out from such a string describes the placeholder: a fetch "cut off after 13 characters" was cut off at the length its placeholder names, and a `Persisted Data` block invalid over a `prt_` or `dev_` id is the redaction. Neither is a failure.
It trusts the export's own timestamps. `activeDurationMs` and per-step timings come from the app; a step whose metadata is missing shows `?`.
## Format notes
The parser follows the Markdown `getSessionMarkdown` (`packages/workspace/src/lib/session-to-markdown.ts`) writes: `## User (Turn N) @`, `## Assistant (User Turn N, Step M) @`, `### Tool Call K: name @ time +duration`, `*Response metadata: k=v, ...*`, and `Exit code:`, `**Error:**`, `**Error (JSON):**` and `*Execution denied*` in results, `### Request Note: <kind>` for a step's note, `## Task starts here` in a task's. It also reads the 1.x shapes (steps without numbers, arguments as `<tool><arg>` XML). When the exporter's headings change, update `scripts/parse.mjs` to match, and check it against a few saved transcripts: a format it no longer understands shows up as steps with no calls or calls with empty labels, not as an error.
Files in this skill
- SKILL.md
- scripts/children.mjs
- scripts/digest.mjs
- scripts/parse.mjs
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.