/search-research:findfrom search-research
Local intelligent find — searches only local data stores (CKS, CHS, CDS, code, docs, skills). Use when you need to find something in your system (past sessions, knowledge base, code, docs).
Ships in search-research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Single entry point to find across all CSF NIP data stores in parallel - local sources only. For web research, use /web.
Scope: CKS, CHS, CDS, Code/Grep, DOCS, SKILLS. No external dependencies.
core/cli.py (runs from the cache-resolved plugin root; see execution directive below)chat_history.db exists but FTS5 tables are missing, build it with python -m core.chs.scripts.reindex_from_jsonl --db-path "P:/.data/chat_history.db" --history-path "~/.claude/history.jsonl"See references/architecture.md for backend architecture details and NotebookLM integration.
The system automatically detects search intent. No flags needed.
| Query Pattern | Source | Example |
|---|---|---|
| "we discussed", "you mentioned", pronouns | chat | "what did we discuss about auth" |
| "recent", "yesterday", "earlier today" | chat | "recent changes to the find skill" |
| "how does X work", "tutorial", code terms | docs | "how does FAISS work" |
| "compare X vs Y", "evolved over time" | chat + docs | "how our auth approach evolved" |
| URLs (http/https) | Suggest /web | direct fetch |
Chat method is also auto-selected: grep for recent/exact matches, vector for semantic/conceptual queries.
See references/auto-detection.md for full detection rules, query indicators, and backend weighting.
knowledge.systems.chs.cli (does not exist)chat_history.db file is not enough; verify schema/FTS tables or reindex firstWhen the query is about architecture, handoffs, resume, stale data, fields, payloads, schemas, or consumers, /find should preferentially surface:
/find is a discovery skill. It may suggest downstream skills once relevant evidence is surfaced:
/arch when search shows unresolved contract/state boundaries/planning when execution shape is unclear after discovery/verify when the main question becomes "does this actually work?"/find should not absorb architecture, planning, or verification responsibilities.
Run local-first find for /find requests (mode='auto' — checks local stores, then escalates to web when local results are unsatisfactory):
cd "$(ls -d "$HOME/.claude/plugins/cache/local/search-research/"*/ | sort -V | tail -1)" && python -c "
from core.unified_router import UnifiedAsyncRouter
import asyncio
async def search():
router = UnifiedAsyncRouter(mode='auto')
results = await router.search_async('$query', limit=10)
for r in results:
print(f'[{r.score:.2f}] {r.title}')
print(f' {r.content[:200]}...')
print()
asyncio.run(search())
"
Session-chain queries (last 7 days):
cd "$(ls -d "$HOME/.claude/plugins/cache/local/search-research/"*/ | sort -V | tail -1)" && python -c "
from pathlib import Path
from datetime import datetime, timedelta
project = Path.home() / '.claude/projects/P--'
handoff_dir = Path('P://.claude/state/handoff')
cutoff = datetime.now() - timedelta(days=7)
transcripts = [p for p in project.glob('*.jsonl') if datetime.fromtimestamp(p.stat().st_mtime) > cutoff]
transcripts.sort(key=lambda p: p.stat().st_mtime, reverse=True)
print(f'=== Session Transcripts ({len(transcripts)} last 7 days) ===')
for t in transcripts:
mtime = datetime.fromtimestamp(t.stat().st_mtime).strftime('%Y-%m-%d %H:%M')
print(f' [{mtime}] {t.name}')
handoffs = [p for p in handoff_dir.glob('console_*_handoff.json') if datetime.fromtimestamp(p.stat().st_mtime) > cutoff]
handoffs.sort(key=lambda p: p.stat().st_mtime, reverse=True)
print(f'\n=== Handoff Files ({len(handoffs)} last 7 days) ===')
for h in handoffs:
mtime = datetime.fromtimestamp(h.stat().st_mtime).strftime('%Y-%m-%d %H:%M')
print(f' [{mtime}] {h.name}')
"
For chat history only:
cd "$(ls -d "$HOME/.claude/plugins/cache/local/search-research/"*/ | sort -V | tail -1)" && python -c "
from core.unified_router import UnifiedAsyncRouter
import asyncio
async def search():
router = UnifiedAsyncRouter(mode='auto')
results = await router.search_async('$query', limit=20)
for r in results:
if 'chat' in r.source.lower() or 'chs' in r.source.lower():
print(f'[{r.score:.2f}] {r.title}')
print(f' {r.content[:200]}...')
print()
asyncio.run(search())
"
# Chat history - auto-detected
/find "what did we discuss about authentication"
/find "recent changes to the find skill"
# Local sources - auto-detected
/find "how does FAISS work"
/find "python async patterns"
# Session chain - list transcript and handoff files
/find "session chain files"
/find "filepaths for session-chain"
/find "transcript files"
# Hint overrides (when detection gets it wrong)
/find "authentication [from chat]"
/find "authentication [from docs]"
/find "authentication [recent]"
Manual flags are available for precise control:
/find "query" --source chat|web|all
/find "query" --chat-method vector|grep|auto
/find "query" --depth summary|full|auto
/find "query" --explain --cluster topic --session
| Backend | Description | Content |
|---|---|---|
| CHS | Chat History (claude-history/FTS5; bootstrap with reindex_from_jsonl.py) | Sessions and messages |
| VAULT | Archived Sessions (claude-vault/FTS5) | Archived Claude Code sessions |
| CKS | Knowledge (FAISS) | Patterns, lessons, docs |
| CDS | Discovery Findings | Code analysis findings |
| Code/Grep | Source Code | File content search |
| DOCS | Documentation | Markdown files in docs/ |
| SKILLS | Skills & Commands | Progressive disclosure search |
| JSONL | Conversations (Fallback) | Raw conversation files when CHS empty |
| Query Pattern | Priority Backends | Rationale |
|---|---|---|
| "git commit", "function xyz" | Code/Grep -> CKS -> CHS | Code first |
| "pattern xyz", "lesson" | CKS -> DOCS -> CHS | Knowledge first |
| "we discussed", "said" | CHS -> CKS | Conversation first |
| "how does X work" | NotebookLM -> CKS -> DOCS | Long-form synthesis first |
| URLs | webreader_mcp -> DOCS | Direct fetch |
| "org/repo" | zread -> github | GitHub tools |
| "how to", "tutorial" | DOCS -> CKS -> Code | Documentation first |
| errors, stack traces | Code -> CKS -> CHS | Source context first |
| "we decided", "agreed" | CHS -> CKS | Decision history first |
The --backend flag always overrides automatic priority.
| Method | Speed | Coverage | When Used |
|---|---|---|---|
| FTS5 | ~10ms | Full DB | Keyword matching (CHS) |
| Hybrid | ~50ms | Full DB | FTS5 pre-filter + semantic re-rank |
| Semantic | ~200ms | Indexed | Conceptual/meaning search |
For complex multi-step searches, delegate to subagents to preserve context memory.
Use subagents when: query spans multiple independent sources, analysis requires deep exploration, or synthesis is needed across multiple result sets.
See references/subagent-delegation.md for delegation patterns, parallel execution, and example workflows.
The following features auto-enable based on context and result characteristics:
| Feature | Auto-Enabled When | Reference |
|---|---|---|
--explain | Query >100 chars, >2s execution, or 0 results | references/advanced-features.md |
--session | Running in terminal (WT_SESSION detected) | references/advanced-features.md |
--cluster | 10+ results from 2+ sources | references/advanced-features.md |
--hyde | Manual flag for semantic enhancement | references/advanced-features.md |
--refine | Interactive result narrowing | references/advanced-features.md |
--suggest | Multi-hop knowledge chains | references/advanced-features.md |
See references/advanced-features.md for: intelligent defaults configuration, execution plan explanation, HyDE enhancement, refinement mode, multi-hop search, result clustering, and conversational session mode.
This skill absorbs /chs, /recent, /find-more, and /progressive-find.
| Old Command | New Behavior |
|---|---|
/chs "query" | /find "query" (auto-detects chat) |
/recent "query" | /find "query" (auto-detects recent + grep) |
/find-more "id" | /find "id" --depth full |
/progressive-find | /find "query" (auto depth) |
See references/consolidated-features.md for: source control (--source), chat search method (--chat-method), detail level (--depth), progressive disclosure workflow, and recent message search.
See references/output-format.md for: result grouping format, match explanations, and output options.
The following environment variables control search behavior:
| Env Var | Default | Purpose |
|---|---|---|
SEARCH_ENABLE_KG_BOOSTING | — | Enable KG entity affinity boosting |
SEARCH_KG_BOOST_ALPHA | — | Jaccard similarity weight (0.0-1.0) |
SEARCH_KG_BOOST_ENTITY_TYPES | — | Filter by entity types (comma-separated) |
FAST_BACKEND_TIMEOUT | 2s | Fast backend timeout |
COMPREHENSIVE_BACKEND_TIMEOUT | 8s | Comprehensive backend timeout |
SEARCH_CACHE_TTL | 3600s | LRU cache TTL |
Extended backends (KG Boosting, CPG, HDMA, CallGraph, AST, Persona, RLM) are documented in references/architecture.md.
| File | Contents |
|---|---|
references/architecture.md | Backend architecture, chat history system, NotebookLM integration |
references/auto-detection.md | Full detection rules, query indicators, backend weighting |
references/advanced-features.md | Intelligent defaults, explain, HyDE, refine, multi-hop, clustering, session |
references/consolidated-features.md | Source control, chat method, depth, progressive disclosure, migration |
references/output-format.md | Result format, match explanations, output options |
references/subagent-delegation.md | Delegation patterns, parallel execution, workflow examples |
references/advanced-features.md (opens in a new tab)references/architecture.md (opens in a new tab)references/auto-detection.md (opens in a new tab)references/consolidated-features.md (opens in a new tab)references/output-format.md (opens in a new tab)references/subagent-delegation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (enduser123/search-research) — no native marketplace selected
npx claudepluginhub p/enduser123-search-research16 skills in this plugin
/aidAI-Distiller wrapper for code analysis - refactoring, security, performance, architecture./allCompatibility wrapper for the canonical /research workflow; preserves the historical /all invocation./chsDedicated chat history search with summarization, workspace aliases, tool filtering, context preview, session stats, and branch filteringOther plugins' skills for the same job
/chs-evalRun golden-case retrieval evaluation against the CHS database and report per-case + mean recall