mancode 0.3.18 → 0.4.1

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.en.md CHANGED
@@ -17,7 +17,7 @@
17
17
  <p align="center">
18
18
  <a href="./LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg?style=flat-square" alt="License: AGPL-3.0" /></a>
19
19
  <a href="https://www.npmjs.com/package/mancode"><img src="https://img.shields.io/npm/v/mancode?style=flat-square" alt="npm version" /></a>
20
- <img src="https://img.shields.io/badge/status-Continuity%20v0.3.18-2f855a?style=flat-square" alt="Status: mancode Continuity v0.3.18" />
20
+ <img src="https://img.shields.io/badge/status-Continuity%20v0.4.1-2f855a?style=flat-square" alt="Status: mancode Continuity v0.4.1" />
21
21
  <img src="https://img.shields.io/badge/platforms-Claude%20Code%20%7C%20Cursor%20%7C%20Codex%20%7C%20Copilot%20%7C%20ZCode-5865F2?style=flat-square" alt="Platforms: Claude Code, Cursor, Codex in ChatGPT desktop and CLI, GitHub Copilot, ZCode" />
22
22
  </p>
23
23
 
@@ -34,8 +34,9 @@ different gears for different stakes: light solo mode for daily practice, `/man`
34
34
  for playoff-level engineering discipline, and coaching-staff subagents for
35
35
  research, planning, implementation, and review.
36
36
 
37
- **mancode Continuity** is the continuous-context runtime that carries tasks,
38
- decisions, and verification evidence safely into later conversations.
37
+ **mancode Continuity** is the cross-session and team-collaboration runtime that
38
+ carries tasks, decisions, and verification evidence safely into later
39
+ conversations.
39
40
 
40
41
  [Installation](#installation) · [Usage](#usage)
41
42
 
@@ -107,10 +108,15 @@ one window's temporary state as another window's identity.
107
108
  ```bash
108
109
  mancode status --brief --json
109
110
  mancode context session new --client claude-code
111
+ mancode context session show --session <id> --client claude-code --json
110
112
  mancode context resume <namespace:ULID> --session <id> --client claude-code
111
113
  mancode context show --purpose orient --session <id> --client claude-code
112
114
  ```
113
115
 
116
+ When the project has a local mancode install, pin one CLI binary for the whole
117
+ task: prefer `./node_modules/.bin/mancode`, otherwise use `mancode`. Check the
118
+ selected binary with `--version` once and do not mix versions afterward.
119
+
114
120
  The original `/man`, `/manba`, and `/manteam` entries handle these steps. The
115
121
  CLI form above is useful for diagnostics, automation, or manual recovery.
116
122
 
@@ -122,6 +128,15 @@ clones. Claude Code, Cursor, Codex, GitHub Copilot, and ZCode use the same
122
128
  workflow data through platform bootstraps; platform files do not hold task or
123
129
  session copies.
124
130
 
131
+ Under git-ref transport, workflow create, requirements, plan, review, and
132
+ verification mutations use an explicit deferred publication boundary. Run the
133
+ mutation without `--sync`, commit the matching `.mancode/shared` changes with
134
+ the code baseline, then run
135
+ `mancode team sync push shared:<ULID> --expected-task-revision N`. Passing
136
+ `--sync` directly to those commands returns
137
+ `MANCODE_GIT_REF_DEFERRED_SYNC_REQUIRED`; cross-clone synchronization is
138
+ complete only after the push returns a receipt.
139
+
125
140
  For a new project, start with one platform you actually use:
126
141
 
127
142
  ```bash
@@ -234,7 +249,9 @@ design tokens:
234
249
  </Button>
235
250
  ```
236
251
 
237
- The default workflow asks six questions before writing code:
252
+ The default workflow evaluates a conditional clarity gate before writing code: it asks the user
253
+ only when an unresolved decision could change the goal, scope, behavior, acceptance, or key
254
+ constraints, and it proceeds without ceremonial questions when the request is already clear.
238
255
 
239
256
  1. What problem does this change solve?
240
257
  2. Can an existing implementation be reused?
@@ -243,6 +260,10 @@ The default workflow asks six questions before writing code:
243
260
  5. What is the smallest meaningful runtime check?
244
261
  6. What remains uncertain after checking the code and docs?
245
262
 
263
+ These are internal readiness checks, not a mandatory questionnaire. Any unresolved
264
+ decision-changing uncertainty becomes a focused question and blocks requirements finalization
265
+ until the user answers; clear requests continue directly.
266
+
246
267
  <span id="usage"></span>
247
268
 
248
269
  ## Usage
@@ -353,7 +374,7 @@ it should behave, and why previous decisions were made.
353
374
 
354
375
  ## Installation
355
376
 
356
- **Status**: mancode Continuity v0.3.18. Claude Code, Cursor, Codex in the ChatGPT
377
+ **Status**: mancode Continuity v0.4.1. Claude Code, Cursor, Codex in the ChatGPT
357
378
  desktop app and CLI, GitHub Copilot, and ZCode adapters are included.
358
379
 
359
380
  Requires Node.js 20 or newer. macOS, Linux, Windows CMD, PowerShell, and Git Bash
@@ -394,8 +415,9 @@ mancode init --platform PLATFORMS # One or more: claude-code,cursor,codex,copilo
394
415
  mancode init --empty # Allow a safe empty directory in non-interactive scripts
395
416
  mancode init --lang zh-CN # Explicit initialization language (zh-CN or en)
396
417
  mancode refresh-project # Refresh facts after Git or project files are added
397
- mancode install --force # Repair or reinstall the selected adapter
398
- mancode install --minimal # The bootstrap is already minimal; retained for compatibility
418
+ mancode adapter status --json # Inspect actual managed-content digests
419
+ mancode adapter upgrade --platform codex --dry-run # Stage a preview only
420
+ mancode adapter upgrade --platform codex --confirm --operation-id <operationId> --session <id> --client <client>
399
421
  ```
400
422
 
401
423
  ## Agent Modes
@@ -424,10 +446,16 @@ mancode init --legacy
424
446
  mancode status
425
447
  mancode status --json
426
448
  mancode status --brief --json
427
- mancode install <claude-code|cursor|codex|copilot|zcode>
449
+ mancode install <claude-code|cursor|codex|copilot|zcode> --confirm --operation-id <operationId> --session <id> --client <client>
450
+ mancode adapter status [--platform <platform>] --json
451
+ mancode adapter upgrade <--all|--platform <platform>> --dry-run
452
+ mancode adapter upgrade <--all|--platform <platform>> --confirm --operation-id <operationId> --session <id> --client <client>
453
+ mancode project upgrade --policy 2 --dry-run
454
+ mancode project upgrade --policy 2 --operation-id <operationId> --session <id> --client <client>
428
455
  mancode list-platforms
429
456
  mancode team identity create --name "<name>"
430
457
  mancode context session new --client <platform>
458
+ mancode context session show --session <id> --client <client> --json
431
459
  mancode workflow create <man|manba|manteam> "<task>" --session <id>
432
460
  mancode workflow list --json
433
461
  mancode workflow show <namespace:ULID> --json
@@ -438,6 +466,7 @@ mancode workflow plan <namespace:ULID> confirm --plan-decision <plan_only|govern
438
466
  mancode workflow update <namespace:ULID> --status <status> --expected-revision <n> --session <id>
439
467
  mancode workflow review <namespace:ULID> apply --file <review-ledger.json> --expected-revision <n> --session <id>
440
468
  mancode workflow verify <namespace:ULID> apply --file <verification-ledger.json> --expected-revision <n> --session <id>
469
+ mancode workflow reframe <local:ULID> --expected-revision <n> --checkpoint-id <ULID> --session <id>
441
470
  mancode workflow complete <namespace:ULID> --expected-revision <n> --session <id>
442
471
  mancode manps [area]
443
472
  mancode refresh-project
@@ -452,7 +481,7 @@ mancode version
452
481
  Simplified output:
453
482
 
454
483
  ```text
455
- mancode v0.3.18
484
+ mancode v0.4.1
456
485
 
457
486
  Project: my-app
458
487
  Runtime: ready
@@ -594,14 +623,19 @@ mancode/
594
623
  - Irreversible operations such as force pushes, schema migrations, and bulk
595
624
  deletes require explicit human confirmation.
596
625
 
597
- ## Roadmap
626
+ ## Remaining Work
627
+
628
+ - Complete real-host session acceptance for Claude Code, Codex, Cursor,
629
+ GitHub Copilot, and ZCode on one release candidate; verified host sessions
630
+ and isolated explicit sessions are both valid evidence paths.
631
+ - Run `npm run release:check -- --candidate <full-commit-sha>` for the clean
632
+ checkout, automated two-clone/legacy checks, tarball SHA-256, and install
633
+ smoke; complete cross-host recovery separately.
634
+ - Confirm ZCode project-skill discovery and workspace-command paths; keep the
635
+ adapter provisional until then.
636
+ - Evaluate Windsurf, Cline, and Roo Code adapters based on real demand.
598
637
 
599
- | Phase | Focus |
600
- |---|---|
601
- | MVP-1 | solo mode, aesthetics, and Claude Code hooks |
602
- | MVP-2 | `/manba`, `/man`, `/manteam`, `/manps`, and coaching-staff subagents |
603
- | MVP-3 | Cursor, Codex (ChatGPT desktop/CLI), and GitHub Copilot adapters |
604
- | Public Release | stable npm release, marketplace distribution, docs, and demos |
638
+ See [0.4.1 Continuity Release Acceptance](./docs/release-acceptance.md) for the complete gate.
605
639
 
606
640
  ## Troubleshooting
607
641
 
@@ -616,21 +650,26 @@ a deliberately empty directory.
616
650
  ### Claude Code hooks not triggering
617
651
 
618
652
  After `mancode init`, restart Claude Code so it reloads `.claude/settings.json`.
619
- Run `mancode status` to verify hooks are registered. If hooks are still missing,
620
- run `mancode install claude-code --force` to rewrite the settings.
653
+ Run `mancode status` to verify hooks are registered. For Continuity adapter drift, preview
654
+ `mancode adapter upgrade --platform claude-code --dry-run`, then repair that
655
+ preview with its `--operation-id`, an active session, and `--confirm`. The legacy
656
+ hook architecture still uses `mancode init --legacy --force`.
621
657
 
622
658
  ### `mancode status` shows a platform as "not ready"
623
659
 
624
- This means the platform's target files are missing. Run
625
- `mancode install <platform> --force` to regenerate them. For managed-block
660
+ This means the platform's target files are missing or their digest is stale.
661
+ Preview `mancode adapter upgrade --platform <platform> --dry-run`, inspect the
662
+ staged result, then run it with the returned `--operation-id`, an active session,
663
+ and `--confirm`. For managed-block
626
664
  platforms (Codex, ZCode, Copilot), the managed block in `AGENTS.md` or
627
665
  `.github/copilot-instructions.md` may have been manually edited or deleted.
628
666
 
629
667
  ### AGENTS.md or copilot-instructions.md managed block was accidentally deleted
630
668
 
631
- Run `mancode install codex --force` (or `zcode`, or `copilot`) to reinsert the
632
- managed block. User-authored content outside the relevant mancode managed
633
- markers is preserved.
669
+ Preview `mancode adapter upgrade --platform codex --dry-run` (or `zcode`, or
670
+ `copilot`), then run it with the returned `--operation-id`, an active session,
671
+ and `--confirm` to reinsert the managed block. User-authored content outside the
672
+ relevant markers is preserved.
634
673
 
635
674
  ### ZCode skills not appearing
636
675
 
@@ -648,16 +687,8 @@ description field — invoke them by asking for `/manba` or similar.
648
687
  ### How to reinstall Continuity adapters
649
688
 
650
689
  ```bash
651
- mancode uninstall claude-code --force
652
- mancode uninstall cursor --force
653
- mancode uninstall codex --force
654
- mancode uninstall copilot --force
655
- mancode uninstall zcode --force
656
- mancode install claude-code
657
- mancode install cursor
658
- mancode install codex
659
- mancode install copilot
660
- mancode install zcode
690
+ mancode adapter upgrade --all --dry-run
691
+ mancode adapter upgrade --all --confirm --operation-id <operationId> --session <id> --client <client>
661
692
  ```
662
693
 
663
694
  Continuity authority is protected, so `mancode uninstall --all` does not delete workflow
@@ -684,8 +715,11 @@ use.
684
715
 
685
716
  ### How is mancode different from a CLAUDE.md file?
686
717
 
687
- A `CLAUDE.md` file is static guidance. mancode adds hooks, persisted workflow
688
- state, slash-command skills, and separate review subagents with clean context.
718
+ A `CLAUDE.md` file is static guidance. Continuity maintains one always-loaded
719
+ Claude Code bootstrap block there, while sessions, TaskRefs, requirements,
720
+ plans, and review evidence remain structured authority under `.mancode/`.
721
+ mancode also adds mode skills, persisted workflows, and separate review
722
+ subagents with clean context.
689
723
 
690
724
  ### How is mancode different from Cursor rules, custom prompts, or agent instructions?
691
725
 
package/README.md CHANGED
@@ -17,7 +17,7 @@
17
17
  <p align="center">
18
18
  <a href="./LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg?style=flat-square" alt="许可证:AGPL-3.0" /></a>
19
19
  <a href="https://www.npmjs.com/package/mancode"><img src="https://img.shields.io/npm/v/mancode?style=flat-square" alt="npm 版本" /></a>
20
- <img src="https://img.shields.io/badge/status-Continuity%20v0.3.18-2f855a?style=flat-square" alt="状态:mancode Continuity v0.3.18" />
20
+ <img src="https://img.shields.io/badge/status-Continuity%20v0.4.1-2f855a?style=flat-square" alt="状态:mancode Continuity v0.4.1" />
21
21
  <img src="https://img.shields.io/badge/platforms-Claude%20Code%20%7C%20Cursor%20%7C%20Codex%20%7C%20Copilot%20%7C%20ZCode-5865F2?style=flat-square" alt="平台:Claude Code、Cursor、ChatGPT 桌面端 Codex、Codex CLI、GitHub Copilot、ZCode" />
22
22
  </p>
23
23
 
@@ -36,7 +36,7 @@
36
36
  日常任务用轻量 `solo`,关键任务用季后赛级别的 `/man`,复杂任务让教练组 subagents
37
37
  负责调研、计划、实现和审查。
38
38
 
39
- **mancode Continuity(连续上下文运行时)**负责把任务、决策和验证证据安全地带到后续对话。
39
+ **mancode Continuity(跨会话与团队协作运行时)**负责把任务、决策和验证证据安全地带到后续对话,并协调多人或多 Agent 的任务权威。
40
40
 
41
41
  mancode 当前支持 Claude Code、Cursor、ChatGPT 桌面端中的 Codex、Codex CLI、
42
42
  GitHub Copilot 和 ZCode。每个平台继续使用原来的 `man*` 入口,并通过静态
@@ -109,6 +109,13 @@ mancode 为团队项目提供稳定 TaskRef、隔离 session、治理账本、wo
109
109
  以及可选的 git-ref 跨 clone 协调。Claude Code、Cursor、Codex、GitHub Copilot 和
110
110
  ZCode 都通过 bootstrap 使用同一套工作流数据;平台文件本身不保存任务或 session 副本。
111
111
 
112
+ git-ref 下的 workflow create、requirements、plan、review 和 verification 使用显式的
113
+ 延后发布边界:先不带 `--sync` 执行 mutation,将对应的 `.mancode/shared`
114
+ 变更与代码基线一起提交,再执行
115
+ `mancode team sync push shared:<ULID> --expected-task-revision N`。这些命令若直接带
116
+ `--sync` 会返回 `MANCODE_GIT_REF_DEFERRED_SYNC_REQUIRED`;只有拿到 push receipt
117
+ 才表示跨 clone 同步完成。
118
+
112
119
  在全新项目中,从一个实际使用的平台开始:
113
120
 
114
121
  ```bash
@@ -118,6 +125,16 @@ mancode context session new --client claude-code
118
125
  mancode list-platforms
119
126
  ```
120
127
 
128
+ 要只读检查一个 session(例如确认 Codex 续接时仍使用同一身份),使用:
129
+
130
+ ```bash
131
+ mancode context session show --session <session-id> --client <client> --json
132
+ ```
133
+
134
+ 在项目同时安装 mancode 时,整项任务应固定使用项目本地 CLI:优先
135
+ `./node_modules/.bin/mancode`,否则再使用 PATH 中的 `mancode`;先运行一次
136
+ `--version`,后续不要混用不同版本。
137
+
121
138
  普通 `mancode init` 会生成原来的 `man`、`manba`、`manteam`、`manps`、
122
139
  `mansolo` 平台命令,不需要改用另一套命令名。确实需要旧 `state.json` 架构时才使用
123
140
  `mancode init --legacy`。
@@ -228,7 +245,8 @@ mancode 不把“当前模式”写进持久状态。需要某种工作方式时
228
245
 
229
246
  `/man` 既是正式计划入口,也是面向关键任务的季后赛模式。即使当前处于默认
230
247
  `solo`,当用户要求先调研、给方案或出计划时,也会进入 `/man`。它会先了解项目,
231
- 只追问会改变范围、架构、成本或验收的问题;适合由系统推荐的决策会给出 2–3 个
248
+ 只追问会改变范围、架构、成本或验收的问题;需求足够清晰时不制造形式问题,需求
249
+ 不清晰时会停下等待用户回答;适合由系统推荐的决策会给出 2–3 个
232
250
  方案、优缺点和明确建议。需求足够清楚后,计划才会写入
233
251
  `.mancode/local/workflows/<ULID>/plan.md`。
234
252
 
@@ -248,6 +266,10 @@ mancode 不把“当前模式”写进持久状态。需要某种工作方式时
248
266
 
249
267
  跳过的步骤会被记录。所有产物保留在本地,之后可以回看当时为什么做某个决策。
250
268
 
269
+ 默认 `solo` 也执行同一个轻量清晰度判断:清晰、窄范围的需求直接做最小改动;会改变
270
+ 行为、范围、验收或关键约束的歧义必须先提问。涉及架构、owner/source of truth、迁移、
271
+ 跨模块或团队决策时,`solo` 推荐 `/man`,但不会自行切换模式。
272
+
251
273
  ## 工作原理
252
274
 
253
275
  ### Bootstrap 和 Adapters
@@ -307,7 +329,7 @@ src/components/
307
329
 
308
330
  ## 安装
309
331
 
310
- **状态**:mancode Continuity v0.3.18。Claude Code、Cursor、ChatGPT 桌面端中的
332
+ **状态**:mancode Continuity v0.4.1。Claude Code、Cursor、ChatGPT 桌面端中的
311
333
  Codex、Codex CLI、GitHub Copilot 和 ZCode adapter 均已接入。
312
334
 
313
335
  需要 Node.js 20 或更高版本。原生支持 macOS、Linux、Windows CMD、
@@ -346,8 +368,9 @@ mancode init --platform PLATFORMS # 一个或多个:claude-code,cursor,codex,c
346
368
  mancode init --empty # 非交互脚本中允许安全的空目录
347
369
  mancode init --lang zh-CN # 显式指定初始化语言(zh-CN 或 en)
348
370
  mancode refresh-project # 后续加入 Git 或项目文件后刷新项目事实
349
- mancode install --force # 修复或重装所选 adapter
350
- mancode install --minimal # bootstrap 已是最小形态;保留兼容参数
371
+ mancode adapter status --json # 检查实际 managed content digest
372
+ mancode adapter upgrade --platform codex --dry-run # 只生成 staging 预览
373
+ mancode adapter upgrade --platform codex --confirm --operation-id <operationId> --session <id> --client <client>
351
374
  ```
352
375
 
353
376
  ## Agent Modes
@@ -376,10 +399,16 @@ mancode init --legacy
376
399
  mancode status
377
400
  mancode status --json
378
401
  mancode status --brief --json
379
- mancode install <claude-code|cursor|codex|copilot|zcode>
402
+ mancode install <claude-code|cursor|codex|copilot|zcode> --confirm --operation-id <operationId> --session <id> --client <client>
403
+ mancode adapter status [--platform <platform>] --json
404
+ mancode adapter upgrade <--all|--platform <platform>> --dry-run
405
+ mancode adapter upgrade <--all|--platform <platform>> --confirm --operation-id <operationId> --session <id> --client <client>
406
+ mancode project upgrade --policy 2 --dry-run
407
+ mancode project upgrade --policy 2 --operation-id <operationId> --session <id> --client <client>
380
408
  mancode list-platforms
381
409
  mancode team identity create --name "<name>"
382
410
  mancode context session new --client <platform>
411
+ mancode context session show --session <id> --client <client> --json
383
412
  mancode workflow create <man|manba|manteam> "<task>" --session <id>
384
413
  mancode workflow list --json
385
414
  mancode workflow show <namespace:ULID> --json
@@ -390,6 +419,7 @@ mancode workflow plan <namespace:ULID> confirm --plan-decision <plan_only|govern
390
419
  mancode workflow update <namespace:ULID> --status <status> --expected-revision <n> --session <id>
391
420
  mancode workflow review <namespace:ULID> apply --file <review-ledger.json> --expected-revision <n> --session <id>
392
421
  mancode workflow verify <namespace:ULID> apply --file <verification-ledger.json> --expected-revision <n> --session <id>
422
+ mancode workflow reframe <local:ULID> --expected-revision <n> --checkpoint-id <ULID> --session <id>
393
423
  mancode workflow complete <namespace:ULID> --expected-revision <n> --session <id>
394
424
  mancode manps [area]
395
425
  mancode refresh-project
@@ -404,7 +434,7 @@ mancode version
404
434
  以下是简化输出示例:
405
435
 
406
436
  ```text
407
- mancode v0.3.18
437
+ mancode v0.4.1
408
438
 
409
439
  Project: my-app
410
440
  Runtime: ready
@@ -537,14 +567,14 @@ mancode/
537
567
  - `/manps` 默认只扫描;进入整改前应明确确认代码改动。
538
568
  - force push、schema migration、批量删除等不可逆操作需要明确人工确认。
539
569
 
540
- ## 路线图
570
+ ## 仍在推进
571
+
572
+ - 在同一发布候选上完成 Claude Code、Codex、Cursor、GitHub Copilot 和 ZCode 的真实宿主 session 验收;宿主自动 session 和显式双 session 都是合法证据路径。
573
+ - 使用 `npm run release:check -- --candidate <完整提交 SHA>` 完成干净 checkout、自动双 clone/legacy、tarball SHA-256 和安装 smoke;另完成跨真实宿主恢复。
574
+ - 确认 ZCode 项目级 skill 发现和 workspace command 路径;完成前继续标记为 provisional。
575
+ - 根据真实需求评估 Windsurf、Cline 和 Roo Code adapter。
541
576
 
542
- | 阶段 | 重点 |
543
- |---|---|
544
- | MVP-1 | solo 模式、审美扫描、Claude Code hooks |
545
- | MVP-2 | `/manba`、`/man`、`/manteam`、`/manps` 和教练组 subagents |
546
- | MVP-3 | Cursor、Codex(ChatGPT 桌面端/CLI)、GitHub Copilot 适配 |
547
- | 公开发布 | npm 稳定版、marketplace 分发、文档和演示 |
577
+ 完整发布条件见 [0.4.1 Continuity 发布验收](./docs/release-acceptance.md)。
548
578
 
549
579
  ## 故障排查
550
580
 
@@ -557,18 +587,24 @@ mancode/
557
587
  ### Claude Code hooks 不生效
558
588
 
559
589
  `mancode init` 后需要重启 Claude Code 以重新加载 `.claude/settings.json`。
560
- 运行 `mancode status` 确认 hooks 已注册。如果仍不生效,运行
561
- `mancode install claude-code --force` 重写配置。
590
+ 运行 `mancode status` 确认 hooks 已注册。Continuity adapter 内容异常时,先运行
591
+ `mancode adapter upgrade --platform claude-code --dry-run`,再用该预览返回的
592
+ `--operation-id`、active session 和 `--confirm` 完成修复。legacy hook 架构仍使用
593
+ `mancode init --legacy --force`。
562
594
 
563
595
  ### `mancode status` 显示某平台 "not ready"
564
596
 
565
- 该平台的目标文件缺失。运行 `mancode install <platform> --force` 重新生成。
597
+ 该平台的目标文件缺失或 digest 不匹配。先运行
598
+ `mancode adapter upgrade --platform <platform> --dry-run`,确认 staging 结果后再用
599
+ 该预览返回的 `--operation-id` 和 active session 执行 `--confirm`。
566
600
  对于 Codex、ZCode 和 Copilot,`AGENTS.md` 或 `.github/copilot-instructions.md`
567
601
  中的受控区可能被手动编辑或删除了。
568
602
 
569
603
  ### AGENTS.md 或 copilot-instructions.md 受控区被误删
570
604
 
571
- 运行 `mancode install codex --force`(或 `zcode`、`copilot`)重新插入受控区。
605
+ 运行 `mancode adapter upgrade --platform codex --dry-run`(或 `zcode`、`copilot`)
606
+ 检查差异,再用该预览返回的 `--operation-id` 和 active session 执行 `--confirm`
607
+ 重新插入受控区。
572
608
  对应 mancode 受控标记外的用户内容会被保留。
573
609
 
574
610
  ### ZCode skills 未出现
@@ -586,16 +622,8 @@ manps)按 description 触发——输入 `/manba` 等关键词即可激活。
586
622
  ### 如何重装 Continuity 适配器
587
623
 
588
624
  ```bash
589
- mancode uninstall claude-code --force
590
- mancode uninstall cursor --force
591
- mancode uninstall codex --force
592
- mancode uninstall copilot --force
593
- mancode uninstall zcode --force
594
- mancode install claude-code
595
- mancode install cursor
596
- mancode install codex
597
- mancode install copilot
598
- mancode install zcode
625
+ mancode adapter upgrade --all --dry-run
626
+ mancode adapter upgrade --all --confirm --operation-id <operationId> --session <id> --client <client>
599
627
  ```
600
628
 
601
629
  Continuity authority 受保护,`mancode uninstall --all` 不会删除工作流权威数据。需要
@@ -620,8 +648,9 @@ npm uninstall -g mancode
620
648
 
621
649
  ### mancode 和 CLAUDE.md 有什么区别?
622
650
 
623
- `CLAUDE.md` 是静态指导。mancode 增加 hooks、持久化工作流状态、slash-command skills
624
- 和独立审查 subagents。
651
+ `CLAUDE.md` 是静态指导。Continuity 只在其中维护一段始终加载的 Claude Code bootstrap,
652
+ 真正的 session、TaskRef、requirements、计划和审查证据仍由 `.mancode/` 的结构化权威管理;
653
+ mancode 还提供 mode skills、持久化工作流和独立审查 subagents。
625
654
 
626
655
  ### mancode 和 Cursor rules、自定义 prompt、agent instructions 有什么区别?
627
656