DeepSeek Harness Plugin

zzt0818/dsh-task-details

Stars ★ 1 Category UI Enhancements Added 2026-10-20

Task details sidebar for DeepSeek Harness: a "View task details" button under every finished turn opens a resizable right-sidebar panel showing that task's input files, intermediate artifacts, output files, tools and skills used, inferred languages, a step-by-step flow timeline, and the model provider with token usage and cache hit rate.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:zzt0818/dsh-task-details

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

English · 中文

Every finished turn in Chat gets a "View task details" button. It opens that task's detail panel in the right sidebar; the panel width is draggable, and widening it expands each file row into full detail (saved path, date, size, line count, whether it still exists).

What it is for: after a task ends, you should not have to scroll back through the transcript to see what it read, what it changed, which tools it used, and how many tokens it burned.

What the panel shows:

Block Implementation
The trigger A button under each task (conversation.chat.turnTail slot)
Input files Files this task read, plus the user's message text and attachment names
Intermediate artifacts Files under temp/build/.dsh directories, MEMORY.md memory files, session logs (.jsonl.zstd)
Output files Files this task wrote or delivered; each opens a preview
Tools / skills used Call count, failure count, average duration; skill invocations listed separately
Languages and shells Languages inferred from file extensions, shells executed, command count
Reusable? A verdict based on delivered files, script output, skill use, and project changes
Task flow A step-by-step timeline, one row per tool call, failures marked in red
Provider, model, usage, cache Provider/model, input/output/cache-read/cache-write/reasoning tokens, cache hit rate with a progress bar

Install

Published on npm. Either way works:

Harness plugin page (recommended): open Settings → Plugins, type the package name dsh-task-details into the install field, and install it in one click.

Command line:

dsh plugin add dsh-task-details

Named profile (Desktop already defaults to desktop, so this is usually unnecessary):

dsh plugin --profile desktop add dsh-task-details

Refresh the page after installing (restart the DeepSeek Harness desktop app if needed). Reopen any past task and the button appears at the bottom of it.

From a source checkout:

git clone https://github.com/zzt0818/dsh-task-details.git
dsh plugin add link:./dsh-task-details

Development

npm run build    # inline the modules into the single browser artifact client.js
npm test         # run the whole suite

client.js is generated by build.mjs. Do not edit it by hand.

Layout

File Role
index.js Host half: POST /api/plugins/ui-task-details/describe and GET .../journal
analyzer.js Pure functions: fold the session event stream into per-task inputs, tools, usage and files
model.js Address format, formatting, language inference, reuse verdict
details.js The panel view (with drag-to-resize) and the turn-tail button
preference.js Panel width preference, shared across tabs
styles.js Styles, built entirely from the host's --dsw-alias-* theme tokens
copy.js Chinese and English strings
icons.js Inline SVG icons (file types, skills, refresh, expand/collapse, etc.)
client-entry.js Browser-side registration: slots, tab type, styles, dictionaries
client.js Build artifact produced by build.mjs
cordis.patch.yml Bundle patch that inserts the Host plugin row
icon.svg / locale/*.json Plugin icon and display metadata

Design notes

  • The session journal is the source of truth. The panel reads sessions.binding(id).session.eventSource directly rather than the Chat transcript, so tool calls Chat folds away are still visible, and the panel stays correct after reopening a past task or reconnecting.
  • The Host half only adds what the browser cannot know: whether a path still exists, its size, modification time and line count, plus where DSH keeps memory files and session logs under .dsh.
  • The layout responds to width: 460px by default, file rows expand at ≥560px, and the panel becomes two columns at ≥700px. The width is stored in localStorage and shared by every details tab.
  • Theme-following: every colour comes from a host token, so light and dark mode both work. Aliases outside the public Theme contract fall back to a base token, so a missing alias never turns a surface transparent or black.
  • Manual refresh and retry: the toolbar refresh button re-reads file metadata immediately (on top of the quiet 30s poll); a journal read failure offers a Retry button that bypasses the cache.
  • Section navigation: headings carry count badges and collapse individually; one toolbar control collapses or expands all of them; clicking a top metric scrolls to its section, expands a collapsed target, and flashes it.
  • Copy path: the file-row copy button writes the real path (with a fallback when navigator.clipboard is unavailable) and shows a brief "Copied" confirmation.

Known limits

  • Inputs only count files a tool actually read, plus message attachments. Files you edit outside DSH are not recorded — that is an inherent limit of the session journal.
  • The panel only covers the part of the session the Chat has loaded. Older tasks need the Chat scrolled up first.
  • File paths in tool results come from <path> markers and file_path/path arguments. Files created by a > redirection in a plain command line cannot be identified statically; they are reported as "path not seen" rather than invented.

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.