rag_query
Perform hybrid semantic and keyword search across your notes, docs, commits, and source code. Get top-K chunks with path:line citations, scoped to your current repo.
Instructions
Hybrid semantic + BM25 search over the user's configured corpus: notes, docs, repo docs + README + CHANGELOG, recent git commits, session transcripts, and source code (TS/JS/Python/Shell) from the configured repos. Returns top-K chunks with path:line + symbol + repo citations. Auto-scopes to the current repo when cwd is inside one — pass scope_repos=['all'] to disable. Use instead of grep for fuzzy or cross-file recall.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | working dir to drive auto-scoping (defaults to server cwd) | |
| top | No | ||
| query | Yes | ||
| scope_repos | No | configured repo names, or pass ['all'] to disable cwd auto-scoping | |
| scope_types | No | source types: the labels from sources.yaml plus built-ins changelog, repo-docs, repo-readme, spec, roadmap, code, workstation-code, commit, session |