Moonshile/moonshile-dsh-plugins--plugins-dsh-workspace-sort ↗★ 0
dsh-workspace-sort
DeepSeek Harness (DSH) bundle: re-sort sidebar workspaces by last activity once per day, stable within the day (侧边栏工作区顺序每日按最近活动刷新,当天稳定)
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Moonshile/moonshile-dsh-plugins#0b83b326db0f3c75c00d3c489aa279c20a48b478&path:plugins/dsh-workspace-sort说明文档
阅读完整 README ↗dsh-workspace-sort
English | 中文
Listed in: 0xsline/awesome-deepseek-harness · awesome-deepseekharness/awesome-deepseek-harness
DeepSeek Harness (DSH) plugin bundle: re-sorts the sidebar workspace order by last activity once per day; the order stays fully stable for the rest of the day.
Why
DSH's native workspace order is manual drag order (the durable workspaceIds array); the "Last updated" view option only sorts sessions inside a group. If every session event moved the owning workspace to the top, the order would jump around constantly. This plugin instead performs one full sort per calendar day: the day's first session event triggers the sort, after which nothing moves until the next day.
Install
Requires pnpm on your PATH — dsh plugin forwards profile package operations to pnpm.
dsh plugin --profile web add dsh-workspace-sort
Installs the npm package dsh-workspace-sort into the web profile and activates it as a bundle (the package declares dsh.bundle.patch). One command, no manual patch editing. Restart dsh web to mount the bundle layer.
Other profiles: replace web with the profile name, e.g. dsh plugin --profile add dsh-workspace-sort.
Behavior
- Trigger: the first
session/eventactivity of the calendar day (any session of a workspace produces a new event) - Ordering key: last-activity time per workspace accumulated since plugin start, full sort descending; workspaces with no recorded activity keep their relative order (stable sort)
- Stable within the day: no re-sort until the next day; manual drag order survives the rest of the day
- Persistence:
~/.dsh/workspace-sort-state.jsonrecords the last sorted date (DSH_HOMEoverrides the home directory) - Limitations: after a same-day server restart the first sort may have sparse activity data (accurate from the next day); ungrouped sessions do not participate
Development
pnpm install
pnpm test # node:test pure-function tests, no DSH runtime dependency
Publishing
cd plugins/dsh-workspace-sort
pnpm publish --access public