MT

mibayy/token-savior

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

1195 stars 106 forks 品質 87 トレンド 39MIT

実際のコーディングベンチマークで、アクティブトークン数-80%、壁面時間-83%でClaudeを97.9%(188/192)に出すMCPサーバーです。単純では78.3%です。構造コードナビゲーション+永続メモリエンジン。

概要

1台のMCPサーバー。1台のプロファイル。構造コードナビゲーション、永続メモリ、そしてAIコーディングエージェント向けのBash出力圧縮。 -- プロジェクトサイト + ベンチマーク着陸 -- ベンチマークソース + フィクスチャ 最適化プロファイル(単一のenv var)で再現。BENCHMARK-SUMMARYを参照してください。 実際のベンチと7日間のトランスクリプト(1130 Bash出力)を比較した結果、このリリースが実現しました。累積節約額は現在(マッチ率19.3%、平均圧縮率68.9%)で、v4.2.0では週約12K/週となっています。 - 固定されたpytest正則表現:python3 -m pytest、uv run pytest、venv-prefix forms、poetry/hatch/pdm/rye run pytest。- さらに5つのgit compactor:fetch、checkout、branch、worktree list、stash list。- さらに4つのGHコンパクタ:GH repo view、gh pr view、gh issue view、gh pr diff。- grep、find、cat compactor。ファイルごとのグループヒット、共通プレフィックスの削除、ヘッド/テールの短縮。フィクスチャーのコストが83〜96%節約。- 複合コマンドスプリッター:cd /root/foo && git ステータスは、最後に意味のあるセグメントを選択することでコンパクト化。チェーン。

概要(AI 翻訳)

MCPサーバー1台。プロファイル1台。tsbenchで97.9%、トークン数-80%。 構造コードナビゲーション、永続メモリ、そしてAIコーディングエージェント向けのBashコマンド書き換え。

-明るい緑)

mibayy.github.io/token-savior – プロジェクトサイト + ベンチマークランディング ベンチマークソース+試合数:現在公開されていません(以下のスコア再現を参照)

31秒でv4.23を測定、2026年10月7日に測定 ·フルビデオを見る(MP4、音声あり)


ベンチマーク – 96の実際のコーディングタスク(Claude Opus 4.7、2026年5月)

プレーン・クロード・コード トークン・セイバーと共に
スコア141 / 180(78.3%) 188 / 192(97.9%)
アクティブトークン/タスク17 221 3 395(-80%)
壁の時間/タスク110.6秒 18.9 s(-83%)

optimizedプロファイル(単一のenv var)で再現されます。ハーネスは これらの番号は以下に説明されています。そのリポジトリは公開されていません。 したがって、数字は独立して検証可能なものではなく、報告されたものとして受け取るべきです。

再測定は2026年8月9日にここで公開され、現在は撤回されました 2026-08-10. 小型交換ハーネスによる新しいトークン節約が報告されました。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Token Savior

One MCP server. One profile. 97.9% on tsbench at -80% tokens. Structural code navigation, persistent memory, and Bash command rewriting for AI coding agents.

mibayy.github.io/token-savior – project site + benchmark landing Benchmark source + fixtures: not currently published (see Reproducing the score below)

v4.23 in 31 seconds, measured on 2026-10-07 · watch the full video (MP4, sound on)


Benchmark – 96 real coding tasks (Claude Opus 4.7, May 2026)

Plain Claude Code With Token Savior
Score 141 / 180 (78.3%) 188 / 192 (97.9%)
Active tokens / task 17 221 3 395 (-80%)
Wall time / task 110.6 s 18.9 s (-83%)

Reproduces with the optimized profile (single env var). The harness that produced these numbers is described below; its repository is not public at the moment, so take the figures as reported rather than as independently verifiable.

A re-measurement was published here on 2026-08-09 and has been withdrawn on 2026-08-10. It reported new-token savings from a small replacement harness. Those numbers did not measure this server at all: across 143 benchmark sessions, exactly one called a Token Savior tool. The client running the harness had MCP deferred-tool loading enabled, so all 18 tools sat behind a ToolSearch lookup instead of appearing in the model’s manifest. The model never saw them and fell back to Grep and Read — 66 greps, 30 reads, one MCP call. What varied between the “profiles” was the size of the cached prefix, not what the agent did.

The lesson is worth more than the numbers were: a benchmark of an MCP server must assert that its tools were actually called. Ours did not, so it happily compared two identical agents. That assertion now exists in the harness.

GitHub で README 全文を見る

インストール

uvx token-savior-recall
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "token-savior-recall": { "command": "/path/to/venv/bin/token-savior", "alwaysLoad": true, "env": { "WORKSPACE_ROOTS": "/path/to/project1,/path/to/project2", "TOKEN_SAVIOR_CLIENT": "claude-code", "TOKEN_SAVIOR_PROFILE": "optimized" } } } }