4 ms·
[stub for offtopicness]
by dang 1y ago
[stub for offtopicness]
- ayhanfuat 1y agoIsn't Claude Code's selling point that it doesn't use embeddings?
- joshuanapoli 1y agoI don’t think that “Claude Code” is relevant to this semantic grep tool.
- Runonthespot 1y agobear in mind that Claude Code by default uses grep - if you watch you'll see if it's looking for something it doesn't know the name of, it flails around with different patterns. Try this tool, tell CC to take a look using ck --help and take it for a spin. CC in my case likes it so much, it started using it to debug the repo rather than grep and suggesting its own additions
- Runonthespot 1y agoNote that it’s grep AND semantic - so Claude can start with a grep strategy and if it finds nothing can switch to semantic, and since it’s local and fast, it keeps in sync easily enough
- brookst 1y agoHow do you tell CC to use it? Just as an entry in Claude.md?
- Runonthespot 1y agoTo start with just tell it- but yes Claude.md works too. “We have a new grep semantic hybrid tool installed called ck - check it out using ck --help and take it for a spin”
- dsiegel2275 1y agoWhy would "not using embeddings" be a selling point? Some of the most effective IR systems use embeddings (bi-encoders, cross-encoders)
- AmazingTurtle 1y agoWhy does it need to say RUST in the headline as if this was a feature, lol
- Runonthespot 1y agowe all know rust CLI tools are better right?
- dang 1y agoPlease don't post misleading titles. This is in the site guidelines: https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html.
- dang 1y agoWe've taken the Rust out of the title now. (Submitted title was "Semantic grep for Claude Code (RUST) (local embeddings)")
- dmd 1y agoWhat does this have to do with Claude Code?
- Runonthespot 1y agoMainly I wrote it because I noticed Claude's "by design" use of grep meant it couldn't search the code base for things it didn't already know the name of, or find "the auth section". But equally, it's well documented that e.g. Cursor's old RAG technique wasn't that great. My idea was to make a tool that just does a quick and simple embedding on each file, and uses that to provide a semantic alternative that is much closer to grep in nature, but allows an AI tool like Claude Code to run it from the command line - with some parameters. Arguably could be MCP, but in my experience setting up a server for a basic tool like this is a whole lot of hassle. I'm fairly confident that this is a useful tool for CC as it started using it while I was coding it, and even when buggy, was more than willing to work around the issues for the benefit of having semantic search!
- furyofantares 1y agoCC is so good with grep that I'm half expecting to clutter its context with bad results from semantic search. But also half optimistic at this just improving its search. If you're getting useful results from hybrid mode that's very interesting to me since well-constructed grep that claude executes don't really look like they'd work great for semantic search to me! But intuition is often wrong on this stuff. I am very curious your thoughts on speed. I'd rather any tools claude invokes be as fast as possible so it can get feedback immediately and execute again.
- postalcoder 1y agoif you’re concerned about context you can trivially make a hook that will prune your conversation history of older semantic search results. i do a lot of context management with hooks for all sorts of tool calls.
- 1y ago
- mellosouls 1y agoThis looks interesting and I look forward to trying it but the title here should really just use the description of the repo, or that be adjusted. Apart from anything else it appears to be very misleading as Rust (ironically) according to the documentation is not one of the languages supported.
- anthonyronning 1y agoI clicked on this because it said rust in the title. Very disappointed.
- Runonthespot 1y agoI'll add rust, ruby, elixir, Clojure next. It says rust as it's written in rust, sorry about that!
- dang 1y agoWe've taken the Rust out of the title now. (Submitted title was "Semantic grep for Claude Code (RUST) (local embeddings)")