DeepSeek Harness Plugin

feng-yifan/dsh-plugins#dsh-vertical-layout

Stars ★ 1 Downloads (30d) 1,354 Category UI Enhancements Added 2026-10-18 npm dsh-vertical-layout

Portrait layout for desktop windows: when the browser window is portrait, navigation takes the full left column and the file/terminal panel moves to the upper right above the conversation, with a draggable splitter setting its height (initial height configurable). Phones and tablets are untouched.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-vertical-layout

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

dsh plugin --profile web add github:feng-yifan/dsh-plugins#path:/packages/dsh-vertical-layout

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

Portrait layout for DSH: on desktop screens only (never phones / tablets), when the browser window is in portrait orientation, the three columns are rearranged into "navigation on the left + file / terminal top-right + conversation bottom-right", giving the conversation its full width.

Layout behaviour

Environment Result
Desktop · landscape nothing changes (native three columns)
Desktop · portrait · right panel closed three columns are still rearranged for portrait, but the docked track height is 0 (only the open-button icon rotates, indicating the panel is on top)
Desktop · portrait · right panel open navigation fills the left column; file / terminal top-right, conversation bottom-right, with a draggable divider between them

Install

dsh plugin --profile web add dsh-vertical-layout

Restart dsh web after installing.

Config

Override the plugin row in the profile's cordis.patch.yml:

- id: vertical-layout
  name: dsh-vertical-layout
  config:
    enabled: true      # master switch, default true
    topRatio: 0.4      # initial docked height / window height, default 0.4 (clamped to 0.2–0.6)
    topMin: 220        # minimum docked height in px, default 220 (minimum 120)

The initial height comes from topRatio; it can then be dragged within the session (0.15–0.7 of the window height, never below topMin; values below 120 are treated as 120). Restart dsh web after changing the config.

Known limitations

  • With a very narrow window (roughly < 700px, depending on sidebar state), the right panel cannot be opened.
  • When the right panel is fullscreen the plugin stays out of the way; the panel covers the window as usual.
  • In portrait the right-column width handle is hidden (the width comes from "fill the top-right area"), and it returns in landscape; dragging the left navigation proportionally narrows the docked area.
  • The docked height only lasts for the session; after a refresh it returns to topRatio.
  • Phones / tablets skip this plugin entirely; use another solution for mobile portrait (e.g. dsh-web-mobile).

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.