dsh-obsidian
其他 活跃维护

dsh-obsidian

wozoulesky/dsh-obsidian

dsh-obsidian

1
Stars 标星
0
Forks 分支
1
Watchers 关注
1
Open Issues
TypeScript
主要语言
MIT
开源协议
317 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:wozoulesky/dsh-obsidian
git clone https://github.com/wozoulesky/dsh-obsidian.git
git clone git@github.com:wozoulesky/dsh-obsidian.git
README.md master

DSH Bridge

Embed your locally running DeepSeek Harness (DSH) into Obsidian as an AI collaborator: your vault becomes its working directory, and DSH can read, write, and search your notes directly.

中文文档

Prerequisites

  • A running DSH instance on your machine (default http://127.0.0.1:3080)
  • Your vault must be inside DSH's accessible directory scope (decided by DSH's sandbox / workspace config)
  • Obsidian ≥ 1.7.2, desktop only

Features

  • Chat sidebar — streamed responses, tool-call cards, approval/question popups (retryable), session switching and creation, "load older" pagination, and automatic re-sync after reconnects
  • Inline edit — select text + hotkey → instruction → word-level diff preview → apply (editor selection is re-validated before applying; large selections degrade to a plain confirm dialog)
  • @mentions — type @ to pick vault files (@file:path, content injected) or folders (@folder:path, directory tree injected), with truncation and missing-file notices
  • Slash commands & plan mode — /plan, /compact, /feedback, /goal with autocomplete; Shift+Tab toggles plan mode with a status banner

Installation (local)

  1. npm install && npm run build
  2. Copy main.js, manifest.json, and styles.css into vault/.obsidian/plugins/dsh-bridge/
  3. Settings → Community plugins → enable "DSH Bridge"

Privacy

All data flows through your local DSH to its configured model providers, using the same policy as the DSH Web GUI. The plugin sends no telemetry.

Development

npm install
npm run dev    # watch build
npm test       # unit tests (74)

Architecture

Transport: unary RPC over Node http (POST /api/<method>, /api/respond); live events over a bundled ws WebSocket (/api/events.mux — the server rejects plain SSE with 426). A core layer folds session events into view models; a UI layer renders the sidebar and modals. See docs/superpowers/specs/2026-08-13-dsh-obsidian-design.md.