hazemdawahi/fewer
A Rust CLI and optional Claude Code plugin for reducing context token use
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Fewer is a CLI integration for Claude Code with an optional plugin. After installation, it operates in new chats without a per-project invocation. The CLI handles lifecycle, usage analysis, and memory controls; the plugin adds an in-chat savings display and slash commands. Fewer carries retained context forward when the user starts a new chat with /clear.
The visible Cargo manifest defines fewer-pack, a lossless log compressor built from src/main.rs with Rust edition 2024 and no declared dependencies. The manifest lists x86_64 scalar, SSE2, SSE4.2, and AVX2 test configurations. It does not establish how the installed fewer command calls the packer, where context is intercepted, or whether an MCP transport is involved. Lossless log packing should not be read as proof that the full model context is preserved verbatim.
Key Capabilities & Differentiators
Fewer targets token use in Claude Code rather than acting as a model backend. fewer tokens reports savings per user message, fewer analyze breaks down usage and identifies further savings opportunities, and fewer memory lets users see what was retained, check its size, and delete selected content. Users can toggle the integration and decide whether subagents, workflows, and helpers load CLAUDE.md files.
The published benchmark tested nine tasks, each run 12 times with and without Fewer, on clean Linux and Windows runners using Claude Code 2.1.332 and Opus 5.5. Both configurations answered all benchmark tasks correctly. Across rounds, token use fell 87–93% and dollar cost fell 84%. The Sonnet, Haiku, and Fable results report 79–95% lower dollar cost, not an equivalent token reduction. These results are specific to the measured tasks and do not establish answer equivalence on arbitrary sessions.
Trade-offs & Limitations
Compared with manually resetting chats and trimming context, Fewer automates carryover and makes savings measurable. It also changes a behavior that can affect task correctness: subagents do not load CLAUDE.md by default. Teams that put build instructions or review rules there should enable loading where necessary and test representative delegated tasks. The benchmark does not show how reliably constraints survive carryover in long or unusual sessions.
The on and off controls make a comparison practical: test task completion, retention of critical instructions, and token or billed cost before wider rollout. The integration is tied to Claude Code; it is not a substitute for cross-client context optimization. Memory inspection and deletion are useful controls, but they are not guarantees about storage location, retention defaults, or complete erasure. Apache-2.0 covers the repository code, not Claude access or its service terms.
Hardware & Deployment Guide
The end-user prerequisite is Claude Code on macOS, Linux, or Windows. Installation routes include release scripts, Homebrew on macOS and Linux, and a Claude Code marketplace route in which /fewer-install installs the tooling after confirmation. The interactive installer previews its changes and prompts separately for the optional plugin. Start a new chat after installation; use fewer update and fewer uninstall for maintenance.
The v1.2.13–v1.2.15 release entries all present shell and PowerShell installers. Treat the one-line forms as remote code execution by design: review the script before running it and prefer a reviewed release artifact over an unpinned latest URL for managed rollouts. Rust 1.85 is the minimum for building the visible packer from source, not a stated prerequisite for script-based installation. The local tool does not replace Claude inference, and no Docker deployment or offline inference path is specified.
fewer-pack target at src/main.rs for lossless packing of files, directories, and streams..claude-plugin/ and plugin/ accompany an optional plugin with a savings display and slash commands./clear starts a fresh chat while Fewer carries forward retained task context.fewer tokens reports savings per user message, fewer analyze breaks down usage, and fewer memory exposes retained data for inspection and deletion.fewer subagents claude-md on restores CLAUDE.md loading for subagents, workflows, and helpers; the default is off.Frequent Claude Code users who want measurable token savings and less manual context rebuilding when switching tasks, and can validate their own workflows before rollout.
You need offline inference, support across multiple coding clients, or verified retention and deletion guarantees that you cannot independently establish.
Quick Start & Installation
curl -fsSL https://github.com/hazemdawahi/fewer/releases/latest/download/install.sh | sh
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| fewer ★ | 51 | +51 | Rust | Apache-2.0 | A Rust CLI and optional Claude Code plugin for reducing context token use |
| rtk | 88.7k | +684 | Rust | Apache-2.0 | A local Rust CLI wrapper that trims command output before coding agents read it. |
| ECC | 316.1k | +4.2k | JavaScript | MIT | Plugins and CLI workflows for planning, reviewing, and verifying agent-written c |
| ponytail | 204.4k | +4.1k | JavaScript | MIT | A prompt-driven coding-agent plugin for smaller changes and focused tests. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/hazemdawahi/fewer.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about fewer
How does Fewer integrate with Claude Code?
Does it need a GPU, and what local overhead should I expect?
Can we use it commercially or run the entire workflow on our own infrastructure?
Why use Fewer instead of manually resetting chats and trimming context?
/clear and reporting usage. If your main concern is subagents missing project rules, enable CLAUDE.md loading for them rather than judging the integration on savings alone. For a fair comparison, run the same tasks with fewer on and fewer off and check correctness as well as token use.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy