I actually have a WIP library for this, the indexing server isn't where I want it just yet, but I have an entire agent toolkit that does this stuff, and the indexing server is quite advance, with self-tuning, raptor/lsp integration, solves for optimal result set using knapsack, etc. https://github.com/sibyllinesoft/grimoire
Show HN: Semantic grep with local embeddings
71–80 of 84 posts
Re: Show HN: Semantic grep with local embeddings
#72Man, that's a great thing! Really waiting to see Ruby and Elixir. Fingers crossed for you!
Re: Show HN: Semantic grep with local embeddings
#73> thread 'main' (17953) panicked at ck-cli/src/main.rs:305:41: byte index 100 is not a char boundary I seem to have gotten 'lucky' and it split an emoji just right. --- For anyone curious: this is great for large, disjointed, and/or poorly documented code bases. If you kept yours tight and files smaller than ~600 lines, it is almost always better to nudge llm's into reading whole files.
Re: Show HN: Semantic grep with local embeddings
#74I actually have a WIP library for this, the indexing server isn't where I want it just yet, but I have an entire agent toolkit that does this stuff, and the indexing server is quite advance, with self-tuning, raptor/lsp integration, solves for optimal result set using knapsack, etc. https://github.com/sibyllinesoft/grimoire
I have to know, what is the Lens SPI? The link in your readme is broken, and Kagi results for this cannot possibly be right.
Re: Show HN: Semantic grep with local embeddings
#75Re: Show HN: Semantic grep with local embeddings
#76Re: Show HN: Semantic grep with local embeddings
#77Re: Show HN: Semantic grep with local embeddings
#78Earlier quoted context omitted.
if 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.
That sounds great - do you have any examples?
I have a lot of PreToolUse hooks that injects guideline messages whenever certain tools are called or bash commands run. My hooks also prune older versions of those out of context. All of the transcripts are in ~/.claude/projects/ in jsonl format and are hot-editable.
Re: Show HN: Semantic grep with local embeddings
#79Re: Show HN: Semantic grep with local embeddings
#80At this point, we aren't even saying it's written in Rust anymore, we just mention it in the title whenever possible. I did look into the core features and I gotta say, that looked quite cool. It's like Google search, but for the codebase. What does it take to support other languages?
It supports most languages but needs a bit of tree-sitter setup to do semantic chunking. Let me know what languages you’d like added