mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-08 03:10:26 +00:00
Kimi Code's Grep returns matching lines, matching file names, or per-file counts, and pages results with `head_limit` and `offset`. All four are shapes of the result list the Sandbox trait already returns, so the Kimi profile gets them without any provider work. Scoped to the Kimi profile. The other profiles keep fabro's grep tool: these options exist because Kimi models are trained against them, not because every model should be handed more knobs. Two details worth knowing when reading it. Extracting a file path means parsing the `<path>:<line>:<content>` prefix, which the underlying search omits when scanning a single file, so the search root is the fallback; the parser also walks candidate separators so a colon inside matched content is not mistaken for the line-number field. And `head_limit` is only pushed down to the search as a result cap in `content` mode, where results and lines are the same thing -- capping lines early would undercount files for the other two modes. Kimi Code's `type`, `multiline`, and `include_ignored` are still absent. They would have to reach ripgrep flags through new Sandbox trait methods implemented across the local, Docker, and Daytona providers, and a parameter that is advertised but ignored is worse than one that is missing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| apps | ||
| components | ||
| foundation | ||
| packages/fabro-api-client | ||