Daseanle/dsh-obsidian-bridge0

dsh-obsidian-bridge

Bidirectional knowledge bridge between DeepSeek Harness and Obsidian Vault — FTS5 search, draft writing, session linking

AI 分析

核心用途是打通 DSH 与 Obsidian 笔记软件。适合需要智能体检索个人知识库、自动将对话或工具结果保存为 Obsidian 草稿的用户。

パッケージ
dsh-obsidian-bridge
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/08/18

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

Configuration

Create or edit cordis.patch.yml in your DSH config directory:

- id: dsh-obsidian-bridge
  config:
    vaultPath: /path/to/your/vault
    autoContext: false        # auto-inject vault context before each model step
    autoCapture: false        # auto-capture non-Obsidian tool results as drafts
    draftFolder: dsh-drafts   # folder for draft notes
    sessionId: ""             # optional: link drafts to a specific session

Or use environment variables (legacy, used as fallback when config values are not provided):

export OBSIDIAN_VAULT_PATH="/path/to/your/vault"
export DSH_OBSIDIAN_AUTO_CONTEXT=true   # optional
export DSH_OBSIDIAN_AUTO_CAPTURE=true   # optional
export DSH_SESSION_ID="my-session"      # optional

Configuration

Config Schema (zod)

FieldTypeDefaultDescription
vaultPathstring""Absolute path to your Obsidian Vault
autoContextbooleanfalseAuto-inject vault context before each model step
autoCapturebooleanfalseAuto-capture non-Obsidian tool results as drafts
draftFolderstring"dsh-drafts"Folder name for draft notes
sessionIdstring""Session ID for draft frontmatter and session linking

Config is validated via zod Standard Schema V1. Values can be provided through cordis.patch.yml or environment variables (as fallback).

Environment Variables

VariableFallback ForDefault
OBSIDIAN_VAULT_PATHvaultPath
DSH_OBSIDIAN_AUTO_CONTEXTautoContextfalse
DSH_OBSIDIAN_AUTO_CAPTUREautoCapturefalse
DSH_SESSION_IDsessionId""

SQLite FTS5 Index

The plugin creates a .dsh/index.db SQLite database inside your vault directory:

  • FTS5 virtual table with unicode61 tokenizer
  • UNINDEXED columns for metadata (path, frontmatter, mtime, etc.)
  • BM25 relevance ranking for search results
  • Incremental sync: only re-reads notes whose mtime changed
  • Throttled sync: skips re-sync within 2s of last sync (unless invalidated)
  • Chinese support: CJK characters are split for unicode61 tokenization
  • WAL mode with 16MB cache for performance