
DeepSeek Harness 拆解教学课程(附上简单教学版实现项目)
Install Learn Dsh
No package.json found — installability could not be checked.
Not checked — and that is not the same as fine
package.json for this repository, so none of the publish spec rules could be applied. We do not know whether dsh plugin add activates anything here.Best-effort git install — unverified, may activate nothing
# 1. add the bundle to a profile — --profile my-profile points at $DSH_HOME/profiles/my-profile
dsh plugin --profile my-profile add github:onychen/learn-dsh
# 2. verify: the bundle should show up as a layer in the resolved config
dsh --profile my-profile --dump-config
# 3. boot the profile
dsh --profile my-profileStep 2 is the one that matters here: if --dump-config shows no new layer after the install, this repository is not a bundle and there is nothing to activate.
Before you run it
- A plugin runs with your permissions once loaded: it can read your files, use your credentials and reach the network. Tool approvals do not sandbox it.
- Installing from git resolves a moving branch. Pin a commit —
github:onychen/learn-dsh#<commit-sha>— so the code you reviewed is the code you install.
Prerequisites
- API key
- Required — see the repository README for which provider.
- Network access
- Not required at runtime.
- Language
- JavaScript
Install check
Every field the verdict was derived from, so you can re-derive it yourself
| Field checked | Result | Weight | What the spec says about it |
|---|---|---|---|
| package.json | missing | fatal | no package.json found in the repository |
- Verdict reason
- cannot audit without a package.json
- Rules applied from
- docs/user/develop/basic/publish.md
- Checked at
- 2026-08-15
From the README
Excerpt as published by the author, plain text, unedited
> 仿照 [learn-claude-code](https://github.com/shareAI-lab/learn-claude-code) 的渐进式教学风格, > 但**主线来自 DeepSeek Harness 自己的架构分层**,而不是照搬那 12 课。 DeepSeek Harness(下称 **dsh**)的世界观和"一个 while 循环里不断加东西"截然不同。 它的骨架只有几条: - **一切皆插件(Cordis)**:没有可打补丁的"特权核心"。模型适配器、工具注册表、 会话日志、甚至 agent loop 本身都是插件,向共享的 `ctx` 贡献服务、类型化事件和可回退副作用。 - **仅追加的 SessionEvent 日志是唯一真源**:模型看到的历史不是单独存的, 而是用 `deriveMessages()` 从事件日志**投影**出来的。"模型可见即已记录"。 - **Turn / Step 轮次**:`step` = 一次模型请求 + 它触发的工具调用;`turn` = 零或多个 step。 - **能力 seam**:一个可替换能力 = interface + implementation + consumer 三角色。 换一个 provider 就能整体换掉产品的一块能力。 - **可选能力挂在 seam 上,不进 loop 主干**:subagent、compaction、skills、jobs、goal 都是可选能力,各自是独立机制,不属于 agent loop 核心。 **和 learn-claude-code 最本质的区别**:原版是"循环不变、能力层层叠加"; dsh 是"**内核极薄、一切经由插件树 + 事件 + seam 组合**"。 所以本课主线不是"往循环里塞功能",而是"**先立起 Cordis 插件/事件/sea