lexicon_search
Search a local archive of curated project notes, repo docs, and session transcripts to find prior work, past decisions, and failed approaches before solving a nontrivial problem.
Instructions
Search the Lexicon: curated project notes, in-place repo documentation, and archived Claude Code / Codex / ChatGPT session transcripts. Hybrid lexical (FTS5) plus semantic (local embeddings) search. Use before re-solving a nontrivial problem to find prior work, past decisions, and approaches that already failed.
Reading the results: score is ordinal and only orders one result set against another in the same query -- it says nothing about whether the Lexicon actually covers the topic. confidence does: it is absolute, runs 0.15-1.00, and is comparable across queries. At or above 0.80 the corpus genuinely covers the point; between 0.60 and 0.80 treat the result as partial or tangential and verify before relying on it. If most results sit below that, the honest answer is that the Lexicon does not cover this -- say so instead of stretching a weak hit. matched_by shows which leg found it: fts is an exact lexical match, vector a semantic one, and both together is the strongest signal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ISO date lower bound, YYYY-MM-DD | |
| limit | No | Max results | |
| query | Yes | What to look for. Quote exact identifiers, paths, error strings or symbols to force an exact lexical match. | |
| before | No | ISO date upper bound, YYYY-MM-DD | |
| project | No | Restrict to one project. Historical and alias names resolve to the current project (a renamed repo's old name resolves to its new one). | |
| source_type | No | lexicon = curated notes; repo-doc = docs in a live repo; transcript = archived sessions (Claude Code, Codex, Claude/ChatGPT web); codex-memory / claude-memory = distilled memory stores; claude-project = Claude project briefs and their attached docs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |