Плагин «dsh-token-frugal» для DeepSeek Harness: Cuts session input tokens three ways, each with its own switch in a panel under the composer: lossless structure-aware compression of tool results on `tools/post-execute`, then a per-tool head/tail elision that always names a recovery path through the shared spill store; tool-catalogue visibility per agent on `agent/created`; and a per-workspace memory document that recall matches against each new message and injects through `agent.inject`, so the transcript is not re-read. Measured 41.76% fewer prompt tokens over 149 recorded requests, with a bundled script that re-measures any profile.
★ 0 звёзд GitHub17 октября 2026 г. добавлен
БЫСТРАЯ УСТАНОВКА
Команды для терминала DSH
dsh plugin --profile web add "https://github.com/xuzihao66/dsh-token-frugal/releases/latest/download/dsh-token-frugal.tgz"
Запустите команду в терминале, где работает DeepSeek Harness. Перезапуск применит плагин автоматически.
ОПИСАНИЕ И ВОЗМОЖНОСТИ
Что делает dsh-token-frugal
Плагин «dsh-token-frugal» для DeepSeek Harness: Cuts session input tokens three ways, each with its own switch in a panel under the composer: lossless structure-aware compression of tool results on `tools/post-execute`, then a per-tool head/tail elision that always names a recovery path through the shared spill store; tool-catalogue visibility per agent on `agent/created`; and a per-workspace memory document that recall matches against each new message and injects through `agent.inject`, so the transcript is not re-read. Measured 41.76% fewer prompt tokens over 149 recorded requests, with a bundled script that re-measures any profile.
Показать оригинальное описание (EN/ZH)
Cuts session input tokens three ways, each with its own switch in a panel under the composer: lossless structure-aware compression of tool results on `tools/post-execute`, then a per-tool head/tail elision that always names a recovery path through the shared spill store; tool-catalogue visibility per agent on `agent/created`; and a per-workspace memory document that recall matches against each new message and injects through `agent.inject`, so the transcript is not re-read. Measured 41.76% fewer prompt tokens over 149 recorded requests, with a bundled script that re-measures any profile.
УДАЛЕНИЕ ПЛАГИНА
Как удалить при необходимости
dsh plugin --profile web remove dsh-token-frugal
🛡️
Безопасность и аудит
Плагины выполняются в окружении пользователя DSH. Рекомендуется проверять исходный код, зависимости и запрашиваемые разрешения в репозитории автора перед установкой.
Стоимость API за сеанс и за день, бюджет с процентом использования, официальный баланс, панель истории и синхронизация официальных цен в один клик с ценами в пиковые/непиковые часы.
Отслеживает использование токенов DeepSeek, стоимость звонков и сеансов, а также баланс счета с помощью анимации платежей с учетом кэша в веб-интерфейсе DSH.