chocobo77/dsh-infinite-context0

dsh-infinite-context

DeepSeek Harness plugin: multi-tier memory management, semantic retrieval, structured memory, and model-context awareness for infinite context.

包名
dsh-infinite-context
版本
0.1.0
许可证
MIT
最近更新
2026年8月29日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:chocobo77/dsh-infinite-context

配置参考

memory-context 配置

默认值说明
storePathdsh-infinite-context.dbSQLite 路径;:memory: 禁用持久化
contextWindow94000模型上下文窗口(回退值;插件自动采纳 DSH 解析的真实窗口)
headroomRatio0.25系统/工具/输入/输出预留比例
modelProbe.enabled/kind/baseURLfalse可选主动探测(llama/ollama/openai
embedder.kindlightweightlightweight(无依赖)或 transformers
budget.short/mid/long/retrieved10000/20000/5000/15000分层 token 预算
forgetting.minScore0.25低于此分数的记忆被遗忘
forgetting.maxMemories500记忆总数上限

memory-compaction 配置

默认值说明
compress_trigger_ratio0.85上下文 >85% 预算时才压缩
compress_target_ratio0.6压缩目标水位(只处理溢出部分)
retain_recent_messages4最近 N 条消息永不压缩
rag_top_k3每轮注入的记忆数
rag_min_score0.3注入的最低相似度
rag_ingest_denylist内置 21 个低价值工具过滤列表
rag_ingest_importance0.3工具结果重要性(遗忘优先淘汰)