JunayedMh

Claude Sessions History — Development skill for Claude Code

Development community

Browse and resume your Claude Code sessions in a local web page.

How to install Claude Sessions History

This entry records only its repository, not the path inside it, so there is no exact command to give. Open JunayedMh/claude-sessions-history and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Sessions History does

Browse and resume your Claude Code sessions in a local web page. Lists every session on your machine and copies the claude --resume command in one click. Python standard library only, no dependencies.

Alternatives in Development

  • Claw Code Agent — Claw Code No Rust No TypeScript Only Python 543 ★
  • StatsPAI — StatsPAI is the first Agent-native Python library for causal inference and applied econometrics — unified API 302 ★
  • Job Hunt Copilot — 建立个人项目素材库,针对每个投递岗位自动生成定制简历、面试讲稿和模拟面试 217 ★

README

claude-sessions

A local page listing every Claude Code session on this machine, with a one-click copy of the command to resume it. Browse every Claude Code session on your machine in a local web page, and copy the command to resume one with a click.

![claude-sessions](screenshot.png)

Two files, no build step, no dependencies beyond the Python standard library.

claude-sessions/
├── serve.py     # reads ~/.claude/projects, serves the page + /api/sessions
└── index.html   # the whole frontend

Run it

python serve.py              # start + open the browser
python serve.py --no-open    # start only
python serve.py --selftest   # check the parser

Then open (it opens on its own).

Add a `claude-sessions` command

Bash / Linux, appended to `~/.bashrc`:

alias claude-sessions='python3 ~/claude-sessions/serve.py'

PowerShell / Windows, appended to `$PROFILE` (find it with `$PROFILE` in a prompt; create it with `New-Item -ItemType File -Path $PROFILE -Force`):

function claude-sessions { python "$HOME\claude-sessions\serve.py" }

Either one starts the server and opens the browser in one word.

Using the page

  • Filter matches the title, the project path, and the session ID at once. Press / to jump to the box, Esc to clear it.
  • Copy puts claude --resume on the clipboard. The command is printed in full on the card too, so you can read or select it by hand.
  • Refresh re-reads the files. Only sessions whose files changed get re-parsed, so this is near-instant.

What it reads, and what it skips

Sessions come from `~/.claude/projects//.jsonl`.

Only files at that exact depth are read. Subagent transcripts live deeper, at `//subagents/agent-*.jsonl`, and are skipped on purpose: they are not resumable, so `claude --resume` fails on them. On this machine that is 215 real sessions out of 363 total `.jsonl` files.