Live data from Hacker News

Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep

github.com

11–20 of 187 posts

Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep

#11

Does this work well for non-coding documents as well? Say api docs or AI memory files?

Hey, this is something we're actively investigating. We recently added a flag, `--include-text-files`, which, when set, also makes Semble index regular documents (i.e., markdown, text, json). This should also work relatively well.

Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep

#12

grep doesn't need tokens, so what is 98% fewer than zero?

You need readfile to do something with those tokens. Grep only gives you the matching lines, not the context.

`grep -C $NUM` ? ;)

Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep

#13
post #12

Earlier quoted context omitted.

You need readfile to do something with those tokens. Grep only gives you the matching lines, not the context.

`grep -C $NUM` ? ;)

Even so. Take a look at the NDCG numbers for grep. It's not pretty

Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep

#14
I'd be interested in seeing actual agent benchmarks (eg CC or Copilot CLI with grep removed and this tool instead).

For example, I have explored RTK and various LSP implementations and find that the models are so heavily RL'd with grep that they do not trust results in other forms and will continually retry or reread, and all token savings are lost because the model does not trust the results of the other tools.

Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep

#15

I'd be interested in seeing actual agent benchmarks (eg CC or Copilot CLI with grep removed and this tool instead). For example, I have explored RTK and various LSP implementations and find that the models are so heavily RL'd with grep that they do not trust results in other forms and will continually retry or reread, and all token savings are lost because the model does not trust the results of the other tools.

Yeah we're also interested in doing this, it's on the roadmap together with optimization of the prompt and descriptions so that models have an easier time using it.

Perhaps anecdotally: we do use this tool ourselves of course, and it's been working pretty well so far. Anthropic models call it and seem to trust the results.

Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep

#16

I'd be interested in seeing actual agent benchmarks (eg CC or Copilot CLI with grep removed and this tool instead). For example, I have explored RTK and various LSP implementations and find that the models are so heavily RL'd with grep that they do not trust results in other forms and will continually retry or reread, and all token savings are lost because the model does not trust the results of the other tools.

I forced Claude to have a global memory for RTK and my own AI memory system (GuardRails) which it happily uses both, the only times it doesnt use GuardRails is if I dont mention it at all, otherwise it always uses RTK unless RTK falls apart running a tool it does not support.

Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep

#20

I'd be interested in seeing actual agent benchmarks (eg CC or Copilot CLI with grep removed and this tool instead). For example, I have explored RTK and various LSP implementations and find that the models are so heavily RL'd with grep that they do not trust results in other forms and will continually retry or reread, and all token savings are lost because the model does not trust the results of the other tools.

[deleted]
Post reply on HN