context-continuity

DSH PLUGIN记忆与知识

仓库 rrrrrredy/context-continuity

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

Context Continuity 是面向 Codex 与 DeepSeek Harness 的本地优先连续性插件,在上下文压缩、恢复或交接后校验任务目标与硬约束是否仍被保留。

一句话选型结论

按资料字段整理

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

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

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:rrrrrredy/context-continuity#v0.2.0-beta.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 查看包信息

能做什么

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

context-continuity:为 DeepSeek Harness 守住长任务的目标与硬约束

  • 记录任务目标与硬约束
  • 压缩后校验状态连续性
  • 恢复与交接前检查
  • 带来源与状态的元数据

适用场景

记忆存储

上游标签

agentagent-reliabilitycodexcodex-plugincontext-engineeringcontinuitydeepseek-harnessdsh-pluginhookslinuxmacosmcp

验证等级与安全审查

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

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

逐项检查结果

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

先想清楚的地方

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

更适合

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

不太适合

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

同类对比

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

仓库档案

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

README 全文

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

Context Continuity

中文说明 · Release evidence · Privacy

Context Continuity keeps a small, source-aware record of what a long Agent task
must not forget, then checks that record after compaction, resume, or handoff
before work continues.

It is available as one shared-core package for Codex and DeepSeek Harness on
Windows, macOS, and Linux.

Why this exists

A host can preserve enough text for an Agent to keep talking while losing the
actual objective, a hard constraint, a user correction, the reason for a
decision, the current file/version, or whether the old next step is still safe.
Host summaries and memory remain useful inputs, but they are not authoritative
task state.

Context Continuity stores a bounded task projection with source, time, status,
supersession, conflict, and verification metadata. It does not copy the full
transcript, create long-term memory, plan the task, or replace host permissions.

Status

Version 0.2.0-beta.2 is the release candidate. It becomes the pinned public
prerelease, and the install commands below become valid, only after the matching
public tag and GitHub prerelease exist.

Host / platform Support level
Codex Beta release candidate; real manual and consecutive automatic compaction lifecycle receipts on the tested Windows host
DeepSeek Harness Developer-preview candidate pinned to 0.1.1-rc.2; published Host API lifecycle and isolated package verified
Windows Full release test matrix plus real Codex lifecycle evidence
macOS Release gate: the full source, Hook, MCP, package, eval, and DSH adapter matrix must pass on macos-latest; authenticated Codex automatic lifecycle is not yet verified
Linux Release gate: the full source, Hook, MCP, package, eval, and DSH adapter matrix must pass on ubuntu-latest

The frozen three-arm real-task study has not been completed. This release proves
mechanics and bounded failure behavior, not yet a measured reduction in user
rework or target drift.

Install: Codex

Requirements: a Codex build with plugin and Hook support, Node.js 20 or newer,
and permission to inspect local Hooks.

The commands are the same on macOS, Linux, and Windows shells:

codex plugin marketplace add rrrrrredy/context-continuity --ref v0.2.0-beta.2
codex plugin add context-continuity@context-continuity

Then:

  1. Restart or resume the Codex task.
  2. Open /hooks.
  3. Inspect the exact commands in the installed cache and trust only those
    definitions.
  4. Work normally. Ordinary turns remain silent and do not call another model.

Verify installation:

codex plugin list --json

The JSON output must include context-continuity@context-continuity. In
/hooks, verify and trust these seven groups from the installed cache:
SessionStart, UserPromptSubmit, PreCompact, PostCompact,
SubagentStart, SubagentStop, and SessionEnd. If any command reports
node not found, continuity protection is not active.

Run this 60-second, no-file-change smoke test in a disposable task:

  1. Say: “Protect this objective: keep the smoke test local. Hard constraint:
    do not edit files.”
  2. Read the proposed state and send the exact confirmation text the Agent
    returns.
  3. Say: “Show the current continuity state.”
  4. Pass only if the objective and constraint are both verified and no file
    was changed.

For Mac-specific evidence and limits, see
macOS support.

Install: DeepSeek Harness

Requirements: DeepSeek Harness 0.1.1-rc.2, Node.js 20 or newer, and pnpm.
` names one runnable DSH composition under$DSH_HOME/profiles/. Use an existing profile or a dedicated preview name; the first officialdsh plugin --profile add ...` call initializes
that profile. See the
official profile/plugin guide.

dsh plugin --profile  add github:rrrrrredy/context-continuity#v0.2.0-beta.2
dsh --profile  --dump-config

The dumped configuration must contain a layer/service with both id and
name equal to context-continuity. Then start the profile with:

dsh --profile

Use the same plain-language smoke test above after the profile starts.

If that profile was already running during installation, restart its process
before the smoke test. The DSH bundle patch inserts the adapter; no separate
state schema or fork is used. See the
adapter guide and
capability record.

Context Continuity and Execution Fidelity Guard are separate products:

Product Responsibility
Context Continuity Preserves and verifies task state across lossy context boundaries
Execution Fidelity Guard Classifies pending actions and completion claims against current state

There is no live bridge between them. This repository's DSH adapter targets
Harness 0.1.1-rc.2; the separate Guard DSH adapter targets
0.1.2-alpha.2. Do not treat them as an automatically integrated pair in one
profile.

What users see

Most of the time: nothing.

When a lossy boundary occurs, the plugin:

  1. snapshots only the active task invariants;
  2. records whether the boundary completed;
  3. restores a bounded projection before the next model step;
  4. preserves unresolved conflicts instead of inventing agreement;
  5. marks the old next_action stale so it must be rederived.

If reliable evidence can repair a mismatch, recovery is automatic. Low-risk
uncertainty is marked while reversible work may continue. A mismatch that could
change objective, scope, authorization, work object, publication, deletion, or
another irreversible action requires one necessary user question.

Users can say:

  • “Show the current continuity state.”
  • “Protect the current objective and constraints.”
  • “This recovered item is wrong; replace it with …”
  • “Export a minimal handoff.”
  • “Turn continuity protection off for this task.”
  • “Delete this task's continuity state.”
Action Exact effect
Off Stops new automatic continuity writes for this task; existing state remains readable and exportable
Reset Clears the active projection and starts a fresh generation while preserving append-only history; the diagnostic CLI archives the old task directory
Delete Removes only this task's Continuity state and matching Continuity archives; it does not delete project files, transcripts, host memory, or other tasks

Off, on, reset, and delete all require the readable exact second confirmation.
User-authoritative structured state uses a readable, exact second confirmation.
A model paraphrase or an old message cannot mint authority.

Data and guarantees

  • Local, task-scoped append-only ledger with hash-chain verification.
  • At most three recent compaction snapshots.
  • Bounded recovery projection: 800-token default, 1,500-token maximum.
  • Full transcript, hidden reasoning, and full tool output are not copied.
  • Platform summaries, retrieval results, handoffs, and subagent output enter as
    untrusted caches or candidates.
  • Every lossy boundary invalidates the old action cursor.
  • Hook or adapter failure is fail-open for the host. Continuity protection for
    that boundary is then unavailable.
  • Corrupt continuity state is not restored or mutated.
  • Other installed products do not become automatic integrations. The
    shared-state contract is read-only and
    single-owner.

Codex data defaults to
$CODEX_HOME/plugin-data/context-continuity/v1. DSH data defaults to
$DSH_HOME/plugin-data/context-continuity/v1. An explicit
CONTEXT_CONTINUITY_DATA_DIR is supported for isolated or managed runs.

Failure Safe response
Node or Hook startup failure Protection is inactive. Put Node.js 20+ on the host process PATH, restart, inspect /hooks, and repeat the smoke test
Recovered state is wrong Submit a correction and its exact confirmation; pause any affected high-risk action until the correction is effective
Ledger hash corruption Preserve the damaged data. rebuild verifies and reprojects a valid ledger; it cannot repair a hash mismatch. Use task-scoped diagnostic deletion only when the exact task reference and actual data directory are independently known
DSH layer missing Protection is inactive. Re-add the pinned tag, restart the profile, and verify it with --dump-config

The default-path commands in the
usage guide print candidates, not guaranteed
runtime-resolved paths. Verify overrides and installed-cache inference before
manual deletion.

Evidence

The repository requires:

  • 91 core tests and 7 DeepSeek Harness adapter/integration tests;
  • real Codex manual and consecutive automatic compaction receipts;
  • byte-identical installed-cache lifecycle receipts;
  • an installed-host read-only discovery receipt;
  • an isolated DSH tarball install receipt;
  • a published DSH Host API lifecycle receipt;
  • Hook, MCP, repository, protocol-eval, audit, and multi-OS CI gates.

Receipts bind the current source tree and plugin package SHA-256. Fixture
protocol results are explicitly excluded from efficacy claims.

Local development

npm ci
npm test
npm run test:dsh
npm run smoke:hooks
npm run smoke:mcp
npm run eval:protocol
npm run verify:dsh:package
npm run verify:dsh:lifecycle
npm run validate
npm audit --audit-level=high

Only plugins/context-continuity/ is the installable Codex package. The root
package also carries the DeepSeek Harness adapter and its bundle patch.

Update or remove

Upgrade Codex to `` while preserving its local ledger:

codex plugin remove context-continuity@context-continuity
codex plugin marketplace remove context-continuity
codex plugin marketplace add rrrrrredy/context-continuity --ref
codex plugin add context-continuity@context-continuity

Upgrade DeepSeek Harness to ``:

dsh plugin --profile  remove context-continuity
dsh plugin --profile  add github:rrrrrredy/context-continuity#

To remove from Codex without deleting its ledger:

codex plugin remove context-continuity@context-continuity
codex plugin marketplace remove context-continuity

To remove from DSH without deleting its ledger:

dsh plugin --profile  remove context-continuity

Removal does not silently delete ledgers. For a complete deletion, first say
“Delete this task's continuity state,” send the exact second confirmation, and
verify that the task state is gone. Only if the plugin cannot run, locate the
actual data directory from runtime configuration and installed-cache inference;
do not assume the default-path candidate is exact. Review the target before
removing plugin-data/context-continuity; see
privacy and deletion.

License and support

Apache License 2.0. Commercial and private use are allowed subject to the
license terms. Report reproducible problems through
GitHub Issues.

常见问题

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

在 DSH 里执行 `dsh plugin --profile web add github:rrrrrredy/context-continuity#v0.2.0-beta.2` 即可。

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

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

context-continuity 安全吗?

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

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

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

context-continuity 用的是什么许可证?

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

context-continuity 有哪些功能?

记录任务目标与硬约束、压缩后校验状态连续性、恢复与交接前检查、带来源与状态的元数据。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 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 万 星

rrrrrredy 的其它插件

5 个

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