Load Claude Code assets into DSH at runtime — skills, slash commands, rules, permission rules (deny/ask/allow), subagents and hooks from .claude/, plus Claude Code plugins (plugin.json / marketplace / skills / agents / MCP), via an in-memory IR that keeps .claude as the source of truth and writes back only when you opt in. Also surfaces Claude Code auto-memory in the system prompt, read-only by default, with a write-back switch in the /cc-memory panel. Eight packages: one bundle that installs the whole set, plus the loader and six adapters (skills, permissions, agents, hooks, mcp, memory).
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-cc-ecosystem
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Bcy2020/dsh-cc-ecosystem
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 的 .claude/ 原样接进 DeepSeek Harness。 技能、命令、规则、权限、子代理、hooks、MCP、auto-memory 都按 Claude Code 自己的发现规则读取 —— 配置只维护一份。
Load your Claude Code .claude/ assets into DeepSeek Harness as-is — no migration, no second copy.
.claude是唯一事实来源。 插件只读它。唯一例外是 auto-memory 的可写模式(默认只读),打开后 DSH 才能新增或修改记忆文件。
30 秒上手
dsh plugin --profile <name> add dsh-cc-ecosystem@0.6.1
关于匿名安装统计:这些包在被 DSH 第一次使用时,以及每次升级到新版本时,会向我们发送一次统计 —— 只有包名、版本号和系统类型(Windows / Mac / Linux),用来知道有多少人在用。不包含任何能联系到你个人的信息,也不会读取你的项目、配置或对话。
装完重启 DSH。Web GUI 里把上面那段 包名@版本号 原样填进输入框即可。
务必带精确版本号。 pnpm 11 起默认的 minimumReleaseAge 会让发布不满 24 小时的版本被解析器静默跳过 —— 退出码照样是 0。升级也是用新版本号重装一次;DSH 目前没有「更新」按钮。
| 输入 | 实际装到 | 原因 |
|---|---|---|
dsh-cc-ecosystem / @latest |
上一个版本 | dist-tag 不豁免 |
dsh-cc-ecosystem@^0.6.0 |
新版本 | 范围内只剩一个候选时才豁免 —— 下一版即失效 |
dsh-cc-ecosystem@0.6.0 |
新版本 | 只有这种写法稳定 |
不想受这条策略约束,可在 profile 的 pnpm-workspace.yaml 里设 minimumReleaseAge: 0,或用 minimumReleaseAgeExclude 逐版本豁免(每发一版都要补,容易腐烂)。
它搬了什么
.claude/ 里的 |
在 DSH 里变成 |
|---|---|
skills/、commands/ |
技能与斜杠命令,命名与参数照旧 |
rules/ |
规则层,按整条祖先链合并 |
settings.json |
allow / deny / ask 权限门,求值顺序 deny → ask → allow |
agents/*.md |
可派发的子代理,正文即系统提示词 |
hooks/ |
command / http / mcp_tool / prompt / agent 五类处理器 |
~/.claude.json、.mcp.json |
MCP server 注册为 DSH 工具;/mcp 面板显示每个 server 读自哪个文件 |
projects/<slug>/memory/ |
系统提示里的记忆索引与 pinned 正文;/cc-memory 面板 |
| 插件目录 | 插件内的技能 / 命令 / agent / hooks / MCP 以命名空间并入 |
为什么不会各有一套
- 不复制、不写回:DSH 直接读
.claude,改完配置不需要同步第二份。auto-memory 的索引每次请求重读。 - 发现规则照 Claude Code:技能 / 命令 / 子代理从 cwd 向上走到 git 根(不含 home);规则与
.mcp.json走到文件系统根;settings.json只认<cwd>/.claude/。 - 来源可查:管理面板里每条配置都标出读自哪个作用域、哪个文件,排查不用猜。
Auto-memory:两个开关
在 /cc-memory 面板里:
- 启用 Memory 关掉 → DSH 完全看不到 auto-memory:没有提示段,也没有工具。
- 打开后才轮到 只读 / 可写。只读只提供
cc_memory_list/cc_memory_read;可写额外提供cc_memory_write/cc_memory_edit,沿用「写文件 → 改索引」两步法。 - 两个开关写入
$DSH_HOME/cc-memory-state.json,切换即时生效,无需重启。
兼容与限制
| 你的 DSH 版本 | 用哪个 |
|---|---|
0.1.5-rc.2 或 0.2.0-rc.2 |
v0.6.0(当前) —— 一条版本线同时兼容两代 |
0.1.0-rc.7 ~ 0.1.1-rc.2 |
v0.1.x(已停止维护) |
- Hooks 事件未全覆盖:Claude Code 的 31 个事件中,11 个有对应扩展点会真正触发;其余会被解析但不运行。
- 子代理的部分字段不生效:
isolation: worktree的子代理不会出现在目录里;hooks、mcpServers、permissionMode会被忽略并给出提示。 - LSP 桥接(mcpls)尚未实现。
- Bash 与 PowerShell 是独立工具:
Bash(rm -rf *)不覆盖 PowerShell,两者规则各自生效。
| 包 | 作用 |
|---|---|
| dsh-cc-ecosystem | 全家桶,一条命令装齐下面全部 |
| dsh-cc-skills | 技能、斜杠命令、rules |
| dsh-cc-permissions | CC 权限规则强制 |
| dsh-cc-agents | 子代理目录与派发 |
| dsh-cc-hooks | Claude Code hooks |
| dsh-cc-mcp | MCP 服务器与 /mcp 面板 |
| dsh-cc-memory | Auto-memory 与 /cc-memory 面板 |
| dsh-cc-loader | 共享解析层(自动安装,非插件) |
本地 checkout 的挂载示例见各适配器 README 里的 cordis.patch.yml 片段;变更记录见 CHANGELOG。
License
MIT
dsh-cc-skills 派生自 dsh-claude-compat(MIT, © biedongbin),dsh-cc-loader 的发现逻辑亦源自该基座;hooks 语义基于官方 @deepseek-ai/dsh-hook-protocol。
Links
More in this category
yjh051108/dsh-routing-suite★ 7021
One repository, three parts: a runtime injector for DSH plugin packages (inject, hot-reload, unload, promote a dev staging tool to the front, route self-heal, plus a settings-page plugin manager that lists, unloads and drags folders in to internalize), a task-aware reasoning-mode router agent preset (router-standard / router-spec / router-react), and a graded two-level task protocol whose six tools (commit_star, lock_stage, revise_do, edit_plan, mark_task, redteam_verdict) pin task state to disk. The injector implementation ships in-tree, so the install carries its own behaviour rather than a dependency list.
strukto-ai/mirage#dsh★ 3785
Swaps the filesystem and bash providers for a mirage virtual workspace: file tools and shell commands run over mounted resources (RAM, S3, Redis, Slack, Gmail, Notion, Postgres) instead of the host disk, with per-mount read/write/exec modes, per-command sandbox routing (monty, pyodide, quickjs in process; docker, e2b, daytona remote), and installed CLIs (git, gh, slack, linear, ntn, gws, or one you register) as head words in the virtual terminal.
first-fluke/oh-my-agent#dsh★ 1460
Runs project OMA checks before and after tool execution and when a turn tries to finish. Installs its OMA CLI dependency and initializes unconfigured projects on first use. Requires Node.js 22+; initial setup needs network access and project write access.
MichengAI/dsh-skills-manager★ 561
Manages local DeepSeek Harness skills in Settings and shows shared Agent skills as read-only.
hust-open-atom-club/oh-dsh★ 324
Community distribution: TUI, desktop, and Web UI as one bundle with layered installation.
Fishquito7/dsh-skill-mcp-panel★ 277
Manages DSH skills and MCP servers from the web settings: skill cards with hot enable/disable, workspace scopes, groups, batch migration and drag-and-drop import, plus stdio/HTTP MCP CRUD with connection tests, secret redaction and the unified dsh-panel CLI.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.