AIMarshallLee/dsh-obsidian-bridge ↗★ 0

dsh-obsidian-bridge

Harness与Obsidian仓库双向知识桥:全文检索、草稿写入与会话关联。 适合用Obsidian管理笔记的用户;需指定仓库路径,可选自动上下文。

套件
dsh-obsidian-bridge
相容性
待驗證
Cordis 依賴範圍
>=4.0.0
版本
0.2.0
授權
MIT
最近更新
2026年8月18日

同名套件的其他儲存庫

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 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