DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Rewind Compact — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
R

dsh-rewind-compact

Rewind Compact

用于 DeepSeek Harness 的 Rewind-compact 插件包:将对话回退到选定的轮次边界,并将一侧压缩为混合摘要。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:shayanrc/dsh-rewind-compact#90ddb02b81f9a25f1ab3cf94a3ad6f9cad944bd6
README兼容性版本

兼容性与来源证明

Rewind Compact 以 dsh-rewind-compact 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/16

版本

0.1.0stable
2026/10/16

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
LGPL-3.0-or-later
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/16
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Ab Memorydsh-ab-memory--- description: "dsh-ab-memory 包:一种跨会话、基于文件的智能体记忆,提供五个工具(remember / recall / forget / load_skill / distill)以及始终启用的轻量注入。" kind: "package-reference" ---Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Mnemondsh-mnemon适用于 DeepSeek Harness 的可组合、基于视图的记忆。支持可插拔的数据源和策略,并开箱即用地提供分层记忆。

README

dsh-rewind-compact

Plugin bundle for the DeepSeek Harness (dsh): rewind the conversation to a chosen completed-turn boundary and compact one side of that boundary into a hybrid (scaffold + LLM prose) summary. The other side survives verbatim. The pre-rewind session always remains resumable by id — the discarded side is never lost.

Surfaces

  • TUI interactive picker — the native Esc-Esc rewind overlay gains two confirm-pane modes: Rewind + compact after / Rewind + compact before (files-changed warning in the description). Requires the session.rewind.intercept grant (default deny).
  • TUI command /rewind-compact [turn] [after|before] — fast path; no arguments points at the picker.
  • Model-invoked tool rewind_compact(point, mode, rewind) — compaction ungated; rewind requires user approval (fails closed headless).
  • Skill rewind-compact — when to propose, tool rules, summary format, post-fork etiquette.

Install

dsh plugin --profile <name> add <path-to-this-repo>

(Or the equivalent pnpm route the profile uses; see dsh plugin --help.)

Surfaces and where they work

SurfaceWhere it works
Esc-Esc rewind picker modesTUI profile (decision-event seam tui/rewind-prompt / tui/rewind-done; needs the session.rewind.intercept grant — see TESTING.md)
/rewind-compact commandTUI profile (harness command seam, composed into every human-command adapter)
rewind_compact toolevery profile that loads the bundle (model-invoked)
rewind-compact skillevery profile that loads the bundle (model-invoked)

Headless/sdk: the tool's compact path works ungated; the rewind path fails closed (no direct human input in a goal-round turn).

v1 limitations

  • No file revert: the plugin reports which files changed after the boundary but never restores them (deferred v2).
  • Profiles without a compaction service: the in-place compact path is a no-op and reports applied: false with a note (the fork path still summarizes, scaffold-only).
  • Headless/sdk approval for rewind fails closed.
  • Forked-session title <original> (rewound) is passed as a create option; builds whose agent factory ignores it keep the default title (logged).
  • The forked child session is stored under the _no-cwd session bucket instead of the source's workspace bucket (the TUI attaches the fork to the workspace in a separate step this bundle does not call yet); the child is complete and resumable, just ungrouped in the sidebar.
  • Verified end-to-end in a real browser against the web profile: scripts/e2e-web-test.py (see TESTING.md) — new session → two turns → /rewind-compact → answer both dialogs → completion message, with the child log checked on disk for the seeded history plus the five-field scaffold.

Harness seams used

  • Compaction — ctx.compaction.compactRegion(start, end, agent, signal) (CompactionEngine contract, dsh-compaction-basic). Its signature takes no instructions argument, so the five-field scaffold is delivered inside the compacted range as its final message: the summarizer (summarizeWithLlm) appends its own instruction and condenses the range, preserving the scaffold's facts into the prose (hybrid summary, R5). For forks, the range compaction runs on the child session after seeding — the pre-rewind session is never appended to or truncated. Fallback: scaffold-only summary message when child-side compaction is unavailable.
  • Rewind/fork — the TUI's fork-at-boundary recipe (@deepseek-harness-tui/dsh-tui/lib/types/dsh-adapter/channel/session-rewind.js): cancel agent → wait turn/end → settleCompaction → walk back to enclosing turn/start, cut at turnStart.seq - 1 → agents.create({sessionId: SessionId(randomUUID()), seed, inheritedCount, parentSession, setup: clear inbox + compact discarded side in the child}). Never sessions.fork(); never mutate the pre-rewind session.
  • Tool registration — ctx.tools.register(defineTool({name, description, parameters, output: {schema, render}, execute, presentCall})), defineTool from @deepseek-ai/dsh-tools, schemastery parameter specs, per-property parameter map (the dsh-tool-goal dialect).
  • Command registration — ctx.commands.register({name: 'rewind-compact', description, handler}); handler receives {rawInput, agent, signal, commandId} and returns {kind, text} (the dsh-command-compact shape; the adapter renders the leading slash).
  • Skill registration — ctx.skills.register({name, description, invocation: {modelInvocable, userInvocable}, path}) (dsh-skill runtime seam; SKILL_NAME-valid name, non-empty description required).
  • TUI picker seam — decision events via plain ctx.on: tui/rewind-prompt (answer: {modes: [{id, label, description}]} — rendered in the confirm pane's choice list) and tui/rewind-done (post-fork payload carries mode, boundarySeq, sourceSessionId, childSessionId; the bundle replays and compacts the discarded side in the child and returns the toast string). Subscriptions are D-7-gated on the session.rewind.intercept grant (default deny — a denied subscription is a warned no-op; see TESTING.md for granting).

Layout

  • package.json — bundle manifest
  • cordis.patch.yml — patch layer
  • lib/ — implementation (index.js entry; events.js accessors; scaffold.js, seed.js, rewind.js, tool.js, command.js, tui-rewind.js, errors.js)
  • tests/ — node:test unit tests (scaffold, seed envelopes)
  • skill/rewind-compact/SKILL.md — the skill
  • SPEC.md — the approved spec

License

LGPL-3.0-or-later — see LICENSE. The LGPL incorporates the GNU GPL v3 by reference; its text ships as COPYING.

  • Rewind gating — direct-human authority check (a user-sourced user/message inside the open turn, via ctx.sessionProjections.stateOf(agent.session, 'turnBoundary')), the same authority pattern as dsh-tool-goal's requireDirectHuman.
  • Errors — typed HarnessError(message, code) from @deepseek-ai/dsh-llm.