session-search

session-search is a skill for Claude Code from iofold/ainative-claude-plugins. It costs 46 tokens per session (671 once invoked), scanned C, a copy of session-search, MIT.

A workflow for searching earlier coding-agent sessions for past work, decisions, code patterns, or files. It uses session records and command-line search to locate relevant conversations.

In plain words
What is it for?
Use it to search by topic, project, date, or branch, inspect a small number of matching session files, and return key findings with session references.
Why use it?
It helps recover information from previous sessions without manually opening every history file.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the session-management plugin — 2 skills, 2 commands, 1 agent shipped together

Good fit Use it to search by topic, project, date, or branch, inspect a small number of matching session files, and return key findings with session references.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iofold/ainative-claude-plugins/session-search
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 iofold/ainative-claude-plugins --skill session-search
Clone the repo
git clone --depth 1 https://github.com/iofold/ainative-claude-plugins

Made for: Claude Code.

Or install session-management, the plugin that ships this one along with the rest of its 2 skills, 2 commands, 1 agent.

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 session-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/session-search/github.svg)](https://agentmods.dev/skills/iofold/ainative-claude-plugins/session-search)
Your own site
<a href="https://agentmods.dev/skills/iofold/ainative-claude-plugins/session-search"><img src="https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/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.

agentmods 80×15 button for session-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/iofold/ainative-claude-plugins/session-search"><img src="https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/session-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 671 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod 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.00046 $0.00671
Opus 5.5 $0.00018 $0.00268
Sonnet 5.5 $0.00009 $0.00134
Haiku 4.5 $0.00005 $0.00067

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

Security

Grade C, and why

session-search scanned grade C with 2 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 13d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -LsSf https://astral.sh/uv/install.sh | sh # uv

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -LsSf https://astral.sh/uv/install.sh | sh # uv
Origin

This is a copy

89% identical to session-search — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

session-management/skills/session-search/SKILL.md · 79 lines

How it starts

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

If you are Claude Code: Do NOT use this skill directly. Use the session-searcher subagent via the Task tool instead - it handles this more efficiently without polluting your context.

Search and find previous code agent sessions (Claude-Code or Codex-CLI) for specific work, decisions, or code patterns.

Workflow

  1. Understand the query: Identify what the user is looking for (code patterns, decisions, specific work, design direction)
  2. Search with aichat: Run aichat search --json -n 10 "[query]" (use -g "project" to filter by project)
  3. Parse results: Use jq to extract fields from JSONL output (session_id, project, created, snippet, file_path)
  4. Deep dive if needed: Read session files at ~/.claude/projects/*/[session-id].jsonl (max 3 files)
  5. Summarize: Return a focused summary with key findings and references

Run aichat search --help to see all options (date filters, branch filters, etc.) and JSONL field names.

Output Format

Return a concise summary containing:

  1. Key Findings: 2-3 bullet points answering the query
  2. Relevant Sessions: Session IDs and dates for reference
  3. Specific Content: Code snippets or quotes if directly relevant

Format as clean markdown, not raw JSON.

Example

Query: "Find sessions where we discussed authentication design"

aichat search --json -n 10 "authentication design"

Summary:

  • Session abc123 (Dec 10): Discussed JWT vs session-based auth, decided on JWT
  • Session def456 (Dec 8): Implemented refresh token rotation pattern

Constraints

  • ALWAYS use --json flag with aichat search (otherwise it spawns interactive UI)
  • NEVER return raw JSON output to the user - summarize and distill findings
  • NEVER read more than 3 session files per query
  • If no results found, suggest alternative search terms
  • ONLY report information directly observed in files - never infer or extrapolate

Error Handling

If aichat search command fails or is not found, ask user to install:

Read the full file on GitHub · 79 lines

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. 13d ago Changed · -33 tokens per session da393084882d
  2. 2mo ago First seen · 79 lines · 79 tokens per session scan C 58adfad4bd59

Subscribe to this mod's changes

session-search is a skill published in the GitHub repository iofold/ainative-claude-plugins (3 stars, last pushed 13d ago), licensed MIT. It adds 46 tokens to every session and 671 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). It is 89% identical to session-search, differing in 5 lines, and is treated as a copy.

Related

session-search compared with skills from other repositories

session-search next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-searchiofold/ainative-claude-pluginsSkill313d agoMITC46Claude Code
knowledge-ingestopenclaw/openclawSkill394kyesterdayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A74Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
memoryopensquilla/opensquillaSkill7.1k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex