chat-history

chat-history is a skill for Claude Code, Codex from mblode/agent-skills. It costs 77 tokens per session (1,189 once invoked), scanned A, original, MIT.

A search tool for recovering decisions, fixes, research, and actions from earlier AI conversations. It searches accessible conversation sources rather than browsing history or proving the current state of a code repository.

In plain words
What is it for?
Use it to search past chats for exact passages, decision trails, previous fixes, and what happened after a prompt.
Why use it?
It helps recover context when a developer remembers that something was discussed or fixed before but cannot find the details.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit Use it to search past chats for exact passages, decision trails, previous fixes, and what happened after a prompt.

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

Made for: Claude Code, Codex.

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 chat-history

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mblode/agent-skills/chat-history"><img src="https://agentmods.dev/badge/skills/mblode/agent-skills/chat-history.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,189 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.00077 $0.01189
Opus 5.5 $0.00031 $0.00476
Sonnet 5.5 $0.00015 $0.00238
Haiku 4.5 $0.00008 $0.00119

Measured 23d ago against content hash 8507b5c957f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

chat-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 23d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (evals/test_history.py, scripts/history.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.

skills/chat-history/SKILL.md · 50 lines

How it starts

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

Chat History

  • IS: recover historical context with source evidence: prior fixes, decision trails, exact passages and what followed, research across sessions.
  • IS NOT: browsing history, automatic memory writing, or proof of current repository or production state. For Obsidian notes use obsidian; for recent computer activity use an available computer-history capability.

Workflow

  1. Discover available evidence. Resolve scripts/history.py relative to this installed SKILL.md, then execute it with python3. Run discover to report local source paths. Use explicit exports for web conversations; local Codex sessions do not include ChatGPT web history. Missing access is a coverage gap, not an empty search result.
  2. Search narrowly, widen deliberately. Choose distinctive terms from the user's defect, artifact, project, or quoted passage. Start with known project/session paths; for cross-project research search the selected source roots. Batch spelling variants with repeated -e flags. Search results are literal OR matches in encounter order, not exhaustive or relevance-ranked when capped. Search both user and assistant messages; use --role user to locate the original request. Read source adapters when choosing paths, using Cursor/exports, or handling unsupported formats.
  3. Read the sequence. Use each hit's path and line/key to read surrounding turns. Follow later corrections, linked sessions, commits, plans, and artifacts when they affect the answer. For "what followed", include assistant and tool evidence after the exact occurrence. A final summary alone may conceal scope changes. Expand a truncated window or repeat the search with a more specific term when evidence is incomplete.
  4. Answer with provenance. Lead with the recovered finding, cite the source path plus line or session/message key, and explain any later correction. Distinguish user intent, proposed work, reported completion, tool evidence, and current verification. Report material coverage gaps and conflicting evidence. Verify today's state separately when the task depends on it.

Read the full file on GitHub · 50 lines

Files

What ships with it

5 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. 23d ago Changed 8507b5c957f3
  2. 1mo ago Changed · -4 lines · -1 tokens per session acbf609166dc
  3. 2mo ago First seen · 54 lines · 78 tokens per session scan A 204730b0da73

Subscribe to this mod's changes

chat-history is a skill published in the GitHub repository mblode/agent-skills (231 stars, last pushed today), licensed MIT. It adds 77 tokens to every session and 1,189 once invoked, about $0.0003 per session on Opus 5.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-09-10.

Related

chat-history compared with skills from other repositories

chat-history next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
chat-historymblode/agent-skillsSkill231todayMITA77Claude Code, Codex
unified-memoryaffaan-m/ECCSkill315kyesterdayMITA60Claude Code, Codex
llm-wikiNousResearch/hermes-agentSkill268ktodayMITB19Claude Code, Codex
qmdNousResearch/hermes-agentSkill268ktodayMITB14Claude Code, Codex
strategic-compactaffaan-m/ECCSkill315kyesterdayMITB47Claude Code, Codex
hermes-agentNousResearch/hermes-agentSkill268ktodayMITC18Claude Code, Codex
caveman-compressJuliusBrussee/cavemanSkill124kyesterdayApache-2.0C54Claude Code