dsh-infinite-context

DSH PLUGIN记忆与知识

仓库 chocobo77/dsh-infinite-context

记忆与知识 L4 · 沙盒安装通过 安全审查:低风险 可信度:银 可安装插件
安装这个插件

DSH plugin 通过多层记忆管理实现无限上下文:渐进式压缩、语义检索与结构化记忆,让长对话不再丢失早期信息。

一句话选型结论

按资料字段整理

dsh-infinite-context 是记忆与知识类的 DSH 可安装插件,验证等级 L4 · 沙盒安装通过,安全审查为低风险,列出 5 项功能,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类记忆与知识 收录类型可安装插件 验证等级L4 · 沙盒安装通过 安全审查低风险
验证等级 L4 L4 · 沙盒安装通过
GitHub 星标 2 复刻 0 · 未关闭 issue 0
最近更新 2026-10-03 创建于 2026-08-29
README 11.3 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:chocobo77/dsh-infinite-context#v0.1.2
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

5 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-infinite-context:DeepSeek Harness 的多层记忆管理插件

  • 渐进式压缩
  • 动态压缩阈值
  • 深度思考介入
  • 三层记忆金字塔
  • 语义检索注入

适用场景

记忆

上游标签

deepseek-harnessdsh-pluginmemoryrag

验证等级与安全审查

L4 · 沙盒安装通过
自动化流程结论,不是人工审核
验证等级L4 · 沙盒安装通过安装命令在隔离沙盒内真实执行成功,无依赖错误
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度银综合仓库活跃度与验证结果

上面的结论来自上游最近一次自动化验证(2026-10-09): 同一套检查会在插件发新版后重跑,页面显示的是最新一次的逐项结果。

逐项检查结果

L1 · 已找到 ✓ 通过
  • L1.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L2 · 结构化 ✓ 通过
  • L2.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L3 · 安装规范 ✓ 通过
  • L3.1_INSTALL_COMMAND_PARSED 安装命令已解析 方式:安装规范解析
  • L3.2_DSH_VERSION_DECLARED DSH 版本已声明 方式:DSH 版本声明
L4 · 安装已测 ✓ 通过
  • L4.1_INSTALL_EXECUTED_CONFINED 受限沙盒内执行安装 方式:沙盒安装执行
  • L4.2_INSTALL_SUCCESS 沙盒安装成功 方式:沙盒安装执行
  • L4.3_ARTIFACT_CONFIRMED 安装产物已确认 方式:沙盒安装执行
L5 · 运行已测 ✕ 未通过
  • L5.1_INSTALL_PASSED_SANDBOXED 沙盒安装通过 方式:沙盒安装执行
  • L5.2_WEB_BOOT_READY Web 启动就绪 插件目录树加载失败
  • L5.3_HTTP_SERVED HTTP 服务响应

风险详情

  • 审查结论 通过
  • 结论说明 vet 静态分析未发现可疑行为,判定为干净(clean)。
  • 风险计数 严重 0 / 高 0 / 中 0
  • 风险详情 未发现严重或警告级问题。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L4:在沙盒里真实装过,依赖能装上,不是纸面声明。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。
  • 列出了 5 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在记忆与知识场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-infinite-context当前 L4 · 沙盒安装通过 低风险 2 未标注 有
ruflo L3 · 安装规范通过 低风险 7.4 万 未标注 无
OpenViking L3 · 安装规范通过 低风险 3.9 万 未标注 无
WeKnora L4 · 沙盒安装通过 低风险 3.3 万 未标注 有
distilly L4 · 沙盒安装通过 低风险 2.5 万 未标注 有
EverOS L4 · 沙盒安装通过 低风险 1.3 万 未标注 有

仓库档案

记忆与知识
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方chocobo77仓库 dsh-infinite-context · 默认分支 main
分类记忆与知识memory
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言TypeScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue2 / 0 / 0收录时的数值,非实时
创建 / 更新2026-08-29 · 2026-10-03最后推送 2026-10-03
本站收录2026-09-01首次进入本站目录的时间

README 全文

11.3 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-infinite-context

DeepSeek Harness 的上下文管家插件。它让 AI 助手在超长对话中不"失忆"、不"爆窗":旧对话自动整理成摘要并存档,重要的事情每轮主动提醒,需要细节时随时找回原文。

English

跳到英文说明


中文

它解决什么问题

和 AI 助手长期协作时,你会遇到两个问题:

  1. 窗口装不下 —— 对话太长,超出模型一次能读取的上限,请求直接报错。
  2. 压缩即失忆 —— 普通的压缩会把旧对话直接丢掉:做过什么决定、试过什么方案、有什么约束,全都没了。

本插件的思路是压缩不等于删除:旧对话被折叠成一份结构化摘要,原文完整存档、随时可取回;同时把"当前任务进行到哪了"主动放在模型眼前,不靠它自己想起来去查。

核心功能

1. 智能折叠:像整理会议纪要

对话接近上限时,较早的内容自动折叠成一份结构化摘要——总目标、关键决定、改过的文件、遇到的问题、待办事项,一目了然。

折叠的时机和深度不是死规则:

  • 看阶段:模型正在连续调用工具时推迟,一段话说完的间隙才动手;
  • 看内容:大量工具输出适合折深一些,重要指令则尽量保留原文;
  • 会自我修正:每次折叠记录"实际结果与计划的偏差",下次自动补偿;
  • 有安全底线:模型正在思考或回答时绝不动手,两次折叠之间有最小间隔,避免反复折腾。

2. 一切可恢复

折叠前,原文完整存档,摘要开头给出一个取回编号(如 fl_ab12cd34ef56)。模型或你随时可以用 memory_expand 工具读回原文,支持分页和关键词定位;读不完会明确告知总长度和下一次怎么取。

超长的工具输出(一次大文件读取、一份长日志)同样先存档,再用一个带编号的短摘要占位——需要细节时一键展开。

3. 记忆金字塔

每次折叠的摘要存入本地数据库(重启不丢)。积攒多了,插件会自动把主题相近的几条合并成更高层的"长期记忆";新对话或新问题时,最相关的历史记忆自动检索并注入给模型。

4. 任务状态提醒(工作记忆)

每次折叠后,插件从摘要中提取"总目标 / 待办 / 下一步 / 关键约束",之后每一轮都主动放在模型眼前。

这解决一个真实痛点:记忆检索靠"相似度",而五十轮之前的待办和当前问题往往并不相似——靠模型自己想起来去查,生产环境中一次也没发生过。主动提醒才是可靠的。

5. 提前准备,而不是让你等

快到折叠点时,插件会在后台提前把摘要写好;真正需要折叠时直接取用,现场零等待。如果后台准备会和你的对话抢同一个模型服务器的位置(本地小窗口部署时可能发生),它会自动让路——对话永远优先。

6. 会自己学习的参数

  • 每个模型路线"摘要实际需要多久",由插件持续测量并自动调整等待时间——本地部署的大模型慢但健康,等待会自动放宽;云端卡死的流不会浪费第二次机会。
  • 每次折叠"实际落点与计划的偏差"持续记录,下一次自动补偿。
  • 提供商报"装不下"时,记下服务器的真实容量,之后按真实容量规划,而不是按声明值硬撑。
  • 你在配置里手工指定的值优先级最高,学习只在未指定时生效。

7. 其他能力

  • 工具结果即时提炼:大段输出先提取关键行(错误、计数、文件路径),原文存档备用。
  • 本地部署优化:自动识别 127.0.0.1 / 局域网上的模型,按探测到的真实窗口规划、注入精简指令、放宽等待。
  • 中英文双语场景:摘要格式与关键信息提取都覆盖中文的错误、警告与超时行。

模型可用的工具

工具 作用
memory_search 搜索全部历史记忆
memory_expand 展开被折叠/存档的原文(支持分页、关键词)
memory_status 查看记忆系统状态与用量统计
memory_index 浏览记忆索引
memory_maintain 记忆库体检:重复、冲突、低价值条目

配置

所有配置在 cordis.yml,每一项都有注释。最常用的:

配置 作用 默认
compaction_governance 统一折叠调度(建议保持开启) true
summarization_timeout_ms 单次摘要的等待上限(毫秒);0 = 不限制 自动:本地 240s / 云端 90s,随输入伸缩,并随实测学习
task_state_enabled 每轮注入任务状态提醒 true
speculative_fold 后台提前准备折叠摘要 true
tool_archive 超长工具结果存档 true
rag_top_k 等检索项 每轮注入多少条相关记忆 见 cordis.yml

完整清单与每项的详细说明见 cordis.yml 内注释。

安装

需要 Node.js ≥ 22.19.0 和 DSH 0.2.x。

npm pack
dsh plugin --profile  add ./dsh-infinite-context-.tgz

安装后重启 DSH 生效。数据(记忆、存档、统计)存放在 DSH 数据目录的 storages 下,升级插件不会丢失。

兼容性说明

  • 折叠通过 DSH 自带的 compaction-basic 完成,工具调用与结果的配对永远完整。
  • 本地模型(127.0.0.1 / 内网地址)自动识别:按探测到的真实窗口规划、放宽摘要等待、注入精简指令。
  • 默认的语义向量化是内置实现,零第三方依赖;需要更强的语义检索可自行安装 @huggingface/transformers。
  • 本地模型只支持特定推理档位时,摘要调用沿用会话当前的档位设置。

许可

MIT


English

What problem does it solve

Long-running sessions with an AI assistant hit two walls:

  1. The window fills up — the conversation outgrows what the model can read at once and requests start failing.
  2. Compaction means amnesia — naive compaction throws old context away: decisions made, approaches tried, constraints stated — all gone.

This plugin's principle: compaction is not deletion. Old turns are folded into a structured summary while the original text is archived and retrievable on demand; and the current task state is actively placed in front of the model every turn instead of relying on it to remember.

Core features

1. Smart folding, like meeting minutes

As the conversation nears its limit, older turns fold into a structured summary — goals, decisions, files changed, problems hit, pending work.

When and how deep to fold is not a fixed rule:

  • It watches the phase: deferred while tools run in a loop, applied at turn boundaries;
  • It watches the content: tool-heavy bulk folds deep, important instructions stay verbatim;
  • It self-corrects: each fold records how far the result landed from the plan and compensates next time;
  • It has hard safety rails: the model is never interrupted mid-generation, and a minimum interval prevents fold churn.

2. Everything is recoverable

Before folding, the original text is archived and the summary carries a reference (e.g. fl_ab12cd34ef56). The model — or you — can read the exact original back via the memory_expand tool, with paging and keyword search; truncated reads state the full length and the exact next call.

Oversized tool outputs (a big file read, a long log) are archived the same way and replaced by a short stub that carries the reference.

3. The memory pyramid

Every fold summary is persisted locally (survives restarts). As they accumulate, topically-similar summaries are consolidated into higher-level long-term memories; the most relevant ones are retrieved and injected for new questions automatically.

4. Task-state reminders (working memory)

After each fold the plugin extracts "goal / pending / next step / key constraints" from the summary and places it in front of the model every single turn.

This fixes a real gap: memory retrieval works by similarity, and a fifty-turn-old pending job is rarely similar to the current question — in production the model never once searched on its own. Pushing beats hoping.

5. Prepared in advance, instead of making you wait

As the surface approaches the fold trigger, the summary is precomputed in the BACKGROUND; the actual fold consumes it with zero waiting. If the background call would contend with your conversation for the same local server (possible on small local deployments), it stands down — the conversation always wins.

6. Parameters that learn

  • How long a summary takes per model route is measured continuously and the wait adjusts itself — a big locally-deployed model is slow but alive, so waits widen; a dead cloud stream does not get a second patient chance.
  • How far each fold actually landed from its plan is tracked and compensated.
  • When a provider rejects a request for size, the server's real capacity is recorded and future folds plan against reality, not the declared number.
  • Values you set explicitly always win; learning only applies where you did not.

7. Also included

  • Immediate distillation of tool results: signal lines (errors, counts, paths) extracted, full text archived.
  • Local-deployment optimizations: automatic discovery of 127.0.0.1 / LAN models, planning against probed real windows, concise-mode directives.
  • Bilingual (Chinese/English) summaries and signal extraction, including Chinese error and warning lines.

Tools available to the model

Tool Purpose
memory_search Search all stored memories
memory_expand Expand folded/archived original text (paging, keyword)
memory_status Memory system status and usage statistics
memory_index Browse the memory index
memory_maintain Health check: duplicates, conflicts, stale entries

Configuration

Everything lives in cordis.yml with a comment on every key. The common ones:

Key Purpose Default
compaction_governance Unified fold scheduling (keep on) true
summarization_timeout_ms Per-attempt summary deadline (ms); 0 = unlimited auto: local 240s / cloud 90s, scaled by input, refined by learning
task_state_enabled Per-turn task-state reminder true
speculative_fold Background precomputation of fold summaries true
tool_archive Archive oversized tool results true
rag_top_k etc. How many memories to inject per turn see cordis.yml

The full list with per-key explanations is in the comments of cordis.yml.

Install

Requires Node.js ≥ 22.19.0 and DSH 0.2.x.

npm pack
dsh plugin --profile  add ./dsh-infinite-context-.tgz

Restart DSH after installing. Data (memories, archives, statistics) lives under the DSH data directory's storages folder and survives upgrades.

Compatibility

  • Folding runs through DSH's built-in compaction-basic; tool call/result pairing is always preserved.
  • Local models (127.0.0.1 / private LAN) are detected automatically: planning against probed real windows, wider summary deadlines, concise-mode directives.
  • The default embedder is built in with zero third-party dependencies; install @huggingface/transformers yourself for stronger semantic retrieval.
  • When a local model only accepts specific reasoning levels, summary calls follow the session's current setting.

License

MIT

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
dsh-infinite-context 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:chocobo77/dsh-infinite-context#v0.1.2` 即可。

dsh-infinite-context 的验证等级是什么意思?

L4 · 沙盒安装通过。安装命令在隔离沙盒内真实执行成功,无依赖错误

dsh-infinite-context 安全吗?

低风险。vet 静态分析未发现可疑行为,判定为干净(clean)。

dsh-infinite-context 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-infinite-context 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-infinite-context 有哪些功能?

渐进式压缩、动态压缩阈值、深度思考介入、三层记忆金字塔、语义检索注入。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

记忆与知识
按星标排序,可作替代方案

ruflo

ruflo

L3 · 安装规范通过 7.4 万 星

OpenViking

OpenViking

面向 DeepSeek Harness 的 OpenViking 记忆与上下文插件:pre-step 自动召回与画像注入、会话捕获、`vik

L3 · 安装规范通过 3.9 万 星

WeKnora

WeKnora

把 WeKnora 知识库接入 dsh 的四个只读工具:列出知识库、混合检索原文片段、按顺序还原单篇文档,以及直接取用 WeKnora 自己

L4 · 沙盒安装通过 3.3 万 星

distilly

distilly

Distilly — Distill how they think into reusable Skills for any Agent o

L4 · 沙盒安装通过 2.5 万 星

EverOS

EverOS

L4 · 沙盒安装通过 1.3 万 星

MemOS

MemOS

L4 · 沙盒安装通过 1.2 万 星

chocobo77 的其它插件

1 个

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 2026-10-09。