session-viewer

session-viewer is a skill for Codex from openclaw/agent-skills. It costs 32 tokens per session (1,092 once invoked), scanned B, original, MIT.

A browser-based viewer that turns JSONL session transcripts from coding agents into a searchable, shareable single-file HTML page.

In plain words
What is it for?
Use it to view Codex, Claude Code, OpenClaw, or Pi transcripts in a browser, including a blank viewer or a raw transcript view.
Why use it?
It makes long agent conversations easier to inspect, export, and share without opening the original command-line session.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex; built for openclaw.

Good fit Use it to view Codex, Claude Code, OpenClaw, or Pi transcripts in a browser, including a blank viewer or a raw transcript view.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openclaw/agent-skills/session-viewer
About the project

OpenClaw Agent Skills is a shared repository of reusable workflows for coding agents working on OpenClaw projects. It provides skills for activities such as code-review closeout, behavior validation, session handoff, remote testing, transcript provenance, and viewing agent sessions. The catalogue entries are the project’s distributed skills and instruction.

openclaw/agent-skills · 1,130 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add openclaw/agent-skills --skill session-viewer
Clone the repo
git clone --depth 1 https://github.com/openclaw/agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-viewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/openclaw/agent-skills/session-viewer/github.svg)](https://agentmods.dev/skills/openclaw/agent-skills/session-viewer)
Your own site
<a href="https://agentmods.dev/skills/openclaw/agent-skills/session-viewer"><img src="https://agentmods.dev/badge/skills/openclaw/agent-skills/session-viewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for session-viewer

Your own site · 80×15
<a href="https://agentmods.dev/skills/openclaw/agent-skills/session-viewer"><img src="https://agentmods.dev/badge/skills/openclaw/agent-skills/session-viewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,092 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 76
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01092
Opus 5.5 $0.00013 $0.00437
Sonnet 5.5 $0.00006 $0.00218
Haiku 4.5 $0.00003 $0.00109

Measured 28d ago against content hash 3a2dc4249b9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

session-viewer scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/core/detect.ts, scripts/core/jsonl.ts, scripts/core/types.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

find "$HOME/.claude/projects" -name '*.jsonl' -type f | sort
skills/session-viewer/SKILL.md · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Session Viewer

Use when asked to view, export, inspect, or share a Codex, Claude Code, OpenClaw, or Pi session transcript in a browser.

Commands

Resolve SESSION_VIEWER_SKILL_DIR to the directory containing this SKILL.md. Use that installed source for commands, independent of the current repository.

When the session path is not known and the agent-transcript skill is available, use it first to find the likely JSONL session: Resolve TRANSCRIPT_SKILL_DIR from that skill's actual installation before running:

"$TRANSCRIPT_SKILL_DIR/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.

Render with the resolved installation:

node "$SESSION_VIEWER_SKILL_DIR/scripts/session-viewer.ts" <session.jsonl> --out /tmp/session.html --open

Useful modes:

node "$SESSION_VIEWER_SKILL_DIR/scripts/session-viewer.ts" <session.jsonl> --out session.html
node "$SESSION_VIEWER_SKILL_DIR/scripts/session-viewer.ts" <session.jsonl> --raw --out session.html
node "$SESSION_VIEWER_SKILL_DIR/scripts/session-viewer.ts" --blank --out viewer.html --open

Defaults:

  • detects codex, claude, or pi-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
  • --raw embeds the original JSONL and lets the browser parse it
  • --blank creates 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.

Read the full file on GitHub · 118 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago Changed · +14 lines 3a2dc4249b9f
  2. 2mo ago Changed · +1 lines 5a0084c64322
  3. 2mo ago Changed · +5 lines b4292c1dbe8a
  4. 3mo ago First seen · 98 lines · 32 tokens per session scan B 89b6f03e0fe0

Subscribe to this mod's changes

session-viewer is a skill published in the GitHub repository openclaw/agent-skills (1,130 stars, last pushed 2d ago), licensed MIT. It adds 32 tokens to every session and 1,092 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

session-viewer compared with skills from other repositories

session-viewer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-vieweropenclaw/agent-skillsSkill1.1k2d agoMITB32Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code