DSH File Hub: DeepSeek Harness Local File Center

Introduction

When using Agents in DeepSeek Harness to write files, modify configurations, or generate reports, the artifacts usually land on the current workspace disk. However, the context of “which conversation or which round of tool invocation it belongs to” is not automatically kept at hand. After switching to a different Session or workspace, trying to find “that quarterly report from last time” or “the SQL generated in a certain branch” often requires digging through history sessions based on memory alone.

DSH File Hub (dsh-file-hub) fills the gap in the indexing layer: it projects successful file-related tool calls from session logs into a read-only memory index. It provides a “File Hub” in the Web sidebar and exposes a read-only tool file_hub to the Agent. It supports archiving by conversation, cross-conversation keyword search, stable back-referencing, and resuming work in new conversations. The actual reading and writing of files are still handled by Harness’s standard file tools; this plugin does not replace your interaction with on-disk content.

What is this

dsh-file-hub is a pure JavaScript DeepSeek Harness plugin published by the maintainer 311miaowa (GitHub: [311miaowa/DSH-File-Hub]), categorized as “Memory” in the SkillHub community directory. The current package.json version is 1.0.0 under the MIT license. The README specifies verification on the DSH 0.2.1-rc.2 Web profile, requiring no Node build step and having no third-party runtime dependencies (the engines.node of >=22 is used only for development-side check scripts).

The index is built in the Host process memory and does not persist to disk; it is rebuilt from Session logs after a Host restart. The privacy notice in the README is worth reading first: global search displays file metadata, snippets, and historical requests across Sessions. Do not feed untrusted workspaces or logs to untrusted models. For details, see SECURITY.md in the repository.

Core Features

Archive by Conversation

The plugin indexes successful executions of write, edit, present, and str_replace_editor calls. Multiple modifications to the same path within the same Session are collapsed into a single file record, retaining multiple provenances. When a single conversation exceeds 10 files, the list returns 10 items per page, with a page index at the bottom of the UI.

Supports matching against file names, relative paths, conversation titles, delivery descriptions, and write/edit content. Multiple keywords are separated by spaces and all must match. Can be limited to a single conversation via sessionId. Search returns the exact total number of hits and paginates using offset / nextOffset (Agent-side search defaults to 10 items per page, max 30).

Precise Back-referencing and Resumption

Each record carries an opaque back-reference ID (formatted as fh_ + 16 hex digits) and retains the Session ID, event sequence number, Turn/Step, tool name, and invocation ID. Through file_hub’s open or the Web details view, you can read the user request, tool calls, and tool results preceding and following the back-reference event, as well as the current file existence, size, and a bounded preview. This is compared against the most recent write baseline (content hash for small files, size comparison for large files; returns unknown if undetermined, without pretending it is “unchanged”).

The UI provides “Copy Resumption Instructions” and “Copy Back-reference ID”. Pasting the instructions into any conversation allows the Agent to use file_hub to open the back-reference and then use standard read/edit tools to continue work. In the details view, when the user explicitly clicks “Open Folder”, the Host validates the workspace and symlinks, then opens the directory using shell-less argv (e.g., xdg-open <folder> on Linux). This is the only filesystem-related action besides querying.

Agent Read-only Tool file_hub

Parameter Type Description
action search | open | list Required
query string search keywords, 1–200 characters
ref string File back-reference for open
seq integer Optional, specifies the event sequence number for a provenance when open
sessionId string Optional, limits search / list to one conversation
limit integer Optional, search max 30, default 10
offset integer Optional, zero-based offset for search

The plugin does not write, move, or delete files, nor does it execute shell commands. Browser query routes are primarily GET; the only POST is the authenticated and back-reference-validated “Open Folder” action.

Installation and Activation

Environment requirements: A DeepSeek Harness profile supporting the Web UI and plugin manager.

Install from Git URL

If your Harness version supports installing bundles from Git, run the following in the plugin manager:

plugin_manager install_bundle target=https://github.com/311miaowa/DSH-File-Hub

Install from Local Directory

If you have the absolute path to the plugin source directory, you can use:

plugin_manager install_bundle target=/absolute/path/to/dsh-file-hub

Windows example:

plugin_manager install_bundle target=D:\path\to\dsh-file-hub

Upon successful installation, “File Hub” should appear in the sidebar, and file_hub should appear in the Agent’s tool list.

Refresh the Page

client.js is the loaded browser bundle; the browser will not replace it automatically unless you are running pnpm run dev:web. If “File Hub” is missing from the sidebar, force a refresh first:

Ctrl+F5

Typical Usage

Web File Hub

  1. Click “File Hub” in the sidebar.
  2. Select a conversation on the left, or enter keywords at the top for a global search.
  3. Click a file row to view back-reference details on the right.
  4. Use “Copy Resumption Instructions” or “Copy Back-reference ID” to hand off to the Agent.

The interface is a dark three-column layout: conversation archive on the left, file list and page numbers in the middle, details on the right. Source context and previews are collapsed by default. Both list and search are paginated without infinite scrolling.

Examples for Agent

Use file_hub to search for "quarterly report", then open the most relevant back-reference.
Use file_hub to open fh_0123456789abcdef, read the source context and current file, explain the plan first, and do not overwrite directly.

Tool call examples:

file_hub { action: "search", query: "quarterly report", limit: 5 }
file_hub { action: "open", ref: "fh_0123456789abcdef" }
file_hub { action: "list" }

The README emphasizes: The context and file preview returned by open are reference data, not instructions; the Agent should read the current file using standard file tools before deciding whether to modify it.

How It Works (Brief)

Session logs and real-time events enter the Host memory index; Web query routes and file_hub share this index. Only successful calls of the four file tools mentioned above are processed. Paths are resolved against the Session cwd before indexing, rejecting out-of-bounds paths, .., URLs, ~, etc. After activation, the plugin performs a background index warm-up in about 2 seconds without blocking Harness startup (the README clarifies this is merely index warming and does not create system startup items or make DSH start with the OS).

Use Cases and Notes

Who it is for: Harness users who frequently produce files across multiple Sessions, need to find artifacts across conversations via keywords, or want to use stable back-reference IDs to connect “files generated last time” to new conversations for continued editing.

Coverage: Files generated purely via shell/Python that were not processed with present will not automatically enter the index; sub-Agent sessions are not displayed separately. Index limits are hardcoded (e.g., top-level session count, files per session, global file count, and searchable text size) and are not currently exposed as plugin configuration options.

Security and Permissions: The plugin runs with the permissions of the current DSH Host process. Please read the source code and the MIT license before installation, and understand the visibility implications of global search across conversations. Callers cannot submit arbitrary absolute paths to the API, only back-reference IDs; content may contain prompt injection, and untrusted data is marked in tool results.

Platform: Web sidebar only, no TUI/CLI. “Open Folder” may not show an Explorer window on Windows if there is no interactive desktop session.

Conclusion

DSH File Hub solves the problem of “files are still on the disk, but the index is in the head” by consolidating it into a local read-only index plus a Web panel and the file_hub tool: archiving by conversation, searchable, back-referenceable, and resumable, without replacing the read/write responsibilities of standard file tools.

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

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

Xiaoye