DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-upload-origin

w

dsh-upload-origin

Manifest valid

DSH host plugin that resolves the original local path of files uploaded to .dsh-uploads by matching name, size, and sha256.

hasBundlePatch

dsh-upload-origin

A host-side plugin for DeepSeek Harness that resolves the original local absolute path of a file the user dragged into the conversation.

Why

When a file is dragged into the web composer, the browser upload surface can send the file bytes and its display name, but it cannot expose the original absolute path to JavaScript. DSH stores the uploaded snapshot under:

<session cwd>/.dsh-uploads/<sessionId>/<sha256-16>-<name>

dsh-upload-origin runs on the DSH host, scans the session workspace and common user folders, and matches that snapshot against local files by name + size + sha256. The resolved original path is then injected into the system prompt for the current agent and is also available through a tool.

What it does

  1. Watches the current session's .dsh-uploads directory when a turn is assembled.

  2. Keeps only uploads that a human prompt actually referenced.

  3. Resolves each referenced upload against local files:

    • first through the official workspace file-reference index (ctx.fileReferences);
    • then through a bounded filesystem scan of the session cwd, Desktop, Documents, Downloads, OneDrive, and a shallow home scan.
  4. Injects a mapping block into the system prompt:

    [Uploaded files: original local paths]
    - uploaded: .dsh-uploads/session-.../7538541a1efdc6c6-report.docx
      original: C:\Users\Alice\Desktop\report.docx [exact]
      Prefer this original path when the user refers to their local file; the
      .dsh-uploads copy is a snapshot.
    
  5. Registers the resolve_uploaded_file tool for on-demand lookup.

Install

Install the prebuilt tarball from GitHub Releases:

dsh plugin --profile web add https://github.com/wlc114514/dsh-upload-origin/releases/download/v0.1.0/dsh-upload-origin-0.1.0.tgz

The package declares dsh.bundle, so it installs through the normal DSH bundle/profile flow.

Tool: resolve_uploaded_file

Arguments:

ArgumentTypeDescription
file_pathstring, optionalUploaded path, absolute or relative to the session workspace.
namestring, optionalOriginal file name to locate when no uploaded path is known.
search_rootsstring[], optionalExtra absolute directories to scan.
max_resultsinteger, optionalMaximum candidates to return (1-20, default 10).

The result contains the uploaded path, the original name, size, sha256, the best original path, confidence, candidates, scanned roots, and scan metadata.

Confidence values:

ConfidenceMeaning
exactName, size, and sha256 all match.
name+sizeName and size match; sha256 was not checked or differs.
name+size-hash-differsName and size match, but content has changed since upload.
name-only-size-differsSame name, different size.
name-onlySame name only. Verify manually.

Configuration

The plugin accepts these optional config fields in a bundle patch row:

- id: upload-origin
  name: 'dsh-upload-origin'
  config:
    maxSearchFiles: 250000
    searchTimeoutMs: 9000
    maxDepth: 12
    maxHashChecks: 30
    maxResults: 10
    recentUploadMs: 604800000
    maxRecentUploads: 8
    autoResolveTimeoutMs: 7000
FieldDefaultDescription
maxSearchFiles250000Maximum filesystem entries visited per resolution.
searchTimeoutMs9000Overall search deadline per resolution.
maxDepth12Directory depth for common roots.
maxHashChecks30Maximum candidate files whose content is hashed.
maxResults10Maximum candidates returned by the tool.
recentUploadMs604800000Only uploads newer than this are auto-resolved (7 days).
maxRecentUploads8Maximum recent uploads considered per prompt assembly.
autoResolveTimeoutMs7000Maximum wait for automatic prompt mapping per turn.

Limitations

  • Browsers do not expose the original absolute path during drag-and-drop. This plugin recovers it by matching the uploaded snapshot on the host.
  • If the original file was modified after upload, the sha256 will differ; the plugin falls back to name + size or name-only candidates.
  • Files outside the default roots are not found automatically. Pass search_roots to the tool or configure additional roots in a future version.
  • The uploaded copy remains the durable source of truth for reading; the original path is used when the user wants to edit their local file.

Security

  • Host-side only. No network calls.
  • No credentials are read, stored, or transmitted.
  • The plugin reads only local files whose names match the uploaded snapshot; content hashes are computed locally to confirm the match.
  • The resolve_uploaded_file tool is read-only.

License

MIT

Versions

Latest versionPublishedSize
0.1.0——

Comments

Loading…

Similar plugins

dsh-file-upload

by a903067276-rgb

One upload button plus drag-and-drop files into the conversation as local paths: save to project uploads/, path text into the input box, works with any vision tool

Tools & CapabilitiesTerminal & ClientsUI & ExperienceManifest valid

★ 11

↓ 836/wk

MIT

JavaScript

Sep 25, 2026

dsh plugin --profile web add dsh-file-upload

by lubenweimeiyoukaig

Local file upload: paperclip button and drag-and-drop, per-session storage under .dsh-uploads, and a read_document tool that pages text and OCRs images.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Sep 5, 2026

dsh plugin --profile web add dsh-file-upload-local

by l541402398

Upload arbitrary local files from the DeepSeek Harness Web composer and manage them in Settings.

UI & ExperienceManifest valid

★ 3

MIT

JavaScript

Aug 14, 2026

dsh plugin --profile web add dsh-file-uploads

Local plugin installer in the DSH web Settings: a file picker for .tgz plugin packages (multi-select) or a full machine path, installing them into the auto-detected profile via the official `dsh plugi

Tools & CapabilitiesManifest valid

★ 0

dsh plugin --profile web add dsh-local-installer

by Mooling0602

A file-upload plugin for the DeepSeek Harness web UI.

Terminal & ClientsTools & CapabilitiesUI & ExperienceManifest valid

★ 11

MIT

JavaScript

Sep 26, 2026

dsh plugin --profile web add dsh-web-file-uploader

by MST19711

Upload arbitrary files into a DSH session workspace (uploads/<sessionId>/) and let the agent deliver result files as clickable download cards in the conversation.

Manifest valid

★ 0

MIT

JavaScript

Sep 13, 2026

dsh plugin --profile web add @deepseek-ai/dsh-session-files