# Repository Briefing: hazemdawahi/fewer
> Source: https://repoforai.com/repo/hazemdawahi/fewer (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/hazemdawahi/fewer
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Rust
- **License**: Apache-2.0
- **Engineering Health**: A (83/100 · Maintenance 35/35 · Adoption 8/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v1.2.15 (2026-12-04) — https://github.com/hazemdawahi/fewer/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: CLI
- **Momentum**: 51 ★ total (+13 24h / +51 7d) · 4 forks
- **Topics**: `ai-agents`, `claude-code`, `cli`, `developer-tools`, `llm`, `mcp`, `rust`, `tokens`
- **When to Use**: 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.

## Overview
```text
### 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.
```

## Key Capabilities
```text
- 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.
```

## Quick Start / Clone
```bash
curl -fsSL https://github.com/hazemdawahi/fewer/releases/latest/download/install.sh | sh
```
