history

history is a skill for Claude Code from sjh9714/red-handed. It costs 75 tokens per session (449 once invoked), scanned A, original, MIT.

A command-line tool that reviews all Claude Code sessions stored on a computer and compares claims that tests passed with evidence that tests actually ran.

In plain words
What is it for?
Use it to audit coding-agent history and produce coverage counts and findings. It can also limit the review by date, choose Korean output, return JSON, or recompute cached results.
Why use it?
It helps reveal sessions where an agent reported successful tests without a recorded test run, while distinguishing missing evidence from proof of a false claim.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the red-handed plugin — 2 skills, 2 hooks shipped together

Good fit Use it to audit coding-agent history and produce coverage counts and findings. It can also limit the review by date, choose Korean output, return JSON, or recompute cached results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sjh9714/red-handed/history
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 sjh9714/red-handed --skill history
Clone the repo
git clone --depth 1 https://github.com/sjh9714/red-handed

Made for: Claude Code.

Or install red-handed, the plugin that ships this one along with the rest of its 2 skills, 2 hooks.

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 history

README.md
[![agentmods](https://agentmods.dev/badge/skills/sjh9714/red-handed/history/github.svg)](https://agentmods.dev/skills/sjh9714/red-handed/history)
Your own site
<a href="https://agentmods.dev/skills/sjh9714/red-handed/history"><img src="https://agentmods.dev/badge/skills/sjh9714/red-handed/history/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 history

Your own site · 80×15
<a href="https://agentmods.dev/skills/sjh9714/red-handed/history"><img src="https://agentmods.dev/badge/skills/sjh9714/red-handed/history.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 449 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.
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.00075 $0.00449
Opus 5 $0.00037 $0.00225
Sonnet 5 $0.00015 $0.00090
Haiku 4.5 $0.00007 $0.00045

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

Security

Grade A, and why

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 12d ago.

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.

skills/history/SKILL.md · 43 lines

What it actually says

Audit every session on this machine

npx --yes @jinhyuk9714/red-handed@latest stats

Add --lang ko for a Korean report, --since 30 to limit it to the last 30 days, --json to read the numbers rather than quote them, --no-cache to recompute from scratch.

The first run reads every transcript; later runs are near-instant because the results are cached in ~/.red-handed/cache.json (mode 0600, on this machine only, relocatable with RED_HANDED_HOME).

What to report

The headline is the coverage count, which everyone gets whether or not anything was found:

184 sessions. Your agent said "tests pass" 84 times.
   79  a test ran first
    5  no test ran in that session at all

Quote it as printed. Then note how many findings there were, if any.

Two things to keep straight when the user reads their own number:

  • "No test ran in that session" is not proof of a lie. Verification this tool cannot read — a project's own runner, a browser check — counts as verification it did not see. That is why those land at SUSPICIOUS rather than CAUGHT.
  • A count of zero at the CAUGHT tier is a real result, not an empty one. The tool is built to miss things rather than to accuse wrongly.
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. 12d ago First seen · 43 lines · 75 tokens per session scan A f9947946fb10

Subscribe to this mod's changes

history is a skill published in the GitHub repository sjh9714/red-handed (4 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 449 once invoked, about $0.0004 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-31.