/upstream-skills:session-viewerfrom upstream-skills
Renders Codex, Claude Code, OpenClaw, or Pi session JSONL transcripts as a searchable, shareable single-file HTML viewer.
Ships in upstream-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use when asked to view, export, inspect, or share a Codex, Claude Code, OpenClaw, or Pi session transcript in a browser.
When the session path is not known and the agent-transcript skill is available, use it first to find the likely JSONL session:
.agents/skills/agent-transcript/scripts/agent-transcript find \
--query "$USER_GOAL_OR_TITLE $BRANCH_OR_URL" \
--cwd "$PWD" \
--since-days 14
Pick the highest-confidence file result, then render it with session-viewer.
From a repo that has this skill:
node skills/session-viewer/scripts/session-viewer.ts <session.jsonl> --out /tmp/session.html --open
Useful modes:
node skills/session-viewer/scripts/session-viewer.ts <session.jsonl> --out session.html
node skills/session-viewer/scripts/session-viewer.ts <session.jsonl> --raw --out session.html
node skills/session-viewer/scripts/session-viewer.ts --blank --out viewer.html --open
In a downstream repo that syncs shared skills under .agents/skills, replace
skills/session-viewer with .agents/skills/session-viewer.
Defaults:
codex, claude, or pi-openclaw--raw embeds the original JSONL and lets the browser parse it--blank creates a reusable file-picker viewerCodex:
find "${CODEX_HOME:-$HOME/.codex}/sessions" -name 'rollout-*.jsonl' -type f | sort
ls -t "${CODEX_HOME:-$HOME/.codex}"/sessions/*/*/*/rollout-*.jsonl | head
OpenClaw/Pi:
AGENT_ID="<agentId>"
SESSION_DIR="${OPENCLAW_STATE_DIR:-$HOME/.openclaw}/agents/$AGENT_ID/sessions"
ls -t "$SESSION_DIR"/*.jsonl | head
find "${OPENCLAW_STATE_DIR:-$HOME/.openclaw}/agents" -path '*/sessions/*.jsonl' -type f | sort
Use sessions.json in the same directory to map session keys to session ids.
Claude Code:
find "$HOME/.claude/projects" -name '*.jsonl' -type f | sort
ls -t "$HOME/.claude/projects"/**/*.jsonl | head
Some Claude installs also keep exported JSON/JSONL under project-specific cache folders; prefer the newest JSONL with the target repo path in its parent folder.
Scripts are native Node TypeScript. Keep them erasable:
satisfiesImporter ownership:
scripts/importers/codex.ts: Codex rollout JSONLscripts/importers/claude.ts: Claude Code JSONLscripts/importers/pi-openclaw.ts: Pi/OpenClaw session JSONLValidate:
pnpm exec tsgo -p skills/session-viewer/tsconfig.json
node --test skills/session-viewer/scripts/session-viewer.test.ts
scripts/validate-skills
agents/openai.yaml (opens in a new tab)scripts/core/detect.ts (opens in a new tab)scripts/core/jsonl.ts (opens in a new tab)scripts/core/types.ts (opens in a new tab)scripts/html.ts (opens in a new tab)scripts/importers/claude.ts (opens in a new tab)scripts/importers/codex.ts (opens in a new tab)scripts/importers/pi-openclaw.ts (opens in a new tab)scripts/session-viewer.test.ts (opens in a new tab)scripts/session-viewer.ts (opens in a new tab)tsconfig.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
session-viewer, transcript-viewer, jsonl-viewer, html-export
npx claudepluginhub dinglebear-ai/dendrite --plugin upstream-skills11 skills in this plugin
/acpxUse acpx as a headless ACP CLI for agent-to-agent communication, including prompt/exec/sessions workflows, session scoping, queueing, permissions, output formats, system-prompt overrides, and multi-agent flows authored with defineFlow/decision/decisionEdge./agent-transcriptGitHub PR/issue agent transcripts: redact, preview, and insert safely./autoreviewPre-commit/ship code review: Codex default; optional Claude, Pi, Droid, Copilot, Cursor, or OpenCode.Other plugins' skills for the same job