DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@yangzhe1991/dsh-project-session-store

Project Session Store

DSH 插件:将每个项目的会话日志存储在项目目录(.dsh/sessions/)中,而不是集中存储在 ~/.dsh/sessions

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

npx -y @deepseek-ai/dsh plugin --profile web add @yangzhe1991/dsh-project-session-store@0.1.5
README兼容性版本

兼容性与来源证明

Project Session Store 以 @yangzhe1991/dsh-project-session-store 发布,当前版本为 0.1.5。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.1.5stable
2026/9/1
0.1.4stable
2026/9/1
0.1.3stable
2026/8/29
查看其余 3 个版本收起版本
0.1.2stable
2026/8/29
0.1.1stable
2026/8/29
0.1.0stable
2026/8/29

相关插件

正在加载相关插件…

最新版
0.1.5
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
132 kB
文件数
8
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
34
最近提交
2026/9/1
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Experimental Session Search@deepseek-ai/dsh-experimental-session-search为 Agents 提供搜索和读取当前工作区早期会话的工具。Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Mnemondsh-mnemon面向 DeepSeek Harness 的可组合、基于视图的上下文。开箱即用的可插拔来源与策略、分层记忆和自我演进技能。

README

English | 中文

dsh-project-session-store

DSH (DeepSeek Harness) plugin: keep each project's session logs inside the project directory, instead of everything centralized under ~/.dsh/sessions.

By default DSH stores every session under ~/.dsh/sessions/<project-key>/<session-id>/session.jsonl.zstd. This plugin replaces the built-in JSONL persistence backend so session data lives with the project:

<project>/.dsh/sessions/<session-id>/session.jsonl.zstd

Clone a repo, archive it, or move it to another machine — the conversation history travels with the project.

What it does

ConcernBehavior
Storage layout<cwd>/.dsh/sessions/<session-id>/session.jsonl.zstd (same file format, same zstd frames — fully compatible readers)
Built-in backend@deepseek-ai/dsh-session-persistence-jsonl is disabled in the composition tree; this plugin provides ctx.sessionPersistence instead
Legacy dataOn first startup, sessions already under ~/.dsh/sessions are migrated once into their project's .dsh/sessions/ (keyed by each log's header cwd)
Unmovable sessionsSessions whose cwd is gone, sessions without a cwd, and log files whose project directory is not writable stay in place under ~/.dsh/sessions and remain readable/resumable
Lookup indexA small pointer file ~/.dsh/sessions/index.json maps session-id -> project dir so resume-by-id and the cross-project Web session list keep working; it contains pointers only, never session data
Web UISession list still shows all projects grouped by project directory (it merges project-local plus any unmigrated leftovers)
No cwd sessionsStay under ~/.dsh/sessions/_no-cwd/, exactly like the stock backend

Installation

dsh plugin --profile web add @yangzhe1991/dsh-project-session-store

Then restart dsh web (restarting is required — the composition tree changes).

Dev-mode install (local checkout):

# in ~/.dsh/profiles/web
# package.json dependencies:
#   "@yangzhe1991/dsh-project-session-store": "link:/absolute/path/to/dsh-project-session-store"
pnpm install

Notes & caveats

  • Restart to activate. The plugin swaps the persistence row of the composition tree (session-persistence-jsonl gets disabled: true), applied at boot.
  • One-time migration is best-effort and idempotent. Failures are logged and the leftover stays in the old location. A later startup retries it.
  • Uninstall / rollback: remove the plugin from the profile (or set session-persistence-project-local: disabled: true and re-enable session-persistence-jsonl in cordis.patch.yml). Project-local sessions are then not visible to the stock backend — they live in the project. Either migrate them back manually or keep using this plugin.
  • Cross-machine copy: when the project directory (including .dsh/sessions/) is moved to another machine, copied sessions are discovered (listed) and remain fully readable/resumable — the plugin resolves them by where the files actually live, not by the header cwd (which points at the source machine's path, unresolvable here). After a resume, new events are written back into that same physical file, so the log never splits. The exposed cwd is normalized to the session's real project directory on this machine, and ungrouped sessions are automatically attached to the matching (or auto-created) web workspace via the stock WorkspaceRegistry API — zero configuration, no hard-coded path mappings; anyone copying a project to any machine gets sidebar grouping out of the box.
  • The ~/.dsh/sessions/index.json pointer file is irreplaceable-by-scan only for cross-project discovery: if it is deleted, the next session.list rebuilds it by scanning the old root, but project-local dirs outside the index are then only discoverable per-project.
  • Version coupling: the plugin does not install official packages itself — the @deepseek-ai/* packages are peer dependencies resolved from the host's module fallback directory ($DSH_HOME/profiles/node_modules, maintained by the harness, versioned with the host). This isolates it from mixed-install version mismatch (e.g. an old self-installed dsh-session meeting a newer dsh-llm breaking startup). No plugin change needed after a host upgrade unless official APIs change.

Configuration

The plugin row accepts these options (all optional):

- id: session-persistence-project-local
  name: '@yangzhe1991/dsh-project-session-store'
  config:
    # Central root: legacy fallback + pointer index location. Default: $DSH_HOME/sessions
    # root: /your/custom/root
    # Directory inside each project. Default: .dsh/sessions
    # projectDirName: .dsh/sessions

How it works

  • Subclasses the official JsonlSessionPersistence, reusing its coordinator, zstd encoding, crash repair (torn-tail), and durability guarantees — only path resolution, listing, and discovery are overridden.
  • Write path: <cwd>/.dsh/sessions/<id>/session.jsonl.zstd (sessions without cwd fall back to the central _no-cwd/).
  • Read path (findLog by id): pointer index first, then a legacy-root scan fallback; the physical location hit is remembered in-memory so follow-up appends never split the log.
  • One-time migration: moves each legacy log into its project dir (same filesystem rename, EXDEV fallback copy+unlink), updates the index, and prunes emptied legacy directories.

License

MIT