
dfkhelper/token-goat
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
dfkhelper/token-goat — это кандидат на MCP-сервер, импортированный из https://github.com/dfkhelper/token-goat.
Обзор
dfkhelper/token-goat — это кандидат на MCP-сервер, импортированный из https://github.com/dfkhelper/token-goat.
Обзор (машинный перевод)
Заголовок: «Оптимизатор токен ИИ — снижает затраты, усиливает фокус, блокирует внедрение подсказок» Описание: «Сокращает стоимость ИИ-инструмента на 40–80% и защищает от внедрения подсказок. Останавливает повторное чтение, извлекает одну функцию вместо всего файла, уменьшает скриншоты на 97%.» Изображение: /token-goat/assets/goat-social.png Постоянная ссылка: /
Токен-Козел
Дайте модели то, что ей нужно, а не всё, что у вас есть.***
85% меньшие чтения · 49% удерживаемых байтов первого чтения · 97,4% сжатие изображений · более компактный кэш подсказок · 205+ фильтр и правила перехвата · 94–99% сокращение накладных расходов на навыки · память сжатия · инжекция prompt guard · 3,7 GB так и не достиг модели · 1,1 Gt токенов сохранён
Сокращает использование и стоимость токена ИИ на 40–90% и улучшает его фокус. Полностью автоматизировано, всегда онлайн.
Также защищается от инъекции запросов. Каждая загружаемая страница, результат инструмента и извлечённый документ оборачиваются в забор ненадёжного контента перед попаданием в модель, независимо от того, совпадала ли она с паттерном атаки, и скан определяет только то, что написано на метке. Одна строка конфигурации для отключения.
**Ваш ИИ перечитывает один и тот же файл три раза. Каждый целый дамп файла оплачивается снова в каждом последующем ходу.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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 · 205+ 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