DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Session Branch — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@morlay/session-branch

Session Branch

Provider abstraction + high-level service for rewind / retry / fork over DeepSeek Harness event-sourced sessions.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add @morlay/session-branch@0.0.8
READMECompatibilityVersions

Compatibility and provenance

Session Branch is published as @morlay/session-branch and currently resolves to version 0.0.8. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
9/20/2026

Versions

0.0.8stable
9/14/2026
0.0.7stable
9/13/2026
0.0.6stable
9/11/2026
Show 16 more versionsCollapse versions
0.0.10-alpha.4prerelease
9/20/2026
0.0.10-alpha.3prerelease
9/18/2026
0.0.10-alpha.2prerelease
9/18/2026
0.0.9-alpha.1prerelease
9/18/2026
0.0.9-alpha.0prerelease
9/18/2026
0.0.5stable
9/10/2026
0.0.4stable
9/10/2026
0.0.4-alpha.4prerelease
9/10/2026
0.0.4-alpha.2prerelease
9/8/2026
0.0.4-alpha.1prerelease
9/8/2026
0.0.4-alpha.0prerelease
9/8/2026
0.0.3stable
9/4/2026
0.0.2stable
9/3/2026
0.0.11stable
8/27/2026
0.0.10stable
8/20/2026
0.0.9stable
8/20/2026

Related plugins

Loading related plugins…

Latest
0.0.8
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
24.6 kB
Files
15
Surface
any
License
MIT
Source
npm
GitHub
★ 9
Weekly downloads
3,483
Security scan
✓ v0.0.8 scan passed
Last push
9/20/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in memory-context.

Memory Plugin@openviking/dsh-memory-pluginOpenViking memory and context bundle for DeepSeek HarnessContextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Weknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Mnemondsh-mnemonComposable three-tier memory control plane for DeepSeek Harness: persistent runtime context, searchable project documents, pluggable long-term memory, guarded strategies, WebUI, and headless tools.

README

@morlay/session-branch

分支式会话编辑的契约层:定义数据层分支原语 SessionBranchProvider (rewind / forkFrom / readBranchPrefix)、高层服务 SessionBranch (ctx.sessionBranch)与共享的版本树投影 buildTimeline。

与上游 SessionHandle 的关系

上游持久化模型是 SessionHandle(append-only:create / open / append / flush / stat / list),没有显式回退原语;本包在其旁边定义分支面 provider,负责显式回退与闭合边界派生:

面上游 SessionHandle本包 SessionBranchProvider
覆盖持久读写(append-only)显式回退 + 闭合边界派生(分支面)
原语create / open / append / flushreadBranchPrefix / forkFrom / rewind
实现方JSONL / RDB 等RDB 等(@morlay/session-rdb 同时实现两者,形成闭环)

Provider 抽象

interface SessionBranchProvider {
  readonly name: string;
  readBranchPrefix(id, atSeq?, mode?, signal?): Promise<BranchBoundary>;
  forkFrom(sourceId, options?, signal?): Promise<SessionId>;
  rewind(id, toBoundary, signal?): Promise<SessionPersistenceSnapshot>;
}
  • readBranchPrefix:定位 atSeq 锚定的闭合 turn/end 边界并返回前缀; mode: "after"(包含目标轮,fork 语义)/ "before"(排除目标轮,编辑 / 重掷 / 重试语义)。
  • forkFrom:纯 append——新会话(parentSession / seedLength),seed = 边界前缀 + seedSuffix,不触碰源会话。
  • rewind:唯一的显式回退原语,事务整体提交或回滚;支持 live 会话 (内存 log 截断 + 派生缓存复位 + handle cursor / 继承前缀对齐,详见 @morlay/session-rdb 的 docs/branch.md)。

版本树

buildTimeline(snapshots, readOwnEvents, sessionId) 从会话快照(header lineage)+ 每会话自有后缀(seq >= seedLength 的 session-branch/version 事件)投影完整版本树。

版本效果事件携带 ignorable: true:非 branch 读者凭信封安全跳过,事件 本身原样落库——live 会话从内存 log 读到效果,cold 会话经读路径恢复效果 详情(见 ADR 0003)。