cadre-ai 3.4.0 → 3.5.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/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +2 -2
- package/CHANGELOG.md +90 -0
- package/README.md +52 -20
- package/dist/cadre-cli.mjs +398 -92
- package/dist/cadre-mcp.mjs +455 -195
- package/package.json +3 -2
- package/skills/archive/SKILL.md +6 -6
- package/skills/create/SKILL.md +4 -4
- package/skills/implement/SKILL.md +4 -4
- package/skills/implement/references/governed-mode.md +1 -1
- package/skills/refresh/SKILL.md +3 -3
- package/skills/revert/SKILL.md +3 -3
- package/skills/review/SKILL.md +5 -5
- package/skills/revise/SKILL.md +4 -4
- package/skills/status/SKILL.md +2 -1
- package/skills/track/SKILL.md +5 -5
- package/skills/wisp/SKILL.md +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cadre",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "A human-governed, Git-aware product delivery harness for Codex and
|
|
3
|
+
"version": "3.5.1",
|
|
4
|
+
"description": "A human-governed, Git-aware product delivery harness for Codex, Claude Code, and Zed Agent.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cadre contributors"
|
|
7
7
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cadre",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "A human-governed, Git-aware product delivery harness for Codex and
|
|
3
|
+
"version": "3.5.1",
|
|
4
|
+
"description": "A human-governed, Git-aware product delivery harness for Codex, Claude Code, and Zed Agent.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cadre contributors"
|
|
7
7
|
},
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,95 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.5.1] - 2026-08-27
|
|
4
|
+
|
|
5
|
+
Cadre 3.5.1 is a workflow-recovery hotfix for candidate validation, staged
|
|
6
|
+
track resumption, and interrupted multi-file operations. Codex and Claude Code
|
|
7
|
+
remain stable integrations; native Zed Agent support remains beta.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Replaced the faulty single-plan candidate contract with exact
|
|
12
|
+
`planValidations` for every staged root or nested `plan.md`. Candidate
|
|
13
|
+
digests now bind normalized plan paths and intended target statuses.
|
|
14
|
+
- Made `project_status` distinguish canonical, candidate-only, shadowed,
|
|
15
|
+
malformed, and unknown track state. Focused status now returns complete
|
|
16
|
+
validation errors plus track/dependency-specific `focusedErrors`.
|
|
17
|
+
- Added exact `expectedFiles` pruning for candidate stages so clarification or
|
|
18
|
+
scope contraction cannot leave stale proposal files behind.
|
|
19
|
+
- Made project initialization, execution finish, clean review, archive apply,
|
|
20
|
+
and archive provenance recording converge safely after interruption without
|
|
21
|
+
duplicate cycles or history.
|
|
22
|
+
- Derived clean-review ranges from the completed execution base through its
|
|
23
|
+
recorded HEAD, including the first implementation commit.
|
|
24
|
+
- Corrected lifecycle routing across all ten workflows, including staged-track
|
|
25
|
+
recovery, immutable terminal tracks, final implementation bookkeeping, and
|
|
26
|
+
Wisp output outside uninitialized repositories.
|
|
27
|
+
- Removed client-specific cross-workflow command references from canonical
|
|
28
|
+
guidance and kept generated Zed adapters on text template mode with
|
|
29
|
+
`/cadre-*` recommendations.
|
|
30
|
+
|
|
31
|
+
### MCP Contract Corrections
|
|
32
|
+
|
|
33
|
+
- `candidate_inspect` removes the retired singular `targetStatus` input and
|
|
34
|
+
`plan` result in favor of `planValidations` and sorted `plans`.
|
|
35
|
+
- `project_init_candidate`, `review_complete`, `archive_batch_candidate`, and
|
|
36
|
+
`integration` now publish strict `request` prepare/apply unions that reject
|
|
37
|
+
mixed-mode calls at schema validation.
|
|
38
|
+
- `execution_checkpoint` now publishes a strict `scope` plus event-specific
|
|
39
|
+
`action` contract with explicit evidence requirements.
|
|
40
|
+
- `review_complete` no longer accepts `commitRangeStart`.
|
|
41
|
+
- The surface remains 22 tools and the generated catalog remains below the
|
|
42
|
+
18 KiB budget.
|
|
43
|
+
|
|
44
|
+
### Compatibility And Upgrade
|
|
45
|
+
|
|
46
|
+
- Existing approved operation journals remain readable and resumable.
|
|
47
|
+
- Unapproved 3.5.0 candidate stages must be re-inspected under the corrected
|
|
48
|
+
validation contract before approval or promotion.
|
|
49
|
+
- Existing 3.5.0 projects remain readable and use the normal approved refresh
|
|
50
|
+
workflow to record runtime 3.5.1 before further mutation. Template set v2 is
|
|
51
|
+
unchanged.
|
|
52
|
+
- Reinstall all selected clients and start fresh client sessions so the
|
|
53
|
+
corrected schemas and workflow guidance replace cached 3.5.0 definitions.
|
|
54
|
+
|
|
55
|
+
## [3.5.0] - 2026-08-27
|
|
56
|
+
|
|
57
|
+
Cadre 3.5.0 adds beta support for the native Zed Agent while keeping the
|
|
58
|
+
Codex and Claude Code integrations stable. Cadre lifecycle, governance,
|
|
59
|
+
project-state, and template-set semantics are unchanged.
|
|
60
|
+
|
|
61
|
+
### Added
|
|
62
|
+
|
|
63
|
+
- Added `zed` to explicit client selection and auto-detection. `--target all`
|
|
64
|
+
now installs or removes Codex, Claude Code, and Zed integrations.
|
|
65
|
+
- Added generated Zed adapters for all ten workflows under
|
|
66
|
+
`zed-skills/cadre-<workflow>/`, exposed in Zed as `/cadre-*` skills through
|
|
67
|
+
collision-safe global symlinks.
|
|
68
|
+
- Added JSONC-preserving Zed configuration for the packaged Cadre context
|
|
69
|
+
server and one exact allow rule for each of the 22 Cadre MCP tools.
|
|
70
|
+
- Added safe Zed uninstall behavior that removes only Cadre-owned links and a
|
|
71
|
+
matching context server while preserving permissions and unrelated settings.
|
|
72
|
+
- Added `contentMode: "text"` to `template_get_many` for clients that cannot
|
|
73
|
+
consume embedded resource bodies, while preserving the existing embedded
|
|
74
|
+
resource default.
|
|
75
|
+
|
|
76
|
+
### Changed
|
|
77
|
+
|
|
78
|
+
- Centralized all 22 MCP tool names so server registration, Zed permissions,
|
|
79
|
+
validation, and tests share one catalog.
|
|
80
|
+
- Extended the documentation command switcher, installation guides,
|
|
81
|
+
architecture, configuration, troubleshooting, and release validation for
|
|
82
|
+
the Zed Agent beta.
|
|
83
|
+
- Updated the runtime version to 3.5.0. Existing 3.4 projects remain readable
|
|
84
|
+
and use the standard explicit `refresh` flow before further state mutation;
|
|
85
|
+
the active template set remains v2.
|
|
86
|
+
|
|
87
|
+
### Stability
|
|
88
|
+
|
|
89
|
+
- Codex and Claude Code remain stable integrations.
|
|
90
|
+
- Native Zed Agent support is beta in this release. It targets Zed's global
|
|
91
|
+
Skills and custom MCP surfaces, not Codex or Claude ACP agents hosted in Zed.
|
|
92
|
+
|
|
3
93
|
## [3.4.0] - 2026-08-27
|
|
4
94
|
|
|
5
95
|
Cadre 3.4.0 is a breaking MCP and template-contract release. Existing v1
|
package/README.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
# Cadre
|
|
2
2
|
|
|
3
|
-
Cadre is a human-governed, Git-aware delivery harness for Codex
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Cadre is a human-governed, Git-aware delivery harness for Codex, Claude Code,
|
|
4
|
+
and Zed Agent. Codex and Claude Code support is stable; native Zed Agent support
|
|
5
|
+
is beta. Cadre turns project context into resumable feature and bug tracks,
|
|
6
|
+
carries learning forward between phases, and records implementation provenance
|
|
7
|
+
in Git.
|
|
8
|
+
|
|
9
|
+
Cadre is installed as a user integration. Codex and Claude use native plugins;
|
|
10
|
+
Zed uses global skills and a custom MCP server. The bundled TypeScript MCP
|
|
11
|
+
server provides deterministic state operations and immutable, versioned
|
|
12
|
+
templates. A project keeps only approved, mutable delivery state under
|
|
13
|
+
`.cadre/`; runtime code and template catalogs are not copied into the project.
|
|
6
14
|
|
|
7
15
|
**Documentation:** [cadre-docs.pages.dev](https://cadre-docs.pages.dev/) ·
|
|
8
16
|
[Quickstart](https://cadre-docs.pages.dev/quickstart/) ·
|
|
@@ -30,7 +38,7 @@ Default idiomatic styleguides are included for Go, Java, Kotlin, Maven, Gradle,
|
|
|
30
38
|
|
|
31
39
|
- Node.js 18 or newer
|
|
32
40
|
- Git
|
|
33
|
-
- The `codex`
|
|
41
|
+
- The `codex`, `claude`, or `zed` CLI for each selected client
|
|
34
42
|
|
|
35
43
|
## Install
|
|
36
44
|
|
|
@@ -55,14 +63,18 @@ cadre-ai install --target codex
|
|
|
55
63
|
|
|
56
64
|
# Claude Code only
|
|
57
65
|
cadre-ai install --target claude
|
|
66
|
+
|
|
67
|
+
# Zed Agent only (beta)
|
|
68
|
+
cadre-ai install --target zed
|
|
58
69
|
```
|
|
59
70
|
|
|
60
71
|
The installer:
|
|
61
72
|
|
|
62
|
-
1. Packages the skills, MCP configuration, self-contained runtime,
|
|
63
|
-
templates into a local
|
|
64
|
-
2. Registers
|
|
65
|
-
|
|
73
|
+
1. Packages the skills, MCP configuration, self-contained runtime, generated
|
|
74
|
+
Zed adapters, and templates into a shared local payload.
|
|
75
|
+
2. Registers and installs `cadre@cadre` for Codex/Claude, or links global
|
|
76
|
+
`cadre-*` skills and configures the custom MCP server for Zed.
|
|
77
|
+
3. Verifies each selected client through its available native state.
|
|
66
78
|
4. Pre-approves only Cadre MCP tools so normal Cadre commands do not produce an
|
|
67
79
|
extra permission prompt.
|
|
68
80
|
|
|
@@ -75,6 +87,8 @@ By default, installation applies these narrowly scoped rules:
|
|
|
75
87
|
- Codex: `default_tools_approval_mode = "approve"` under `plugins."cadre@cadre".mcp_servers.cadre` in the user Codex configuration.
|
|
76
88
|
- Claude Code: `cadre` in `enabledMcpjsonServers` and `mcp__cadre__*` in the
|
|
77
89
|
user permission allowlist.
|
|
90
|
+
- Zed Agent (beta): one exact `mcp:cadre:<tool>` allow entry for each Cadre MCP tool
|
|
91
|
+
under `agent.tool_permissions.tools`.
|
|
78
92
|
|
|
79
93
|
Existing configuration, comments, and unrelated permission rules are preserved. A Claude deny rule is never removed or overridden. These rules suppress the host application's per-tool prompt; they do not bypass Cadre's requirement to present artifacts and lifecycle mutations to the human for approval.
|
|
80
94
|
|
|
@@ -90,7 +104,7 @@ cadre-ai install --target codex --prompt-mcp-tools
|
|
|
90
104
|
|
|
91
105
|
| Option | Effect |
|
|
92
106
|
| --- | --- |
|
|
93
|
-
| `--target auto\|all\|codex\|claude` | Select the target client; defaults to `auto`. |
|
|
107
|
+
| `--target auto\|all\|codex\|claude\|zed` | Select the target client; defaults to `auto`. |
|
|
94
108
|
| `--scope user` | Explicitly select the only supported installation scope. |
|
|
95
109
|
| `--replace-marketplace` | Replace another configured marketplace named `cadre` after the installer detects the path mismatch. |
|
|
96
110
|
| `--prompt-mcp-tools` | Do not add the Cadre MCP pre-approval rule. |
|
|
@@ -126,6 +140,8 @@ After installation or update:
|
|
|
126
140
|
|
|
127
141
|
- Start a new Codex conversation so the new skills and MCP tools are loaded.
|
|
128
142
|
- In Claude Code, run `/reload-plugins` or start a new session.
|
|
143
|
+
- In Zed, open a new Agent thread; global skills reload live and the Cadre MCP
|
|
144
|
+
server should appear active under AI → MCP Servers.
|
|
129
145
|
|
|
130
146
|
You can inspect installation state with:
|
|
131
147
|
|
|
@@ -136,7 +152,8 @@ claude plugin list --json
|
|
|
136
152
|
|
|
137
153
|
## Quick start
|
|
138
154
|
|
|
139
|
-
Cadre commands are agent skills, not shell commands. Invoke them in
|
|
155
|
+
Cadre commands are agent skills, not shell commands. Invoke them in a Codex,
|
|
156
|
+
Claude Code, or native Zed Agent conversation.
|
|
140
157
|
|
|
141
158
|
### 1. Initialize a project
|
|
142
159
|
|
|
@@ -145,6 +162,7 @@ From the project repository, invoke:
|
|
|
145
162
|
```text
|
|
146
163
|
Codex: $cadre:create
|
|
147
164
|
Claude Code: /cadre:create
|
|
165
|
+
Zed Agent: /cadre-create
|
|
148
166
|
```
|
|
149
167
|
|
|
150
168
|
Cadre will:
|
|
@@ -152,8 +170,9 @@ Cadre will:
|
|
|
152
170
|
1. Inspect the repository and Git state.
|
|
153
171
|
2. Classify it as greenfield or brownfield, asking when the evidence is unclear.
|
|
154
172
|
3. Propose product, engineering, tech-stack, workflow, and applicable styleguide artifacts.
|
|
155
|
-
4.
|
|
156
|
-
|
|
173
|
+
4. Present the default or amended workflow, styleguides, and exact `.cadre`
|
|
174
|
+
file set in one final initialization approval envelope.
|
|
175
|
+
5. Apply only that digest-bound proposal.
|
|
157
176
|
6. Initialize Git when the approved project root is not already in a worktree.
|
|
158
177
|
7. Validate and commit the approved setup with resumable checkpoints.
|
|
159
178
|
|
|
@@ -162,9 +181,10 @@ Cadre will:
|
|
|
162
181
|
```text
|
|
163
182
|
Codex: $cadre:track Add passwordless login as a feature
|
|
164
183
|
Claude Code: /cadre:track Fix duplicate invoice creation as a bug
|
|
184
|
+
Zed Agent: /cadre-track Add passwordless login as a feature
|
|
165
185
|
```
|
|
166
186
|
|
|
167
|
-
Cadre proposes and
|
|
187
|
+
Cadre proposes and approves together:
|
|
168
188
|
|
|
169
189
|
- `spec.md`, containing functional requirements, non-functional requirements, acceptance criteria, dependencies, additional information, and dependent-track impact;
|
|
170
190
|
- `plan.md`, defining an acyclic phase/task dependency graph with derived manual-verification barriers;
|
|
@@ -177,6 +197,7 @@ Every delivery phase ends with `User Manual Verification`. The final phase is al
|
|
|
177
197
|
```text
|
|
178
198
|
Codex: $cadre:implement passwordless-login
|
|
179
199
|
Claude Code: /cadre:implement passwordless-login
|
|
200
|
+
Zed Agent: /cadre-implement passwordless-login
|
|
180
201
|
```
|
|
181
202
|
|
|
182
203
|
Parallel mode is the default. Request sequential execution explicitly when needed:
|
|
@@ -184,6 +205,7 @@ Parallel mode is the default. Request sequential execution explicitly when neede
|
|
|
184
205
|
```text
|
|
185
206
|
Codex: $cadre:implement passwordless-login sequentially
|
|
186
207
|
Claude Code: /cadre:implement passwordless-login sequentially
|
|
208
|
+
Zed Agent: /cadre-implement passwordless-login sequentially
|
|
187
209
|
```
|
|
188
210
|
|
|
189
211
|
Implementation starts only after declared track dependencies are completed. Phase and task dependencies form a hierarchical DAG: phase dependencies activate phases, task dependencies expose phase-local work, and main allocates one global worker bound across every ready task. The generated workflow defaults to three delegated workers, the execution runtime accepts `maxWorkers` from 1 through 32, and effective concurrency is clamped by safe ready nodes and available host worker slots. Different phases can use direct execution, a sequential phase worker, or task-worker fan-out concurrently. Within one phase, execution can switch between sequential and fan-out modes only at a clean, journaled checkpoint. The main agent remains the only scheduler, operational owner of phase integration worktrees, state owner, merger, conflict resolver, worktree cleaner, and recorder of human approval.
|
|
@@ -195,6 +217,7 @@ Every delivery phase ends with a derived manual-verification barrier over its ta
|
|
|
195
217
|
```text
|
|
196
218
|
Codex: $cadre:review passwordless-login
|
|
197
219
|
Claude Code: /cadre:review passwordless-login
|
|
220
|
+
Zed Agent: /cadre-review passwordless-login
|
|
198
221
|
```
|
|
199
222
|
|
|
200
223
|
Findings are presented before they become Cadre state. Approved bugs create a timestamped bug artifact and add remediation phases to the plan. A human-approved clean review marks the track `completed`.
|
|
@@ -204,6 +227,7 @@ Findings are presented before they become Cadre state. Approved bugs create a ti
|
|
|
204
227
|
```text
|
|
205
228
|
Codex: $cadre:archive passwordless-login account-lockout
|
|
206
229
|
Claude Code: /cadre:archive all completed
|
|
230
|
+
Zed Agent: /cadre-archive all completed
|
|
207
231
|
```
|
|
208
232
|
|
|
209
233
|
Archive accepts one or more completed tracks in one resumable batch. It distills their durable learning into the project pattern catalog, updates relevant seeds for active tracks, preserves the full track history, and moves each selected track to its derived archive location.
|
|
@@ -295,18 +319,18 @@ The `cadre` stdio server exposes active immutable resources at `cadre://template
|
|
|
295
319
|
| --- | --- | --- |
|
|
296
320
|
| `template_get_many` | No | Read an ordered template bundle in one call; immutable catalog contents are cached for the server lifetime. |
|
|
297
321
|
| `styleguide_resolve` | No | Resolve default styleguide descriptors and hashes for an approved technology list. |
|
|
298
|
-
| `project_status` | No | Return scoped
|
|
322
|
+
| `project_status` | No | Return complete validation plus scoped canonical, staged, shadowed, or implementation status. |
|
|
299
323
|
| `state_validate` | No | Validate project, track, plan, learning, dependency, review, and archive invariants. |
|
|
300
|
-
| `candidate_stage_prepare` | Atomic | Create/resume
|
|
301
|
-
| `candidate_inspect` | No | Return one exact manifest and
|
|
324
|
+
| `candidate_stage_prepare` | Atomic | Create/resume a stage and optionally prune files outside its exact `expectedFiles` set. |
|
|
325
|
+
| `candidate_inspect` | No | Return one exact manifest and validate every staged root or nested plan against its declared target status. |
|
|
302
326
|
| `execution_graph_validate` | No | Parse and validate phase/task dependencies, cycles, and derived manual-verification barriers. |
|
|
303
|
-
| `review_complete` | Adaptive |
|
|
327
|
+
| `review_complete` | Adaptive | Derive the full execution-base review range, then prepare/apply an idempotent clean completion. |
|
|
304
328
|
| `archive_batch_candidate` | Adaptive | Read staged pattern/seed files, return the complete batch for approval, then apply its unchanged token. |
|
|
305
329
|
| `archive_batch_record` | Atomic | Record the resulting archive commit in track, project, and batch provenance without a second decision. |
|
|
306
330
|
| `execution_start` | Atomic | Create the authorized execution journal and enter `in_progress` in one call. |
|
|
307
|
-
| `execution_checkpoint` | Atomic |
|
|
331
|
+
| `execution_checkpoint` | Atomic | Apply one strict `scope` + event-specific `action` with required evidence. |
|
|
308
332
|
| `execution_status` | No | Return a compact ready/active/blocked scheduler view, with optional focused node detail. |
|
|
309
|
-
| `execution_finish` | Atomic |
|
|
333
|
+
| `execution_finish` | Atomic | Convergently write completed execution, plan markers, `ready_for_review` state, and index. |
|
|
310
334
|
| `worktree_create` | Atomic | Create/reconcile a worktree and record node start. |
|
|
311
335
|
| `integration` | Adaptive | Merge and record integration; require a second call only in governed mode. |
|
|
312
336
|
| `worktree_cleanup` | Atomic | Remove a verified integrated worktree and record completion. |
|
|
@@ -315,7 +339,15 @@ The `cadre` stdio server exposes active immutable resources at `cadre://template
|
|
|
315
339
|
| `setup_record_commit` | Yes | Record the already-created setup commit SHA and complete setup state. |
|
|
316
340
|
| `tracks_render` | Atomic | Validate and write deterministic `tracks.md` from current track state. |
|
|
317
341
|
|
|
318
|
-
The
|
|
342
|
+
The four adaptive tools use a strict `request` union: prepare accepts only its
|
|
343
|
+
declared fields, while apply accepts only an unchanged `proposalToken`. The MCP
|
|
344
|
+
server cannot approve its own proposals or run arbitrary shell commands. Its
|
|
345
|
+
Git surface is limited to derived Cadre worktree creation, non-squash
|
|
346
|
+
integration, status, and verified cleanup. It never force-deletes a branch,
|
|
347
|
+
resolves a conflict, edits product files, or commits on behalf of a worker.
|
|
348
|
+
Multi-file state operations use atomic individual writes and converge from
|
|
349
|
+
matching partial state; mismatched bytes, hashes, journals, or Git HEAD remain
|
|
350
|
+
hard failures.
|
|
319
351
|
|
|
320
352
|
Review and archive minimize approval fragmentation without weakening governance. A finding disposition and its exact remediation artifacts may share one approval; explicit reject-and-complete records accepted risks in the clean review; and a uniquely eligible archive target is included directly in the full batch proposal. Archive prepare computes the post-move `tracks.md` before approval, including archived rows. Any changed content, selection, digest, or consequence requires a corrected proposal and renewed approval.
|
|
321
353
|
|