Earlier quoted context omitted.
Doing that would mean copying and keeping in-sync two files: AGENTS.md and CLAUDE.md since I use both, claude, and others intercheangeably in one project. Also, I dont want to keep my project's details in those files, but, keep it separate. With current setup/way, a single line in both satisifies all constraints and requirements.
I use AGENTS.md as the "global" agent file, then use CLAUDE.md as a light wrapper with Claude-specific instructions which ends in an instruction to read AGENTS.md .
Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep
171–180 of 187 posts
Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep
#172So about a year ago I wrote my own attempt at something like this using vector indexing and BM25 (the latest version uses CocoIndex, I had a custom coded solution using ChromaDB before). I wrote a comprehensive enough test set that showed performance increases on the quality of search results and reduction in token usage versus grep and rg. I haven't had time to really polish it but it worked well enough, particularl…
Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep
#173What I have personally observed with such tools is that they make the AI's dumb, similar to how it makes coders dumb when relying more on AI tools. These agentic AI's are already smart enough to figure out a highly optimized path to code exploration or search. But, with these tools, they just go very aggressive, partly because the search results from these tools almost in 100% of the cases do not furnish full details…
I'm seeing over and over again people claiming absurd optimizations for coding agents: > Our tool uses 99x fewer tokens and delivers 88x better results. Okay, great, but... 1) It's VERY difficult to quantify something is better . 2) They almost never post how they measured how much better it is and what the margin of error might be. 3) I assume they are incompetent and don't even try the tool. Like you pointed out, t…
Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep
#174Interesting for sure, but I think I need to be convinced this is necessary. How many tokens does Grep use on the average response anyways? Does this reduce input token usage from 100k to 2k per query or from 1k to 20? How does this effect output code quality?
Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep
#175These almost always come with the cost of worse adherence
Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep
#176Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep
#177Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep
#178Interesting for sure, but I think I need to be convinced this is necessary. How many tokens does Grep use on the average response anyways? Does this reduce input token usage from 100k to 2k per query or from 1k to 20? How does this effect output code quality?
There's a "semble savings" command you can run to see token savings. It varies heavily based on the repo: in general, the larger the project the larger the savings. Output code quality is something we're still trying to measure, but it's much harder than measuring retrieval quality.
Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep
#179Re: Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep
#180I'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 think the best bet is to use some kind of proxy so when the model calls grep, you intercept the call, use other tool to search and give back the results to the model.
So the model trusts the output because it is grep :D