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 DJRHails/dotfiles --skill session-searchgit clone --depth 1 https://github.com/DJRHails/dotfilesWrote 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/djrhails/dotfiles/session-search)<a href="https://agentmods.dev/skills/djrhails/dotfiles/session-search"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/session-search/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/djrhails/dotfiles/session-search"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/session-search.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.00038 | $0.00623 |
| Opus 5.5 | $0.00015 | $0.00249 |
| Sonnet 5.5 | $0.00008 | $0.00125 |
| Haiku 4.5 | $0.00004 | $0.00062 |
Grade A, and why
session-search 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Session Search
Search across all Claude Code session transcripts (every ~/.claude*/ config dir — .claude, .claude-ant, etc. — plus ~/.agents/) and Pi agent sessions (~/.pi/agent/sessions/), including Pi artifacts (plans, context docs, etc.).
When to use
- User asks "which session did we talk about X?"
- User wants to find a previous conversation by topic
- User needs to recall advice, code, or decisions from past sessions
Usage
Run the helper script with a quoted search query:
python3 ~/.claude/skills/session-search/scripts/search.py "your search terms"
All terms must appear in the same text block for a match (AND logic).
Options
| Flag | Default | Purpose |
|---|---|---|
--project <str> |
all | Filter to project dirs containing this string |
--context <n> |
200 | Characters of context around each match |
--limit <n> |
10 | Max sessions to display |
Examples
# Find sessions discussing margin notes
python3 ~/.claude/skills/session-search/scripts/search.py "margin notes"
# Narrow to a specific project
python3 ~/.claude/skills/session-search/scripts/search.py "LoRA" --project kb
# More context, more results
python3 ~/.claude/skills/session-search/scripts/search.py "deploy" --context 400 --limit 20
Output
For each matching session the script prints:
- Session ID and resume command (
claude::resume <id>— cd's into the session's original directory and resumes via the owning config profile; defined inmodules/claude/aliases.zsh) - Date, project, and the original prompt
- Up to 3 matching snippets with role labels and line numbers
Notes
- Searches
~/.claude*/projects/(all config-dir variants),~/.agents/projects/, and~/.pi/agent/sessions/for session transcripts - History index from every
~/.claude*/history.jsonlplus~/.agents/history.jsonl - Pi sessions are identified with
[pi]label and resume viapi::resume <id>(cd's into the session's directory, thenpi --session <id>; defined inmodules/pi/aliases.zsh) - Pi artifacts (markdown files under
artifacts/) are also searched and labelled(pi artifact: <name>) - Searches text content from user and assistant messages (skips tool calls, binary data, etc.)
- Subagent files are not searched (only top-level session files)
What ships with it
1 file 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.
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.
- 3mo ago First seen · 63 lines · 38 tokens per session scan A f5e7c5c8b8bf
session-search is a skill published in the GitHub repository DJRHails/dotfiles (2 stars, last pushed 3d ago), licensed MIT. It adds 38 tokens to every session and 623 once invoked, about $0.0002 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-08-31.
session-search compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| session-searchDJRHails/dotfiles | Skill | 2 | 3d ago | MIT | A | 38 | Claude Code, Codex |
| todoist-clijoshukraine/dotfiles | Skill | 430 | 7d ago | MIT | A | 68 | Claude Code |
| autopilot-batchjoshukraine/dotfiles | Skill | 430 | 7d ago | MIT | A | 75 | Claude Code |
| autopilotjoshukraine/dotfiles | Skill | 430 | 7d ago | MIT | A | 40 | Claude Code |
| qa-handoffjoshukraine/dotfiles | Skill | 430 | 7d ago | MIT | A | 41 | Claude Code |
| walkthroughjoshukraine/dotfiles | Skill | 430 | 7d ago | MIT | A | 33 | Claude Code |
| dustoffjoshukraine/dotfiles | Skill | 430 | 7d ago | MIT | A | 64 | Claude Code |