Session workspace panel: a header chip opens a right-sidebar tab listing every repository the session touched, with each checkout's branch, path, remote address, merge requests and a single create-MR link; a master/main checkout is dropped when the same repository also has a dev checkout or the session moved on to another checkout of it.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:16bh/dsh-session-workspaces
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
A workspace panel for DeepSeek Harness sessions. Every repository and every checkout a session touched — which branch each one sits on, and which merge request it belongs to — is right there in the conversation header and the right sidebar, so you never have to scroll back through a transcript to remember what you actually worked on.

Repository names, paths and MR numbers in the screenshot are sample data.
Why
One session rarely stays inside one repository: fix an endpoint in the backend, adjust a label in the frontend, then poke at the plugin itself. When it is time to open the MR, roll back, or tell someone which branch you are on, you have to scroll back through the whole session — and the branch names and MR numbers you saw back then are no longer on screen.
dsh-session-workspaces keeps that information where you cannot miss it:
- A chip in the conversation header always names the session's workspaces and branches.
- Click it and the right sidebar opens the Workspaces panel, one card per workspace.
- Each card carries the branch, the path, the remote address and the merge request — the MR is one click away.
What you get
- Header chip: a single workspace reads
branch icon + repo name | branch; several read2 workspaces | 2 branches, with a small dot when any of them has a merge request. - Right-sidebar panel, one card per workspace: current branch, checkout path (one-click copy), remote address (the whole line is a link), MR button.
- The branch is the one the session works on: when a merge request exists, its source branch is shown; if the local checkout still sits on master, a grey
checkout mastertag follows, so the mismatch is explicit instead of confusing. - The MR is the only action on a card: an existing MR is a filled button (
#128/!34); only when there is none do you get the dashedNew MRfallback. The two are mutually exclusive. - One card per repository, not per checkout: when the repository also has a dev checkout, or the session moved on to another checkout of it, only the one actually in use is shown (see below).
- Read-only: the plugin reads the session log and runs
gitqueries; it never modifies a repository and never calls out on its own. - Light and dark themes, Chinese and English UI.
Install
From the plugin market
Once dsh-market lists it, install it from Plugins → Plugin market inside DSH.
Manual install
dsh plugin --profile desktop add github:16bh/dsh-session-workspaces
Pinned to a release:
dsh plugin --profile desktop add github:16bh/dsh-session-workspaces#v0.1.0
For local development use link: (edits take effect immediately, no reinstall):
dsh plugin --profile desktop add link:/path/to/dsh-session-workspaces
Restart DSH afterwards; the workspace chip then appears in the conversation header.
What the host returns
The host half (index.js) collects every working directory mentioned in the session log and probes each one with git:
| Field | Meaning |
|---|---|
name / path |
Workspace name and absolute path (same-named workspaces get a disambiguating suffix) |
branch / detached / commit |
Branch the checkout sits on, whether HEAD is detached, the commit |
mrBranch |
Source branch of the merge request seen in the session, resolved through refs/merge-requests/<iid>/head on the remote (GitHub: refs/pull/<iid>/head) |
isWorktree / worktreeName |
Whether the checkout is a git worktree, and its name |
remote |
Parsed hosting platform: host, projectPath, webBase, kind (gitlab / github / gitee / unknown) |
mrCreateUrl |
Deep link that opens a new MR with source_branch prefilled |
mrs |
MR links found in the session log, de-duplicated by iid |
current |
Whether this is the session's current working directory |
cwds / sources |
Matching working directories and where they were found |
The top level also carries cwd, gitAvailable and generatedAt.
Interaction
- Opening it: clicking the header chip asks the host to expand this plugin's tab in the right sidebar; clicking again only refocuses the already-open tab (there is exactly one). The tab stays mounted, so switching away and back keeps scroll position and refresh state.
- Several workspaces: cards stack vertically, and any workspace with an MR carries a dot; no extra switcher is needed.
- No git workspace: the chip reads
directory name | not git, and the panel explains the situation and shows the current working directory. - De-duplication: when one repository has both a dev checkout and a master/main checkout, or the session moved to another checkout of it, only the one in use is shown (next section).
- MR and "new MR" never coexist: a card that already has an MR does not also offer the create link — two links doing the same thing only make the reader choose. Nor are there secondary "open branch" / "repository home" buttons: the remote address line is the link.
- On a card: copy path, copy branch, refresh in the corner; the footer states where the data comes from and shows the reason when a refresh fails.
- Every external link uses
target=_blankandrel="noreferrer noopener".
One card per repository
A project often has two checkouts side by side: the dev one you actually work in, and a master/main one kept for comparison or release work. To a reader those are the same workspace, so the plugin de-duplicates before returning:
- Same repository is decided by the parsed remote (
host/projectPath, shared by both clones); without a remote it falls back torepositoryPath(a main checkout and its worktrees share the same git common directory). - When the group contains a dev branch (
dev,develop,development, and derived names such asdev-*,dev/*), the other checkouts that sit on master/main are dropped. - When the session moved on to another checkout of the same repository (a worktree, a feature clone), the checkouts that sit on master/main are dropped as well — they were the starting point, not the workspace.
- Membership follows the branch the checkout sits on, not the branch the card displays: a master checkout carrying a merge request displays that merge request's source branch, and judging it by the displayed branch would stop it from looking like master, leaving it beside the worktree of that same branch.
- The checkout the session is currently in is never dropped, even when it sits on master; a group matching neither rule is returned unchanged, so
feature + mainstill shows both.
De-duplication runs before name disambiguation — otherwise the two same-named checkouts would first be prefixed with their parent directories and no longer look like the same repository.
How workspaces are discovered
Evidence is collected from strongest to weakest, then each hit is collapsed to its repository with git rev-parse --show-toplevel (subdirectories and worktrees converge automatically):
- the session's
cwd, plusworking-directory/changeandplugin:worktree/createdevents in the session log; - directories named explicitly in tool arguments:
workdir,cwd,directory(bash / shell / worktree-style tools); - the
file_pathof file tools (read / write / edit / grep / glob), mapped to its repository; cd <dir>inside shell commands.
A directory that was only looked at with git -C <dir> log — never entered, never read or written — is not a workspace; that is someone else's repository. For the same reason arbitrary absolute paths in a command do not count (otherwise /opt/homebrew or node_modules would be collected), and one-off clones or worktrees under /tmp and /private/tmp are filtered out. A worktree is labelled with its worktree name, e.g. storefront-admin · 277c.
HTTP route
The host registers one read-only route:
GET /session-workspaces/api/state?sessionId=<id>
On success it returns { ok: true, value: { ... } }; on failure { ok: false, error: { code, message } } (an unknown session is a 404 not_found). Responses are cached per sessionId + session.seq.
How it is wired
cordis.patch.yml mounts the host half; client.js registers two client slots:
conversation.session.header.utilities— the header chip;sidebar.right.pane.tab— the panel body itself, together with asidebarRightTabs.registerentry forkind: 'session-workspaces'; the chip callssidebarRight.openTab('session-workspaces').
That is why dsh.client.inject in package.json has to include @deepseek-ai/dsh-client-ui-sidebar-right: the sidebar service must register before this plugin.
Limitations
- Workspaces come from the evidence above; the plugin does not scan the disk. A repository that was only glanced at — never entered, never read or written — does not show up.
- MRs are recognised from links in the session text (
/-/merge_requests/<id>,/pull/<id>); no platform API is queried. - A local
gitbinary is required; without it the panel degrades to a "not git" notice. - Without a recognisable remote (no origin, or a self-hosted domain) only the branch is shown, and no MR entry is offered.
License
MIT
Links
More in this category
ranxianglei/billion-context★ 8864
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4887
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 964
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 452
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 414
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 336
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.