News for hackers. Stuff that matters.
Re:RTK reports token savings, but our cost benchmarks disagree by aeneas_ory on Friday September 11, 2026 @07:28AM (#49656622)
All of these "hacks" are snakeoil and I think deep down we all know. Whether it's caveman, RTK, or whatever other vibe-coded productivity/token cost saving hacks/skills/claude.md.

What I had success with (although benchmarks are older) is to index the codebase with a dedicated local code embedding model. It's a bit expensive on the CPU side but in my benchmarks it reduced token use and wall clock time significantly. Of course, it's always dependent on statistical noise + host system load, and running sufficiently large benchmarks is simply too expensive, so take em with a grain of salt.

Why does it work you may ask? Well, LLMs basically brute force words/phrases and pipe that into find/grep/pgrep/whatever (or as recently discussed here write a python script for it - https://news.ycombinator.com/item?id=49654229). Semantic search looks for similarities so you have to do less brute forcing. Comes of course at the cost of indexing everything first.

You can find the project here: https://github.com/ory/lumen

Re:RTK reports token savings, but our cost benchmarks disagree by Whitespace on Friday September 11, 2026 @08:41AM (#49657451)
I should not trust their "vibe-coded productivity/token cost saving hacks" but I should trust yours?

    Save 30% token costs when using Claude Code, Codex, OpenCode for free - with open source, local semantic search. Works for small and large codebases and monorepos! Enterprise-ready and fully compliant via Ollama and SQLite-vec.
    Releases v0.0.42 Latest last month
Why should I trust that what you're peddling isn't snakeoil?
Re:RTK reports token savings, but our cost benchmarks disagree by aeneas_ory on Friday September 11, 2026 @09:46AM (#49658357)
I literally say you should take benchmarks with a grain of salt :)

> Of course, it's always dependent on statistical noise + host system load, and running sufficiently large benchmarks is simply too expensive, so take em with a grain of salt.

And the savings listed are coming from a benchmark harness that implements different OSS bugs one time with and one without lumen - in those cases the % saved are reproducible (caveat: it was on older models, Opus 4.6 I believe).

Also I explain WHY it saves tokens - because the model doesn’t have to brute force different terms until it finds the match it needs, but uses semantic „distance“ so the embedding does it for the model.

Re:RTK reports token savings, but our cost benchmarks disagree by icantevenhold on Friday September 11, 2026 @08:53AM (#49657617)
Only way to find out is to do some testing yourself i think.

I’m using less tokens with Lumen but I also use a bunch of other tokens hacks/skills; it’s hard to measure the impact exactly but it feels significant

Re:RTK reports token savings, but our cost benchmarks disagree by bustermellotron on Friday September 11, 2026 @03:21PM (#49663920)
I just went through a lot of benchmarking and the only thing that seemed better than rg was chunkhound, which sounds similar to this project. Actually a small Jina embedding model actually did better than voyage AI, but took a long time to index. Also chunkhound doesn’t work well with worktrees. In the end, I decided to stick with rg.
Re:RTK reports token savings, but our cost benchmarks disagree by iharnoor on Friday September 11, 2026 @09:22PM (#49667654)
Half of what we see or consume is hype, so we should view everything with nuance. Sometimes truth lies in the middle.
Re:RTK reports token savings, but our cost benchmarks disagree by Bridged7756 on Friday September 11, 2026 @08:47AM (#49657524)
Jetbrains IDEs are a perfect solution for this. They expose IDE actions (e.g, search, see occurrences, go to implementation) in their MCP server, which the harnesses can then call directly instead of figuring out the code themselves.
Re:RTK reports token savings, but our cost benchmarks disagree by SJMG on Friday September 11, 2026 @09:02AM (#49657739)
You would think, except in their own testing they found no benefit. Some measures it was even worse on.

https://blog.jetbrains.com/ai/2026/05/what-happens-when-you-...

Re:RTK reports token savings, but our cost benchmarks disagree by bustermellotron on Friday September 11, 2026 @05:47PM (#49665854)
I also found LSP like skills to usually have no advantage over rg. The agent needs to read the code to understand it; navigation is a small portion of that.
Re:RTK reports token savings, but our cost benchmarks disagree by cassianoleal on Friday September 11, 2026 @08:53AM (#49657619)
> One of: Claude Code, Cursor, Codex, or OpenCode

What makes it incompatible with Pi, Zed or any other harness?

Re:RTK reports token savings, but our cost benchmarks disagree by aeneas_ory on Friday September 11, 2026 @09:46AM (#49658363)
Only the amount of free time I have to work on it - nothing fundamentally prevents it. PRs welcomed!
Re:RTK reports token savings, but our cost benchmarks disagree by esperent on Friday September 11, 2026 @08:55AM (#49657653)
This sounds quite similar to dirac which made a stir a few months ago:

https://github.com/dirac-run/dirac

I spent way too long trying to reproduce the results in Pi and failing before I decided that I shouldn't trust author benchmarks for any of these tools. Then I found that I couldn't even close to reproduce their benchmark results using the exact model and their harness.

If any person other than the author has time to verify these Lumen benchmark results I'd be curious to hear it. I don't have the time to do it myself at the moment.

Re:RTK reports token savings, but our cost benchmarks disagree by nevon on Friday September 11, 2026 @10:09AM (#49658720)
I did the same with another project that does the same thing, called ck, and wasn't able to wring out any improved performance over just plain grep.
Re:RTK reports token savings, but our cost benchmarks disagree by esperent on Friday September 11, 2026 @02:26PM (#49663023)
Yes rg + python seems to beat far fancier tools.
Re:RTK reports token savings, but our cost benchmarks disagree by ramon156 on Friday September 11, 2026 @09:47AM (#49658376)
Lumen is pretty cool, it's just local RAG, but it's a realistic approach at RAG. I would still keep tool-calling in some places though.
Re:RTK reports token savings, but our cost benchmarks disagree by lopatin on Friday September 11, 2026 @10:15AM (#49658835)
I'm in the process of evals for these tools after my org adopted them. My RTK findings are the same. It worsens task performance and overall you don't save money. I wanted to give the same treatment to other tools like ponytail and caveman (especially caveman, I mean there's no way that telling a computer to talk like a caveman is a valid engineering technique right?). To my horror, caveman is looking to be the only tool that actually doesn't regress on reasoning while taking costs down. But I still have a lot more evals to write, so this isn't conclusive or anything. (Also I haven't tried Lumen yet)
Re:RTK reports token savings, but our cost benchmarks disagree by bunderbunder on Friday September 11, 2026 @10:26AM (#49659031)
I am actually rather fond of caveman. I haven't evaluated it for token cost, in part because frankly I think that part of the pitch is a load of malarkey. Output that's shown to the user is such a small percentage of overall tokens these days.

But anecdotally I do think it saves me quite a lot of time on reading LLM outputs. And that, if nothing else, is good for my sanity.

The caveman gimmick makes sense to me as a clever hack. Caveman talk is a longstanding meme that's presumably well-represented in the models' training data. So just asking it to do that is just an ultra-concise way to tell the LLM to be ultra-concise. Which, in turn, is theoretically good for accuracy because putting too many instructions in the prompt is bad for task performance.

Re:RTK reports token savings, but our cost benchmarks disagree by bustermellotron on Friday September 11, 2026 @05:45PM (#49665825)
Similar for ponytail, I don’t know if it saves tokens, but there is less output to read (and usually less over engineering). Occasionally I have to push for more complex code, but that is much nicer than constantly asking for simpler code.
Re:RTK reports token savings, but our cost benchmarks disagree by bunderbunder on Friday September 11, 2026 @08:31PM (#49667307)
That's also a good point. When I'm using caveman (and especially cavekit), I don't have to spend quite so much energy on dealing with it building features I didn't ask for and don't want.
Re:RTK reports token savings, but our cost benchmarks disagree by rvz on Friday September 11, 2026 @11:27AM (#49660079)
So we replace all those "hacks" and snake-oil with even more pseudoscientific hacks and snake-oil?
Re:RTK reports token savings, but our cost benchmarks disagree by aeneas_ory on Friday September 11, 2026 @11:33AM (#49660170)
See my other comment on the person that commented the same thing you did!
Re:RTK reports token savings, but our cost benchmarks disagree by cosmojg on Friday September 11, 2026 @11:39AM (#49660271)
How does this compare to ripgrep and fzf?
Re:RTK reports token savings, but our cost benchmarks disagree by woadwarrior01 on Friday September 11, 2026 @12:30PM (#49661168)
TBF, what difference does it make when the very harnesses you're using these "hacks" in are themselves vibe-coded?
Re:RTK reports token savings, but our cost benchmarks disagree by simianwords on Friday September 11, 2026 @12:36PM (#49661267)
> Whether it's caveman

the kinda guy who honestly thinks caveman.md reduces costs, actually adds it to his system prompt and is painstakingly reading the terse output

Re:RTK reports token savings, but our cost benchmarks disagree by gslepak on Friday September 11, 2026 @12:47PM (#49661447)
How does lumen compare to semble?

https://github.com/MinishLab/semble

Re:RTK reports token savings, but our cost benchmarks disagree by tracerbulletx on Friday September 11, 2026 @01:49PM (#49662430)
Isn't that what everyone was doing in the beginning of harnesses(cursor) and learned not to do for various reasons? https://news.ycombinator.com/item?id=43164253
Re:RTK reports token savings, but our cost benchmarks disagree by bkotrys on Friday September 11, 2026 @05:32PM (#49665672)
That’s a good example, I believe it could be similar case like with RAG. I didn’t hear for a while about any recommendations to use RAG.
Re:RTK reports token savings, but our cost benchmarks disagree by theshrike79 on Friday September 11, 2026 @07:04PM (#49666629)
You use caveman to save on tokens, I use it to make the agent shut up. We are not the same =)

When caveman was released, token efficiency was a lot more relevant. But in the time I've actually come to like its matter-of-fact and short way of responding. There are other similar ones, but caveman is familiar.

Re:RTK reports token savings, but our cost benchmarks disagree by wlonkly on Saturday September 12, 2026 @09:53AM (#49672327)
I was glad to know about caveman when Opus 5 started doing its Opus 5 things.
Re:RTK reports token savings, but our cost benchmarks disagree by 8note on Friday September 11, 2026 @07:25PM (#49666799)
skills have a pretty straightforward token win - you remove the decision making from the agent so it does specific things in a row. at some point youre better off inverting control to a script that only occasionally calls the agent for a small decision
Re:RTK reports token savings, but our cost benchmarks disagree by alemanek on Friday September 11, 2026 @10:14PM (#49668012)
A bit different but in the same domain GitNexus has been really good for me. Symbol based search and impact analysis. Once I added git hooks to auto index and added some explicit instructions it saved quite a bit for me. I have no affiliation just wanted to add that as some thing to try out.
Re:RTK reports token savings, but our cost benchmarks disagree by hedgehog on Saturday September 12, 2026 @12:13AM (#49668733)
I've gotten good usage out of a structured search tool (not mine, by someone else here) called Tilth:

https://github.com/jahala/tilth

It combines search with tree sitter grammars so the results can annotate usage vs definitions, cite line number ranges, inline the actual definition if it's short, etc. Not as precise as LSP but simple (no daemon), human readable, and in many cases works without configuration.

Re:RTK reports token savings, but our cost benchmarks disagree by master_crab on Saturday September 12, 2026 @10:31AM (#49672703)
This is the way. Take it with a grain of salt (as the author mentions) but we have gotten much better results and less token usage after we hooked up our codebase to an indexing service’s MCP (in our case sourcegraph). But any indexing service will do.