r/coolgithubprojects • u/Otherwise_Snow_5616 • 17m ago
Claude Code reaches the same answers with 86% fewer tokens (free, open source)
1
Upvotes
r/coolgithubprojects • u/Otherwise_Snow_5616 • 17m ago
1
u/Otherwise_Snow_5616 11m ago
My text didn't come through with the picture, so here it is:
Claude re-reads your whole chat before every reply. It's like re-reading the whole book to write the next sentence. Long chats and big test logs get paid for again and again.
I built Fewer to keep the book short:
- it makes long outputs short, and saves every page word for word, so Claude can still find any detail
- it reads ahead the files your message asks about
- after /clear, the new chat picks up where you left off
The picture is Fewer's map of where my own Claude Code tokens went in the last 30 days.
I tested it on 9 coding and web tasks, 12 runs each with and without Fewer, on GitHub's clean machines: 86% fewer tokens, and every answer right both ways. The benchmark is in the repo, so you can rerun it yourself.
Works on Mac, Linux and Windows. Free, Apache 2.0. If you use Claude Code a lot, try it and tell me what you see, especially if it doesn't help.
https://github.com/hazemdawahi/fewer
1
u/exclusivegreen 14m ago
Did you forget to post a link?