@ran-sh/dsh-crew 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,112 +1,93 @@
1
- <p align="center"><img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="120" /></p>
2
-
3
- <h1 align="center">DSH Crew</h1>
4
-
5
- <p align="center"><strong>Workers and reviewers for Codex Desktop and Claude Code, shown inside the official DeepSeek Harness UI.</strong></p>
6
-
7
- <p align="center"><a href="./README.md"><b>English</b></a> · <a href="./README.zh.md">简体中文</a></p>
8
-
9
- ## Quick start
10
-
11
- Requirements: Node.js; Git is required for worktree isolation.
12
-
13
- ```bash
14
- npm install -g @ran-sh/dsh-crew@latest
15
- dsh-crew install
16
- dsh-crew integrate
17
- ```
18
-
19
- Start the official Harness on port 3080 as usual:
20
-
21
- ```bash
22
- npx -y @deepseek-ai/dsh web --host 127.0.0.1 --port 3080
23
- ```
24
-
25
- Open <http://127.0.0.1:3080> and go to the single **Settings → DSH Crew** entry. The official 3080 process is the daily console; Crew work stays in the isolated backend at `127.0.0.1:3210`. Use **Open 3210 Crew Harness →** only for low-level Provider and Harness Model settings.
26
-
27
- The shared client is surface-aware: 3080 renders the complete Crew control plane, host readiness, and task status; 3210 renders only a minimal Crew runtime panel while its native Harness menus continue to own Providers, Harness Models, Agent presets, and low-level settings. Detection uses the structured bridge/runtime endpoints, not a hard-coded browser port, and fails closed when evidence is missing. See [UI surface architecture](./docs/ui-surfaces.md).
28
-
29
- ## Configure
30
-
31
- 1. Click **Refresh Harness Models**.
32
- 2. Set the model order for Worker and Reviewer.
33
- 3. Keep Worker on **Auto** for automatic delegation.
34
- 4. Reviewer defaults to **Manual**; enable automatic review only when wanted.
35
- 5. Keep **worktree** isolation for coding tasks.
36
-
37
- With one configured model, both roles simply use that model. With several models, each role tries its ordered list and falls back to the next available model. Settings modules are collapsible and show their effective state while closed. The task section shows a compact Worker/Reviewer table plus process-local model call counts, sources, and last-call times; prompts, results, and credentials are not collected for this overview.
38
-
39
- ## Use from Codex or Claude
40
-
41
- ```text
42
- Use ds-worker to implement this change and run the tests.
43
- Use ds-reviewer to review the result.
44
- ```
45
-
46
- Legacy `ds-flash` and `ds-pro` aliases remain compatible.
47
-
48
- ## Results and reviews
49
-
50
- Crew returns a compact, machine-readable Result Contract by default: status,
51
- tests, changed files, review verdict, model-selection trace, artifact references,
52
- and canonical lifecycle events. Raw agent prose and full patches are not copied
53
- through every hand-off. An automatic Reviewer receives a bounded evidence
54
- capsule and inspects the isolated workspace directly.
55
-
56
- MCP callers can request `detail: "full"` on `dsh_run_worker` or
57
- `dsh_worker_result` for explicit debugging and recovery. Contract details are in
58
- [Job contracts and information flow](./docs/job-contracts.md).
59
-
60
- ## Common commands
61
-
62
- ```bash
63
- dsh-crew status # installation and integration health
64
- dsh-crew inspect # machine-readable capabilities and readiness
65
- dsh-crew jobs list # machine-readable jobs
66
- dsh-crew jobs watch <job-id> --after 0
67
- dsh-crew update # update and repair enabled integrations
68
- dsh-crew integrate # connect official 3080 UI to isolated 3210 Crew
69
- dsh-crew detach # remove only the 3080 bridge
70
- dsh-crew uninstall # remove Crew, keep config and backups
71
- ```
72
-
73
- `dsh-crew uninstall --purge` also removes Crew configuration and backups.
74
-
75
- If you prefer a completely separate UI, run `dsh-crew detach`, then start the isolated profile directly:
76
-
77
- ```powershell
78
- $env:DSH_HOME = "$HOME\.config\dsh-crew\harness"
79
- & "$env:DSH_HOME\runtime\node_modules\.bin\dsh.cmd" --profile dsh-crew --host 127.0.0.1 --port 3210
80
- ```
81
-
82
- The bridge backs up the official `web` profile before its first change and registers only a lightweight proxy/client package. The full Crew Hub, model execution, config, and credentials stay under:
83
-
84
- ```text
85
- ~/.config/dsh-crew/harness
86
- profile: dsh-crew
87
- ```
88
-
89
- For launchers at `<= 0.3.3`, first refresh the launcher because the old updater cannot discover newer releases and cannot be retroactively fixed:
90
-
91
- ```bash
92
- npm install -g @ran-sh/dsh-crew@latest
93
- dsh-crew update
94
- ```
95
-
96
- ## Source development
97
-
98
- ```bash
99
- git clone https://github.com/Ran-sh/dsh-crew.git
100
- cd dsh-crew
101
- node scripts/setup.mjs install
102
- node --test test/*.test.mjs
103
- pnpm run build:client
104
- node scripts/setup.mjs uninstall
105
- ```
106
-
107
- More detail: [Changelog](./CHANGELOG.md) · [UI surfaces](./docs/ui-surfaces.md) · [Readiness matrix](./docs/readiness-matrix.md) · [Job contracts](./docs/job-contracts.md)
108
- · [GPT-first extension](./docs/gpt-relay-extension.md)
109
-
110
- ## License
111
-
112
- MIT
1
+ <p align="center"><img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="112" /></p>
2
+
3
+ # DSH Crew
4
+
5
+ Workers and independent reviewers for Codex Desktop, Claude Code, and ZCode, with daily controls inside the official DeepSeek Harness UI.
6
+
7
+ [English](./README.md) · [简体中文](./README.zh.md)
8
+
9
+ ## Quick start
10
+
11
+ Requirements: Node.js; Git is also required for worktree isolation.
12
+
13
+ ```bash
14
+ npm install -g @ran-sh/dsh-crew@latest
15
+ dsh-crew install
16
+ dsh-crew integrate
17
+ ```
18
+
19
+ On Windows, installation also creates a per-user login-start entry. It starts the isolated Crew backend on 3210 and the official UI on 3080 without opening a browser. Open <http://127.0.0.1:3080> when you need the console.
20
+
21
+ ```bash
22
+ dsh-crew status
23
+ dsh-crew inspect
24
+ ```
25
+
26
+ - **3080**: daily console, Crew settings, Codex/Claude readiness, jobs.
27
+ - **3210**: isolated Crew backend, Providers, Harness Models, low-level Harness settings.
28
+ - **Codex / ZCode**: installation adds managed capability-aware policy blocks and dispatch roles. Existing user instructions remain untouched.
29
+ - **ZCode**: uses `~/.zcode/cli/config.json` when native MCP servers exist, otherwise the compatible `~/.agents/mcp.json` source.
30
+
31
+ ## Configure and use
32
+
33
+ In **Settings → DSH Crew**, refresh Harness Models and order the Worker and Reviewer model lists. One configured model is used directly; several models are tried in your chosen order. Worker can run automatically. Reviewer defaults to manual.
34
+
35
+ Ask Codex or Claude naturally:
36
+
37
+ ```text
38
+ Use ds-worker to implement this change and run its tests.
39
+ Use ds-reviewer to review the result.
40
+ ```
41
+
42
+ Codex first discovers the live Crew capability/readiness contract. If it selected Crew and Crew becomes unavailable, it pauses and asks whether to repair Crew or continue locally; it does not silently fall back.
43
+
44
+ ## Commands
45
+
46
+ ```bash
47
+ dsh-crew status # installation and integration health
48
+ dsh-crew inspect # live capabilities and readiness
49
+ dsh-crew jobs list # jobs and Result Contracts
50
+ dsh-crew jobs watch <id> --after 0
51
+ dsh-crew update # update and repair enabled integrations
52
+ dsh-crew integrate # add the official 3080 bridge
53
+ dsh-crew detach # remove only the 3080 bridge
54
+ dsh-crew uninstall # remove managed files; keep config/backups
55
+ dsh-crew uninstall --purge # also remove config/backups
56
+ ```
57
+
58
+ The official `web` profile receives only a lightweight bridge. The Crew runtime, models, config, and credentials stay isolated under:
59
+
60
+ ```text
61
+ ~/.config/dsh-crew/harness
62
+ profile: dsh-crew
63
+ ```
64
+
65
+ ## Install from source
66
+
67
+ Use this path to install the current GitHub `main` before it is published to npm:
68
+
69
+ ```bash
70
+ git clone https://github.com/Ran-sh/dsh-crew.git
71
+ cd dsh-crew
72
+ node scripts/setup.mjs install
73
+ node scripts/setup.mjs status
74
+ ```
75
+
76
+ Verify and remove it with:
77
+
78
+ ```bash
79
+ node --test test/*.test.mjs
80
+ pnpm run build:client
81
+ node scripts/setup.mjs uninstall
82
+ ```
83
+
84
+ For launchers at `<= 0.3.3`, refresh the launcher first. The old updater cannot discover newer releases and cannot be retroactively fixed:
85
+
86
+ ```bash
87
+ npm install -g @ran-sh/dsh-crew@latest
88
+ dsh-crew update
89
+ ```
90
+
91
+ Installation ownership and rollback details: [Installation plan](./docs/installation.md). Architecture contracts: [UI surfaces](./docs/ui-surfaces.md) · [Readiness](./docs/readiness-matrix.md) · [Jobs and information flow](./docs/job-contracts.md).
92
+
93
+ MIT
package/README.zh.md CHANGED
@@ -1,111 +1,93 @@
1
- <p align="center"><img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="120" /></p>
2
-
3
- <h1 align="center">DSH Crew</h1>
4
-
5
- <p align="center"><strong>让 Codex Desktop 和 Claude Code 使用 Worker / Reviewer,并统一显示在官方 DeepSeek Harness 界面中。</strong></p>
6
-
7
- <p align="center"><a href="./README.md">English</a> · <a href="./README.zh.md"><b>简体中文</b></a></p>
8
-
9
- ## 快速开始
10
-
11
- 需要 Node.js;使用 worktree 隔离还需要 Git。
12
-
13
- ```bash
14
- npm install -g @ran-sh/dsh-crew@latest
15
- dsh-crew install
16
- dsh-crew integrate
17
- ```
18
-
19
- 照常在 3080 端口启动官方 Harness:
20
-
21
- ```bash
22
- npx -y @deepseek-ai/dsh web --host 127.0.0.1 --port 3080
23
- ```
24
-
25
- 打开 <http://127.0.0.1:3080>,进入唯一的 **设置 → DSH Crew**。3080 是日常控制台;Crew 的任务与模型执行继续隔离在 `127.0.0.1:3210`。只有配置底层 Provider 和 Harness Models 时才点击“打开 3210 Crew Harness →”。
26
-
27
- 共享客户端会识别当前 surface:3080 显示完整 Crew 控制面、宿主就绪度和任务状态;3210 的 DSH Crew 入口只显示最小运行时诊断,Provider、Harness Models、Agent 预设和底层设置仍由 Harness 原生菜单管理。识别依赖结构化 bridge/runtime 接口,不硬编码浏览器端口;证据缺失时会保守隐藏控制面。详见 [UI surface 架构](./docs/ui-surfaces.md)。
28
-
29
- ## 配置
30
-
31
- 1. 点击“刷新 Harness 模型”。
32
- 2. 分别设置 Worker 和 Reviewer 的模型顺序。
33
- 3. Worker 保持 **Auto**,即可自动委派。
34
- 4. Reviewer 默认 **Manual**;确实需要自动复审时再开启。
35
- 5. 编码任务建议保持 **worktree** 隔离。
36
-
37
- 只配置一个模型时,两个角色直接使用它。配置多个模型时,每个角色按自己的排序调用,失败后依次回退。设置模块可以展开/收起,收起后仍显示当前状态。任务区用紧凑表格显示 Worker/Reviewer,并聚合当前进程内的模型调用次数、来源和最近调用时间;不会为此采集提示词、结果或凭据。
38
-
39
- ## Codex 或 Claude 中使用
40
-
41
- ```text
42
- 使用 ds-worker 实现这个改动并运行测试。
43
- 使用 ds-reviewer 审查结果。
44
- ```
45
-
46
- 旧的 `ds-flash`、`ds-pro` 别名仍可使用。
47
-
48
- ## 结果与复审信息流
49
-
50
- Crew 默认返回紧凑、机器可读的 Result Contract:状态、测试、改动文件、
51
- Reviewer 结论、模型选择轨迹、候选引用和规范化生命周期事件。Worker
52
- 整段原始回答和完整 patch 不会在每次交接时重复传递;自动 Reviewer 只接收
53
- 有大小上限的证据胶囊,并直接检查隔离工作区。
54
-
55
- MCP 调用方如需排障或恢复,可以在 `dsh_run_worker`
56
- `dsh_worker_result` 中显式传入 `detail: "full"`。完整契约见
57
- [任务契约与信息流](./docs/job-contracts.md)。
58
-
59
- ## 常用命令
60
-
61
- ```bash
62
- dsh-crew status # 查看安装与集成状态
63
- dsh-crew inspect # 输出机器可读的能力与就绪度
64
- dsh-crew jobs list # 输出机器可读的任务列表
65
- dsh-crew jobs watch <job-id> --after 0
66
- dsh-crew update # 更新并自动修复已启用的集成
67
- dsh-crew integrate # 将官方 3080 界面连接到隔离的 3210 Crew
68
- dsh-crew detach # 只移除 3080 桥接
69
- dsh-crew uninstall # 卸载 Crew,保留配置和备份
70
- ```
71
-
72
- `dsh-crew uninstall --purge` 才会同时删除 Crew 配置和备份。
73
-
74
- 如果想继续使用完全独立的界面,先运行 `dsh-crew detach`,再直接启动隔离 profile:
75
-
76
- ```powershell
77
- $env:DSH_HOME = "$HOME\.config\dsh-crew\harness"
78
- & "$env:DSH_HOME\runtime\node_modules\.bin\dsh.cmd" --profile dsh-crew --host 127.0.0.1 --port 3210
79
- ```
80
-
81
- 桥接首次修改前会备份官方 `web` profile,并且只注册轻量代理/客户端包。完整 Crew Hub、模型执行、配置和凭据仍位于:
82
-
83
- ```text
84
- ~/.config/dsh-crew/harness
85
- profile: dsh-crew
86
- ```
87
-
88
- 对于 `<= 0.3.3` 的旧启动器,请先刷新启动器;旧 updater 无法发现新版本,也无法被追溯修复:
89
-
90
- ```bash
91
- npm install -g @ran-sh/dsh-crew@latest
92
- dsh-crew update
93
- ```
94
-
95
- ## 源码开发
96
-
97
- ```bash
98
- git clone https://github.com/Ran-sh/dsh-crew.git
99
- cd dsh-crew
100
- node scripts/setup.mjs install
101
- node --test test/*.test.mjs
102
- pnpm run build:client
103
- node scripts/setup.mjs uninstall
104
- ```
105
-
106
- 更多资料:[Changelog](./CHANGELOG.md) · [UI surfaces](./docs/ui-surfaces.md) · [Readiness Matrix](./docs/readiness-matrix.md) · [任务契约](./docs/job-contracts.md)
107
- · [GPT-first 扩展接入](./docs/gpt-relay-extension.md)
108
-
109
- ## License
110
-
111
- MIT
1
+ <p align="center"><img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="112" /></p>
2
+
3
+ # DSH Crew
4
+
5
+ Codex Desktop、Claude Code ZCode 使用 Worker / Reviewer,并在官方 DeepSeek Harness 界面中完成日常控制。
6
+
7
+ [English](./README.md) · [简体中文](./README.zh.md)
8
+
9
+ ## 快速开始
10
+
11
+ 需要 Node.js;使用 worktree 隔离还需要 Git。
12
+
13
+ ```bash
14
+ npm install -g @ran-sh/dsh-crew@latest
15
+ dsh-crew install
16
+ dsh-crew integrate
17
+ ```
18
+
19
+ Windows 安装会同时创建当前用户的登录启动项:后台启动隔离的 3210 Crew 和官方 3080 界面服务,但不会自动弹出浏览器。需要时打开 <http://127.0.0.1:3080>。
20
+
21
+ ```bash
22
+ dsh-crew status
23
+ dsh-crew inspect
24
+ ```
25
+
26
+ - **3080**:日常控制台、Crew 设置、Codex/Claude 就绪状态、任务列表。
27
+ - **3210**:隔离 Crew 后端、Provider、Harness Models 和底层 Harness 设置。
28
+ - **Codex / ZCode**:安装程序会加入可卸载的能力感知规则区块和 dispatch 角色,不改动已有个人规则。
29
+ - **ZCode**:已有原生 MCP 服务时使用 `~/.zcode/cli/config.json`,否则兼容使用 `~/.agents/mcp.json`。
30
+
31
+ ## 配置与使用
32
+
33
+ 进入 **设置 → DSH Crew**,刷新 Harness Models,然后分别排列 Worker Reviewer 的模型顺序。只配置一个模型时直接使用;配置多个模型时按你的排序依次尝试。Worker 可以自动调用,Reviewer 默认手动。
34
+
35
+ 直接告诉 Codex Claude:
36
+
37
+ ```text
38
+ 使用 ds-worker 实现这个改动并运行测试。
39
+ 使用 ds-reviewer 审查结果。
40
+ ```
41
+
42
+ Codex 会先读取 Crew 的实时能力与就绪合同。如果已经选择 Crew、但 Crew 变得不可调用,它会暂停并询问“修复 Crew 后继续”还是“由 Codex 本地继续”,不会静默降级。
43
+
44
+ ## 常用命令
45
+
46
+ ```bash
47
+ dsh-crew status # 安装和集成状态
48
+ dsh-crew inspect # 实时能力与就绪度
49
+ dsh-crew jobs list # 任务与 Result Contract
50
+ dsh-crew jobs watch <id> --after 0
51
+ dsh-crew update # 更新并修复已启用集成
52
+ dsh-crew integrate # 接入官方 3080
53
+ dsh-crew detach # 只移除 3080 桥接
54
+ dsh-crew uninstall # 移除受管文件,保留配置/备份
55
+ dsh-crew uninstall --purge # 同时移除配置/备份
56
+ ```
57
+
58
+ 官方 `web` profile 只安装轻量桥接。Crew 运行时、模型、配置与凭据隔离在:
59
+
60
+ ```text
61
+ ~/.config/dsh-crew/harness
62
+ profile: dsh-crew
63
+ ```
64
+
65
+ ## 从源码安装
66
+
67
+ 如果要在 npm 发布前安装 GitHub `main`:
68
+
69
+ ```bash
70
+ git clone https://github.com/Ran-sh/dsh-crew.git
71
+ cd dsh-crew
72
+ node scripts/setup.mjs install
73
+ node scripts/setup.mjs status
74
+ ```
75
+
76
+ 验证与卸载:
77
+
78
+ ```bash
79
+ node --test test/*.test.mjs
80
+ pnpm run build:client
81
+ node scripts/setup.mjs uninstall
82
+ ```
83
+
84
+ 对于 `<= 0.3.3` 的旧启动器,请先刷新启动器。旧 updater 无法发现更新,也无法被追溯修复:
85
+
86
+ ```bash
87
+ npm install -g @ran-sh/dsh-crew@latest
88
+ dsh-crew update
89
+ ```
90
+
91
+ 安装归属与回滚细节见[安装方案](./docs/installation.md)。架构合同:[界面分工](./docs/ui-surfaces.md) · [就绪矩阵](./docs/readiness-matrix.md) · [任务与信息流](./docs/job-contracts.md)。
92
+
93
+ MIT
@@ -0,0 +1,92 @@
1
+ # Global capability-aware delegation policy
2
+
3
+ The main Codex agent owns the user's task from planning through final delivery.
4
+ DSH Crew is an execution and review capability that Codex may use after
5
+ discovering what the current environment actually supports.
6
+
7
+ ## Discover capabilities before delegation
8
+
9
+ - Before delegating substantial work, query DSH Crew's authoritative live
10
+ configuration, capability, and readiness surfaces.
11
+ - Discover capabilities dynamically from the returned contracts. Do not rely
12
+ on a hard-coded list of roles, models, providers, tools, modes, or optional
13
+ features; newly added capabilities should be considered automatically.
14
+ - For every relevant capability, respect its reported availability, activation
15
+ state, invocation mode, constraints, dependencies, and readiness evidence.
16
+ - Treat installed, configured, enabled, and callable as different states. Use a
17
+ capability only when the complete live execution path is ready.
18
+ - Keep the capability snapshot for the current plan, and refresh it after a
19
+ relevant configuration change or an availability, routing, credential,
20
+ compatibility, or activation failure.
21
+ - If discovery is unavailable or evidence is incomplete, fail closed: do not
22
+ invent capabilities or repeatedly dispatch blind retries. If DSH Crew was
23
+ selected for the task, apply the operator decision gate below.
24
+
25
+ ## Operator decision gate when DSH Crew is unavailable
26
+
27
+ - Once Codex has selected DSH Crew for any work unit, any condition that makes
28
+ the required Crew capability unavailable or non-callable is a mandatory
29
+ pause point, regardless of cause.
30
+ - At this pause point, do not continue implementation, silently fall back,
31
+ choose another execution path, or repair/reconfigure DSH Crew without new
32
+ operator direction. Perform only the read-only diagnosis needed to report
33
+ the blocker accurately.
34
+ - Report the unavailable capability, bounded reason and evidence, and completed
35
+ work. Then wait for the operator to choose one direction:
36
+ 1. Repair or restore DSH Crew, then continue through DSH Crew.
37
+ 2. Do not repair DSH Crew; continue with the main Codex agent.
38
+ - Resume only after the operator gives a new instruction. If repair is chosen,
39
+ verify live capability again before dispatch. If local execution is chosen,
40
+ state that the affected work is no longer independently delegated.
41
+ - This gate applies only after DSH Crew has been selected or explicitly
42
+ requested. It does not force a pause when initial planning decides DSH Crew
43
+ provides no benefit and the task should remain with the main agent.
44
+
45
+ ## Decide what to delegate
46
+
47
+ - Decompose the request into bounded work units before choosing an executor.
48
+ - Match each unit against discovered capabilities. Use DSH Crew only where it
49
+ provides a clear execution, isolation, parallelism, specialization, or
50
+ independent-review benefit.
51
+ - Delegate the smallest coherent unit that can be completed and verified
52
+ independently. Do not delegate an entire request merely because it is large.
53
+ - Keep ambiguity, dependency ordering, cross-cutting decisions, conflict
54
+ resolution, external side effects, final integration, and user communication
55
+ in the main Codex agent.
56
+ - Respect reported concurrency and isolation limits. Parallelize only
57
+ independent units with explicit, non-overlapping ownership.
58
+ - Simple questions, explanations, small read-only inspections, and genuinely
59
+ trivial edits should normally remain in the main agent.
60
+ - Explicit user instructions override default routing, but never safety or
61
+ capability boundaries.
62
+
63
+ ## Execute and verify
64
+
65
+ - Give each delegated unit a concrete objective, owned scope, workspace
66
+ context, constraints, and required validation evidence.
67
+ - Prefer isolated execution for code changes when supported. Review work must
68
+ remain read-only.
69
+ - Consume compact structured results and canonical events. Do not move
70
+ unbounded transcripts, raw provider payloads, credentials, or unnecessary
71
+ patch content between agents.
72
+ - The main agent must validate results, tests, changed scope, unresolved risks,
73
+ and completion state before accepting delegated work.
74
+
75
+ ## Review policy
76
+
77
+ - Use available independent review for non-trivial code changes when its live
78
+ invocation policy permits automatic use or the user requests manual use.
79
+ - Never bypass a manual, disabled, unavailable, or restricted review boundary.
80
+ - Treat requested changes, incomplete structured results, or missing direct
81
+ evidence as not approved.
82
+ - If selected DSH Crew review cannot run, apply the operator decision gate. The
83
+ main agent may review locally only after the operator selects that path.
84
+
85
+ ## Authority and completion
86
+
87
+ - Delegation does not broaden authority. Publishing, pushing, messaging,
88
+ credential changes, account actions, destructive operations, and other
89
+ external effects still require authority from the user's request.
90
+ - Do not present delegated work as complete until validation passes, structured
91
+ results are complete, integration is checked, and permitted review
92
+ requirements are satisfied or transparently reported as unavailable.
@@ -0,0 +1,63 @@
1
+ # Installation plan
2
+
3
+ DSH Crew uses an explicit installer. Merely installing the npm package does not mutate the host.
4
+
5
+ ## Recommended path
6
+
7
+ ```bash
8
+ npm install -g @ran-sh/dsh-crew@latest
9
+ dsh-crew install
10
+ dsh-crew integrate
11
+ dsh-crew status
12
+ ```
13
+
14
+ To test GitHub `main` before an npm release:
15
+
16
+ ```bash
17
+ git clone https://github.com/Ran-sh/dsh-crew.git
18
+ cd dsh-crew
19
+ node scripts/setup.mjs install
20
+ node scripts/setup.mjs status
21
+ ```
22
+
23
+ ## Managed surfaces
24
+
25
+ | Surface | Installed behavior | Uninstall behavior |
26
+ | --- | --- | --- |
27
+ | Crew runtime | Isolated in `~/.config/dsh-crew/harness`, profile: dsh-crew | Registration removed; config kept unless `--purge` |
28
+ | Codex MCP and roles | Points Worker, Reviewer, and MCP to the installed release | Only DSH Crew entries are removed |
29
+ | Global Codex policy | Managed block inside `~/.codex/AGENTS.md` | Only the managed block is removed |
30
+ | ZCode MCP, agents and commands | Installs `~/.zcode/AGENTS.md`, `agents/{ds-worker,ds-reviewer}.md`, commands and a source-aware `dsh-crew` MCP entry | Only DSH Crew-owned files/entry are removed |
31
+ | Windows login startup | `DSH Crew.vbs` plus a Crew-owned CMD launcher | Only those two managed files are removed |
32
+ | Official 3080 UI | Optional lightweight bridge after `integrate` | `detach` removes the bridge; a backup is kept |
33
+
34
+ The Windows login launcher starts the official UI on 3080 and the isolated Crew backend on 3210. It does not open a browser and does not store credentials.
35
+
36
+ ZCode uses `~/.zcode/cli/config.json` when it already has native MCP servers. If
37
+ that native list is empty, the installer uses `~/.agents/mcp.json`; unrelated
38
+ servers are preserved and a conflicting unowned `dsh-crew` entry fails closed.
39
+
40
+ ## Verification
41
+
42
+ ```bash
43
+ dsh-crew status
44
+ dsh-crew inspect
45
+ dsh-crew jobs list
46
+ ```
47
+
48
+ Source checkout verification:
49
+
50
+ ```bash
51
+ node --test test/*.test.mjs
52
+ pnpm run build:client
53
+ npm pack --dry-run
54
+ ```
55
+
56
+ ## Rollback
57
+
58
+ ```bash
59
+ dsh-crew detach
60
+ dsh-crew uninstall
61
+ ```
62
+
63
+ Use `dsh-crew uninstall --purge` only when configuration and backups should also be deleted.
@@ -12,7 +12,7 @@ management:
12
12
  - Worker and Reviewer policy
13
13
  - model priority, fallback, review, and adaptive routing
14
14
  - runtime and activation-boundary information
15
- - Codex and Claude installation actions and structured readiness
15
+ - Codex, Claude, and ZCode installation actions and structured readiness
16
16
  - task status and bounded model-invocation summaries
17
17
  - the link to the underlying 3210 Crew Harness
18
18
 
@@ -44,4 +44,3 @@ the full control plane and never becomes `READY`.
44
44
 
45
45
  The split changes presentation only. Crew state, credentials, routing policy,
46
46
  and model execution remain isolated under the Crew-owned home and profile.
47
-