session-viewer
Skill1.1k starsChanged 2 months agoMITView on GitHub
Render Codex, Claude Code, OpenClaw, or Pi session JSONL transcripts as a searchable, shareable single-file HTML viewer.
1 other project uses a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- hyforthy/skillstheir own version, first seen Apr 16, 2026
Who's talking about openclaw/agent-skills
- openclaw/openclaw“chore: sync autoreview secret redaction hardening”GitHub · Jul 16, 2026 · 3 reactions
- openclaw/openclaw“chore(autoreview): use the shared canonical skill”GitHub · Oct 2, 2026 · 1 reactions
- openclaw/openclaw-windows-node“chore(autoreview): use the shared canonical skill”GitHub · Oct 2, 2026 · 1 reactions
- openclaw/openclaw-atif“chore(autoreview): use the shared canonical skill”GitHub · Oct 2, 2026 · 1 reactions
- openclaw/gitcrawl“chore(autoreview): use the shared canonical skill”GitHub · Oct 2, 2026 · 1 reactions
The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 15
Talked about on GitHub (15 times).
On GitHub · 15
- Jul 16, 2026chore: sync autoreview secret redaction hardening — openclaw/openclaw3 reactions · 2 comments
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/openclaw1 reaction · 2 comments
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/openclaw-windows-node1 reaction · 2 comments
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/openclaw-atif1 reaction · 1 comment
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/gitcrawl1 reaction · 1 comment
10 more on GitHub
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/libterminal1 reaction · 1 comment
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/krillswitch1 reaction · 1 comment
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/discrawl1 reaction · 2 comments
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/crawlkit1 reaction · 2 comments
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/clawscan1 reaction · 2 comments
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/carapace1 reaction · 2 comments
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/clawhub1 reaction · 4 comments
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/crabbox1 reaction · 2 comments
- Oct 2, 2026chore(autoreview): use the shared canonical skill — openclaw/clawrouter1 reaction · 2 comments
- Sep 23, 2026chore(autoreview): sync canonical review policy and runtime fixes — openclaw/openclaw1 reaction · 3 comments
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- hyforthy/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/autoreview/AGENTS.mdAGENTS.md
- agent-transcriptSkill
- autoreviewSkill
- beamSkill
- behavior-validatorSkill
- crabboxSkill
- handoffSkill
- readme-standardSkill
- team-handoffSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use when asked to view, export, inspect, or share a Codex, Claude Code, OpenClaw, or Pi session transcript in a browser.
- Very specific: line 12
When the session path is not known and the agent-transcript skill is available, use it first to find the likely JSONL session:
- Very specific: line 71
Use sessions.json in the same directory to map session keys to session ids.
- Distinctive: line 87
avoid: enums, namespaces, decorators, parameter properties
- Distinctive: line 88
no tsconfig path aliases; use relative imports
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Session Viewer
Use when asked to view, export, inspect, or share a Codex, Claude Code, OpenClaw, or Pi session transcript in a browser.
Commands
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 14Pick 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 --openUseful 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 --openIn a downstream repo that syncs shared skills under .agents/skills, replace
skills/session-viewer with .agents/skills/session-viewer.
Defaults:
- detects
codex,claude, orpi-openclaw - embeds normalized session data into one HTML file
- keeps tool input/output text in the DOM so browser search can find it
- reads the complete session file, preserving full history in both export modes
--rawembeds the original JSONL and lets the browser parse it--blankcreates a reusable file-picker viewer
For an explicitly partial export, use --max-read-bytes N with a positive integer byte limit (for example, --max-read-bytes 8388608 for 8 MiB). Oversized files retain the head and tail, with a visible omission warning in the CLI and exported viewer. Truncated boundary records may be omitted; --raw embeds only the retained JSONL. Files at or below the limit remain complete. Short reads are retried; an unexpected end of file fails the export instead of reporting a complete read.
This opt-in read limit applies only to CLI file exports. The browser's file picker continues to load complete files.
Where Sessions Live
Codex:
find "${CODEX_HOME:-$HOME/.codex}/sessions" -name 'rollout-*.jsonl' -type f | sort
ls -t "${CODEX_HOME:-$HOME/.codex}"/sessions/*/*/*/rollout-*.jsonl | headOpenClaw/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 | sortUse 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 | headSome 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.
Development
Scripts are native Node TypeScript. Keep them erasable:
- ok: types, interfaces, unions,
satisfies - avoid: enums, namespaces, decorators, parameter properties
- no tsconfig path aliases; use relative imports
Importer ownership:
scripts/importers/codex.ts: Codex rollout JSONLscripts/importers/claude.ts: Claude Code JSONLscripts/importers/pi-openclaw.ts: Pi/OpenClaw session JSONL
Validate:
npm ci --ignore-scripts
npm run typecheck
node --test skills/session-viewer/scripts/session-viewer.test.ts
scripts/validate-skillsDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

