cclaw-cli 0.29.0 → 0.30.0
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 +128 -253
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# cclaw
|
|
2
2
|
|
|
3
|
-
**Install once, ship every time.** cclaw is an installer-first workflow
|
|
4
|
-
that gives your AI coding agent one inspectable path from idea to
|
|
3
|
+
**Install once, ship every time.** cclaw is an installer-first workflow
|
|
4
|
+
runtime that gives your AI coding agent one inspectable path from idea to
|
|
5
|
+
shipped PR:
|
|
5
6
|
|
|
6
7
|
> **brainstorm → scope → design → spec → plan → tdd → review → ship**
|
|
7
8
|
|
|
@@ -9,9 +10,9 @@ Every stage has real gates the agent cannot skip, every decision leaves a
|
|
|
9
10
|
file-backed audit trail, and the same six slash commands work across
|
|
10
11
|
Claude Code, Cursor, OpenCode, and OpenAI Codex.
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
You install cclaw **once** from the terminal, then everything happens
|
|
14
|
+
inside your harness — no hidden control plane, no background daemon, no
|
|
15
|
+
operational knobs to memorise.
|
|
15
16
|
|
|
16
17
|
---
|
|
17
18
|
|
|
@@ -25,74 +26,66 @@ diff, and reason about.
|
|
|
25
26
|
- Maintainers of AI agents/skills who want **measurable prompt engineering**
|
|
26
27
|
via the built-in eval harness.
|
|
27
28
|
|
|
28
|
-
If you are looking for a virtual engineering org with 20+ role-play
|
|
29
|
-
commands, or for a plugin marketplace ecosystem, see the
|
|
30
|
-
[Compared to references](#compared-to-references) section — other tools do
|
|
31
|
-
that well. cclaw trades breadth for a single, inspectable pipeline.
|
|
32
|
-
|
|
33
29
|
---
|
|
34
30
|
|
|
35
31
|
## How it works
|
|
36
32
|
|
|
37
|
-
```mermaid
|
|
38
|
-
flowchart LR
|
|
39
|
-
A[Idea] --> B[Brainstorm]
|
|
40
|
-
B --> C[Scope]
|
|
41
|
-
C --> D[Design]
|
|
42
|
-
D --> E[Spec]
|
|
43
|
-
E --> F[Plan]
|
|
44
|
-
F --> G[TDD]
|
|
45
|
-
G --> H[Review]
|
|
46
|
-
H --> I[Ship]
|
|
47
33
|
```
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
S-->>U: Next stage is explicit
|
|
34
|
+
┌─────────┐ ┌──────┐ ┌────────┐ ┌──────┐ ┌──────┐
|
|
35
|
+
│ Idea │ → │ /cc │ → │Classify│ → │Track │ → │Stages│
|
|
36
|
+
└─────────┘ └──────┘ └────────┘ └──────┘ └──┬───┘
|
|
37
|
+
│
|
|
38
|
+
┌───────────────────────────────────────────────┘
|
|
39
|
+
▼
|
|
40
|
+
brainstorm → scope → design → spec → plan → tdd → review → ship
|
|
41
|
+
│ │ │ │ │ │ │ │
|
|
42
|
+
▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
|
|
43
|
+
01.md 02.md 03.md 04.md 05.md 06.md 07.md 08.md
|
|
44
|
+
│
|
|
45
|
+
└──── gates + subagents + knowledge capture happen at every step
|
|
61
46
|
```
|
|
62
47
|
|
|
63
48
|
Every stage reads and writes real files under `.cclaw/`. `flow-state.json`
|
|
64
49
|
holds the single source of truth for "where are we"; `knowledge.jsonl`
|
|
65
|
-
accumulates reusable lessons
|
|
66
|
-
`.cclaw/artifacts/` until the feature is
|
|
50
|
+
accumulates reusable lessons **throughout** the flow, not only at the end;
|
|
51
|
+
stage artifacts live under `.cclaw/artifacts/` until the feature is
|
|
52
|
+
archived.
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
You ──► /cc <idea>
|
|
56
|
+
│
|
|
57
|
+
▼
|
|
58
|
+
harness loads stage contract + HARD-GATE
|
|
59
|
+
│
|
|
60
|
+
▼
|
|
61
|
+
cclaw reads state + knowledge, guides execution
|
|
62
|
+
│
|
|
63
|
+
▼
|
|
64
|
+
artifacts written, checkpoint saved
|
|
65
|
+
│
|
|
66
|
+
▼
|
|
67
|
+
next stage is explicit in flow-state.json
|
|
68
|
+
```
|
|
67
69
|
|
|
68
70
|
---
|
|
69
71
|
|
|
70
72
|
## 30-second install
|
|
71
73
|
|
|
72
74
|
```bash
|
|
73
|
-
npx cclaw-cli
|
|
75
|
+
npx cclaw-cli
|
|
74
76
|
```
|
|
75
77
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
Interactive setup will pick which harnesses to install into. For CI or
|
|
79
|
+
scripted installs:
|
|
78
80
|
|
|
79
81
|
```bash
|
|
80
|
-
npx cclaw-cli init --
|
|
82
|
+
npx cclaw-cli init --harnesses=claude,cursor --no-interactive
|
|
81
83
|
```
|
|
82
84
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
| Profile | promptGuardMode | tddEnforcement | gitHookGuards | languageRulePacks | Use when |
|
|
86
|
-
|---|---|---|---|---|---|
|
|
87
|
-
| `minimal` | advisory | advisory | off | none | Personal projects, quick exploration |
|
|
88
|
-
| `standard` _(default)_ | advisory | advisory | off | none | Most teams; enables the full flow without hard blocks |
|
|
89
|
-
| `full` | **strict** | **strict** | **on** | all | Enterprise / regulated / multi-contributor repos |
|
|
90
|
-
|
|
91
|
-
Profile values are persisted to `.cclaw/config.yaml` and preserved by
|
|
92
|
-
`cclaw upgrade`. Switch profile later with `cclaw init --profile=<id>` or
|
|
93
|
-
edit individual keys directly.
|
|
85
|
+
That's the entire CLI interaction. Everything after install happens
|
|
86
|
+
inside your harness (Claude Code, Cursor, OpenCode, or Codex).
|
|
94
87
|
|
|
95
|
-
### What
|
|
88
|
+
### What gets generated
|
|
96
89
|
|
|
97
90
|
```text
|
|
98
91
|
.cclaw/
|
|
@@ -104,7 +97,7 @@ edit individual keys directly.
|
|
|
104
97
|
├── adapters/ # per-harness translation notes
|
|
105
98
|
├── agents/ # subagent definitions (planner, reviewer, …)
|
|
106
99
|
├── hooks/ # harness-agnostic hook scripts
|
|
107
|
-
├── worktrees/ #
|
|
100
|
+
├── worktrees/ # isolated feature worktrees (power-user, via /cc-ops)
|
|
108
101
|
├── artifacts/ # active feature artifacts (00-idea.md → 09-retro.md)
|
|
109
102
|
├── runs/ # archived feature snapshots: YYYY-MM-DD-slug/
|
|
110
103
|
├── references/ # (optional) pinned copies of reference frameworks
|
|
@@ -122,22 +115,30 @@ Plus harness-specific shims:
|
|
|
122
115
|
- `.codex/commands/cc*.md` + `.codex/hooks.json`
|
|
123
116
|
- `AGENTS.md` with a managed routing block
|
|
124
117
|
|
|
118
|
+
`.cclaw/config.yaml` holds every tunable key (prompt guard strictness,
|
|
119
|
+
TDD enforcement, git-hook guards, language rule packs, track heuristics).
|
|
120
|
+
Edit it directly — `cclaw-cli upgrade` preserves your changes.
|
|
121
|
+
|
|
125
122
|
---
|
|
126
123
|
|
|
127
|
-
## The
|
|
124
|
+
## The four commands you actually use
|
|
128
125
|
|
|
129
|
-
All
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
All four appear as slash commands in every supported harness. This is the
|
|
127
|
+
top-level user surface — everything else is either automatic or happens
|
|
128
|
+
inside `/cc-ops` subcommands.
|
|
132
129
|
|
|
133
130
|
| Command | What it does |
|
|
134
131
|
|---|---|
|
|
135
|
-
| **`/cc <idea>`** | Classify the task
|
|
132
|
+
| **`/cc <idea>`** | Classify the task, discover origin docs (`docs/prd/**`, ADRs, root `PRD.md`, …), sniff the stack, recommend a track, then start the first stage of that track. `/cc` without arguments resumes the current flow. |
|
|
136
133
|
| **`/cc-next`** | The one progression primitive. Reads `flow-state.json`, checks gates + mandatory subagent delegations, and either resumes the current stage or advances to the next. `/cc-next` in a new session is how you **resume**. |
|
|
137
134
|
| **`/cc-ideate`** | Repository improvement discovery. Scans for TODOs, flaky tests, oversized modules, docs drift, and recurring knowledge-store lessons; returns a ranked backlog before you commit to a specific feature. |
|
|
138
135
|
| **`/cc-view`** | Read-only flow visibility. `/cc-view status` (default), `/cc-view tree`, `/cc-view diff` (baseline delta map). Never mutates state. |
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
|
|
137
|
+
> Power-user surface: `/cc-ops` is an operational router for manual
|
|
138
|
+
> overrides (rewind a stale stage, manage parallel features, re-run a
|
|
139
|
+
> compound pass). `/cc-learn` is the strict-schema knowledge writer —
|
|
140
|
+
> agents call it automatically from completion protocols; you rarely
|
|
141
|
+
> invoke it by hand.
|
|
141
142
|
|
|
142
143
|
### Example first-run
|
|
143
144
|
|
|
@@ -199,7 +200,7 @@ cclaw has eight stages, but a single prompt rarely needs all of them.
|
|
|
199
200
|
|
|
200
201
|
Each stage produces a dated artifact under `.cclaw/artifacts/`:
|
|
201
202
|
`00-idea.md` (seed) and `01-brainstorm.md` through `08-ship.md`
|
|
202
|
-
(plus `09-retro.md` at closeout).
|
|
203
|
+
(plus `09-retro.md` at automatic closeout — see below).
|
|
203
204
|
|
|
204
205
|
### Track heuristics are configurable
|
|
205
206
|
|
|
@@ -231,80 +232,31 @@ Reclassification is append-only: the old decision stays in history.
|
|
|
231
232
|
|
|
232
233
|
---
|
|
233
234
|
|
|
234
|
-
##
|
|
235
|
-
|
|
236
|
-
Run anytime. Non-zero exit code means something observably wrong with the
|
|
237
|
-
`.cclaw/` runtime.
|
|
238
|
-
|
|
239
|
-
```bash
|
|
240
|
-
cclaw doctor # full sweep, PASS/FAIL summary
|
|
241
|
-
cclaw doctor --reconcile-gates # also recompute current stage gate evidence
|
|
242
|
-
cclaw doctor --explain # include fix + doc reference per check
|
|
243
|
-
cclaw doctor --only=error # or --only=trace:,hook: for narrow sweeps
|
|
244
|
-
cclaw doctor --quiet # only failing checks (CI-friendly)
|
|
245
|
-
cclaw doctor --json # machine-readable, exit 2 on error failures
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
Each failing check points at:
|
|
249
|
-
|
|
250
|
-
- a **severity** (error / warning / info)
|
|
251
|
-
- a one-line **summary**
|
|
252
|
-
- concrete **details** from your repo
|
|
253
|
-
- a **fix** string and a **doc reference** when `--explain` is on
|
|
254
|
-
|
|
255
|
-
Example:
|
|
256
|
-
|
|
257
|
-
```text
|
|
258
|
-
[ERROR]
|
|
259
|
-
FAIL trace:matrix_populated :: spec artifact exists but trace matrix is empty
|
|
260
|
-
details: .cclaw/artifacts/04-spec.md has 3 acceptance criteria; 0 mapped
|
|
261
|
-
fix: rebuild trace matrix via /cc-next (spec completion protocol) or edit 04-spec.md to add testable criteria
|
|
262
|
-
docs: .cclaw/skills/specification-authoring/SKILL.md#trace-matrix
|
|
263
|
-
|
|
264
|
-
Doctor status: BLOCKED (1 failing error check)
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
Add `cclaw doctor` to a pre-commit hook or CI job (`exit 2` on error
|
|
268
|
-
severity) and you inherit a shared definition of "the runtime is healthy".
|
|
269
|
-
|
|
270
|
-
---
|
|
271
|
-
|
|
272
|
-
## Closeout and compounding
|
|
273
|
-
|
|
274
|
-
Shipping a feature is a **separate stage** (`08-ship.md`), followed by two
|
|
275
|
-
more disciplined steps:
|
|
276
|
-
|
|
277
|
-
```text
|
|
278
|
-
/cc-ops retro # writes 09-retro.md; gates knowledge capture (≥1 compound line)
|
|
279
|
-
/cc-ops compound # (optional) lifts repeated learnings into first-class rules/skills
|
|
280
|
-
/cc-ops archive # moves artifacts/ to runs/YYYY-MM-DD-slug/, resets flow-state
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
Archive is gated on retro completion unless you explicitly pass
|
|
284
|
-
`--skip-retro --retro-reason="..."`. You cannot accidentally lose the
|
|
285
|
-
learning pass.
|
|
286
|
-
|
|
287
|
-
Knowledge entries are strict JSONL with frequency, maturity, and provenance
|
|
288
|
-
fields — not freeform markdown — so they stay machine-queryable across
|
|
289
|
-
sessions and contributors.
|
|
290
|
-
|
|
291
|
-
---
|
|
292
|
-
|
|
293
|
-
## Parallel features with git worktrees
|
|
294
|
-
|
|
295
|
-
Use `/cc-ops feature` to run more than one cclaw flow side by side without
|
|
296
|
-
copying `.cclaw/` state:
|
|
235
|
+
## Guardrails that ship in the box
|
|
297
236
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
/cc-ops feature list # shows all active features + their branches
|
|
301
|
-
/cc-ops feature switch checkout-refactor
|
|
302
|
-
/cc-ops feature status # which feature this workspace is attached to
|
|
303
|
-
```
|
|
237
|
+
These are the things that make cclaw "enterprise-strong" without turning
|
|
238
|
+
it into ceremony:
|
|
304
239
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
240
|
+
- **Locked decisions (D-XX IDs).** Scope decisions are numbered and must
|
|
241
|
+
reappear in plan + TDD artifacts. The artifact linter catches any
|
|
242
|
+
silent drift.
|
|
243
|
+
- **No placeholders.** `TBD`, `TODO`, `similar to task`, and "static for
|
|
244
|
+
now"-style scope reduction are flagged before a stage completes.
|
|
245
|
+
- **Stale-stage detection.** If an upstream artifact changes after a
|
|
246
|
+
downstream stage is already complete, cclaw marks the downstream stage
|
|
247
|
+
stale and refuses to advance until you re-run it (or explicitly
|
|
248
|
+
acknowledge via a manual override).
|
|
249
|
+
- **Mandatory subagent delegation** at TDD, with per-harness waivers.
|
|
250
|
+
- **Turn Announce Discipline.** Every stage entry/exit emits a visible
|
|
251
|
+
line so users can see what the agent is doing, not just what it says.
|
|
252
|
+
- **Extracted protocols.** Decision, Completion, and Ethos protocols live
|
|
253
|
+
in a single place (`.cclaw/contexts/`), so every skill speaks the same
|
|
254
|
+
dialect.
|
|
255
|
+
- **Knowledge capture throughout the flow.** Every stage completion
|
|
256
|
+
protocol can emit entries to `knowledge.jsonl` — not only retro. Strict
|
|
257
|
+
JSONL schema keeps it machine-queryable.
|
|
258
|
+
- **Automatic integrity checks.** Runtime health is verified on every
|
|
259
|
+
stage transition — no command you need to remember to run.
|
|
308
260
|
|
|
309
261
|
---
|
|
310
262
|
|
|
@@ -323,9 +275,26 @@ subagent as `completed` or explicitly `waived` (for harnesses without
|
|
|
323
275
|
native subagent dispatch, such as Codex — see
|
|
324
276
|
[Harness support](#harness-support)).
|
|
325
277
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## Ship and closeout
|
|
281
|
+
|
|
282
|
+
Shipping writes `08-ship.md` and then closes out the feature through a
|
|
283
|
+
guided three-step sequence:
|
|
284
|
+
|
|
285
|
+
1. **Retro** drafts `09-retro.md` from flow artifacts and the delegation
|
|
286
|
+
log; you review and accept.
|
|
287
|
+
2. **Compound pass** promotes repeated knowledge entries (frequency ≥ 2,
|
|
288
|
+
maturity = stable) into first-class rules or skills.
|
|
289
|
+
3. **Archive** moves artifacts to `.cclaw/runs/YYYY-MM-DD-<slug>/` and
|
|
290
|
+
resets `flow-state.json`.
|
|
291
|
+
|
|
292
|
+
Retro is not optional — archive is gated on retro completion so you can't
|
|
293
|
+
silently lose the learning pass.
|
|
294
|
+
|
|
295
|
+
> **Coming next:** cclaw will chain these three steps automatically from
|
|
296
|
+
> `ship` (one structured `edit`/`accept`/`skip` ask, resumable if the
|
|
297
|
+
> session ends). Tracked as the v0.32 closeout-automation wave.
|
|
329
298
|
|
|
330
299
|
---
|
|
331
300
|
|
|
@@ -335,62 +304,26 @@ cclaw is honest about which harnesses give you full automation and which
|
|
|
335
304
|
need small manual bridges. See
|
|
336
305
|
[`docs/harnesses.md`](./docs/harnesses.md) for the full matrix.
|
|
337
306
|
|
|
338
|
-
| Harness |
|
|
307
|
+
| Harness | Subagent dispatch | Hook surface | Structured ask | Status |
|
|
339
308
|
|---|---|---|---|---|
|
|
340
|
-
| Claude Code |
|
|
341
|
-
| Cursor |
|
|
342
|
-
| OpenCode |
|
|
343
|
-
| OpenAI Codex |
|
|
344
|
-
|
|
345
|
-
Capability gaps are captured in `.cclaw/state/harness-gaps.json` and
|
|
346
|
-
surfaced by `cclaw doctor`. Where native dispatch is missing, cclaw emits
|
|
347
|
-
a structured **waiver** rather than pretending the delegation happened.
|
|
348
|
-
|
|
349
|
-
---
|
|
350
|
-
|
|
351
|
-
## Guardrails that ship in the box
|
|
309
|
+
| Claude Code | native | full | `AskUserQuestion` | full parity |
|
|
310
|
+
| Cursor | partial | full | `AskQuestion` | parity gap: subagent dispatch |
|
|
311
|
+
| OpenCode | partial | plugin | plain-text | parity gap: plugin hooks |
|
|
312
|
+
| OpenAI Codex | none (waiver) | full | plain-text | parity gap: no subagent |
|
|
352
313
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
reappear in plan + TDD artifacts. The artifact linter catches any
|
|
358
|
-
silent drift.
|
|
359
|
-
- **No placeholders.** `TBD`, `TODO`, `similar to task`, and "static for
|
|
360
|
-
now"-style scope reduction are flagged before a stage completes.
|
|
361
|
-
- **Stale-stage detection.** If an upstream artifact changes after a
|
|
362
|
-
downstream stage is already complete, cclaw marks the downstream stage
|
|
363
|
-
stale and refuses to advance until you re-run it (or explicitly
|
|
364
|
-
acknowledge via `/cc-ops rewind --ack <stage>`).
|
|
365
|
-
- **Mandatory subagent delegation** at TDD, with per-harness waivers.
|
|
366
|
-
- **Turn Announce Discipline.** Every stage entry/exit emits a visible
|
|
367
|
-
line so users can see what the agent is doing, not just what it says.
|
|
368
|
-
- **Extracted protocols.** Decision, Completion, and Ethos protocols live
|
|
369
|
-
in a single place (`.cclaw/contexts/`), so every skill speaks the same
|
|
370
|
-
dialect.
|
|
371
|
-
- **Strict JSONL knowledge schema.** Queryable from scripts, not just
|
|
372
|
-
grep-able.
|
|
314
|
+
Capability gaps are captured in `.cclaw/state/harness-gaps.json`. Where
|
|
315
|
+
native dispatch is missing, cclaw emits a **structured waiver** rather
|
|
316
|
+
than pretending the delegation happened. Closing these gaps is an
|
|
317
|
+
ongoing kinetic effort — see the harness tracking doc above.
|
|
373
318
|
|
|
374
319
|
---
|
|
375
320
|
|
|
376
321
|
## Eval-driven prompt engineering
|
|
377
322
|
|
|
378
|
-
cclaw ships with `cclaw eval` — a three-tier regression harness for
|
|
379
|
-
skills and contracts the runtime generates. Use it when you change a
|
|
323
|
+
cclaw ships with `cclaw-cli eval` — a three-tier regression harness for
|
|
324
|
+
the skills and contracts the runtime generates. Use it when you change a
|
|
380
325
|
stage skill, tweak a prompt, or swap a model.
|
|
381
326
|
|
|
382
|
-
```bash
|
|
383
|
-
cclaw eval --dry-run # validate corpus + config
|
|
384
|
-
cclaw eval --schema-only # L1 structural (PR-blocking, no LLM)
|
|
385
|
-
cclaw eval --rules # L1 + L2 rule-based
|
|
386
|
-
cclaw eval --judge --mode=fixture --stage=spec # L3 LLM judge against a fixture
|
|
387
|
-
cclaw eval --judge --mode=agent --stage=plan # draft in a sandbox, then judge
|
|
388
|
-
cclaw eval --mode=workflow --judge # full multi-stage run (Tier C)
|
|
389
|
-
cclaw eval --compare-model=gpt-4o-mini # diff two models against same corpus
|
|
390
|
-
cclaw eval diff 0.26.0 latest # compare two saved reports
|
|
391
|
-
cclaw eval --background # long runs go to .cclaw/evals/runs/
|
|
392
|
-
```
|
|
393
|
-
|
|
394
327
|
Works with any OpenAI-compatible endpoint — Zhipu AI GLM, OpenAI, Together,
|
|
395
328
|
self-hosted vLLM — via three environment variables:
|
|
396
329
|
|
|
@@ -398,89 +331,31 @@ self-hosted vLLM — via three environment variables:
|
|
|
398
331
|
CCLAW_EVAL_API_KEY=...
|
|
399
332
|
CCLAW_EVAL_BASE_URL=https://api.z.ai/api/coding/paas/v4 # default
|
|
400
333
|
CCLAW_EVAL_MODEL=glm-5.1 # default
|
|
401
|
-
CCLAW_EVAL_DAILY_USD_CAP=5 # optional cost guard
|
|
402
334
|
```
|
|
403
335
|
|
|
404
|
-
Full details and the eval contract live in
|
|
336
|
+
Full details, corpus format, and the eval contract live in
|
|
405
337
|
[`docs/evals.md`](./docs/evals.md).
|
|
406
338
|
|
|
407
339
|
---
|
|
408
340
|
|
|
409
341
|
## CLI reference
|
|
410
342
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
[--interactive | --no-interactive] [--dry-run]
|
|
414
|
-
cclaw sync # regenerate shims
|
|
415
|
-
cclaw doctor [--reconcile-gates] [--explain] [--quiet] \
|
|
416
|
-
[--only=<filter>] [--json]
|
|
417
|
-
cclaw upgrade # refresh generated files; preserve config
|
|
418
|
-
cclaw archive [--name=<slug>] [--skip-retro --retro-reason=<t>]
|
|
419
|
-
cclaw eval <see evals section above>
|
|
420
|
-
cclaw uninstall # remove .cclaw + generated shims
|
|
421
|
-
cclaw --version # shows the installed package version
|
|
422
|
-
```
|
|
423
|
-
|
|
424
|
-
`sync` regenerates shims and runtime files without touching user artifacts,
|
|
425
|
-
state, or config keys. `upgrade` does the same **and** bumps the version
|
|
426
|
-
stamp in `.cclaw/config.yaml`, preserving every custom profile/heuristic
|
|
427
|
-
key. To reset to a named profile, re-run `cclaw init --profile=<id>`.
|
|
428
|
-
|
|
429
|
-
---
|
|
430
|
-
|
|
431
|
-
## Compared to references
|
|
432
|
-
|
|
433
|
-
cclaw stands on the shoulders of several open frameworks. Each one is
|
|
434
|
-
genuinely good at something. Here is the honest tradeoff.
|
|
435
|
-
|
|
436
|
-
**Superpowers** (obra) ships a mature methodology where skills compose and
|
|
437
|
-
activate ambiently. cclaw trades that breadth for a **single auditable
|
|
438
|
-
pipeline**: `flow-state.json`, stage gates, and `cclaw doctor` make it easy
|
|
439
|
-
to see *why* the agent is allowed to advance. Choose Superpowers for
|
|
440
|
-
ecosystem richness; choose cclaw when deterministic stage discipline
|
|
441
|
-
matters more than plugin variety.
|
|
442
|
-
|
|
443
|
-
**G-Stack** is a full virtual engineering org — dozens of slash commands
|
|
444
|
-
for planning, design, QA, and release. cclaw deliberately keeps **one
|
|
445
|
-
stage machine** and the same six harness entrypoints, prioritizing
|
|
446
|
-
repeatability across harnesses over role-surface area. Use G-Stack when
|
|
447
|
-
you want explicit multi-role theater; use cclaw when you want one pipeline
|
|
448
|
-
across Claude, Cursor, OpenCode, and Codex.
|
|
449
|
-
|
|
450
|
-
**Everything Claude Code** is an optimization and inventory system —
|
|
451
|
-
memory, instincts, security, and multi-ecosystem configs. cclaw is a
|
|
452
|
-
**minimal flow runtime**: eight stages, JSONL knowledge, and evals for
|
|
453
|
-
contract drift. Pair ECC-style breadth with cclaw if you need both
|
|
454
|
-
coverage and a single ship path.
|
|
455
|
-
|
|
456
|
-
---
|
|
457
|
-
|
|
458
|
-
## PR-first ship flow
|
|
459
|
-
|
|
460
|
-
cclaw does not run hidden git automation. Release discipline lives inside
|
|
461
|
-
the harness; repository operations stay explicit:
|
|
343
|
+
The CLI is deliberately small. Everything operational happens inside
|
|
344
|
+
your harness.
|
|
462
345
|
|
|
463
346
|
```bash
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
#
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
gh pr create
|
|
347
|
+
npx cclaw-cli # launches interactive setup (or prints
|
|
348
|
+
# a one-line status hint if already installed)
|
|
349
|
+
npx cclaw-cli upgrade # refresh generated files; preserves .cclaw/config.yaml
|
|
350
|
+
npx cclaw-cli uninstall # remove .cclaw + generated harness shims
|
|
351
|
+
npx cclaw-cli eval … # maintainer surface (see docs/evals.md)
|
|
352
|
+
npx cclaw-cli --version
|
|
471
353
|
```
|
|
472
354
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
-
|
|
476
|
-
|
|
477
|
-
version is new, publishes an existing release draft or creates a new
|
|
478
|
-
GitHub Release, and uploads `.tgz` + plugin manifest artifacts.
|
|
479
|
-
- **Release Package** remains available for manual / event-driven flows.
|
|
480
|
-
|
|
481
|
-
Bump `package.json` in the PR to trigger a new publish.
|
|
482
|
-
|
|
483
|
-
Required repository secret: `NPM_TOKEN` with publish access.
|
|
355
|
+
For CI or scripted installs, `cclaw-cli init --harnesses=<list>
|
|
356
|
+
--no-interactive` is the non-interactive form. All other tunables
|
|
357
|
+
(prompt-guard strictness, TDD enforcement, language rule packs, track
|
|
358
|
+
heuristics) are set by editing `.cclaw/config.yaml` directly.
|
|
484
359
|
|
|
485
360
|
---
|
|
486
361
|
|