← Back to Leaderboard
Fhazemdawahi

hazemdawahi/fewer

A Rust CLI and optional Claude Code plugin for reducing context token use

View on GitHub ↗
Engineering Health (Methodology)
A · 83/100
Maintenance Activity
● Updated today
Latest Release
v1.2.15
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption8/25
Release Cadence20/20
License Clarity20/20
CLI
Total Stars
★ 51
24h Growth
+13
7d Growth
+51
Forks
4

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

hazemdawahi/fewer Star History (2026-11-29 - 2026-12-04) DAILY STAR HISTORY (6-DAY D1 TELEMETRY) +50 in 5d · avg +10/day 55 28 0 2026-11-29: ★ 12026-11-30: ★ 112026-12-01: ★ 242026-12-02: ★ 312026-12-03: ★ 512026-12-04: ★ 51 ★ 51 11-29 12-01 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Native binary: Cargo declares a dependency-free fewer-pack target at src/main.rs for lossless packing of files, directories, and streams.
Claude Code extension: .claude-plugin/ and plugin/ accompany an optional plugin with a savings display and slash commands.
Context carryover: /clear starts a fresh chat while Fewer carries forward retained task context.
Usage and retention controls: fewer tokens reports savings per user message, fewer analyze breaks down usage, and fewer memory exposes retained data for inspection and deletion.
Subagent policy: fewer subagents claude-md on restores CLAUDE.md loading for subagents, workflows, and helpers; the default is off.
Benchmark scope: Nine tasks, 12 runs each with and without Fewer, on Linux and Windows with Claude Code 2.1.332 and Opus 5.5.
Best For

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.

Skip If

You need offline inference, support across multiple coding clients, or verified retention and deletion guarantees that you cannot independently establish.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

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

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
fewer ★51+51RustApache-2.0A Rust CLI and optional Claude Code plugin for reducing context token use
rtk88.7k+684RustApache-2.0A local Rust CLI wrapper that trims command output before coding agents read it.
ECC316.1k+4.2kJavaScriptMITPlugins and CLI workflows for planning, reviewing, and verifying agent-written c
ponytail204.4k+4.1kJavaScriptMITA 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/hazemdawahi/fewer.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

hazemdawahi/fewer Star History on RepoForAI

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?

The CLI provides installation, analysis, memory management, and on/off controls. Once installed, Fewer works in new Claude Code chats without a per-project command. The optional plugin adds a savings display and slash commands. No MCP server, transport, or hook sequence is specified, so do not plan around a particular interception mechanism.

Does it need a GPU, and what local overhead should I expect?

No local model, CUDA stack, or VRAM requirement is listed. The visible Rust manifest has an empty dependency list for fewer-pack and sets Rust 1.85 as the source-build minimum. That does not quantify the overhead of the full integration: measure startup time, memory use, and disk growth on representative sessions if those matter to your rollout.

Can we use it commercially or run the entire workflow on our own infrastructure?

Yes. Apache-2.0 permits commercial use, subject to its terms, including applicable notice obligations on redistribution. That license covers the repository code, not access to Claude. Local installation does not make inference offline or self-hosted. Review what Fewer retains and how deletion works before using it on sensitive repositories.

Why use Fewer instead of manually resetting chats and trimming context?

Manual resets let users decide what context to carry forward; Fewer reduces that manual work by carrying retained context across /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.

Maintaining hazemdawahi/fewer? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature hazemdawahi/fewer on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare