DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Obsidian Sync — DeepSeek Harness 插件(DSH Plugin)
← Plugins
O

dsh-obsidian-sync

Obsidian Sync

DSH Obsidian Sync - DSH Cordis 插件:按需搜索 Obsidian 知识库,并根据您的 vault 现有 PARA 规则归档 DSH 会话(零 token 注入、进程内 fs、倒排索引、幂等 upsert)

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

npx -y @deepseek-ai/dsh plugin --profile web add github:Dingpenghui-good/dsh-obsidian-sync#de9c3c9d0ee2f1859360b1a74ed0d05d01d94f46
README兼容性版本

兼容性与来源证明

Obsidian Sync 以 dsh-obsidian-sync 发布,当前版本为 2.1.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

2.1.1stable
2026/9/13
2.0.2stable
2026/9/13

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

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

Codex Ui@michengai/dsh-codex-uiDSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Automation@michengai/dsh-automation在独立 DSH Session 中按计划执行编码任务,支持 Web 设置页与 Agent 双入口管理。Easyrewritedsh-easyrewriteDSH Web 中最无感的消息撤回与重新编辑插件,原生体验,兼容性强,功能简单易开关,设置丰富,采用现代化轻量 UI 框架。

README

DSH Obsidian Sync

DSH Cordis 插件:按需搜索 Obsidian 知识库 + 幂等归档 DSH 会话(零 token 注入)

设计理念

纯模型 Tool 按需调用,不注入系统提示词。默认 token 成本 ≈ 两个 Tool 的 schema。

  • 进程内 fs 服务(resolve/stat/listDir/readText/writeText),不起子进程
  • 倒排索引 + 60s 增量重建(dirty 标记,跳过 .obsidian/.git)
  • CJK bigram 分词 + 全文索引 + IDF 加权排序
  • 按 date + shortId 幂等 upsert(标题变更不影响去重)
  • 笔记写入 vault/04-Archive/,YAML frontmatter + Obsidian 原生标签
  • 自动挂 DSH-会话归档-索引.md 的按日期段(双井号边界 + 同 shortId 去重)

提供的 Tool

obsidian.search

在 Obsidian 知识库中按关键词搜索相关笔记(中英文均可,自动 CJK bigram 分词)。

// 输入
{ "topic": "npm 发布 2FA", "limit": 5 }

// 输出
{
  "ok": true,
  "matches": [
    {
      "file": "04-Archive/2026-09-12-3073121a-…",
      "score": 3.72,
      "snippet": "npm 2FA 查证:TOTP 已废弃…",
      "size": 4200,
      "matchReason": "npm pub lis 2fa"
    }
  ],
  "count": 5,
  "vaultPath": "E:/dsh-workspace/obsidian-vault"
}

obsidian.sync_session

把当前 DSH 会话幂等归档到 Obsidian vault。摘要未变则跳过写盘。

// 输入
{
  "session_id": "session-76bb60db-bdde-…",
  "title": "dsh-obsidian-sync 优化与发布",
  "summary": "用户需求:… 过程要点:… 交付物:…",
  "tags": ["dsh", "obsidian", "cordis"],
  "related": ["2026-09-11-a9095879-dsh-tool-agnes工具升级与发布.md"],
  "raw_log": "C:\\Users\\dph\\.dsh\\sessions\\--E-dsh-workspace--\\session-76bb60db\\session.v3.jsonl.zstd"
}

// 输出(首次写入)
{ "ok": true, "skipped": false, "file": "04-Archive/2026-09-13-76bb60db-…", "index": "updated" }

// 输出(摘要未变)
{ "ok": true, "skipped": true, "file": "…", "reason": "summary unchanged", "index": "unchanged" }

// 输出(失败)
{ "ok": false, "error": "writeText failed: …", "code": "WRITE_FAILED" }

安装

方式一:从 npm 安装(推荐)

dsh plugin --profile web add dsh-obsidian-sync

方式二:从本地路径安装

cd dsh-obsidian-sync
pnpm install
pnpm build
dsh plugin --profile web add .

配置

在 ~/.dsh/settings.yaml 中添加:

obsidian-sync:
  vaultPath: "E:/dsh-workspace/obsidian-vault"
  searchEnabled: true
  indexRefreshMs: 60000

所有字段均有默认值,可不配置直接挂载。

开发

pnpm install
pnpm build        # tsdown 构建 → lib/
pnpm typecheck    # tsc 类型检查

测试

node scripts/test-tokenize.mjs      # CJK bigram 分词
node scripts/test-idempotent.mjs    # 幂等 upsert
node scripts/test-index-boundary.mjs # 索引边界插入

发布

pnpm version patch
git push origin main --tags
npm publish

.npmrc 不入版本库(含 npm access token),发布前需本地配置。

许可证

MIT


作者: Dingpenghui-good
仓库: https://github.com/Dingpenghui-good/dsh-obsidian-sync