본문으로 건너뛰기
cccskills
무료GitHub에 공개

session-viewer

Render Codex, Claude Code, OpenClaw, or Pi session JSONL transcripts as a searchable, shareable single-file HTML viewer.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(16)

  • SKILL.md3.6 KB
  • agents/openai.yaml207 B
  • package.json23 B
  • scripts/core/detect.ts1.0 KB
  • scripts/core/jsonl.ts7.5 KB
  • scripts/core/types.ts1.0 KB
  • scripts/html.ts37.2 KB
  • scripts/importers/claude.ts5.5 KB
  • scripts/importers/codex.ts8.0 KB
  • scripts/importers/pi-openclaw.ts7.6 KB
  • scripts/open-browser.ts435 B
  • scripts/read-session.ts1.5 KB
  • scripts/session-viewer.test.ts33.8 KB
  • scripts/session-viewer.ts4.9 KB
  • scripts/styles.ts13.0 KB
  • tsconfig.json276 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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 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:

  • 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.

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 | 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.

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 JSONL
  • scripts/importers/claude.ts: Claude Code JSONL
  • scripts/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-skills

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/agent-skills1.1천2026년 10월 19일 업데이트

Structured code review when explicitly requested, preferring OpenAI/Codex before Claude.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/agent-skills1.1천2026년 10월 19일 업데이트

beam

무료

Publish a redacted local coding session to an authenticated read-only Beam catalog.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/agent-skills1.1천2026년 10월 19일 업데이트

Source-blind user behavior validation against a prewritten contract for apps, CLIs, APIs, and generated artifacts.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/agent-skills1.1천2026년 10월 19일 업데이트

crabbox

무료

Crabbox/Testbox remote proof: portable provider routing, untrusted isolation, Linux/macOS/Windows/WSL2, live E2E, diagnostics, cleanup.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/agent-skills1.1천2026년 10월 19일 업데이트

handoff

무료

Clipboard-ready handoff prompt for another agent to investigate or continue a task.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

openclaw/agent-skills1.1천2026년 10월 19일 업데이트

openclaw의 스킬 모두 보기

이 스킬의 문제 신고