
dfkhelper/token-goat
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
dfkhelper/token-goatは、https://github.com/dfkhelper/token-goat.からインポートされたMCPサーバー候補です。
概要
dfkhelper/token-goatは、https://github.com/dfkhelper/token-goat.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
タイトル:「AIトークンオプティマイザー — コスト削減、焦点強化、プロンプト注入のブロック」 説明:「AIツールのコストを40〜80%削減し、プロンプト注入を防ぐ。再読みを停止し、1つの関数をファイル全体から抽出し、スクリーンショットを97%縮小する。」 画像:/token-goat/assets/goat-social.png 永久リンク: /
トークン・ゴート
モデルに必要なものを与えて、持っているものすべてではなく、
85% 読み取り量の減少 ·**初読バイトの49%**が保留される ·97.4% 画像圧縮 ·より簡潔なプロンプトキャッシュ ·205+ フィルターおよびインターセプトルール ·94–99% スキルオーバーヘッドカット ·圧縮メモリ ·プロンプト注入 ガード ·3.7 GB モデルに到達しなかった ·1.1 保存されたトークン Gt
AIトークンの使用量/コストを40〜90%削減し、焦点が向上します。完全自動化、常にオンライン。
プロンプト注入にも防御します。取得されたすべてのページ、ツール結果、抽出されたドキュメントは、攻撃パターンに合致するかどうかにかかわらず、モデルに到達する前に信頼できないコンテンツフェンスでラップされ、スキャンはラベルの内容のみを決定します。無効化する設定ラインは1行だけです。
**あなたのAIは同じファイルを3回読み返します。すべてのファイル全体のダンプは、その後の各ターンで再度支払いが行われます。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
title: “AI Token Optimizer — Cuts Costs, Sharpens Focus, Blocks Prompt Injection” description: “Cuts AI tool costs 40–80% and guards against prompt injection. Stops re-reads, extracts one function vs. whole file, shrinks screenshots 97%.” image: /token-goat/assets/goat-social.png permalink: /
Token-Goat
Give the model what it needs, not everything you have.
85% smaller reads · 49% of first-read bytes withheld · 97.4% image compression · leaner prompt cache · 255+ filter & interception rules · 94–99% skill overhead cut · compaction memory · prompt injection guard · 3.7 GB never reached the model · 1.1 Gt tokens saved
Saves AI turns, context and tokens, and improves its focus. Fully automated, always online.
Also defends against prompt injection. Every fetched page, tool result, and extracted document is wrapped in an untrusted-content fence before hitting the model, whether or not it matched an attack pattern, and the scan only decides what the label says. One config line to disable.
Your AI re-reads the same file three times. Every whole-file dump is paid for again on every turn after it. Every compaction causes amnesia. Every build log buries the one line that matters. You pay for all of it. Token-Goat fixes all of it — automatically.
Token-Goat sits silently between your AI and your tools. Re-read a file? It gets a one-line hint and a narrow-slice suggestion instead of the full file again. Grab a screenshot? A 100 KB copy reaches the model instead of 10 MB. Run pytest, npm install, docker build, or cargo? The thousands of progress bars and passing-test names are stripped to the failures before the output even reaches the context window. Open a PDF, a large Markdown doc, or a CSV? The hook intercepts it — heading tree, page count, or column preview — so the model never pays for the full file. Run gh run watch or next dev a second time? Prior output is recalled rather than re-run. Compact a long session? It gets a clean structured manifest of edited files and key symbols so nothing important is forgotten. Sessions drop 40–90%+ in cost. You change nothing about how you work.
Each of these also costs a turn. A model that pages a file ten lines at a time, or runs the same command again to see output it already has, spends round trips as well as tokens. Token-Goat aims to answer the next question as well as the current one. These features save turns today:
token-goat brief "file::symbol"returns the symbol body, its callers and its containing doc section in one call.token-goat answer ""answers a plain-English question from the index alone, or refuses with a reason.token-goat read "file::symbol"returns one function in place of paging through the file.token-goat bash-outputandtoken-goat web-outputrecall captured output instead of running the command or fetch again.
インストール
npx @vscode/vsce package