Observed since 20 Oct, 22:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
agent-history
CLI tool to explore and inspect past Claude Code and Codex conversation history
CLI tool to explore and inspect past Claude Code and Codex conversation histories from a single unified interface.
Project-aware commands keep a lightweight metadata cache so repeated runs do not need
to re-parse every conversation file. By default the cache lives in the platform cache
directory (~/Library/Caches/agent-history on macOS, ~/.cache/agent-history on
Linux). Set AGENT_HISTORY_CACHE_DIR to override it.
The first full-project scan still has to build that cache, but repeated projects,
list --here, and project-summary --here runs should be dramatically faster.
# Recommended: install globally with uv
uv tool install agent-history
# Or with pip
pip install agent-history
To install the agent skill (for Claude Code, Codex, etc.):
# Default: installs to ~/.claude/skills/
agent-history install-skill
# Custom location
agent-history install-skill -d ~/.codex/skills
Results are tagged with their source:
[c] = Claude Code (~/.claude/projects/)[x] = Codex (~/.codex/sessions/)When drilling down on a specific session, you can prefix the ID to force a source:
c:a1b2c3d4 — force Claudex:e5f6g7h8 — force Codexa1b2c3d4 — auto-detect (errors if ambiguous)agent-history projects [--source claude|codex|all]
Shows all projects with conversation history across both backends, merged by project path.
agent-history list [PROJECT] [-n LIMIT] [--here] [--source claude|codex|all]
PROJECT: filesystem path, relative path (.), or name suffix--here: scope to the current directory's projectagent-history view SESSION_ID [-f|--full] [--no-tools] [-n LIMIT] [-o OFFSET] [--tail]
SESSION_ID: full/partial ID, optionally prefixed with c: or x:-f: show full message content--no-tools: hide tool use details-n: limit messages shown-o: skip first N messages--tail: show the last N messages (use with -n)agent-history summary SESSION_ID
Shows conversation metadata and a compact flow of user/assistant exchanges with tools used.
agent-history search QUERY [-p PROJECT] [-n LIMIT] [--here] [--source claude|codex|all]
Search conversations for a text string across both backends.
-p PROJECT: limit search to a specific project--here: scope to the current directory's projectagent-history catchup SESSION_ID [-c MAX_CHARS] [--include-tools] [--from-start]
Generates a markdown summary suitable for pasting into a new session to restore context.
By default it prioritizes recent conversation content and includes the final assistant message in full.
Use --from-start to use start-first truncation behavior.
agent-history project-summary [PROJECT] [-n LIMIT] [-c MAX_CHARS] [--here] [--source claude|codex|all]
Summarizes recent conversations in a project across both backends.
agent-history export SESSION_ID [-f text|json]
Export conversation to simplified text or JSON format. JSON output includes a "source" field.
agent-history skill
Prints the packaged SKILL.md contents.
# Find the session in the current project
agent-history list --here -n 10
# Get a catchup summary to paste into new context
agent-history catchup abc123def
# Search current project across both Claude and Codex
agent-history search "authentication bug" --here
# Search all projects
agent-history search "authentication bug"
# Search only Claude history
agent-history search "authentication bug" --source claude
# Summarize current project's recent sessions
agent-history project-summary --here -n 5
# Or specify a path
agent-history project-summary /path/to/project -n 5
MIT
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
clickEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | click>=8.3.1 | runtime |
jinja2Environment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | jinja2>=3.1.0 | runtime |
orjsonEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | orjson>=3.10.0 | runtime |
bdist_wheel · 50.35 KB · Python py3
sdist · 47.75 KB · Python source
Observed since 20 Oct, 22:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:4c3dbaf6080c48b5a53900935399223a42e4cf88460341eb2531938ec7c7570c