read-claude-code-history

read-claude-code-history is a skill for Claude Code from daymade/claude-code-skills. It costs 163 tokens per session (1,981 once invoked), scanned A, original, MIT.

A local history reader for Claude Code, Anthropic’s coding assistant. It finds past sessions, messages, events, and saved versions of deleted files without reopening the old work.

In plain words
What is it for?
Use it to list sessions, reconstruct a session timeline, search past conversations, recall earlier work, review how sessions ended, or recover deleted files.
Why use it?
It helps you recover facts from earlier coding sessions without accidentally continuing or changing that work.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the daymade-claude-code plugin — 19 skills shipped together

Good fit Use it to list sessions, reconstruct a session timeline, search past conversations, recall earlier work, review how sessions ended, or recover deleted files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daymade/claude-code-skills/read-claude-code-history
About the project

Claude Code Skills Marketplace is a collection and marketplace of skills, plugins, agents, and instructions that extend Claude Code with specialized development workflows. It is for developers who want to install existing workflows or create, validate, and package their own Claude Code skills.

daymade/claude-code-skills · 1,381 stars · on GitHub

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 daymade/claude-code-skills --skill read-claude-code-history
Clone the repo
git clone --depth 1 https://github.com/daymade/claude-code-skills

Made for: Claude Code.

Or install daymade-claude-code, the plugin that ships this one along with the rest of its 19 skills.

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 read-claude-code-history

README.md
[![agentmods](https://agentmods.dev/badge/skills/daymade/claude-code-skills/read-claude-code-history.svg)](https://agentmods.dev/skills/daymade/claude-code-skills/read-claude-code-history)
Your own site
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/read-claude-code-history"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/read-claude-code-history.svg" alt="Measured on agentmods" height="20"></a>
Per session 163 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,981 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 71
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00163 $0.01981
Opus 5 $0.00081 $0.00991
Sonnet 5 $0.00033 $0.00396
Haiku 4.5 $0.00016 $0.00198

Measured 2d ago against content hash 8b64c594ad3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

read-claude-code-history scanned grade A with 0 findings 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 2d ago.

The scan reads SKILL.md. This mod also ships 23 executable files (scripts/_core/__init__.py, scripts/_core/claude.py, scripts/_core/codex.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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

daymade-claude-code/read-claude-code-history/SKILL.md · 179 lines

How it starts

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

Read Claude Code History

Read Claude Code evidence only. Do not resume the old process, edit its project, or turn a read request into a continuation task. When the user later asks to act, hand the verified evidence to daymade-claude-code:continue-claude-code-work.

Route by the requested result

User wants Use
Recent Claude Code sessions, titles, dates, or IDs scripts/list_local_history.py --source claude
One known Session reconstructed as a chronological evidence briefing scripts/read_claude_session.py --session <ID>
The user's recent words, including human queued prompts scripts/extract_user_messages.py
A conversation, quote, file, tool result, or action by keyword scripts/analyze_sessions.py search
Prior work whose wording may have changed scripts/history_index.py recall after checking index status
How sessions in a time window ended scripts/analyze_sessions.py triage
A deleted/overwritten file preserved in Claude file-history records scripts/recover_content.py
Kimi CLI sessions — this Skill owns the only live Kimi surface inventory: scripts/list_local_history.py --source kimi; full-text: scripts/analyze_sessions.py search --kimi
Continue a verified Claude session Stop reading and invoke daymade-claude-code:continue-claude-code-work

The requested output wins over the background story. If the user asks for a chronological table of their raw inputs, return that table; do not replace it with a topic analysis because their motivation mentions an incident.

Evidence surface and completeness

By default, discover every active Claude config home and every archive registered in ~/.claude/history-sources.json. De-duplicate physical copies by Session ID and content identity, and use record timestamps rather than file mtime. A result scoped to one explicit --home is a diagnostic slice, not a completeness claim.

Treat Claude's record labels as storage metadata, not authorship proof. A top-level type: user record can contain a command envelope, hook boilerplate, a whole pasted document, agent-voiced text, or a system placeholder. Human text typed while the assistant was busy can live in attachment.queued_command.prompt with origin.kind: human; do not lose those corrections by reading only user records.

Read the full file on GitHub · 179 lines

Files

What ships with it

30 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. 2d ago Changed · +5 lines 8b64c594ad3f
  2. 4d ago Changed · +5 lines 025421e7ded4
  3. 8d ago First seen · 169 lines · 163 tokens per session scan A 8e1e455fb7c0

Subscribe to this mod's changes

read-claude-code-history is a skill published in the GitHub repository daymade/claude-code-skills (1,381 stars, last pushed yesterday), licensed MIT. It adds 163 tokens to every session and 1,981 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.