search_semantic
Find relevant code by natural-language query using vector similarity across Git worktrees and registered directories, indexing new worktrees when needed.
Instructions
Vector similarity search. Supply 'repo' (absolute checkout/directory path) or 'cwd' (a directory inside it); 'repo' takes precedence. Git worktrees resolve through Git and registered families; directory roots through database registration. A first search can register and index a new linked worktree when its family already permits indexing. Subsequent searches use that checkout's last completed index; incomplete Git operations retain it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory inside the target checkout or registered directory. Used when 'repo' is absent; no configuration marker is needed. | |
| repo | No | Absolute path of the target checkout/worktree or indexed directory. Optional if 'cwd' is provided. | |
| limit | No | ||
| query | Yes |