Attach tables and documents (xlsx, csv, pdf, zip…) to the DSH composer via paste or drag-and-drop: files are saved into the session workspace and an @reference is inserted.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:yybukn/dsh-table-attach
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Paste or drag tables & documents (.xlsx, .csv, .pdf, .zip, …) into the
DSH web composer. The file is saved into the current session's workspace and an
@reference is inserted at the caret, so the agent reads the real file.
The official DSH composer only accepts images (PNG/JPG/WebP/GIF) on paste/drop. This plugin adds non-image file attachments.
Features
- Paste & drop: works for file pastes (
⌘Ca file, then paste) and drag-and-drop. - Any non-image file: spreadsheets, CSVs, documents, PDFs, archives, JSON, …
- Saves into the session workspace: files land in
<workspace>/attachments/(auto-renamed with a-1/-2… suffix on name clashes). - Inserts an
@reference: e.g.@attachments/report.xlsx(quoted as@"attachments/my report.xlsx"when the name contains spaces) — matching the host's @-mention grammar so the agent can read the file. - Safe by default: 50 MiB size cap, executable extensions blocked
(
.exe,.dll,.sh,.js, …), and path-traversal-proof file names. - Images untouched: PNG/JPG/WebP/GIF pastes/drops still go through the built-in image path.
- i18n: zh / en toasts and drop-hint overlay.
Install
Currently distributed from GitHub (npm publishing pending):
dsh plugin add github:yybukn/dsh-table-attach
For local development:
dsh plugin --profile web add /path/to/dsh-table-attach
Usage
- Open any session (it provides the workspace).
- Drag a
.xlsx/.csv/.pdf/.zip… into the composer, or copy a file and paste it into the composer. - A toast reports progress; on success the composer contains
@attachments/<file>. - Send the message — the agent can read the referenced file.
Pasting table cell text (copied out of Excel) is treated as ordinary text and passes through untouched; it is not converted into a file.
How it works
- Host side (
lib/index.js) registers a Typert Remote servicetableAttach.saveFile(agent, payload). It validates the payload, keeps the path inside the session workspace, de-duplicates file names and writes with0o644. It runs as a cordis plugin (no build step — plain ESM + zod). - Client side (
lib/client.js) is a web bundle. It interceptspaste/dragenter/dragover/dropat the document level before the conversation plugin's handlers, base64-encodes the file, calls the host remote, and inserts the@mentioninto the composer (which is a Lexical contenteditable — insertion goes throughexecCommand("insertText"), the samebeforeinputpath the editor itself uses).
Security
- Files larger than 50 MiB are rejected before bytes cross the wire.
- Executable extensions (
.exe,.dll,.app,.sh,.js,.jar, …) are blocked. - File names are sanitized (no directories, control characters, dotfiles or traversal), and the target path is verified to stay inside the workspace.
- The agent only ever sees the workspace-relative reference, never an arbitrary absolute path.
Development
dsh-table-attach/
├── lib/
│ ├── index.js # host: cordis plugin + Typert Remote service
│ └── client.js # browser: interception, upload, composer insertion
├── cordis.patch.yml # loader entry for the host bundle
├── dsh.plugin.json # plugin manifest
└── package.json # exports ./client for the web platform
The host runs in the DSH harness (Node); the client runs in the web GUI. When
installed from npm the host's peer deps (@deepseek-ai/cordis,
@deepseek-ai/dsh-typert-protocol, zod) resolve from the profile's shared
dependency closure. A local link: install outside the profile needs those
deps made resolvable (e.g. node_modules symlinks into the app bundle) — these
are not part of the package and are git-ignored.
License
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38796
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37348
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
yikart/AiToEarn#dsh-plugin-aitoearn★ 29024
Generate copy, images and short videos, and publish with one click to Douyin, Kuaishou, Xiaohongshu, WeChat Official, Bilibili, Facebook, TikTok and more, covering the full content lifecycle from creation to publishing and monetization.
superdesigndev/treg★ 10192
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6129
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
Hithink-Tech-Org/Financial-API#hithink-finance★ 4796
Query Hithink Finance data in DeepSeek Harness, view charts in chat, and save refreshable dashboards.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.