跳过主要内容
H

dsh-zed-cc-workbench

handelxh/dsh-zed-cc-workbench

跨工作区的 DSH 会话总览:中文正文搜索、Zed 线程改名同步、归档管理,以及可在页面内终端恢复的 Claude Code 会话。

安装

dsh plugin --profile web add github:handelxh/dsh-zed-cc-workbench

README

Zed / Claude Code session workbench

icon

A DeepSeek Harness (DSH) bundle that adds a session workbench page to the left sidebar: one list for every local DSH session plus Claude Code sessions (CLI / VS Code / Zed ACP).

  • Cross-workspace overview: grouped by working directory, collapsible groups, "recently opened", running/stopped status.
  • Zed rename sync: the Host mirrors Zed's sidebar_threads table (rename override first), so a thread renamed in Zed shows the same name here.
  • Chinese-friendly search: in-browser substring search over a compact Host-built digest (user text, assistant text, tool-call name + arguments). No DSH search index required, so legacy session logs cannot block it.
  • Archive / unarchive behind a confirmation dialog (ctx.uiWorkspace.archiveSession). No delete action.
  • Claude Code sessions: lists ~/.claude/projects sessions with their surface (CLI / VS Code / Zed) and resumes one in an embedded terminal (xterm) inside the page: claude --resume <id>.

Install

From npm (once published):

dsh plugin --profile desktop add dsh-zed-cc-workbench

From this repository:

git clone https://github.com/handelxh/dsh-zed-cc-workbench
dsh plugin --profile desktop add "link:$(Resolve-Path .\dsh-zed-cc-workbench)"

Then add "dsh-zed-cc-workbench" to dsh.profile.bundles in %USERPROFILE%\.dsh\profiles\desktop\package.json (or enable it in Settings → Plugins) and restart DSH.

See docs/INSTALL.zh.md for a Chinese walkthrough.

How it works

  • Host half (index.js): mirrors Zed titles, builds a search digest from DSH session logs, and scans ~/.claude/projects for Claude Code sessions.
  • Client half (client.js): renders the page, reads Host projections through workspaceFiles, polls the session catalog, and mounts the embedded terminal through webTerminals.

Data written by the Host lives under <DSH_HOME>/storages/:

FileContents
zed-thread-titles.jsonZed thread titles / rename overrides
all-sessions-messages.jsonDSH message digest (user, assistant, tool-call name + arguments)
claude-sessions.jsonClaude Code session index + resolved CLI path
claude-messages.jsonClaude Code message digest

Conversation text is stored there in plain text to make search fast; no session file is modified. The plugin reads ~/.claude/projects, Zed's SQLite database (read-only), and DSH session logs.

Limitations

  • DSH hides its own right sidebar while a global page is shown, so the terminal is embedded in this page instead of the right sidebar.
  • Windows-first paths: Claude CLI resolution and Zed database locations are handled per platform, but only Windows was verified in depth.
  • Depends on internal DSH client services (sidebar.panellist, main slot, webTerminals, workspaceFiles); a DSH release may require updates.
  • No delete action: DSH's session persistence seam has no delete interface.

License

MIT. The embedded xterm.js 5.3.0 build is MIT; see THIRD_PARTY_NOTICES.md.

相关插件