mancode 0.3.12 → 0.3.14

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,10 +17,8 @@
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-stable%20v0.3.12-green?style=flat-square" alt="Status: stable v0.3.12" />
21
- <img src="https://img.shields.io/badge/V3-cross--CLI%20team%20Beta-FB6A21?style=flat-square" alt="V3: cross-CLI team Beta" />
20
+ <img src="https://img.shields.io/badge/status-V3%20beta%20v0.3.14-orange?style=flat-square" alt="Status: V3 beta v0.3.14" />
22
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" />
23
- <img src="https://img.shields.io/badge/tests-passing-brightgreen?style=flat-square" alt="Tests passing" />
24
22
  </p>
25
23
 
26
24
  <p align="center">
@@ -39,17 +37,17 @@ research, planning, implementation, and review.
39
37
  [Installation](#installation) · [Usage](#usage)
40
38
 
41
39
  mancode ships with adapters for Claude Code, Cursor, Codex in the ChatGPT
42
- desktop app and CLI, GitHub Copilot, and ZCode. V3 keeps the original `man*`
40
+ desktop app and CLI, GitHub Copilot, and ZCode. It keeps the original `man*`
43
41
  entries on every platform and connects them to one Context Pack and workflow
44
42
  authority through static bootstraps.
45
43
 
46
44
  mancode installs three things:
47
45
 
48
- 1. **V3 authority** for explicit sessions, TaskRefs, Context Packs, workflows,
46
+ 1. **Workflow authority** for explicit sessions, TaskRefs, Context Packs, workflows,
49
47
  and team coordination.
50
48
  2. **Skills / modes** for `solo`, `/manba`, `/man`, `/manteam`, `/manps`, and
51
49
  `/mansolo`.
52
- 3. **Platform bootstraps** that connect those original entries to V3; only
50
+ 3. **Platform bootstraps** that connect those original entries to mancode; only
53
51
  `--legacy` installs the old hooks.
54
52
 
55
53
  Use mancode when an AI coding agent writes too much code, ignores your existing
@@ -90,13 +88,36 @@ These are agent skills, not deprecated custom prompts. See the official
90
88
  [slash-command](https://learn.chatgpt.com/docs/reference/slash-commands) docs.
91
89
  Existing workflow metadata remains compatible and does not need migration.
92
90
 
93
- ## V3 Cross-CLI and Team Beta
91
+ ## Continue Work Across Sessions
94
92
 
95
- V3 gives new team projects stable `TaskRef` context, isolated sessions,
96
- governance ledgers, worktree claims and handoffs, and optional git-ref
97
- coordination across clones. It is a **hard-gated Beta**: adapters bootstrap
98
- Claude Code, Cursor, Codex, GitHub Copilot, and ZCode, but platform files never
99
- become the authority for task or session state.
93
+ mancode keeps goals, requirements, plans, validation results, and handoff notes
94
+ under a stable `TaskRef`. When you open a new chat window, restart your coding
95
+ agent, or continue from another supported CLI, the new session can resume the
96
+ same task and load a purpose-specific Context Pack without depending on the old
97
+ conversation remaining open.
98
+
99
+ This resumes **task context**, not raw chat history. Sessions from different
100
+ clients remain isolated. A new session uses its own client identity and
101
+ explicitly resumes the existing TaskRef, preserving continuity without treating
102
+ one window's temporary state as another window's identity.
103
+
104
+ ```bash
105
+ mancode status --json
106
+ mancode context session new --client claude-code
107
+ mancode context resume <namespace:ULID> --session <id> --client claude-code
108
+ mancode context show --purpose orient --session <id> --client claude-code
109
+ ```
110
+
111
+ The original `/man`, `/manba`, and `/manteam` entries handle these steps. The
112
+ CLI form above is useful for diagnostics, automation, or manual recovery.
113
+
114
+ ## Cross-Client and Team Collaboration
115
+
116
+ mancode gives team projects stable TaskRefs, isolated sessions, governance
117
+ ledgers, worktree claims and handoffs, and optional git-ref coordination across
118
+ clones. Claude Code, Cursor, Codex, GitHub Copilot, and ZCode use the same
119
+ workflow data through platform bootstraps; platform files do not hold task or
120
+ session copies.
100
121
 
101
122
  For a new project, start with one platform you actually use:
102
123
 
@@ -107,38 +128,19 @@ mancode context session new --client claude-code
107
128
  mancode list-platforms
108
129
  ```
109
130
 
110
- Plain `mancode init` is now the V3 entry and still generates the original
111
- `man`, `manba`, `manteam`, `manps`, and `mansolo` host commands. No separate V3
112
- command name is required. `--v3` remains an explicit compatibility alias; use
131
+ Plain `mancode init` generates the original `man`, `manba`, `manteam`, `manps`,
132
+ and `mansolo` host commands. No separate command family is required. Use
113
133
  `mancode init --legacy` only when the old `state.json` architecture is required.
114
134
 
115
135
  Use the CLI for creation, resume, and coordination: `mancode workflow create`,
116
136
  `mancode context resume`, `mancode team claim`, and `mancode team handoff`. For
117
137
  an existing project, begin with `mancode migrate context --dry-run`, then follow
118
138
  its stage and activation report. Do not manually mix legacy `state.json` writes
119
- with V3 authority.
120
-
121
- ### Beta validation boundary
122
-
123
- - The `main` branch requires a Windows gate that runs smoke tests in CMD,
124
- PowerShell, and Git Bash.
125
- - `mancode context beta --release-candidate <commit> --json` checks activation,
126
- adapters, repair state, worktree binding, and session evidence for all five
127
- platforms. Evidence must bind to that immutable release candidate; any blocker
128
- stops broad enablement.
129
- - Each platform must prove distinct sessions in two real host windows, child-command
130
- propagation, and child-agent inheritance (or record a specific reason it is not
131
- applicable). `context session spike` records an operator-attested real-host result;
132
- it never infers propagation from a temporary environment variable. Stored evidence
133
- never includes raw session keys.
134
-
135
- Until that gate passes, use an explicit `--session <id>` and do not treat host
136
- identity as verified. This lets you try V3 without presenting unproven
137
- cross-platform session behavior as a fact.
139
+ with current workflow authority.
138
140
 
139
141
  ## What Gets Installed
140
142
 
141
- By default, `mancode init` creates V3 authority and platform integration files:
143
+ By default, `mancode init` creates mancode workflow and platform integration files:
142
144
 
143
145
  ```text
144
146
  .mancode/
@@ -156,7 +158,7 @@ AGENTS.md # Codex (ChatGPT desktop/CLI): managed instruct
156
158
  .github/prompts/ # GitHub Copilot: original mode prompts
157
159
  ```
158
160
 
159
- `.mancode/` separates shareable V3 authority from checkout-local sessions,
161
+ `.mancode/` separates shareable workflow data from checkout-local sessions,
160
162
  workflows, and scan reports. Platform files contain only bootstrap guidance and
161
163
  the original mode entries, never task/session snapshots. `mancode init
162
164
  --legacy` creates the old `state.json` layout.
@@ -175,7 +177,7 @@ the original mode entries, never task/session snapshots. `mancode init
175
177
  default `solo` for lightweight implementation, or continue the full `/man`
176
178
  validation and bounded risk-review workflow.
177
179
  - **Keep workflow artifacts on disk**: save research, plans, review reports,
178
- and summaries under `.mancode/local/workflows/<taskId>/`.
180
+ and summaries under `.mancode/<namespace>/workflows/<ULID>/`.
179
181
  - **Support team context**: use `/manteam` with confirmed typed entities under
180
182
  `.mancode/shared/`.
181
183
  - **Scan project health**: use `mancode manps` to detect stale TODOs, unused
@@ -187,7 +189,7 @@ mancode is useful for:
187
189
 
188
190
  - Developers using AI coding agents on backend, web, mobile, desktop, CLI,
189
191
  library, data, or mixed projects
190
- - Users who want V3 Context Packs, skills, and explicit governance behind the original `man*` entries
192
+ - Users who want Context Packs, skills, and explicit governance behind the original `man*` entries
191
193
  - Teams that want AI agents to reuse existing components and patterns
192
194
  - Projects that need a repeatable AI-assisted code review workflow
193
195
  - UI codebases with existing design conventions (when a UI is present)
@@ -242,8 +244,8 @@ The default workflow asks six questions before writing code:
242
244
 
243
245
  ## Usage
244
246
 
245
- V3 no longer persists a “current mode.” Invoke the original command for the
246
- kind of work you need; the entry resolves V3 status, session, TaskRef, and
247
+ mancode does not persist a “current mode.” Invoke the original command for the
248
+ kind of work you need; the entry resolves status, session, TaskRef, and
247
249
  Context Pack:
248
250
 
249
251
  | Mode | Best For | What It Does |
@@ -253,7 +255,7 @@ Context Pack:
253
255
  | `/man` | Work needing requirement alignment or a formal plan · playoffs | Research, recommendations, and a durable plan; then choose lightweight solo delivery or the full 9-step workflow |
254
256
  | `/manteam` | Team projects · five on the floor, one mind | Shared memory, decisions, coordination, and Conventional Commits |
255
257
  | `/manps` | Cleanup and maintenance · preseason | Project health scan with Markdown and JSON reports |
256
- | `/mansolo` | Returning to lightweight work | Writes no legacy mode; performs an explicit V3 handoff only when needed |
258
+ | `/mansolo` | Returning to lightweight work | Writes no legacy mode; performs an explicit handoff only when needed |
257
259
 
258
260
  ## How `/man` Works: Playoffs Mode
259
261
 
@@ -261,7 +263,7 @@ Context Pack:
261
263
  work. A planning or research request made from default `solo` routes into `/man`.
262
264
  It inspects the project, asks only questions that can change scope, architecture,
263
265
  cost, or acceptance, and recommends 2–3 options when a decision benefits from
264
- guidance. It writes the plan under `.mancode/local/workflows/<taskId>/` only
266
+ guidance. It writes the plan under `.mancode/local/workflows/<ULID>/` only
265
267
  after the requirements are ready.
266
268
 
267
269
  Finishing the plan does not automatically start the full workflow. At the plan
@@ -286,10 +288,10 @@ decision was made later.
286
288
 
287
289
  ### Bootstrap and Adapters
288
290
 
289
- V3 assumes no hook approval. Each adapter installs a stable bootstrap plus the
290
- original `man/manba/manteam/manps/mansolo` entries; task, mode, and session
291
- authority stays in V3. Claude Code's internal bootstrap is hidden from users,
292
- so it does not add a public `/mancode-v3` command. Until real-host session
291
+ mancode assumes no hook approval. Each adapter installs a stable bootstrap plus
292
+ the original `man/manba/manteam/manps/mansolo` entries; task, mode, and session
293
+ authority stays in mancode workflow data. Claude Code's internal bootstrap is
294
+ hidden from users, so it does not add another public command. Until real-host session
293
295
  propagation is proven, mutations require an explicit `--session`.
294
296
 
295
297
  Only `mancode init --legacy` installs the old Claude hooks that read
@@ -297,7 +299,7 @@ Only `mancode init --legacy` installs the old Claude hooks that read
297
299
 
298
300
  ### Design Token Awareness
299
301
 
300
- V3 writes detected project facts to `.mancode/shared/context/project.json` and
302
+ mancode writes detected project facts to `.mancode/shared/context/project.json` and
301
303
  keeps checkout-local design-token caches under `.mancode/local/cache/`. It can
302
304
  work with backend services, web applications, mobile apps, desktop apps, CLIs,
303
305
  libraries, and mixed repositories; it does not assume a JavaScript or UI stack.
@@ -333,7 +335,7 @@ Before writing new code, mancode pushes the agent through this priority order:
333
335
 
334
336
  ### Team Memory
335
337
 
336
- `/manteam` reads and updates confirmed entities in V3 shared authority:
338
+ `/manteam` reads and updates confirmed entities in shared workflow data:
337
339
 
338
340
  ```text
339
341
  .mancode/shared/
@@ -348,9 +350,9 @@ it should behave, and why previous decisions were made.
348
350
 
349
351
  ## Installation
350
352
 
351
- **Status**: stable v0.3.12. Claude Code, Cursor, Codex in the ChatGPT desktop app
352
- and CLI, and GitHub Copilot are supported. ZCode adapter support is included,
353
- with project skill discovery kept behind a verification gate before release.
353
+ **Status**: V3 beta v0.3.14. Claude Code, Cursor, Codex in the ChatGPT desktop
354
+ app and CLI, GitHub Copilot, and ZCode adapters are included. Stable release
355
+ still requires the five-host real-session acceptance and the `context beta` B1 gate.
354
356
 
355
357
  Requires Node.js 20 or newer. macOS, Linux, Windows CMD, PowerShell, and Git Bash
356
358
  are supported. Git is optional: without it, initialization continues with solo
@@ -368,7 +370,7 @@ mancode init --platform all
368
370
 
369
371
  Supported platforms:
370
372
 
371
- - Claude Code: hidden bootstrap plus original mode skills; V3 does not depend on hooks
373
+ - Claude Code: hidden bootstrap plus original mode skills; the default setup does not depend on hooks
372
374
  - Cursor: `.cursor/rules/*.mdc` bootstrap plus original mode commands under `.cursor/commands/`
373
375
  - Codex (ChatGPT desktop app, CLI, and IDE extension): managed `AGENTS.md`
374
376
  block plus `$man*` repo skills under `.agents/skills/`
@@ -390,8 +392,8 @@ mancode init --platform PLATFORMS # One or more: claude-code,cursor,codex,copilo
390
392
  mancode init --empty # Allow a safe empty directory in non-interactive scripts
391
393
  mancode init --lang zh-CN # Explicit initialization language (zh-CN or en)
392
394
  mancode refresh-project # Refresh facts after Git or project files are added
393
- mancode install --force # Repair or reinstall the selected V3 adapter
394
- mancode install --minimal # V3 is already bootstrap-only; retained for compatibility
395
+ mancode install --force # Repair or reinstall the selected adapter
396
+ mancode install --minimal # The bootstrap is already minimal; retained for compatibility
395
397
  ```
396
398
 
397
399
  ## Agent Modes
@@ -424,6 +426,8 @@ mancode list-platforms
424
426
  mancode team identity create --name "<name>"
425
427
  mancode context session new --client <platform>
426
428
  mancode workflow create <man|manba|manteam> "<task>" --session <id>
429
+ mancode workflow list --json
430
+ mancode workflow show <namespace:ULID> --json
427
431
  mancode context resume <local:ULID|shared:ULID> --session <id>
428
432
  mancode workflow requirements <namespace:ULID> finalize --file <requirements.json> --expected-revision <n> --session <id>
429
433
  mancode workflow plan <namespace:ULID> revise --file <plan.md> --expected-revision <n> --session <id>
@@ -442,19 +446,18 @@ mancode version
442
446
 
443
447
  ### `mancode status`
444
448
 
445
- Simplified V3 output:
449
+ Simplified output:
446
450
 
447
451
  ```text
448
- mancode v0.3.12 (V3 authority)
452
+ mancode v0.3.14
449
453
 
450
454
  Project: my-app
451
- Activation: v3_active
452
455
  Runtime: ready
453
456
  Transport: local
454
457
  Identity: not configured
455
458
  Session evidence: explicit required
456
459
 
457
- V3 adapter status:
460
+ mancode adapter status:
458
461
  ○ Claude Code: not installed
459
462
  ○ Cursor: not installed
460
463
  ✓ Codex (ChatGPT desktop/CLI): ready
@@ -475,8 +478,8 @@ Issue DB: .mancode/local/preseason-issues.json
475
478
 
476
479
  ### `mancode init`
477
480
 
478
- Initializes V3 authority and connects the selected platform's original mode
479
- entries to V3 Context Packs and workflow commands. It does not create legacy
481
+ Initializes mancode workflow data and connects the selected platform's original
482
+ mode entries to Context Packs and workflow commands. It does not create legacy
480
483
  `state.json`; use `mancode init --legacy` explicitly for the old architecture.
481
484
 
482
485
  ```bash
@@ -485,7 +488,7 @@ mancode init
485
488
 
486
489
  ### `mancode status`
487
490
 
488
- Shows V3 activation, runtime binding, identity/session evidence, transport, and
491
+ Shows activation, runtime binding, identity/session evidence, transport, and
489
492
  the physical readiness of each platform bootstrap and original mode entry.
490
493
 
491
494
  ```bash
@@ -495,7 +498,7 @@ mancode status --json
495
498
 
496
499
  ### `mancode workflow`
497
500
 
498
- Creates and manages V3 workflows used by `/manba`, `/man`, and `/manteam`.
501
+ Creates and manages workflows used by `/manba`, `/man`, and `/manteam`.
499
502
  Every mutation uses a `namespace:ULID` TaskRef, an explicit session, and the
500
503
  latest expected revision. Requirements, plan, review, verification, and
501
504
  completion use dedicated commands instead of the legacy `--step` protocol.
@@ -506,9 +509,11 @@ mancode context session new --client codex
506
509
  mancode workflow create man "refactor auth module" --session <id>
507
510
  mancode workflow requirements <local:ULID> finalize --file requirements.json --expected-revision <n> --session <id>
508
511
  mancode workflow plan <local:ULID> revise --file plan.md --expected-revision <n> --session <id>
512
+ mancode workflow plan <local:ULID> confirm --plan-decision <plan_only|governed_execution> --expected-revision <n> --session <id>
509
513
  mancode workflow review <local:ULID> apply --file review-ledger.json --expected-revision <n> --session <id>
510
514
  mancode workflow verify <local:ULID> apply --file verification-ledger.json --expected-revision <n> --session <id>
511
515
  mancode workflow complete <local:ULID> --expected-revision <n> --session <id>
516
+ mancode context compact --dry-run
512
517
  ```
513
518
 
514
519
  ### `mancode manps`
@@ -541,7 +546,7 @@ tokens. It updates:
541
546
  .mancode/shared/context/project.json
542
547
  ```
543
548
 
544
- V3 adapters are static bootstraps that embed no task or style snapshot, so
549
+ Platform adapters are static bootstraps that embed no task or style snapshot, so
545
550
  refreshing project facts does not require reinstalling them.
546
551
 
547
552
  ## Project Files
@@ -553,7 +558,7 @@ mancode/
553
558
  │ ├── mancode status
554
559
  │ └── mancode install <platform>
555
560
 
556
- ├── V3 authority
561
+ ├── Workflow authority
557
562
  │ ├── shared/context + team
558
563
  │ └── local/session + workflow + cache
559
564
 
@@ -634,23 +639,34 @@ Ensure the `.cursor/rules/mancode-*.mdc` files exist. Rules with
634
639
  Mode-specific rules (manba, man, manteam, manps) trigger based on the
635
640
  description field — invoke them by asking for `/manba` or similar.
636
641
 
637
- ### How to do a clean reinstall
642
+ ### How to reinstall V3 adapters
638
643
 
639
644
  ```bash
640
- mancode uninstall --all --force
641
- mancode init
642
- mancode install <platform>
645
+ mancode uninstall claude-code --force
646
+ mancode uninstall cursor --force
647
+ mancode uninstall codex --force
648
+ mancode uninstall copilot --force
649
+ mancode uninstall zcode --force
650
+ mancode install claude-code
651
+ mancode install cursor
652
+ mancode install codex
653
+ mancode install copilot
654
+ mancode install zcode
643
655
  ```
644
656
 
645
- ### How to completely remove mancode
657
+ V3 authority is protected, so `mancode uninstall --all` does not delete workflow
658
+ authority. To inspect removable runtime records, run
659
+ `mancode context compact --dry-run` first.
660
+
661
+ ### How to remove the CLI
646
662
 
647
663
  ```bash
648
- mancode uninstall --all --force
649
664
  npm uninstall -g mancode
650
665
  ```
651
666
 
652
- This removes `.mancode/`, platform config files, and mancode hooks from
653
- `.claude/settings.json`. User-authored rules and instructions are preserved.
667
+ Uninstalling each platform removes its mancode bootstrap while preserving
668
+ user-authored rules, instructions, and V3 workflow data. The `--all` form is only
669
+ supported for projects explicitly initialized with `mancode init --legacy`.
654
670
 
655
671
  ## FAQ
656
672
 
@@ -681,7 +697,7 @@ are opt-in for work that needs planning, tests, and review.
681
697
 
682
698
  Yes. mancode supports Claude Code, Cursor, Codex in the ChatGPT desktop app and
683
699
  CLI, GitHub Copilot, and experimental ZCode adaptation through static
684
- bootstraps and original mode entries. V3 treats no platform hook as approved by
700
+ bootstraps and original mode entries. mancode treats no platform hook as approved by
685
701
  default.
686
702
 
687
703
  ### Can mancode help with frontend consistency?