similar
Find semantically similar cached files to a given source file. Use to discover related code, tests, or configs after seeding the cache with batch_read.
Instructions
Find cached files semantically similar to one source file.
Use this to discover related implementations, tests, or configs after the surrounding code has already been seeded into the cache.
Important constraint:
The source file is handled automatically.
Candidate neighbor files must already be cached, typically via
batch_read, or they will not appear.
Usage guidance:
Seed a directory with
batch_readfirst.Start with
k=3tok=5.Empty results usually mean either only the source file is cached or the relevant neighbors were never seeded.
Args: path: Source file path. k: Maximum number of similar files to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| k | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | ||
| source_path | No | ||
| similar_files | No | ||
| source_tokens | No | ||
| files_searched | No | ||
| k | No |