meat-daemon-404/dsh-plugin-immune ↗★ 3

dsh-immune-system

Self-evolving pitfall immunity for DeepSeek Harness: capture every failed-then-fixed tool episode, distil it into a reusable antibody stored in SQLite+FTS5, and inject the relevant ones before the agent repeats the mistake.

套件
dsh-immune-system
相容性
待驗證
版本
1.0.0
授權
MIT
最近更新
2026年11月6日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:meat-daemon-404/dsh-plugin-immune

配置(全部可选)

不配也能跑——默认走确定性规则蒸馏器,离线可用。

环境变量作用
IMMUNE_DB_PATH抗体库路径;两版指向同一个即可共享
IMMUNE_LLM_BASE_URLOpenAI 兼容端点,如 https://api.example.com/v1
IMMUNE_LLM_MODEL模型名,与上面配对使用
IMMUNE_LLM_API_KEYBearer 令牌
IMMUNE_DISTILL_BUDGET_MS单次回合末蒸馏的时间预算,默认 12000(两版同名同默认,钳制在 1–60 s);超预算的队列留到下次边界
IMMUNE_LOCALEzh-CN / en 强制单语;默认中英双语
IMMUNE_ALLOW_PRIVATE_ENDPOINT设为 1 才允许环回/私有端点。默认拒绝,防 SSRF
IMMUNE_GLOBAL_LIBRARY设为 0 关闭全局共享库。默认开启
IMMUNE_GUARDoff(默认)/ warn / deny —— 高危错招事前检查,见下
IMMUNE_DEBUG_LOG指定文件则记录执行细节,用于排障