Skip to content
Skillpedia
Agents33k · #8877

claude-code-sessions

What it does

This skill lets your agent look through your saved Claude Code session history. It is for developers who want to find past work, check usage or pick up where they left off.

When to use it

  • ✓When you want to find a past session by searching what was discussed.
  • ✓When you want to check token usage or see which tools you used most.
  • ✓When you want to resume previous work from an earlier session.

Skill link

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/claude-code-sessions/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/claude-code-sessions/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Find the session where I worked on the checkout bug last week and give me a summary to resume from.”

5 new skills a week. 1 minute to read.

How it works

The agent reads the session files Claude Code keeps on your computer and runs search, stats, listing or export commands. Delete and cleanup commands run only when you ask.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Claude Code Sessions

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:

Skill Purpose
/session-search "query" Full-text search across every session
/session-stats Token usage, model distribution, tool breakdown
/session-list List sessions sorted by recency, size, or duration
/session-detail Deep dive into a specific session
/session-diff Compare two sessions — files, tools, topics
/session-timeline Chronological view of sessions on a project
/session-resume Generate a context recovery prompt from any session
/session-tasks Find pending and orphaned tasks across sessions
/session-export Export a session as clean markdown
/session-cleanup Find empty, tiny, or stale sessions
/session-delete Delete 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

FAQ

Where does it read sessions from?

From the session files Claude Code writes in your user projects folder on your computer.

Can it delete sessions?

Yes, but only when you explicitly ask. Cleanup and delete commands can remove session files.

Is there a dashboard?

Yes. The skill mentions a web dashboard that shows sessions in several views.

Details

Original description by the author

Search, analyze, and manage Claude Code session history. Use when the user wants to find past sessions, check token usage, review tool breakdowns, resume previous work, or manage tasks across sessions. Provides 11 skills and a web dashboard.

repo: davila7/claude-code-templates

Popularity

GitHub stars
33k
Ranking position
#8877
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills