Плагин «dsh-session-fold» для DeepSeek Harness: Folds older oversized tool results into spill files and replaces them with short, deterministic stubs at step boundaries, with no LLM call: the stub keeps the first 200 and last 80 characters plus the sequence number, tool name, line/char/size counts and the original file path, and each fold is a real surface replacement accompanied by compaction/prune shadow pricing so token counts stay honest. Triggers on context pressure at 25% of the model window (falling back to 32768 tokens when the window cannot be resolved) or on five accumulated candidates; the last three turns, error results and rich content are never folded. The original is recovered from the session log rather than the spill file, so /folds, /unfold <seq> and /unfold all keep working after spill cleanup; session_fold_recall lets the model fetch a folded result by sequence number or by keyword, and session_fold_diagnose reports the effective settings. /spill-prune removes orphaned spill directories, preview only unless --apply. A Settings page exposes 12 of the 13 options as draft-then-save fields; they are volatile, so saved changes apply without restarting the plugin.
★ 0 звёзд GitHub11 ноября 2026 г. добавлен
БЫСТРАЯ УСТАНОВКА
Команды для терминала DSH
dsh plugin --profile web add "https://github.com/kennethfan/dsh-session-fold/releases/latest/download/dsh-session-fold.tgz"
Запустите команду в терминале, где работает DeepSeek Harness. Перезапуск применит плагин автоматически.
ОПИСАНИЕ И ВОЗМОЖНОСТИ
Что делает dsh-session-fold
Плагин «dsh-session-fold» для DeepSeek Harness: Folds older oversized tool results into spill files and replaces them with short, deterministic stubs at step boundaries, with no LLM call: the stub keeps the first 200 and last 80 characters plus the sequence number, tool name, line/char/size counts and the original file path, and each fold is a real surface replacement accompanied by compaction/prune shadow pricing so token counts stay honest. Triggers on context pressure at 25% of the model window (falling back to 32768 tokens when the window cannot be resolved) or on five accumulated candidates; the last three turns, error results and rich content are never folded. The original is recovered from the session log rather than the spill file, so /folds, /unfold <seq> and /unfold all keep working after spill cleanup; session_fold_recall lets the model fetch a folded result by sequence number or by keyword, and session_fold_diagnose reports the effective settings. /spill-prune removes orphaned spill directories, preview only unless --apply. A Settings page exposes 12 of the 13 options as draft-then-save fields; they are volatile, so saved changes apply without restarting the plugin.
Показать оригинальное описание (EN/ZH)
Folds older oversized tool results into spill files and replaces them with short, deterministic stubs at step boundaries, with no LLM call: the stub keeps the first 200 and last 80 characters plus the sequence number, tool name, line/char/size counts and the original file path, and each fold is a real surface replacement accompanied by compaction/prune shadow pricing so token counts stay honest. Triggers on context pressure at 25% of the model window (falling back to 32768 tokens when the window cannot be resolved) or on five accumulated candidates; the last three turns, error results and rich content are never folded. The original is recovered from the session log rather than the spill file, so /folds, /unfold <seq> and /unfold all keep working after spill cleanup; session_fold_recall lets the model fetch a folded result by sequence number or by keyword, and session_fold_diagnose reports the effective settings. /spill-prune removes orphaned spill directories, preview only unless --apply. A Settings page exposes 12 of the 13 options as draft-then-save fields; they are volatile, so saved changes apply without restarting the plugin.
УДАЛЕНИЕ ПЛАГИНА
Как удалить при необходимости
dsh plugin --profile web remove dsh-session-fold
🛡️
Безопасность и аудит
Плагины выполняются в окружении пользователя DSH. Рекомендуется проверять исходный код, зависимости и запрашиваемые разрешения в репозитории автора перед установкой.
Официальный плагин для миллиарда контекстов: плагин для сжатия контекста для небольших контекстных окон (достаточно контекста в 100 000), экономия токенов (в 5 раз меньше токенов) и одиночные сеансы продолжительностью в месяц (миллиарды токенов).
Плагин «dsh-infinite-gen-4» для DeepSeek Harness: System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
Плагин системной подсказки защиты для моделей DeepSeek: добавляет раздел подсказки о безусловном соответствии в порядке 100, предоставляет инструмент профиля с метаданными калибровки и показывает значок состояния защиты в реальном времени, управляемый проекцией сеанса.