dsh-obsidian-wikilinks: Make [[Note Links]] Clickable in DSH Sessions

Introduction

DeepSeek Harness (DSH) chat records are presented as plain text, containing numerous [[wiki links]] and Markdown links with special paths. These links do not render as blue, clickable styles in the current view—users can only copy-paste or open them manually. For agent developers who need to frequently reference notes, this experience reduces the efficiency of information retrieval.

What It Is

dsh-obsidian-wikilinks is a client-side plugin developed by maintainer JoeyRedfield. It converts [[wiki links]] and Markdown links containing paths with spaces in DSH session bodies into blue, clickable links that open the corresponding note when clicked: displaying the note content in DSH’s right-side preview panel (with frontmatter rendered as a field table), or handing it off to the system’s default application (Obsidian, if registered for .md) when used with Cmd/Ctrl/Alt + click.

Core Features

  • [[target]] resolution rules (Obsidian-style):
    1. Strips |alias, #heading, and ^block portions;
    2. Tries the path as-is first, then appends .md (both [[notes/foo]] and [[notes/foo.md]] are supported);
    3. If still unresolved, searches by filename in the current session workspace—the first .md match wins;
    4. Relative paths are resolved relative to the session workspace root; absolute paths are used as-is.
  • ![[image]] is an embed and is not treated as a note link; it remains unchanged.
  • Links with paths containing spaces (e.g., [Context Engineering](Learning/Agent & Automation/Notes.md)) are also converted into blue, clickable links, resolved the same way as wiki links.
  • External links (https:, mailto:), image links, and ![[embeds]] are never rewritten.
  • On hover, the resolved absolute path is displayed; unresolvable links are styled with a red dashed underline and a “note not found” tooltip.

Installation & Activation

The plugin is published on npm as pure JavaScript with no build step required.

Install from the plugin market:
- Open DSH, go to Plugins → Plugin Market, search for obsidian-wikilinks, and enable it.

Install from the terminal (requires specifying a profile):

dsh plugin --profile <profile> add dsh-obsidian-wikilinks

For local development, add the dependency and bundle to the profile’s package.json:

{
  "dsh-obsidian-wikilinks": "link:/path/to/dsh-obsidian-wikilinks"
}

After installation, refresh the page (⌘R).

Typical Usage

Type [[Projects/2026/Notes]] in a DSH session—the text becomes a blue link. Clicking it:
- Single click: opens the corresponding note in the right-side Markdown preview panel, with frontmatter displayed as a field table;
- Cmd/Ctrl/Alt + click: hands the file to the system’s default application (e.g., Obsidian).

For paths containing spaces:
- [Context Engineering](Learning/Agent & Automation/Context Engineering.md) → displayed as a blue, clickable link Context Engineering.

Use Cases & Caveats

Ideal for developers or agent engineers who frequently reference local notes within DSH sessions and want to quickly open the corresponding notes.

Caveats:
- The plugin runs with the permissions of the current DSH process; it is recommended to review the source code and license (MIT) before installing.
- Messages are only decorated after streaming output completes; during streaming, the text remains plain.
- Only session bodies are decorated; the right-side note preview panel and the input box are unaffected.
- There is no settings UI; to change the default single-click behavior to opening the default application, you must modify the external check in activate() within client.js.

Summary

dsh-obsidian-wikilinks fills the gap of clickable wiki links in DSH, reducing the manual steps needed to open notes and improving the efficiency of referencing and retrieval. For more details, see:
- Plugin directory page: https://www.skillhub.cn/plugins/JoeyRedfield/dsh-obsidian-wikilinks
- GitHub repository: https://github.com/JoeyRedfield/dsh-obsidian-wikilinks

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye