drona23/claude-token-efficient
A drop-in CLAUDE.md that keeps Claude Code responses concise.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
CLAUDE.md supplies Claude Code instructions without an MCP server or plugin runtime.~/.claude/CLAUDE.md, project, and subdirectory rules can compose; active instructions add input overhead.Teams running recurring, output-heavy Claude Code tasks that want concise responses and can measure cost and task success on their own workload.
Most tasks are short or exploratory, or your pipeline needs guaranteed output schemas, hard tool-call limits, or enforced validation.
Quick Start & Installation
curl -o CLAUDE.md https://raw.githubusercontent.com/drona23/claude-token-efficient/main/CLAUDE.md
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| claude-token-efficient ★ | 6.2k | +31 | Python | MIT | A drop-in CLAUDE.md that keeps Claude Code responses concise. |
| spec-kit | 153.8k | +1.3k | Python | MIT | A Python CLI for spec-driven coding-agent workflows and reviewable handoffs |
| academic-research-skills | 59.6k | +724 | Python | — | Claude Code plugin for human-reviewed research, manuscript writing, and peer rev |
| claude-plugins-official | 49.1k | +611 | Python | Apache-2.0 | Claude Code’s official marketplace for installing plugins and curated skill bund |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/drona23/claude-token-efficient.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about claude-token-efficient
Do I need to register an MCP server or install a Claude Code plugin?
CLAUDE.md as project instructions. There is no MCP server to register or service to run. If the project already has a CLAUDE.md, merge the relevant rules rather than replacing it.What hardware or runtime overhead does it add?
Can we use it commercially and keep it in our own repository?
When should we use chat instructions, structured outputs, or CI checks instead?
CLAUDE.md for recurring style and workflow defaults. Use schema-backed structured outputs when a downstream parser depends on a stable contract, and hooks or CI checks when a workflow rule must be enforced.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