Skip to content
Conduit

mcp server

claude-tuning

One-command setup that makes Claude Code use fewer tokens: rtk shell compression, stash search index, web-search, codebase-memory, fast-jev-compaction, ponytail, plus Jev skill suggestions and model r

NourEldinShobier/claude-tuningcommunitylistedunreviewed

Set up

Runs on your computer. Pick your agent and operating system.

This project does not publish an install method we can turn into a config. Follow the README instead.

README

synced Oct 21, 2026

claude-tuning

Claude Code uses fewer tokens and answers faster. One install, about 5 minutes.

Works on macOS, Linux and Windows.

Install (5 minutes)

  1. Run these two commands:

    claude plugin marketplace add NourEldinShobier/claude-tuning
    claude plugin install claude-tuning@claude-tuning
    
  2. Restart Claude Code.

  3. Type /claude-tuning:tune. Claude installs and configures everything that is missing: Bun, the plugins, rtk, codebase-memory, settings and rules.

  4. Restart Claude Code once more.

Done.

You need

Setting the API keys is the only step you do yourself.

WhatRequired?Get it
BunYesInstalled by /claude-tuning:tune if missing
Claude Code 2.1.274+For fast-jev-compactionclaude update
TYPESAFE_API_KEYOptionalTurns on the Jev features below. console.typesafe.ai

What you get

Works right after install:

PartWhat it doesResult
Skill suggestions (Jev)Tells Claude which of its skills fits your request.14 of 17 test prompts right
Model routing (Jev)Moves hard coding subagent tasks to Opus. Never downgrades, never overrides a model Claude chose.14 of 14 test tasks right

Added by /claude-tuning:tune:

PartWhat it does
rtkCompresses shell output before Claude reads it: up to 90% less. Installed with its official installer if missing
stashKeeps big outputs in a local search index; Claude pulls back only what it needs
ponytailKeeps code minimal
i-have-adhdShort answers that lead with the next action
Tool rules in ~/.claude/CLAUDE.mdTell Claude when to use the tools above
codebase-memoryCode graph; installed with its official installer if missing
fast-jev-compaction (Jev)Compaction that keeps chosen messages word for word instead of summarising them
quicksilver (Jev)Jev picks the files, log lines or items that matter, so Claude reads only those
compact-adviser (Jev)Compacts on its own at a finished checkpoint, not mid-task. Confirm once with /compact-adviser auto
jev-steer-or-queue (Jev)Decides whether a message you send mid-turn steers, queues or stops the task
toolgate (Jev)Stops tool calls that follow prompt-injected instructions; everything else runs
Settings700k auto-compact window, function hooks on (for compaction), the code-graph and rtk hooks, and auto-update for claude-tuning and stash

Your existing settings are kept. Backups: settings.json.bak, CLAUDE.md.bak.

Without a TypeSafe key

Everything still works:

  • Skill suggestions and model routing turn off.
  • Compaction falls back to Claude Code's own; compact-adviser, jev-steer-or-queue and quicksilver stay idle.

Setup options

FlagDoes
--only=rtk,stashInstalls only these
--no-rulesLeaves your CLAUDE.md alone

Running setup twice is safe. The second run changes nothing.

Turn things off

To turn offDo this
rtk for one commandRun it as rtk bypass <command>
One partclaude plugin disable stash@stash (or ponytail@ponytail, …); toolgate: delete the hooks whose command contains toolgate from ~/.claude/settings.json, then npm uninstall -g @riskaverse/toolgate
All of itclaude plugin disable claude-tuning@claude-tuning

Tools we use

We copy no third-party code. Each tool installs from its own repo at a pinned version.

ToolWhat it doesReported gainLicenceHow we use it
rtkCompresses shell output: git, tests, builds, docker, kubectl, package managers and moreUp to 90% less outputApache-2.0Installed by setup if missing, with its hook
stashKeeps big outputs and files in a local search index. Claude pulls back only what it needs. Local only: no API keys, no network.91 KB of git history came back as 9.7 KB (89% less)MITInstalled by setup; install alone: stash@stash
ponytailMakes Claude write the smallest code that works54% less code, 22% fewer tokens, 20% cheaper, 27% fasterMITInstalled by setup
i-have-adhdAnswers lead with the next action: numbered steps, no fillerNo published numbers; shorter answersMITInstalled by setup
codebase-memory-mcpCode graph: "where is X defined, who calls X" without reading whole files120x fewer tokens (3.4k vs 412k over 5 queries)MITInstalled by setup if missing
fast-jev-compactionJev picks which messages survive compaction; kept ones stay verbatimNo published token numbers; no summary driftMITInstalled by setup; function hooks turned on
quicksilverJev filters, labels and ranks many files, log lines or items, so Claude reads only the matches86% fewer Claude tokens on 12 tasks, up to 20x fasterMITInstalled by setup; the tool rules say when to use it
compact-adviserJev picks a finished checkpoint and runs /compact thereNo published token numbers; avoids compacting mid-taskMITInstalled by setup in auto mode
jev-steer-or-queueJev routes mid-turn messages: steer, queue until the turn ends, or stopNo token numbers; 450–650 ms per mid-turn message, ~90 ms per tool hook (Rust port in the fork)MITFork; installed by setup in shadow mode
toolgateJev checks each tool call before it runs; here only for prompt injection~0.4 s per gated callMITFork; installed by setup with the injection-only policy

Gains for stash were measured in this repo. Gains for the other tools come from their own READMEs and benchmarks. They measure different things, so the numbers don't add up to one total. Pinned versions are in UPSTREAMS.md.

Services:

ServiceUsed by
TypeSafe JevSkill suggestions, model routing, compaction, quicksilver, toolgate

Runtime: Bun runs this code. Only Bun's built-ins are used: SQLite, fetch and spawn.

More detail, including pinned commits and what changes in each tool: UPSTREAMS.md.

  • stash is written from scratch for this bundle. It lives in its own repo, so you can install it without this bundle.
  • bun run upstreams shows which tools have newer releases.

To update one:

  1. Read its changelog.
  2. Change the version in src/upstreams.ts.
  3. Run bun test.

Develop

bun install
bun test                 # unit tests, no network
bun run typecheck
bun test/eval.ts         # live skill-suggestion check (needs TYPESAFE_API_KEY)
bun test/eval-route.ts   # live model-routing check

Debug output: set SKILL_SUGGEST_DEBUG=1 or ROUTE_MODEL_DEBUG=1.

Credits

Licence

MIT

↑↓ navigate openesc close