Claude Code-style workbench in DSH: workspace/session sidebar, streaming document-style transcript with unified tool cards and thinking, Markdown and Mermaid rendering, dark theme, and a draggable overlay panel backed by an in-host HTTP/WebSocket service.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:zhoulvyuan/dsh-plugin#path:/dsh-claude-code-web
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
This plugin publishes its README in Chinese only.
将 Claude Code 集成到 DeepSeek Harness(DSH) 中,以 DSH 原生插件的方式提供 Web 工作台。
功能
- 在 DSH 侧边栏提供 Claude Code 入口
- 悬浮式 Claude Code 工作台
- Workspace 管理
- Session / 对话管理
- 消息流式展示
- Tool 调用状态展示
- Thinking 内容展示
- Markdown、代码块等内容渲染
- Mermaid 文本绘图渲染(```mermaid 代码块自动渲染为图表,离线可用)
- WebSocket 实时通信
- 工作台拖动、缩放和最大化
- 一键弹出为独立浏览器窗口 / 标签页(移出 DSH 界面,默认浅色,随插件分发的 React 18 运行时离线可用)
- 本机 loopback 信任检查(拒绝跨源 / 跨站请求,保护本地 Claude 会话不被其他网页或进程调用)
工作原理
插件由宿主端和客户端两部分组成,并复用插件内部的 server.cjs 提供 HTTP / WebSocket 服务。
DeepSeek Harness
│
Plugin API
│
▼
┌────────────────────────┐
│ dsh-claude-code-web │
│ │
│ lib/index.js │
│ │ │
│ ▼ │
│ server.cjs │
│ HTTP / WebSocket │
│ ▲ │
│ │ │
│ lib/client.js │
│ │ │
│ ▼ │
│ Claude Code Web UI │
└────────┬───────────────┘
│
▼
Claude Code
宿主端
lib/index.js 是 DSH Plugin 入口,通过 DSH 的 webServer 注册:
/claudeHTTP 前缀路由/claude/api/streamWebSocket 路由
插件加载时初始化服务,卸载时释放 HTTP、WebSocket 以及服务端资源。
客户端
lib/client.js 提供浏览器端工作台,包括侧边栏入口和悬浮面板,并通过 /claude/api/* 与服务端通信。
服务端
server.cjs 负责 Claude Code Web 的核心 HTTP / WebSocket 处理逻辑。插件直接复用该服务,而不是要求额外启动一个独立的 Web 服务。
安装
环境要求及完整安装步骤请查看:
基本依赖:
- Node.js >= 18
- 支持
webServer.registerUpgrade的 DSH - Claude Code CLI
- 可用的 Anthropic 凭据
插件通过 DSH 官方 profile bundle 机制加载:dsh plugin --profile web add ... 安装到 profile 的 node_modules,并自动登记进 package.json 的 dependencies / dsh.profile.bundles(插件自带的 dsh.bundle.patch → cordis.patch.yml 完成注册);同时保留离线自包含包方式。详细步骤请参考 INSTALL.md。
配置
插件运行数据默认存储在用户目录 ~/.claude-code-web/,不会写入插件源码目录。
常见配置包括:
CLAUDE_BIN:Claude Code CLI 可执行文件路径CLAUDE_CODE_WEB_HOME:插件运行数据目录
具体配置及跨平台部署说明请查看 DEPLOY.md。
项目结构
dsh-claude-code-web/
├── README.md
├── INSTALL.md
├── DEPLOY.md
├── package.json
├── cordis.patch.yml
├── server.cjs
├── public/
│ └── mermaid.min.js # 随插件分发的 Mermaid 运行时(按需加载,离线可用)
└── lib/
├── index.js
└── client.js
设计目标
这个插件遵循一个核心原则:
DSH 作为宿主,Plugin 负责具体能力。
Claude Code Web 的 UI、HTTP / WebSocket 服务和相关运行逻辑尽可能封装在插件内部,避免修改 DSH 核心实现,同时保持插件可以独立维护和演进。
已知问题
插件依赖 DSH 当前提供的 Plugin API,因此不同 DSH 版本之间可能存在兼容性差异。使用前请确认当前 DSH 版本满足安装文档中的要求。
License
本插件当前未单独声明 License。使用或分发前请确认仓库实际许可协议。
Links
More in this category
Clearailhc/clearai-dsh★ 696
An agent preset for evidence-checked research: every step advances only through system-verified observations, L3+ claims go to an independent evaluator, and the session folds into a replayable ledger that grows into a browsable domain ontology. Requires DSH >=0.1.7-alpha.1.
FuRongJun-1999/dsh-memory★ 672
White-box AGI architecture exploration: metacognition (self-cognition loop), continual learning (knowledge flywheel), world model (condition space, spatiotemporal memory graph), self-improvement (bootstrap discipline), zero-LLM white-box pipeline, and auditable trust guardrails.
icyaaaww/dsh-soul★ 85
Records recurring task corrections and tool failures locally, then compiles them into changes to eight harness components through explicitly started evolution, paired baseline/candidate checks, trial activation and rollback. Includes a budget and audit ledger; requires Node.js 24+ and a compatible DSH 0.2.1-rc.2 or later 0.2.x host.
MichengAI/dsh-pua★ 72
Adds /pua to steer the agent to try another approach and verify results before claiming completion, with 15 company styles, persona modes, global and per-conversation settings, and an optional loop that continues until a verification command passes, the iteration limit is reached, or the user cancels.
kenz1117/dsh-engram★ 70
Cross-session long-term memory as a local SQLite store: dual scopes (user + per-git-origin project), hybrid FTS5 + local-vector retrieval fused with RRF, an evidence gate that forces an explicit sufficiency judgement, provenance audit chains, SM-2 spaced-repetition review, consolidation distillation and decay forgetting, and a nine-view "Memory Palace" sidebar panel. 22 narrow-parameter tools, no external service, no API key, no Docker.
pk14742952-AD/dsh-host-rsi★ 39
Reflective self-evolution plugin for local Qwen3.8 27B/3.8 Flash and online APIs: a coding-loop convergence steerer curbs Qwen3.8 27B/Flash repeated-verification deep-thinking to converge faster and cut thinking time; a five-state delivery guard detects and corrects stuck turns and infinite loops; model-agnostic host logic, mostly compatible with online APIs; per-use continual self-improvement with counter-reason self-checks, critic escalation, inverted-index memory retrieval, coding-loop convergence steering, and a five-state delivery guard.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.