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.
npx skills add jiantao88/ai-history --skill codexgit clone --depth 1 https://github.com/jiantao88/ai-historyWrote 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.
[](https://agentmods.dev/skills/jiantao88/ai-history/codex)<a href="https://agentmods.dev/skills/jiantao88/ai-history/codex"><img src="https://agentmods.dev/badge/skills/jiantao88/ai-history/codex/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.
<a href="https://agentmods.dev/skills/jiantao88/ai-history/codex"><img src="https://agentmods.dev/badge/skills/jiantao88/ai-history/codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00064 | $0.00690 |
| Opus 5 | $0.00032 | $0.00345 |
| Sonnet 5 | $0.00013 | $0.00138 |
| Haiku 4.5 | $0.00006 | $0.00069 |
Grade C, and why
ai-history scanned grade C with 1 finding 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 9d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
git clone https://github.com/jiantao88/ai-history.git /tmp/ai-history && /tmp/ai-history/setup && rm -rf /tmp/ai-history How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ai-history
Search and browse AI chat history across Claude Code, Codex CLI, and Cursor.
Prerequisites
The ai-history binary must be installed at ~/.cargo/bin/ai-history.
If not found, guide the user:
Run this to install:
git clone https://github.com/jiantao88/ai-history.git /tmp/ai-history && /tmp/ai-history/setup && rm -rf /tmp/ai-history
Available Commands
List all projects
~/.cargo/bin/ai-history list --json
List sessions for a project (fuzzy match)
~/.cargo/bin/ai-history sessions "<project>" --json
Show a session's messages
~/.cargo/bin/ai-history show "<session-id>" --compact --json
Session IDs support prefix matching (e.g. a247accc matches the full UUID).
Search across all history
~/.cargo/bin/ai-history search "<query>" --limit 10 --json
Load a session as context (digest — compressed summary)
~/.cargo/bin/ai-history context "<session-id>"
Outputs a structured digest: intent, key decisions, code changes, remaining issues, conclusion.
For full uncompressed conversation, add --full.
Generate a standalone digest
~/.cargo/bin/ai-history digest "<session-id>" --json
Export a session (full text)
~/.cargo/bin/ai-history export "<session-id>" --format prompt
The prompt format outputs clean User: / Assistant: blocks with no tool calls
or timestamps — ready to inject into the current conversation as context.
How to Use
- Find: Use
list→sessions→showto drill down to a specific conversation - Search: Use
searchto find conversations by keyword across all providers - Inject context: Use
contextto load a compressed digest of a past session, orcontext --fullfor the complete conversation
Output Formatting
- Always use
--jsonflag to get structured data, then format it into readable tables - Abbreviate session IDs to 8 characters in display
- Abbreviate home directory as
~in displayed paths - Truncate long text to keep output scannable
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.
- 9d ago First seen · 100 lines · 64 tokens per session scan C 6c9027bc5b16
ai-history is a skill published in the GitHub repository jiantao88/ai-history (3 stars, last pushed 2mo ago), licensed MIT. It adds 64 tokens to every session and 690 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
alive-morning
Morning briefing -- read all walnut states, surface priorities, inbox count, stale walnuts, people nudges.
chat-history
Search, inspect, and export Claude Code, Cursor, and Codex conversation history. Use when the user asks about past conversations, wants to find a previous session, needs to search chat history, wants a summary of what they worked on, or asks to resume a session. Also use when the user says "what did I work on", "find…
compact-manual
Claude Code skill for deterministic context compaction. Compresses the current Claude Code session to the clipboard for a manual rewind+paste workflow. A deterministic alternative to /compact that extracts literal dialog and truncates only tool outputs — no LLM summarization. Use when the user says 'compact the…
mnemon
Persistent memory CLI for LLM agents. Store facts, recall past knowledge, link related memories, manage lifecycle.
mnemon
Persistent graph-based memory. Recall context before responding, remember insights after. Each group has private memory; global memory is read-only.
mnemon
Persistent memory CLI for LLM agents. Store facts, recall past knowledge, link related memories, manage lifecycle.