Live data from Hacker News

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

github.com

151–160 of 187 posts

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

#152
post #46

Nice, this sounds great. I want to mention a related issue here, which is that on small codebases, Claude spends a lot of time looking for stuff when it could have just dumped the whole codebase into the context in one go and used very little tokens. I found a nice workaround which is that you can just dump the whole directory into context, as a startup hook. So then Claude skips the "fumble around blindly in the dar…

Maybe aider? https://aider.chat/2023/10/22/repomap.html

I actually made a custom harness based on Aider's edit format (the find/replace thing). (I think most AI stuff ended up using a very similar format.)

It just does what I need and no more: load code into context, append my question or instruction, call LLM, apply patches. Repeat.

I haven't used Aider itself though, maybe it does that too.

My harness was nice relative to Claude Code and Codex because, it doesn't need to poke around the filesystem (cause I have small repos and dump the whole thing), and it makes all edits simultaneously (doesn't need to edit one file at a time).

It reads all files and edits all necessary files in a single round trip.

The really nice thing is that when you're making many small fine grained changes like that, you can use a much smaller, faster, cheaper model.

And if it's fast enough, it actually becomes a real-time activity. It's not "prompt, wait..." but "prompt, immediately get the result." It's interactive. You stay active and engaged. It's great.

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

#154
post #32

This looks great! I built a tool in the same space- and I found that the biggest challenge was often to get the agent to prefer to use the tool over bash tools. What’s your experience with that?

This is mostly done with the prompt. To be fair, we are still evaluating and improving this as well!

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

#156

What 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…

> Just one line in AGENTS.md and CLAUDE.md: "Start by reading PROJECT.md" . > And PROJECT.md contains... …Why not just use that PROJECT.md as the AGENTS/CLAUDE.md?

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.

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

#157

Earlier quoted context omitted.

> Just one line in AGENTS.md and CLAUDE.md: "Start by reading PROJECT.md" . > And PROJECT.md contains... …Why not just use that PROJECT.md as the AGENTS/CLAUDE.md?

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.

[deleted]
Post reply on HN