claude-history-viewer

claude-history-viewer is a skill for Claude Code, Codex from joonlab/joonlab-claudecode-setting-for-share. It costs 99 tokens per session (4,041 once invoked), scanned A, original, MIT.

A local web application for browsing Claude Code conversation history. It uses a FastAPI server to search and filter sessions and can manage tags, names, deletion, exports, and resuming sessions.

In plain words
What is it for?
Use it to search conversation history, filter sessions, tag or rename them, export them as Markdown, delete them, or resume a session through iTerm2.
Why use it?
It gives you a searchable visual way to find and manage past coding-agent conversations instead of inspecting history files manually. It can also prepare selected sessions for reuse or export.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Good fit Use it to search conversation history, filter sessions, tag or rename them, export them as Markdown, delete them, or resume a session through iTerm2.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joonlab/joonlab-claudecode-setting-for-share/claude-history-viewer
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 joonlab/joonlab-claudecode-setting-for-share --skill claude-history-viewer
Clone the repo
git clone --depth 1 https://github.com/joonlab/joonlab-claudecode-setting-for-share

Made for: Claude Code, 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 claude-history-viewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/joonlab/joonlab-claudecode-setting-for-share/claude-history-viewer/github.svg)](https://agentmods.dev/skills/joonlab/joonlab-claudecode-setting-for-share/claude-history-viewer)
Your own site
<a href="https://agentmods.dev/skills/joonlab/joonlab-claudecode-setting-for-share/claude-history-viewer"><img src="https://agentmods.dev/badge/skills/joonlab/joonlab-claudecode-setting-for-share/claude-history-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 claude-history-viewer

Your own site · 80×15
<a href="https://agentmods.dev/skills/joonlab/joonlab-claudecode-setting-for-share/claude-history-viewer"><img src="https://agentmods.dev/badge/skills/joonlab/joonlab-claudecode-setting-for-share/claude-history-viewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,041 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00099 $0.04041
Opus 5 $0.00049 $0.02021
Sonnet 5 $0.00020 $0.00808
Haiku 4.5 $0.00010 $0.00404

Measured 11d ago against content hash 3555ed5b1dbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

claude-history-viewer scanned grade A 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 11d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/build-semantic-index.py, scripts/history-server.py, scripts/migrate-claude-project-paths.py, …), 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**Cause:** Pure browser cache — the server is fine (`curl` always returns the full file). The list/search fetch `sessions-index.json?t=<Date.now()>` (cache-busted → always fresh), but the detail view fetches the raw `.js
claude/skills/claude-history-viewer/SKILL.md · 483 lines

How it starts

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

Claude Code History Viewer

This skill guides the setup of a local web-based viewer for Claude Code conversation history. The viewer provides searchable, filterable access to all Claude Code sessions with features like tag management, session resume (iTerm2 integration), rename, delete, and markdown export.

Architecture Overview

┌─────────────────────────────────────────────────────────────┐
│                      Web Browser                             │
│                  (history-viewer.html)                       │
└─────────────────────────┬───────────────────────────────────┘
                          │ HTTP (fetch API)
                          ▼
┌─────────────────────────────────────────────────────────────┐
│                   FastAPI Server                             │
│                  (history-server.py)                         │
│  ┌─────────────┬─────────────┬─────────────┬──────────────┐ │
│  │ /api/tags   │ /api/rename │ /api/delete │ /api/resume  │ │
│  └─────────────┴─────────────┴─────────────┴──────────────┘ │
└─────────────────────────┬───────────────────────────────────┘
                          │ File I/O
                          ▼
┌─────────────────────────────────────────────────────────────┐
│                    ~/.claude/                                │
│  ┌──────────────────┐  ┌──────────────────┐                 │
│  │ sessions-index.json │  │ session-tags.json │              │
│  │ session-names.json  │  │ projects/          │              │
│  └──────────────────┘  └──────────────────┘                 │
└─────────────────────────────────────────────────────────────┘

File Structure

~/.claude/
├── history-server.py      # FastAPI backend server (main)
├── history-viewer.html    # Frontend web page
├── update-index.py        # Session index generation script
├── sessions-index.json    # Session index (auto-generated)
├── session-tags.json      # Tag data storage
├── session-names.json     # Custom session name storage
├── session-descriptions.json  # Session description storage
├── migrate-claude-project-paths.py  # Session migration script
└── projects/              # Claude Code session files
    └── <encoded-paths>/
        └── *.jsonl

Read the full file on GitHub · 483 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 483 lines · 99 tokens per session scan A 3555ed5b1dbe

Subscribe to this mod's changes

claude-history-viewer is a skill published in the GitHub repository joonlab/joonlab-claudecode-setting-for-share (10 stars, last pushed 1mo ago), licensed MIT. It adds 99 tokens to every session and 4,041 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.