dsh-drag-graft

Codex-style drag-to-reference for DeepSeek Harness: drag a conversation row from the sidebar onto the chat area and it becomes a native session-reference chip in the composer draft, so you can keep typing around it before sending. Drag a workspace (folder) row instead and the draft gets that folder's path, so a whole directory can be handed to the model. The target session is matched by session id rather than by title, so duplicate or blank titles cannot insert the wrong conversation. The reference cap comes from the host (3 by default) and is read at runtime instead of being hard-coded, so a host-side raise is followed without changing the plugin. If the chip cannot be inserted, the plugin falls back to sending a reference-only message instead of failing silently.

Overview

Codex-style drag-to-reference for DeepSeek Harness: drag a conversation row from the sidebar onto the chat area and it becomes a native session-reference chip in the composer draft, so you can keep typing around it before sending. Drag a workspace (folder) row instead and the draft gets that folder's path, so a whole directory can be handed to the model. The target session is matched by session id rather than by title, so duplicate or blank titles cannot insert the wrong conversation. The reference cap comes from the host (3 by default) and is read at runtime instead of being hard-coded, so a host-side raise is followed without changing the plugin. If the chip cannot be inserted, the plugin falls back to sending a reference-only message instead of failing silently.

Installation

Install from npm

dsh plugin --profile web add dsh-drag-graft

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:yoyococo1234/dsh-drag-graft

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.