ripsem
v0.3.0Offline code search for agents: find code by identifier, error message or plain description
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search Search the code
Find code in this repository. Handles both exact terms (identifiers, error strings, constants) and plain-language descriptions of behaviour in the same call, and returns ranked snippets with file paths and line ranges. Prefer this over grepping and reading whole files: it costs one call instead of guessing at the author's wording.
| Parameter | Type | Description |
|---|---|---|
query * | string | What you are looking for: an identifier, an error message, or a description of the behaviour. |
glob | string | array | Only paths matching these globs; a leading ! excludes, e.g. ['*.rs', '!*_test.rs']. |
lang | string | array | Only files of these languages or extensions, e.g. 'rust' or ['py', 'ts']. |
limit | integer | Maximum number of results (default 5, at most 50). |
min_score | number | Drop hits scoring below this (0–1). 0 is no closer than unrelated text in this repository, 1 is every query term found literally; scores fall with rank, so this keeps the top results. Default: no fi… |
offset | integer | Results to skip, taken from the ranking after every filter, to read the next page: when more follow, the result ends with the offset to pass. Default 0. |
path | string | Optional subdirectory (relative to the repo) to limit results to, e.g. 'src/embed'. |
regex | string | Only hits whose code matches this regular expression (Rust regex syntax, matched against the whole chunk, so `(?i)` makes it case-insensitive), for "the place that does X and mentions foo". Looked for… |
index_status Index status
Report whether this repository's search index exists, how many files and chunks it holds, how many files were added, changed or removed since it was built, and whether it is being updated right now. Call it when `search` says there is no index or finds nothing you expect.