Skip to content
dsh-market Browse plugins GitHub 中文

mingzeng21/dsh-obsidian

Connect dsh to a local Obsidian vault: search, read, write, move, and trash notes through `obsidian_*` tools.

Stars ★ 4 Category Memory Listed 2026-08-16 npm dsh-obsidian

Install

Inside DeepSeek Harness, with dsh-market

dsh plugin --profile web add dshmarket

Or from the command line

dsh plugin --profile web add dsh-obsidian

Installing runs third-party code with your own permissions — it can read your files, use your credentials and reach the network. Review the source first, and pin a commit (github:owner/repo#sha) when you can.

README

Connect DeepSeek Harness (dsh) to a local Obsidian vault. Because an Obsidian vault is just a folder of Markdown files on disk, your dsh agent can search, read, write, move, and trash notes directly — no MCP server, no OAuth.

中文 | English

What it does

Once dsh-obsidian is installed, your dsh agent can read and write a local Obsidian vault directly. On startup the plugin detects your vault (or reads the path you configured) and mounts 12 obsidian_* tools covering search, read, write, append, move, delete, and backlink lookups.

Features

  • Zero server — reads/writes the vault filesystem directly; no Local REST API community plugin, no standing MCP server.
  • Safe by default — deletes move notes into .trash/ (reversible), paths can't escape the vault root, and .obsidian/ is never touched.

How it works

dsh agent calls obsidian_* tools
   │
   ▼
VaultAccess interface
   └─ FsAccess — node:fs + hand-written frontmatter/wikilink parsing (default, pure filesystem)

On startup the plugin resolves the vault root as "explicit vaultPath wins, else auto-detect from obsidian.json"; when useCli is on and the CLI is detected, property:set/property:remove delegate to it and everything else stays on FsAccess; any CLI failure silently falls back to FsAccess.

Install

dsh plugin --profile web add dsh-obsidian

Replace web with the profile you run your agent in (web, headless, tui, …).

Update

Re-running add pulls the latest (latest):

dsh plugin --profile web add dsh-obsidian

Or pin a specific version:

dsh plugin --profile web add dsh-obsidian@0.2.0

Restart the harness (dsh web) or refresh the Web UI after updating; verify with dsh plugin --profile web list.

Uninstall

dsh plugin --profile web remove dsh-obsidian

Configuration

Key Default Description
vaultPath (auto-detected) Absolute path to the vault; leave empty to auto-detect the currently-open vault from obsidian.json
useCli false Delegate property:set/property:remove to the obsidian CLI when available
excludeDirs [".obsidian", ".git", ".trash"] Directories excluded from search and list

Tools

Tool Purpose
obsidian_list List notes in the vault (filter by subdirectory, limit results)
obsidian_search Full-text search with match lines + context (case-insensitive, .md only)
obsidian_read Read a note (body + parsed frontmatter)
obsidian_frontmatter Read only a note's YAML properties
obsidian_backlinks Find notes linking to a note via [[wikilinks]]
obsidian_write Create or overwrite a note (creates parent directories)
obsidian_append Append text to the end of a note
obsidian_move Move/rename a note (updates [[wikilinks]] in pure filesystem)
obsidian_delete Trash a note into .trash/ (reversible, never permanently deletes)
obsidian_set_property Set or update a single frontmatter property (YAML) on a note
obsidian_delete_property Remove a frontmatter property from a note
obsidian_tags List all tags in the vault with usage counts

All tool path arguments are relative to the vault root (e.g. Folder/note.md).

Safety

  • Path containment — every path argument is resolved and checked to stay inside the vault root; escapes (../ or absolute paths) are rejected.
  • Reversible deleteobsidian_delete only moves notes into the vault's .trash/, never permanently deletes.
  • Hands off .obsidian/ — search and list exclude .obsidian/, .git/, and .trash/ by default.
  • Preserves frontmatter and wikilinks — reads/writes don't break YAML properties or [[links]] (unless the task explicitly asks).

Requirements

Development

npm install
npm run build      # tsdown → lib/
npm run typecheck  # tsc --noEmit
npm test           # vitest

License

MIT © 2026 MingZeng

Content from the project README on GitHub ↗