GitHub - hazemdawahi/fewer: Get your Claude usage back: Claude Code uses 86% fewer tokens, with the same answers.

GitHub

2 min read Original article ↗

Fewer

Fewer tokens. Nothing forgotten.

Get your Claude usage back: 86% fewer tokens, the same answers.

License: Apache 2.0 Version 1.2.11

What is it · How it works · Benchmark · See it · Install · Use


What is Fewer?

Fewer makes Claude Code use 86% fewer tokens, with the same answers. Your Claude usage lasts longer. It's free.

How it works

Each time Claude replies, it reads your whole chat again. Fewer plugs into Claude Code: it reads ahead what you ask, makes long outputs short, and saves everything word for word in its memory, where Claude finds old details. After /clear, the new chat picks up where you left off.

Benchmark

Tokens used on the same tasks. Code tasks: Fewer 166,118 tokens (85% fewer than Claude Code alone, 1,122,500); web tasks: Fewer 42,473 (90% fewer than 407,892).

9 tasks, run 12 times each with and without Fewer, on GitHub's clean Linux and Windows machines (Claude Code 2.1.332, Opus 5.5). Every answer was right both ways. Each round: 87–93% fewer tokens, and 84% less in dollars.

Check it: round 1 · round 2 · raw results · rerun it yourself

Each task, Claude Code alone then with Fewer: review 20 files one by one (a long chat) 642,263 then 21,481 (97% fewer); find two status codes in a web page 327,105 then 19,810 (94%); fix a bug, then run its test 102,028 then 40,423 (60%); read 13 files and answer 5 questions 91,691 then 25,398 (72%); add up the totals in a CSV file 91,490 then 19,615 (79%); count the errors in a log 81,415 then 20,163 (75%); a web search: when Rust 1.0 came out 80,786 then 22,663 (72%); explain the last commit 65,666 then 19,418 (70%); find why the tests fail 47,945 then 19,618 (59%). All 9 tasks: 1,530,392 then 208,591 (86%).

The same 9 tasks on every Claude model, Claude Code alone then with Fewer: Opus 5.5 1,530,392 then 208,591 (86% fewer); Sonnet 5.5 1,089,131 then 176,784 (84%); Haiku 5.5 3,184,582 then 177,022 (94%); Fable 5.2 1,012,647 then 176,768 (83%). Sonnet, Haiku and Fable on GitHub's clean Linux machine.

On Sonnet, Haiku and Fable: 79–95% less in dollars.

Check it: Sonnet 5.5 · Haiku 5.5 · Fable 5.2 · rerun it yourself

A long workday in one chat: 9 tasks, 45 messages, run twice. Claude Code alone 15,679,789 tokens; Fewer, never typing /clear, 7,320,818 (53% fewer); Fewer with /clear at each new task, 2,508,081 (84% fewer). Every answer was right.

Check it: round 1 · round 2 · rerun it yourself

See it

/fewer-tokens in my own Claude Code chat:

/fewer-tokens in my own Claude Code chat

Install

Works on macOS, Linux and Windows. All you need is Claude Code.

curl -fsSL https://github.com/hazemdawahi/fewer/releases/latest/download/install.sh | sh

On Windows, in PowerShell:

irm https://github.com/hazemdawahi/fewer/releases/latest/download/install.ps1 | iex

It shows every change it will make, then asks you once. Then open a new Claude Code chat.

Or paste this into Claude Code:

Install Fewer for me: curl -fsSL https://github.com/hazemdawahi/fewer/releases/latest/download/install.sh | sh -s -- --yes

Or add Fewer's Claude Code plugin in a chat: /plugin marketplace add hazemdawahi/fewer, then /plugin install fewer@fewer. It shows what Fewer saved in one line above the prompt, and /fewer-install installs Fewer after asking you (plugin/README.md).

Update: fewer update  ·  Remove: fewer uninstall

Use

Use Claude Code as usual, in any project: it uses Fewer by itself. These are for you:

Command What it does
fewer tokens Your own savings, per message you send
fewer memory What Fewer saved, its size, and delete what you want
fewer off / fewer on Turn Fewer off or on

In a Claude Code chat: /fewer-tokens, /fewer-memory, /fewer-off, /fewer-on.

When you switch tasks, type /clear: Fewer carries over where you were, and the new chat costs far less than a long one.

License

Apache 2.0. See LICENSE.


Fewer

Saved you tokens? A star helps other Claude Code users find Fewer.