Introduction¶
When using DeepSeek Harness (DSH) to let AI modify notes within an Obsidian vault, two common issues arise: Obsidian might not be running, preventing sync tools (like Nutstore, Obsidian Sync, or Git plugins) from working, meaning changes are only pushed once you manually open the client; alternatively, multiple sessions writing to the same vault simultaneously can cause sync clients to merge changes incorrectly, resulting in duplicated paragraphs or merged headings. This article introduces the community plugin dsh-open-obsidian (by maintainer NOOBnoob163). It hooks into the DSH process to open the target vault at the appropriate time and implements write locks for concurrent writes to the same vault. It is important to emphasize: this is a DSH plugin, not an Obsidian plugin—installing it inside Obsidian will have no effect.
What is this?¶
dsh-open-obsidian is a client-side plugin designed for DeepSeek Harness. The current package version is 0.14.0, licensed under MIT, and hosted at NOOBnoob163/dsh-open-obsidian. The ecosystem philosophy of DeepSeek Harness is “everything is a plugin.” The plugin directory page is available at SkillHub. It is not affiliated with DeepSeek or High-Flyer, nor is it an official app store.
The plugin does two things with a unified goal: Ensure content written by the AI into the vault is actually persisted to disk and participates in synchronization.
Core Features¶
Automatically Open Obsidian Vault¶
When a DSH session’s working directory is located within an enabled Obsidian vault folder, the plugin will open this vault in Obsidian when you send the first human message in that session. Sync plugins only function when Obsidian is running, so opening the vault at the start of the conversation allows synchronization to proceed immediately.
It minimizes interruption as follows:
- Vault already open → No new window is created, and focus is not stolen;
- Obsidian already running → The new window is sent to the background, and focus is returned to you;
- Obsidian not running → It starts normally (window appearance is expected here).
There is also a write-time fallback: If files change in an enabled vault, the agent has recently worked in that vault, and Obsidian is not running, it will also attempt to open it. Lifecycle events such as session creation or reconnection will not trigger an open (dependency on session/created was removed in 0.7.0 to avoid popping up windows erroneously).
Write Lock: Only One Conversation Writes to a Vault at a Time¶
When two conversations write to the same vault simultaneously, cloud drives or Obsidian Sync might corrupt the changes (e.g., duplicate paragraphs, merged headings). The plugin enables a write lock by default: the lock is held for the duration of one full conversation turn; writes from other conversations are hard-blocked (zero bytes written) before tool execution and are queued. After the previous lock is released, the session at the front of the queue is notified; notifications may be stale, so the documentation suggests verifying if the workspace already has changes before retrying.
The write lock only takes effect when the AI is actively writing within the vault; sessions that are read-only, searching, or not writing files are unaffected. Sub-agents do not participate in separate locking. A conversation is considered stale and the lock is released if there is no activity for 30 minutes (configurable via writeLockStaleMinutes in settings; setting it to 0 means never auto-takeover). In cases of unrecognized tools or internal errors, the plugin always allows passage to avoid blocking normal operations erroneously.
The above logic is completed within the DSH process, documented as zero tokens, zero polling.
Requirements¶
| Item | Description |
|---|---|
| System | Windows only. Depends on Windows process/window interfaces, %APPDATA%\obsidian, and the URL protocol registered by Obsidian. |
| DSH | Requires exposure of internal interfaces used by the plugin; write locks also require the host to provide a tools/pre-execute hook. The plugin may need updates following DSH upgrades. |
| Obsidian | Desktop version 1.x; development and tested version 1.14.4. |
Installation and Activation¶
Please review the repository source code and MIT license before installing; the plugin runs with the current dsh process permissions, so only install from sources you trust.
Official one-command installation (--profile is mandatory, the default profile name is usually desktop):
dsh plugin --profile desktop add github:NOOBnoob163/dsh-open-obsidian
If dsh is not in your PATH, you can go to the DSH title bar App → Manage dsh commands… → Install to create a desktop shortcut pointing to the DSH bundled CLI.
The package declares a dsh.bundle, so DSH will automatically enable it after installation without manual configuration changes. Perform a cold start of DSH after installation (refreshing the page is not enough), then go to Settings → Obsidian Assistant to check the vaults you want to manage; if none are checked, nothing will trigger.
Typical Usage and Settings¶
- Install via the command above and cold-start DSH.
- Open Settings → Obsidian Assistant, and check the target vault in “Detected Vaults”; the panel will indicate whether the vault is already open, combining data from the currently running Obsidian instance.
- Create or open a session in the corresponding vault directory, send the first message, and observe if Obsidian opens as expected (already open vaults should be skipped).
- When multiple sessions write to the same vault simultaneously, if a write is blocked, you can check
%USERPROFILE%\.dsh\logs\dsh-open-obsidian\decisions.log(accessible via the panel); write lock related lines start withwritelock.
Common settings (changes are saved immediately, there is no separate save button):
| Setting | Default | Description |
|---|---|---|
| Auto-open Obsidian | On | Master switch |
| Detected Vaults (per-vault) | All unchecked | Only checked vaults participate in auto-open and write locks |
| Skip if target vault is open | On | Do nothing if vault is already open |
| Silently open new window | On | New window does not steal focus; if off, it jumps to foreground normally |
| Write Lock: Only one conversation writes at a time | On | If off, no concurrent write coordination |
| Advanced Options | — | Custom launch command, {vault} replaces the vault path; if empty, uses obsidian:// protocol |
Settings are persisted in %USERPROFILE%\.dsh\storages\dsh-open-obsidian.json. The settings panel is in a Chinese interface.
Use Cases and Notes¶
Who it is for: Users on Windows using DSH to directly modify Obsidian vaults and relying on sync plugins within Obsidian (Nutstore, Obsidian Sync, Git, etc.); scenarios needing to reduce the risk of “AI wrote but client wasn’t open/sync lag” and “multiple sessions writing to the same vault simultaneously.”
Important Notes:
- It is not an Obsidian plugin; do not install it into the Obsidian Community Plugins directory expecting it to work.
- Win32 only; it will not work on macOS / Linux.
- Relies on DSH internal interfaces; host version changes may cause failure, watch the repository issues.
- Obsidian opening a new window inherently steals focus; the plugin tries to be silent by “sending new window to background + stealing focus back”; there is still a brief flicker, if unacceptable, turn off “Silently open new window”.
- Silent opening depends on the bundled
bin/dsh-open-obsidian-silent.exe(Windows helper program).
Conclusion¶
dsh-open-obsidian incorporates “the vault must be open for sync to run” and “don’t write to the same vault with multiple conversations simultaneously” into the DSH session flow: the first message triggers opening, write locks hard-block concurrent writes, and decision logs are left for troubleshooting. Installation and details are subject to the repository README.