# Repository Briefing: drona23/claude-token-efficient
> Source: https://repoforai.com/repo/drona23/claude-token-efficient (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/drona23/claude-token-efficient
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B (55/100 · Maintenance 12/35 · Adoption 17/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-04
- **Momentum**: 6,237 ★ total (+2 24h / +31 7d) · 498 forks
- **When to Use**: Best for: Teams running recurring, output-heavy Claude Code tasks that want concise responses and can measure cost and task success on their own workload. Skip if: Most tasks are short or exploratory, or your pipeline needs guaranteed output schemas, hard tool-call limits, or enforced validation.

## Overview
```text
### Architecture & Core Mechanics
This is a declarative instruction pack for Claude Code, not an executable extension or an MCP server. Claude Code loads the project-root `CLAUDE.md` as context, and the model interprets its rules while editing files, using tools, and drafting responses. The file does not sit between the model and its tools, enforce policy, or rewrite the output after generation.

Rules can compose across `~/.claude/CLAUDE.md`, the project root, and subdirectories. The root file is the minimal default; `profiles/` offers coding, agent, analysis, and benchmark variants, plus versioned workflow configurations. Python is used for the separate `benchmark/run.py` evaluation entrypoint, not for applying the configuration.

### Key Capabilities & Differentiators
The rules steer Claude toward terse responses, targeted edits, reading relevant files before changing them, and testing before declaring completion. The v5 profile organizes multistep workflows; v6 favors single-pass execution and stopping once the task passes; v8 favors fewer turns. Their 50, 50, and 20 tool-call budgets are model instructions rather than hard limits.

At N=5, the minimal file reduced measured output tokens by about 4% on Haiku, 12% on Sonnet, and 7% on Opus. The earlier 63% reduction came from a single word-count comparison across four prompts; a fifth tested formatting. A separate three-task coding comparison reported a 17.4% aggregate cost advantage for v8 over C-structured, but v8 cost more on SQLite Windows. Results outside Claude remain untested.

### Trade-offs & Limitations
The file trades recurring input overhead for shorter outputs and potentially fewer unnecessary turns. It is most defensible for repeated, output-heavy work; short queries can cost more with the file, and pipelines that repeatedly start fresh sessions should measure their own economics. Compare actual billed input and output, tool calls, and task success on representative workloads rather than extrapolating from word counts.

Chat instructions are lighter for one-off work. Schema-backed API outputs are a better fit for machine parsing, while hooks or CI gates can enforce requirements a prompt can only suggest. Terse defaults can also cut useful context from architecture discussions and investigations. Ask for detail when needed, and remove rules for behaviors the baseline already handles: the semantic evaluation observed none of several targeted behaviors, including preambles and sycophancy, in its baseline runs.

### Hardware & Deployment Guide
For normal use, place `CLAUDE.md` in the project root or merge the relevant rules into an existing file. Keep shared preferences in `~/.claude/CLAUDE.md` and scope task-specific rules to the relevant subdirectory. No package install, container, server, or dedicated accelerator is required for the file itself. It works with the existing Claude Code setup; storing it locally does not move model inference offline.

For evaluation, the Python 3 harness can be invoked with `python3 benchmark/run.py -n 5 --model opus`. `benchmark/SUMMARY.md` and `benchmark/SEMANTIC.md` cover token and semantic results. There is no published GitHub release listed, so pin the adopted file to a reviewed commit rather than treating the `main` download as a fixed version.
```

## Key Capabilities
```text
- Integration: Project-root `CLAUDE.md` supplies Claude Code instructions without an MCP server or plugin runtime.
- Context budget: Global `~/.claude/CLAUDE.md`, project, and subdirectory rules can compose; active instructions add input overhead.
- Output-token evidence: The minimal file cut output tokens by approximately 4% on Haiku, 12% on Sonnet, and 7% on Opus at N=5.
- Benchmark interpretation: The original 63% figure measures words across four prompts in a single comparison, not total tokens or billing.
- Workflow profiles: v5 and v6 specify 50-call budgets; v8 specifies 20. These are prompt-level budgets, not enforced quotas.
- Cost-to-green: On the same model and harness, v8 totaled $0.935 versus $1.131 for C-structured across three passing coding challenges.
```

## Quick Start / Clone
```bash
curl -o CLAUDE.md https://raw.githubusercontent.com/drona23/claude-token-efficient/main/CLAUDE.md
```
