ZHOU-ZHIZHEN/dsh-terminal-context
dsh-terminal-context turns a text selection in DSH's built-in sidebar terminal into a native @file reference chip in the composer with one click (or Ctrl/Cmd+L): the captured text is written to a provenance-stamped capture file under the workspace and expanded to full text on send, instead of inlining long terminal logs.
dsh-terminal-context turns a text selection in DSH's built-in sidebar terminal into a native @file reference chip in the composer with a single click - or Ctrl+L (Cmd+L on macOS) while the selection is live. Selecting terminal text and focusing the composer reveals an 'Add to context' button docked above the composer (anchored there because xterm's highlight overlay cannot give a reliable bounding box once a selection collapses). The selected text is saved to <workspace>/.dsh/term-captures/terminal-<timestamp>.txt with a provenance header and inserted as a chip that expands to the full file on send, so long terminal logs do not bury the question, waste context tokens or lose provenance. Trailing padding that xterm adds to every row is stripped while visible text is preserved verbatim, and clearing the selection hides the button immediately so no stale capture is sent.
Install
dsh plugin --profile web add github:ZHOU-ZHIZHEN/dsh-terminal-contextCopied verbatim from the README's 'Option 2: Web Profile / CLI Install' block; the README also documents a desktop-GUI route (enter github:ZHOU-ZHIZHEN/dsh-terminal-context in Add Plugin) and a local tarball form.
Compatibility
A DeepSeek Harness Web client plugin; the README notes the desktop profile is managed exclusively by the Electron application, so CLI installs target the web profile while desktop users install via the GUI. The shortcut uses command ID dsh-terminal-context.add and can be rebound under Settings -> Keyboard shortcuts, and it does not claim Ctrl+L when no valid terminal selection exists.
Details
- Repo: ZHOU-ZHIZHEN/dsh-terminal-context
- Category: Web UI Enhancements
- Stars: 2
- Version: GitHub repo ZHOU-ZHIZHEN/dsh-terminal-context (2★); installed from GitHub (no npm package documented). Ships pre-bundled client code, so no local build steps or allowBuilds permissions are needed. English README with a Simplified Chinese translation.
Alternatives
0lidaxiang/dsh-plugin-greet · 147228/dsh-black-whale · 15828148/dsh-portable-launcher