AI Agent Hub
Back to plugins
DragView preview

DragView

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install anzhaohao/DragView

Paste the following prompt into your AI chat to install this plugin:

Open the DeepSeek Harness shell and run dsh plugin install anzhaohao/DragView to install the plugin; its source is available at https://github.com/anzhaohao/DragView .

About this plugin

Referencing a local file inside a DSH chat session used to mean either pasting a file path by hand or copying the file into the workspace before telling the model where to look. DragView compresses both steps into a single drag-and-drop: pull a file from your file manager into the chat window and release. Based on the mode you chose — resolve looks up the real path without touching the original file, while copy duplicates the bytes into the workspace — a Codex-style attachment card appears above the input box, showing a type icon, the file name, its size, and a remove button.

Click the card to preview PDFs, plain text, code, video, and audio directly inside DSH; Office documents, archives, and other types open in the system default application. When you send the message, a plain-text file reference is prepended so the model can read it, yet the absolute path never leaks into the attachment DOM, the page title, or the browser console.

The plugin is aimed at engineers and researchers who routinely ask a DSH model to work with local source code, documents, or media. It deliberately leaves image attachments to the platform native pipeline and focuses on one job: getting a local file into the conversation context safely and cleanly. Path resolution walks through five progressive layers — registered workspace, system directories, shallow scan, OS index, and bounded recursion — and every preview or open call re-verifies the file identity so you are always looking at the exact file you dragged in.

Screenshots

Use Cases

  • Drag a local source file or document into chat so the model reads it without a hand-typed path
  • Reference a PDF, video, or Office file outside the workspace and preview it in-app before sending
  • Attach several files at once as unified Codex-style cards, keeping absolute paths out of the DOM, title, and console

Best For

  • Engineers who routinely ask a DSH model to work with local code, design docs, or media
  • Researchers who frequently reference files outside the workspace without altering the directory layout
  • Everyday DSH users who want a clean attachment experience and no file paths leaking into the browser or DOM