Claude Code Sessions

SkillSearch

claude-code-sessions is a skill that lets an AI agent search, analyze, and manage its past Claude Code session history. It helps find previous sessions, check token usage, review tool breakdowns, resume earlier work, and manage tasks across sessions. It provides 11 skills and a web dashboard.

Available today. Use it from your connected AI after setup.

Have Claude Code session history on the machine.

Then ask your AI: use the Claude Code Sessions skill

What your AI can do with it

  • Search past Claude Code sessions
  • Check token usage across sessions
  • Review tool breakdowns for each session
  • Resume previous work from an earlier session
  • Manage tasks across sessions
  • Browse session history in a web dashboard

Getting started

  1. Have Claude Code session history on the machine.
  2. Add the claude-code-sessions skill to the agent's available skills.
  3. Ask the agent to search or summarize past sessions, check token usage, or resume previous work.
  4. Optionally open the web dashboard to browse sessions directly.

What this skill tells your AI

The instructions your AI receives, as published by davila7/claude-code-templates in cli-tool/components/skills/productivity/claude-code-sessions/SKILL.md and read by ahel’s review.

Session intelligence plugin for Claude Code. Reads the JSONL session files that Claude Code writes to ~/.claude/projects/ and makes them searchable and analyzable.

What It Does

Claude Code records every session as a JSONL file — messages, tool calls, token counts, diffs, tasks. This plugin reads those files and provides two interfaces. Most operations are read-only; delete and cleanup skills can remove session files when explicitly invoked.

11 skills usable directly in Claude Code:

SkillPurpose
/session-search "query"Full-text search across every session
/session-statsToken usage, model distribution, tool breakdown
/session-listList sessions sorted by recency, size, or duration
/session-detailDeep dive into a specific session
/session-diffCompare two sessions — files, tools, topics
/session-timelineChronological view of sessions on a project
/session-resumeGenerate a context recovery prompt from any session
/session-tasksFind pending and orphaned tasks across sessions
/session-exportExport a session as clean markdown
/session-cleanupFind empty, tiny, or stale sessions
/session-deleteDelete sessions and their associated tasks

Web dashboard at localhost:3000 with four views: Dashboard (summary stats), Sessions (sortable table with bulk operations), Search (full-text with context snippets), Tasks (grouped by status with orphan detection).

Install

/plugin marketplace add apappascs/claude-code-sessions
/plugin install claude-code-sessions@claude-code-sessions

No API keys. No config. No runtime dependencies. It reads what's already on disk.

For the dashboard:

bun run ui
# → http://localhost:3000

Architecture

Same TypeScript modules power skills, dashboard, and CLI:

lib/formatters.ts      — pure utilities, no I/O
lib/session-parser.ts  — parses one JSONL file into structured data
lib/session-store.ts   — scans all sessions, aggregates, searches
ui/server.ts           — HTTP endpoints + static file serving

Each lib file doubles as a standalone CLI:

bun run lib/session-store.ts list --sort recency --limit 10
bun run lib/session-store.ts search "database migration" --since 2025-01-01
bun run lib/session-parser.ts stats path/to/session.jsonl

Use Cases

  • Find the session where you solved a specific problem weeks ago
  • See which projects consume the most tokens
  • Track pending tasks across all sessions and projects
  • Resume a past session with full context
  • Compare how two sessions approached the same problem
  • Export session transcripts for documentation

Links

Signals

GitHub stars
32k
Forks
4k
Last commit
Sep 2026

Questions

What can it do?
It searches, analyzes, and manages Claude Code session history: finding past sessions, checking token usage, reviewing tool breakdowns, resuming previous work, and managing tasks across sessions.
How many skills does it include?
It provides 11 skills plus a web dashboard.
Can it resume previous work?
Yes, resuming previous work from past sessions is one of its supported uses.
Advanced
Item type
skill
Key
claude-code-sessions
Source
github.com/davila7/claude-code-templates