sessiondex

Installation
SKILL.md

sessiondex

Search local AI agent history from one SQLite FTS5 index. Sources are read-only. Only human and assistant text is indexed, with no tool output, reasoning, or injected context. Likely secrets are scrubbed before storage.

Commands

Always pass --json when reading results as an agent.

S=~/.claude/skills/sessiondex/scripts/sessiondex.py

python3 $S recent -n 20 --json                      # newest sessions
python3 $S recent --agent codex --days 7 --json     # filter by agent and age
python3 $S search "query" -n 10 --json              # all terms must match
python3 $S search "query" --role user --json        # only what the person wrote
python3 $S show <id-or-prefix> --tail 20 --json     # read messages, get resume command
python3 $S stats                                    # coverage per agent
python3 $S index                                    # refresh now (about 1 second)
Installs
2
GitHub Stars
417
First Seen
Nov 12, 2026