Preface¶
When developing agents or plugins in DeepSeek Harness (DSH), workspace files are often scattered across multiple layers of directories. Relying solely on the system file manager or searching in external editors causes context to constantly switch away from DSH; furthermore, DSH itself does not expose a reusable global file search service. The community plugin dsh-file-finder (maintainer chzisnull) brings the VS Code habit of “find by filename / find by content” into the DSH client: search, browsing, preview, and lightweight editing are all completed within the same interface, while read and write operations still go through DSH’s workspace file system, rather than the plugin building its own storage.
The following describes the plugin based on its positioning, capabilities, installation, and usage. The factual basis is the GitHub repository and the Chinese README. The plugin is categorized as a Client in the SkillHub directory, and currently has 2 stars on GitHub. The npm package version in package.json is 0.11.0, and the license is MIT.
What is this¶
dsh-file-finder is a client plugin for DeepSeek Harness: it finds current workspace files by filename or file content within DSH, opens them using DSH’s right sidebar native preview, or reads and modifies them in the plugin’s built-in viewer or editor. The introduction matches the repository description: search files by name or content, customizable shortcuts, and in-app text editing.
In design, the plugin is purely additive: it does not register DSH’s built-in document renderers, right sidebar tabs, or Files tree overlays; traversal and read/write operations are completed server-side through DSH’s ctx.fs. After uninstallation, the DSH interface remains as is (see repository ADR 0001).
Core Features¶
Browsing and Searching¶
- Browse directories with an empty query: When there is no search term, it lists the current workspace directory (folders first, files second). Enter or → enters a subdirectory, Backspace goes back to the parent directory, and breadcrumbs allow jumping; starting to type switches to search, and clearing returns to the directory you were just browsing.
- Search by filename: Supports path fragments, such as
src/view. - Search by content: Each hit is on a separate line, with line numbers and context.
Esc goes back one layer at a time: first from the viewer/editor back to the directory where the file was opened, then up one level at a time, and finally closes the panel.
Opening Methods and Media¶
The global Opening Method (Settings → File Finder) determines where text files go after pressing Enter:
- Native Preview (default): DSH right sidebar, via
ctx.sidebarRight.openResource()anddsh-resource://file/session/<sessionId>/<path>. - Viewer: The plugin’s read-only interface, with syntax highlighting and in-file find.
- Editor: Writes back via
ctx.fs; if the file on disk is modified externally after opening, saving will refuse to overwrite, requiring a reload before saving.
⌘/Ctrl+Enter switches between “View” and “Edit”. Images, videos, audio, PDFs, HTML, and Markdown go to the plugin’s viewer regardless of the opening method; types that the viewer cannot render, such as Office documents and archives, fall back to native preview, with a prompt if unavailable. Native preview falls back to the viewer with an explanation if there is no active session or no right sidebar.
Shortcuts¶
The plugin registers commands in the DSH shortcut service but does not declare default bindings (to avoid conflicts with DSH’s built-in default keys causing startup failures); VS Code-style combinations are implemented by the plugin’s own key listeners:
| Action | Key |
|---|---|
| Search by filename | ⌘/Ctrl+P |
| Search by content | ⌘/Ctrl+Shift+F |
| Toggle Bot / Classic Agent (only if DS Bot is installed) | ⌘/Ctrl+Shift+B |
You can assign other keys to these commands in Settings → Edit Shortcuts. Note: DSH uses ⇧⌘F / Ctrl+Shift+F for forking sessions by default; if you use this plugin for content search and still need to fork, please rebind session.fork. In the web version, ⇧⌘B may conflict with the right sidebar toggle; the desktop version is relatively free. The settings page also provides a one-click trial for Open File Explorer (no default global shortcut).
Preview and Edit Details¶
- Built-in viewer: Videos support byte ranges and progress bar dragging; HTML runs in a sandboxed iframe; Markdown uses the DSH renderer, and relative-path images resolve to the workspace.
- The editor targets UTF-8 text of about 1 MB or less; binary files and
node_modules,.git, common build directories, etc., are excluded from search. Syntax highlighting falls back to plain text for files over about 200 KB (indicated in the title bar). - ⌘/Ctrl+F in the editor is for in-file find; ⌘/Ctrl hover/click supports “Go to Definition” within the same file (JS/TS, Python, Go, Rust, Java/C family, HTML anchors, etc.). Cross-file TypeScript resolution is a future plan.
Optional: DS Bot Bridging¶
If the launch manifest includes the ds-bot plugin, this plugin additionally provides a toggle between Bot mode and Classic Agent mode (⌘/Ctrl+Shift+B) and corresponding settings cards; if not installed, no commands are registered and no cards are shown. The bridging works by identifying the launch graph and operating DS Bot’s own UI, without patching DS Bot’s internal state.
Settings¶
Settings → File Finder includes: shortcut reference and trial, case sensitivity, extra ignored directories, filename/content result limits, global opening method, and reset to default; changes are saved automatically.
Installation and Activation¶
The plugin is published to npm with the package name dsh-file-finder. You can use it in DSH Settings → Plugins → Add Plugin:
dsh plugin add dsh-file-finder
Install from a local directory (modify the path for your machine):
dsh plugin add /Library/aiProject/dsh-file-finder
After installation, refresh the DSH page if the entry does not appear. The Agent side can also call a capability with the same name, with the tool name file_finder.
Typical Usage¶
- Open the target workspace in DSH and ensure the plugin is enabled.
- Press ⌘/Ctrl+P, enter a filename or path fragment, and press Enter to open; if it defaults to preview, press ⌘/Ctrl+Enter to enter the editor when you need to edit, and ⌘/Ctrl+S to save.
- Press ⌘/Ctrl+Shift+F to search content, and select a line in the results list to jump to the corresponding file and position.
- When not entering a search term, you can browse directories directly with the panel, combined with breadcrumbs and Esc to go back.
- In Settings → File Finder, adjust the opening method, ignored directories, and result limits; if there are conflicts with DSH shortcuts, rebind them in Settings → Edit Shortcuts.
Use Cases and Cautions¶
Suitable for developers who need to quickly locate files, glance at content, or make small changes alongside a DSH session. The plugin accesses the workspace with the current DSH process’s permissions; before installing, please read the source code and LICENSE to confirm it meets your security and compliance requirements.
The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory is a community site with no official affiliation with DeepSeek / High-Flyer. Rely on the npm package name or a Git repository you trust for installation sources.
Conclusion¶
dsh-file-finder brings filename/content search, directory browsing, multi-surface opening, and lightweight editing into the DSH client, reusing DSH’s native preview and ctx.fs to avoid competing for registration points with the core file interface. For further information, visit the SkillHub plugin page and GitHub: chzisnull/dsh-file-finder.