therain2020/dsh-obsidian-sync

therain2020★ 0TypeScript最后同步: 2026-08-21

在 GitHub 打开

Obsidian vault tools for DeepSeek Harness: write/read markdown notes with path-traversal protection

README 摘要

dsh-plugin-obsidian-sync A DeepSeek Harness plugin that gives a dsh agent read/write access to a local Obsidian vault. Two packages: Package Role packages/plugin/obsidian-sync the plugin — registers obsidian write note and obsidian read note tools plus a system-prompt section packages/bundle/obsidian-sync-bundle the profile bundle — a patch layer that mounts the plugin into a dsh composition What it does - obsidian write note — writes a markdown note into the configured vault. The title becomes the filename (sanitized); an optional directory places it under a vault-relative subfolder; refuses to replace an existing note unless overwrite: true . - obsidian read note — reads a note back by its vault-relative path. Safety properties (all enforced, all tested): - Path containment — absolute paths and .. segments are rejected, and every resolved path is re-checked against the vault root. The agent cannot write outside the vault, even if it tries. - Size caps — a configurable maxNoteBytes (default 1 MiB) applies to both reads and writes, so a stray binary file cannot flood the context window. - No silent overwrites — an existing note is an error unless overwrite: true , so the model lear…

在 GitHub 查看完整 README →
工具/开发deepseek-harnessdsh-pluginobsidianagent

分类