repo-harness 0.2.2 → 0.2.3
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.es.md +15 -16
- package/README.fr.md +16 -21
- package/README.ja.md +11 -13
- package/README.md +34 -34
- package/README.zh-CN.md +30 -27
- package/SKILL.md +17 -11
- package/assets/reference-configs/agentic-development-flow.md +1 -1
- package/assets/reference-configs/external-tooling.md +9 -8
- package/assets/skill-commands/manifest.json +3 -3
- package/assets/skill-commands/repo-harness-architecture/SKILL.md +1 -1
- package/assets/skill-commands/repo-harness-init/SKILL.md +3 -3
- package/assets/skill-commands/repo-harness-scaffold/SKILL.md +2 -2
- package/docs/reference-configs/agentic-development-flow.md +1 -1
- package/docs/reference-configs/external-tooling.md +9 -8
- package/package.json +1 -1
- package/scripts/check-npm-release.sh +3 -1
- package/scripts/setup-plugins.sh +40 -947
- package/src/cli/commands/brain-root.ts +30 -0
- package/src/cli/commands/global-runtime.ts +261 -54
- package/src/cli/commands/init.ts +1 -1
- package/src/cli/commands/status.ts +1 -1
- package/src/cli/index.ts +37 -31
package/README.es.md
CHANGED
|
@@ -187,13 +187,11 @@ npx -y repo-harness init
|
|
|
187
187
|
```
|
|
188
188
|
|
|
189
189
|
La npm package release line es ahora `0.2.x`; el workflow compatibility model line
|
|
190
|
-
generado se rastrea por separado como `5.x`. `repo-harness
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
Claude/Codex y añade inicialización no bloqueante del índice CodeGraph para el
|
|
196
|
-
routing estructural de prompts.
|
|
190
|
+
generado se rastrea por separado como `5.x`. `repo-harness init` es el bootstrap
|
|
191
|
+
global y `repo-harness update` es el refresco repo-local. `repo-harness init`
|
|
192
|
+
configura el CLI, los hook adapters de nivel usuario, Waza, Mermaid, el brain
|
|
193
|
+
root y CodeGraph MCP; el viejo camino Claude plugin `scripts/setup-plugins.sh`
|
|
194
|
+
queda retirado.
|
|
197
195
|
|
|
198
196
|
Si trabajas desde un checkout del código fuente:
|
|
199
197
|
|
|
@@ -237,9 +235,9 @@ Aplica solo después de que el reporte del dry-run sea correcto:
|
|
|
237
235
|
npx -y repo-harness update
|
|
238
236
|
```
|
|
239
237
|
|
|
240
|
-
Para un proyecto o módulo nuevo, usa
|
|
241
|
-
un repositorio existente, usa `repo-harness
|
|
242
|
-
harness y no crea el stack tecnológico de la aplicación.
|
|
238
|
+
Para un proyecto o módulo nuevo, usa la branch command `repo-harness-scaffold`.
|
|
239
|
+
Para un repositorio existente, usa `repo-harness update`; este instala o refresca
|
|
240
|
+
el harness y no crea el stack tecnológico de la aplicación.
|
|
243
241
|
|
|
244
242
|
### Cómo se ve el éxito
|
|
245
243
|
|
|
@@ -346,22 +344,23 @@ Guards habituales:
|
|
|
346
344
|
- `repo-harness update` refresca las runtime pieces:
|
|
347
345
|
- los `repo-harness` skill aliases
|
|
348
346
|
- los global Codex/Claude hook adapters
|
|
349
|
-
- las Waza skills: `
|
|
350
|
-
-
|
|
347
|
+
- las Waza skills: `think`, `hunt`, `check`, `health`
|
|
348
|
+
- Mermaid
|
|
351
349
|
- El resto del external tooling se mantiene advisory-only:
|
|
352
350
|
- `bash scripts/check-agent-tooling.sh --host both --check-updates`
|
|
353
351
|
- no configura automáticamente gstack, gbrain, CodeGraph MCP, daemon ni provider
|
|
354
352
|
|
|
355
353
|
## Action Command Skills
|
|
356
354
|
|
|
357
|
-
Los command
|
|
355
|
+
Los command facades públicos están en `assets/skill-commands/`; preservan la
|
|
356
|
+
compatibilidad de discovery por skills, mientras el CLI y los hooks ejecutan:
|
|
358
357
|
|
|
359
358
|
- Planning / review: `repo-harness-plan`, `repo-harness-review`, `repo-harness-autoplan`
|
|
360
359
|
- Repo workflow actions: `repo-harness-ship`, `repo-harness-init`, `repo-harness-migrate`, `repo-harness-upgrade`, `repo-harness-capability`, `repo-harness-architecture`, `repo-harness-handoff`, `repo-harness-deploy`, `repo-harness-repair`, `repo-harness-check`
|
|
361
|
-
-
|
|
360
|
+
- Branch project creation: `repo-harness-scaffold`
|
|
362
361
|
|
|
363
|
-
`repo-harness
|
|
364
|
-
|
|
362
|
+
`repo-harness update` se usa para repositorios existentes; `repo-harness-scaffold`
|
|
363
|
+
queda como branch command para crear proyectos o módulos nuevos. `hooks-init`, `docs-init` y
|
|
365
364
|
`create-project-dirs` son pasos internos, no commands públicos.
|
|
366
365
|
|
|
367
366
|
## Maintainer Reference
|
package/README.fr.md
CHANGED
|
@@ -191,18 +191,11 @@ npx -y repo-harness init
|
|
|
191
191
|
```
|
|
192
192
|
|
|
193
193
|
La release line du package npm est désormais `0.2.x` ; la generated workflow
|
|
194
|
-
compatibility model line est suivie séparément en `5.x`. `repo-harness
|
|
195
|
-
|
|
196
|
-
repo-local
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
Claude/Codex, et ajoute l'initialisation non bloquante de l'index CodeGraph pour
|
|
200
|
-
le routing structurel des prompts. Ces capacités reposent sur le CLI renommé, le
|
|
201
|
-
bootstrap de l'adapter de hook de niveau utilisateur, les AI-native scaffold
|
|
202
|
-
overlays, le typed prompt-guard decision engine, le nommage des task artifacts par
|
|
203
|
-
plan-stem, les runtime aliases
|
|
204
|
-
`REPO_HARNESS_*`, la Waza runtime skill sync, et le release gate que le maintainer
|
|
205
|
-
utilise avant de publier sur npm.
|
|
194
|
+
compatibility model line est suivie séparément en `5.x`. `repo-harness init`
|
|
195
|
+
sert au bootstrap global et `repo-harness update` sert au rafraîchissement
|
|
196
|
+
repo-local. `repo-harness init` configure le CLI, les hook adapters de niveau
|
|
197
|
+
utilisateur, Waza, Mermaid, le brain root et CodeGraph MCP ; l'ancien chemin
|
|
198
|
+
Claude plugin `scripts/setup-plugins.sh` est retiré.
|
|
206
199
|
|
|
207
200
|
Si vous travaillez depuis un checkout source :
|
|
208
201
|
|
|
@@ -246,9 +239,9 @@ Appliquez seulement une fois que le rapport du dry-run est correct :
|
|
|
246
239
|
npx -y repo-harness update
|
|
247
240
|
```
|
|
248
241
|
|
|
249
|
-
Pour un nouveau projet ou un nouveau module, utilisez la command
|
|
250
|
-
`repo-harness-scaffold`. Pour un dépôt existant, utilisez `repo-harness
|
|
251
|
-
installe ou rafraîchit le harness sans créer de stack applicatif.
|
|
242
|
+
Pour un nouveau projet ou un nouveau module, utilisez la branch command
|
|
243
|
+
`repo-harness-scaffold`. Pour un dépôt existant, utilisez `repo-harness update` ;
|
|
244
|
+
il installe ou rafraîchit le harness sans créer de stack applicatif.
|
|
252
245
|
|
|
253
246
|
### À quoi ressemble le succès
|
|
254
247
|
|
|
@@ -355,22 +348,24 @@ Guards courants :
|
|
|
355
348
|
- `repo-harness update` rafraîchit les runtime pieces :
|
|
356
349
|
- les `repo-harness` skill aliases
|
|
357
350
|
- les global Codex/Claude hook adapters
|
|
358
|
-
- les Waza skills : `
|
|
359
|
-
-
|
|
351
|
+
- les Waza skills : `think`, `hunt`, `check`, `health`
|
|
352
|
+
- Mermaid
|
|
360
353
|
- Les autres outils externes restent advisory-only :
|
|
361
354
|
- `bash scripts/check-agent-tooling.sh --host both --check-updates`
|
|
362
355
|
- pas de configuration automatique de gstack, gbrain, CodeGraph MCP, daemon ou provider
|
|
363
356
|
|
|
364
357
|
## Action Command Skills
|
|
365
358
|
|
|
366
|
-
Les command
|
|
359
|
+
Les command facades publics se trouvent dans `assets/skill-commands/` ; ils
|
|
360
|
+
préservent la découverte par skills, tandis que l'exécution appartient au CLI et
|
|
361
|
+
aux hooks :
|
|
367
362
|
|
|
368
363
|
- Planning / review : `repo-harness-plan`, `repo-harness-review`, `repo-harness-autoplan`
|
|
369
364
|
- Repo workflow actions : `repo-harness-ship`, `repo-harness-init`, `repo-harness-migrate`, `repo-harness-upgrade`, `repo-harness-capability`, `repo-harness-architecture`, `repo-harness-handoff`, `repo-harness-deploy`, `repo-harness-repair`, `repo-harness-check`
|
|
370
|
-
-
|
|
365
|
+
- Branch project creation : `repo-harness-scaffold`
|
|
371
366
|
|
|
372
|
-
`repo-harness
|
|
373
|
-
créer un nouveau projet ou module. `hooks-init`, `docs-init` et
|
|
367
|
+
`repo-harness update` sert aux dépôts existants ; `repo-harness-scaffold` sert de
|
|
368
|
+
branch command pour créer un nouveau projet ou module. `hooks-init`, `docs-init` et
|
|
374
369
|
`create-project-dirs` sont des étapes internes, pas des commands publiques.
|
|
375
370
|
|
|
376
371
|
## Maintainer Reference
|
package/README.ja.md
CHANGED
|
@@ -77,7 +77,7 @@ product boundary は意図的に地味です。対象リポジトリを検査し
|
|
|
77
77
|
|
|
78
78
|
設計は 3 層に分かれます。
|
|
79
79
|
|
|
80
|
-
1. **ソースパッケージ層**:本リポジトリが CLI、command
|
|
80
|
+
1. **ソースパッケージ層**:本リポジトリが CLI、CLI-backed command facades、templates、hook assets、
|
|
81
81
|
workflow contract、tests、release gate を所有します。
|
|
82
82
|
2. **対象リポジトリ contract 層**:`repo-harness update` または migration が、`docs/spec.md`、
|
|
83
83
|
`plans/`、`tasks/`、`.ai/context/`、`.ai/harness/`、helper scripts、`.ai/hooks/` といった
|
|
@@ -160,11 +160,9 @@ npx -y repo-harness init
|
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
npm package の release line は現在 `0.2.x` です。生成される workflow compatibility model line は
|
|
163
|
-
別途 `5.x` として追跡されます。`repo-harness
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
(`repo-harness security scan`)、明示的な Claude/Codex draft-plan ライフサイクルを保ち、
|
|
167
|
-
構造的 prompt routing 用の非ブロッキング CodeGraph index 初期化を追加します。
|
|
163
|
+
別途 `5.x` として追跡されます。`repo-harness init` は global bootstrap、`repo-harness update` は
|
|
164
|
+
repo-local refresh です。`repo-harness init` は CLI、user-level hook adapters、Waza、Mermaid、
|
|
165
|
+
brain root、CodeGraph MCP を設定し、退役した `scripts/setup-plugins.sh` の Claude plugin path は使いません。
|
|
168
166
|
|
|
169
167
|
ソースの checkout から作業する場合:
|
|
170
168
|
|
|
@@ -206,8 +204,8 @@ dry-run のレポートが正しいことを確認してから適用します。
|
|
|
206
204
|
npx -y repo-harness update
|
|
207
205
|
```
|
|
208
206
|
|
|
209
|
-
|
|
210
|
-
`repo-harness
|
|
207
|
+
新しいプロジェクトやモジュールには支線 command `repo-harness-scaffold` を使います。既存リポジトリには
|
|
208
|
+
`repo-harness update` を使います。これは harness をインストールまたはリフレッシュするもので、アプリケーション
|
|
211
209
|
スタックは作成しません。
|
|
212
210
|
|
|
213
211
|
### 成功した状態
|
|
@@ -313,21 +311,21 @@ hook がブロックしたときは、まず terminal の構造化された出
|
|
|
313
311
|
- `repo-harness update` は runtime pieces をリフレッシュします:
|
|
314
312
|
- `repo-harness` skill aliases
|
|
315
313
|
- global Codex/Claude hook adapters
|
|
316
|
-
- Waza skills:`
|
|
317
|
-
-
|
|
314
|
+
- Waza skills:`think`、`hunt`、`check`、`health`
|
|
315
|
+
- Mermaid
|
|
318
316
|
- その他の外部ツールは advisory-only のままです:
|
|
319
317
|
- `bash scripts/check-agent-tooling.sh --host both --check-updates`
|
|
320
318
|
- gstack、gbrain、CodeGraph MCP、daemon、provider を自動設定しない
|
|
321
319
|
|
|
322
320
|
## Action Command Skills
|
|
323
321
|
|
|
324
|
-
公開 command
|
|
322
|
+
公開 command facades は `assets/skill-commands/` にあります。host skill discovery との互換性を残しつつ、実行は CLI と hooks が担います。
|
|
325
323
|
|
|
326
324
|
- Planning / review:`repo-harness-plan`、`repo-harness-review`、`repo-harness-autoplan`
|
|
327
325
|
- Repo workflow actions:`repo-harness-ship`、`repo-harness-init`、`repo-harness-migrate`、`repo-harness-upgrade`、`repo-harness-capability`、`repo-harness-architecture`、`repo-harness-handoff`、`repo-harness-deploy`、`repo-harness-repair`、`repo-harness-check`
|
|
328
|
-
-
|
|
326
|
+
- Branch project creation:`repo-harness-scaffold`
|
|
329
327
|
|
|
330
|
-
`repo-harness
|
|
328
|
+
`repo-harness update` は既存リポジトリ向け、`repo-harness-scaffold` は支線 command として新しいプロジェクトやモジュールを作成します。
|
|
331
329
|
`hooks-init`、`docs-init`、`create-project-dirs` は内部ステップであり、公開 commands ではありません。
|
|
332
330
|
|
|
333
331
|
## Maintainer Reference
|
package/README.md
CHANGED
|
@@ -34,16 +34,15 @@ This repository now dogfoods its own tasks-first contract. It is both:
|
|
|
34
34
|
read a 1KB capability contract or query the index instead of spending thousands of
|
|
35
35
|
tokens rediscovering structure.
|
|
36
36
|
|
|
37
|
-
## What's New in 0.2.
|
|
38
|
-
|
|
39
|
-
- **Safer global init defaults.** `repo-harness init`
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
(`standard`, `minimal`, `biome`, `biome-strict`).
|
|
37
|
+
## What's New in 0.2.3
|
|
38
|
+
|
|
39
|
+
- **Safer global init defaults.** `repo-harness init` no longer calls the legacy
|
|
40
|
+
Claude plugin setup script or any Superpowers marketplace installer path.
|
|
41
|
+
- **Global init command (`repo-harness init`).** One command installs the
|
|
42
|
+
`repo-harness` CLI globally, refreshes repo-harness skill aliases, installs
|
|
43
|
+
user-level Codex/Claude hook adapters, configures Waza
|
|
44
|
+
(`think`, `hunt`, `check`, `health`) plus Mermaid, persists the brain root, and
|
|
45
|
+
configures CodeGraph MCP.
|
|
47
46
|
Run `npx -y repo-harness init`; no source checkout is required.
|
|
48
47
|
- **Repo refresh command (`repo-harness update`).** Existing-repo install and
|
|
49
48
|
refresh now has its own command surface, preserving the previous repo-local
|
|
@@ -91,7 +90,7 @@ workflow surfaces stay consistent.
|
|
|
91
90
|
|
|
92
91
|
The design has three layers:
|
|
93
92
|
|
|
94
|
-
1. **Source package**: this repository owns the CLI, command
|
|
93
|
+
1. **Source package**: this repository owns the CLI, CLI-backed command facades,
|
|
95
94
|
templates, hook assets, workflow contract, tests, and release gate.
|
|
96
95
|
2. **Target repo contract**: `repo-harness update` or migration writes repo-local
|
|
97
96
|
files such as `docs/spec.md`, `plans/`, `tasks/`, `.ai/context/`,
|
|
@@ -177,10 +176,11 @@ safe to adopt in a real repo.
|
|
|
177
176
|
npx -y repo-harness init
|
|
178
177
|
```
|
|
179
178
|
|
|
180
|
-
`init` is the first-run global bootstrap path. It
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
`init` is the first-run global bootstrap path. It installs the current npm
|
|
180
|
+
package as the global CLI, refreshes repo-harness skill aliases, installs
|
|
181
|
+
user-level hook adapters, configures Waza runtime skills, persists a brain root
|
|
182
|
+
under `~/.repo-harness/config.json`, and configures CodeGraph MCP. It does not
|
|
183
|
+
apply repo-local workflow files to the current directory.
|
|
184
184
|
|
|
185
185
|
### Install or refresh a repo-local harness
|
|
186
186
|
|
|
@@ -194,13 +194,13 @@ repository to install or refresh workflow files, hook assets, host adapters,
|
|
|
194
194
|
skill aliases, and repo-local verification surfaces from the current npm package.
|
|
195
195
|
|
|
196
196
|
The npm package release line is now `0.2.x`; generated workflow compatibility is
|
|
197
|
-
tracked separately as the `5.x` model line. The `0.2.
|
|
197
|
+
tracked separately as the `5.x` model line. The `0.2.3` package splits first-run
|
|
198
198
|
global bootstrap (`repo-harness init`) from repo-local refresh
|
|
199
|
-
(`repo-harness update`),
|
|
200
|
-
|
|
199
|
+
(`repo-harness update`), replaces the legacy global plugin installer path with
|
|
200
|
+
typed CLI/hook/dependency bootstrap, keeps the read-only config security sentinel
|
|
201
201
|
(`repo-harness security scan`), the explicit Claude/Codex draft-plan lifecycle,
|
|
202
|
-
adds non-blocking CodeGraph index initialization for structural prompt
|
|
203
|
-
|
|
202
|
+
and adds non-blocking CodeGraph index initialization for structural prompt
|
|
203
|
+
routing.
|
|
204
204
|
These sit on top of the renamed `repo-harness` CLI, user-level hook
|
|
205
205
|
adapter bootstrap, AI-native scaffold overlays, the typed prompt-guard decision
|
|
206
206
|
engine, plan-stem task artifact naming, `REPO_HARNESS_*` runtime aliases, Waza
|
|
@@ -250,8 +250,8 @@ Apply only after the dry-run report looks correct:
|
|
|
250
250
|
npx -y repo-harness update
|
|
251
251
|
```
|
|
252
252
|
|
|
253
|
-
For a new project or module, use the `repo-harness-scaffold
|
|
254
|
-
an existing repo, use `repo-harness
|
|
253
|
+
For a new project or module, use the branch command `repo-harness-scaffold`. For
|
|
254
|
+
an existing repo, use `repo-harness update`; it installs or refreshes the harness
|
|
255
255
|
without creating an application stack.
|
|
256
256
|
|
|
257
257
|
### Success looks like this
|
|
@@ -340,7 +340,7 @@ Most common guards:
|
|
|
340
340
|
|
|
341
341
|
## Current Release
|
|
342
342
|
|
|
343
|
-
- npm package: `repo-harness@0.2.
|
|
343
|
+
- npm package: `repo-harness@0.2.3`
|
|
344
344
|
- Generated workflow compatibility: `5.2.3`
|
|
345
345
|
- GitHub repository: `Ancienttwo/repo-harness`
|
|
346
346
|
- Release history: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
@@ -371,16 +371,17 @@ Most common guards:
|
|
|
371
371
|
- `complex -> gstack`
|
|
372
372
|
- `simple -> Waza` with Codex-first runtime copies in `~/.codex/skills`
|
|
373
373
|
- `knowledge -> gbrain`
|
|
374
|
-
- `repo-harness
|
|
374
|
+
- `repo-harness init` bootstraps the Codex/Claude runtime pieces needed for the
|
|
375
375
|
default workflow:
|
|
376
376
|
- refreshes `repo-harness` skill aliases
|
|
377
377
|
- installs global Codex/Claude hook adapters
|
|
378
|
-
- installs Waza skills (`think`, `hunt`, `check`, `health`) through the skills CLI
|
|
379
|
-
-
|
|
378
|
+
- installs Waza skills (`think`, `hunt`, `check`, `health`) and Mermaid through the skills CLI
|
|
379
|
+
- persists the brain root in `~/.repo-harness/config.json`
|
|
380
|
+
- configures CodeGraph MCP for selected host agents
|
|
380
381
|
- Other external tooling stays advisory-only:
|
|
381
382
|
- `bash scripts/check-agent-tooling.sh --host both --check-updates`
|
|
382
383
|
- Waza update checks compare upstream `tw93/Waza` `SKILL.md` hashes without running `npx skills check`
|
|
383
|
-
- no automatic gstack, gbrain, CodeGraph
|
|
384
|
+
- no automatic gstack, gbrain MCP, CodeGraph daemon, or provider setup
|
|
384
385
|
- Manual distillation stays repo-local:
|
|
385
386
|
- repeated corrections -> `tasks/lessons.md`
|
|
386
387
|
- deep findings and hidden contracts -> `tasks/research.md`
|
|
@@ -407,17 +408,16 @@ are not all bundled product dependencies.
|
|
|
407
408
|
|
|
408
409
|
## Action Command Skills
|
|
409
410
|
|
|
410
|
-
Source-owned command
|
|
411
|
-
|
|
412
|
-
and tests:
|
|
411
|
+
Source-owned command facades live in `assets/skill-commands/`. They keep host
|
|
412
|
+
skill discovery compatible while the CLI and hooks own execution:
|
|
413
413
|
|
|
414
414
|
- Planning and review: `repo-harness-plan`, `repo-harness-review`, `repo-harness-autoplan`
|
|
415
415
|
- Repo workflow actions: `repo-harness-ship`, `repo-harness-init`, `repo-harness-migrate`, `repo-harness-upgrade`, `repo-harness-capability`, `repo-harness-architecture`, `repo-harness-handoff`, `repo-harness-deploy`, `repo-harness-repair`, `repo-harness-check`
|
|
416
|
-
-
|
|
416
|
+
- Branch project creation command: `repo-harness-scaffold`
|
|
417
417
|
|
|
418
|
-
`repo-harness
|
|
419
|
-
project or module scaffold. `hooks-init`, `docs-init`, and
|
|
420
|
-
are internal steps, not public commands.
|
|
418
|
+
`repo-harness update` is for an existing repo; `repo-harness-scaffold` creates a
|
|
419
|
+
new project or module scaffold as a side command. `hooks-init`, `docs-init`, and
|
|
420
|
+
`create-project-dirs` are internal steps, not public commands.
|
|
421
421
|
|
|
422
422
|
`repo-harness-scaffold` keeps the A-K plan catalog as the project-type authority
|
|
423
423
|
and adds AI-native app structure through an optional `ai_native_profile` overlay.
|
package/README.zh-CN.md
CHANGED
|
@@ -23,14 +23,14 @@ repo-local workflow 的自托管样例。
|
|
|
23
23
|
做渐进式上下文加载:一份小而稳定的 root context(约 12KB),加上只在改到对应文件时才加载的
|
|
24
24
|
capability 块。agent 读一份 1KB 的 capability 合约或查索引,而不是花上千 token 重新摸清结构。
|
|
25
25
|
|
|
26
|
-
## 0.2.
|
|
27
|
-
|
|
28
|
-
- **更安全的全局初始化默认值。** `repo-harness init`
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
## 0.2.3 新特性
|
|
27
|
+
|
|
28
|
+
- **更安全的全局初始化默认值。** `repo-harness init` 不再调用旧 Claude plugin setup
|
|
29
|
+
脚本,也没有 Superpowers marketplace installer 路径。
|
|
30
|
+
- **全局初始化命令(`repo-harness init`)。** 一条命令安装全局 `repo-harness` CLI、
|
|
31
|
+
刷新 repo-harness skill aliases、安装 Codex/Claude user-level hook adapters、
|
|
32
|
+
配置 Waza(`think`、`hunt`、`check`、`health`)和 Mermaid、持久化 brain root,并配置
|
|
33
|
+
CodeGraph MCP。运行
|
|
34
34
|
`npx -y repo-harness init`,不需要 clone 源码仓库。
|
|
35
35
|
- **仓库刷新命令(`repo-harness update`)。** 已有仓库的安装/刷新入口独立成命令,继续复用
|
|
36
36
|
原 repo-local harness migration 路径,同时让 `init` 专注于全局 runtime setup。
|
|
@@ -68,7 +68,7 @@ repo-local hooks,然后验证这些 workflow surfaces 仍然一致。
|
|
|
68
68
|
|
|
69
69
|
整体分三层:
|
|
70
70
|
|
|
71
|
-
1. **源码包层**:本仓库维护 CLI、command
|
|
71
|
+
1. **源码包层**:本仓库维护 CLI、CLI-backed command facades、templates、hook assets、
|
|
72
72
|
workflow contract、tests 和 release gate。
|
|
73
73
|
2. **目标仓库合约层**:`repo-harness update` 或 migration 会写入 `docs/spec.md`、
|
|
74
74
|
`plans/`、`tasks/`、`.ai/context/`、`.ai/harness/`、helper scripts 和
|
|
@@ -149,9 +149,10 @@ flowchart TD
|
|
|
149
149
|
npx -y repo-harness init
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
-
`init`
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
`init` 是首次全局引导入口。它把当前 npm 包安装成全局 CLI,刷新 repo-harness
|
|
153
|
+
skill aliases,安装 user-level hook adapters,配置 Waza runtime skills,把 brain
|
|
154
|
+
root 持久化到 `~/.repo-harness/config.json`,并配置 CodeGraph MCP。它不会把当前目录
|
|
155
|
+
默认迁移成 repo-local workflow。
|
|
155
156
|
|
|
156
157
|
### 安装或刷新 repo-local harness
|
|
157
158
|
|
|
@@ -165,11 +166,11 @@ npx -y repo-harness update
|
|
|
165
166
|
repo-local verification surfaces。
|
|
166
167
|
|
|
167
168
|
npm package release line 现在是 `0.2.x`;生成的 workflow compatibility model line
|
|
168
|
-
单独以 `5.x` 追踪。`repo-harness@0.2.
|
|
169
|
-
和 repo-local 刷新(`repo-harness update
|
|
170
|
-
|
|
171
|
-
显式 Claude/Codex draft-plan
|
|
172
|
-
|
|
169
|
+
单独以 `5.x` 追踪。`repo-harness@0.2.3` 把首次全局引导(`repo-harness init`)
|
|
170
|
+
和 repo-local 刷新(`repo-harness update`)拆开,同时用 typed CLI/hook/dependency
|
|
171
|
+
bootstrap 替换旧全局 plugin installer 路径,保留只读配置安全哨兵(`repo-harness security scan`)、
|
|
172
|
+
显式 Claude/Codex draft-plan 生命周期,并新增 prompt hook 的非阻塞 CodeGraph index 初始化。
|
|
173
|
+
这些能力叠加在改名后的 CLI、user-level hook adapter bootstrap、AI-native scaffold overlays、
|
|
173
174
|
typed prompt-guard decision engine、plan-stem task artifact 命名、`REPO_HARNESS_*`
|
|
174
175
|
runtime aliases、Waza runtime skill sync,以及 maintainer 发布 npm 前使用的 release gate 之上。
|
|
175
176
|
|
|
@@ -213,8 +214,8 @@ dry-run 报告正确后再应用:
|
|
|
213
214
|
npx -y repo-harness update
|
|
214
215
|
```
|
|
215
216
|
|
|
216
|
-
|
|
217
|
-
`repo-harness
|
|
217
|
+
新项目或新模块使用支线 command `repo-harness-scaffold`。已有仓库使用
|
|
218
|
+
`repo-harness update`;它会安装或刷新 harness,不会创建应用技术栈。
|
|
218
219
|
|
|
219
220
|
### 成功长什么样
|
|
220
221
|
|
|
@@ -301,7 +302,7 @@ hook block 工作时,先看 terminal 里的结构化输出。核心字段是
|
|
|
301
302
|
|
|
302
303
|
## 当前 Release
|
|
303
304
|
|
|
304
|
-
- npm package:`repo-harness@0.2.
|
|
305
|
+
- npm package:`repo-harness@0.2.3`
|
|
305
306
|
- Generated workflow compatibility:`5.2.3`
|
|
306
307
|
- GitHub repository:`Ancienttwo/repo-harness`
|
|
307
308
|
- Release history:[`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
@@ -316,24 +317,26 @@ hook block 工作时,先看 terminal 里的结构化输出。核心字段是
|
|
|
316
317
|
- `assets/workflow-contract.v1.json`
|
|
317
318
|
- Generated repos 默认使用 repo-local harness flow:
|
|
318
319
|
- `docs/spec.md -> plans/ -> tasks/contracts/ -> tasks/reviews/ -> .ai/context/context-map.json -> .ai/harness/*`
|
|
319
|
-
- `repo-harness
|
|
320
|
+
- `repo-harness init` 会刷新 runtime pieces:
|
|
320
321
|
- `repo-harness` skill aliases
|
|
321
322
|
- global Codex/Claude hook adapters
|
|
322
|
-
- Waza skills:`
|
|
323
|
-
-
|
|
323
|
+
- Waza skills:`think`、`hunt`、`check`、`health`
|
|
324
|
+
- 持久化 brain root 到 `~/.repo-harness/config.json`
|
|
325
|
+
- 配置 CodeGraph MCP
|
|
324
326
|
- 其他外部工具保持 advisory-only:
|
|
325
327
|
- `bash scripts/check-agent-tooling.sh --host both --check-updates`
|
|
326
|
-
- 不自动设置 gstack、gbrain、CodeGraph
|
|
328
|
+
- 不自动设置 gstack、gbrain MCP、CodeGraph daemon 或 provider
|
|
327
329
|
|
|
328
330
|
## Action Command Skills
|
|
329
331
|
|
|
330
|
-
公共 command
|
|
332
|
+
公共 command facades 在 `assets/skill-commands/`;它们保留 host skill discovery
|
|
333
|
+
兼容性,真正执行由 CLI 和 hooks 负责:
|
|
331
334
|
|
|
332
335
|
- Planning / review:`repo-harness-plan`、`repo-harness-review`、`repo-harness-autoplan`
|
|
333
336
|
- Repo workflow actions:`repo-harness-ship`、`repo-harness-init`、`repo-harness-migrate`、`repo-harness-upgrade`、`repo-harness-capability`、`repo-harness-architecture`、`repo-harness-handoff`、`repo-harness-deploy`、`repo-harness-repair`、`repo-harness-check`
|
|
334
|
-
-
|
|
337
|
+
- 支线项目创建 command:`repo-harness-scaffold`
|
|
335
338
|
|
|
336
|
-
`repo-harness
|
|
339
|
+
`repo-harness update` 用于已有仓库;`repo-harness-scaffold` 作为支线 command 创建新项目或模块。
|
|
337
340
|
`hooks-init`、`docs-init` 和 `create-project-dirs` 是内部步骤,不是公共 commands。
|
|
338
341
|
|
|
339
342
|
## Maintainer Reference
|
package/SKILL.md
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: repo-harness
|
|
3
|
-
description: routes repo-harness requests
|
|
3
|
+
description: routes repo-harness requests through the CLI and hook automation plugin for init, update, scaffold, migrate, audit, repair, and ship workflows
|
|
4
4
|
when_to_use: "repo-harness, repo-harness-skill compatibility, initialize repo-local agentic development harness, scaffold new project with repo-harness, migrate repo-local agentic development harness, audit repo-local agentic development harness, repair repo-local agentic development harness"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# repo-harness
|
|
8
8
|
|
|
9
|
-
`repo-harness` is the
|
|
10
|
-
|
|
9
|
+
`repo-harness` is the CLI and hook automation plugin for repo-local agentic
|
|
10
|
+
development. The skill entrypoint is a compatibility router over the versioned
|
|
11
|
+
workflow engine and CLI command facades.
|
|
11
12
|
|
|
12
13
|
Compatibility boundary:
|
|
13
14
|
|
|
14
|
-
- internal engine: tasks-first harness
|
|
15
|
+
- internal engine: CLI plus hook-backed tasks-first harness
|
|
15
16
|
- contract ID: tasks-first-harness-v1
|
|
16
17
|
- canonical skill, CLI, and package name: `repo-harness`
|
|
17
18
|
- compatibility trigger/runtime fallback: `repo-harness-skill`
|
|
18
19
|
- retired legacy alias: `project-initializer`
|
|
19
|
-
- new-project creation surface: `repo-harness-scaffold`
|
|
20
|
+
- new-project creation surface: `repo-harness-scaffold` (secondary generator)
|
|
20
21
|
|
|
21
22
|
`repo-harness-skill` may still route old prompts and runtime fallback lookups.
|
|
22
23
|
It must not expose duplicate Codex command facades. `project-initializer` is a
|
|
@@ -34,8 +35,8 @@ The skill should not carry the whole workflow contract in prose. It should:
|
|
|
34
35
|
|
|
35
36
|
## When to use
|
|
36
37
|
|
|
37
|
-
-
|
|
38
|
-
- create a new project or module scaffold, then attach the harness
|
|
38
|
+
- install or refresh the CLI+hooks workflow in an existing repo
|
|
39
|
+
- create a new project or module scaffold only when the user asks for a new product/module skeleton, then attach the harness
|
|
39
40
|
- migrate an older repo to the current tasks-first harness
|
|
40
41
|
- audit drift between prompts, hooks, scripts, and repo-local contract files
|
|
41
42
|
- repair broken task-sync, workflow-contract, or handoff surfaces
|
|
@@ -115,10 +116,12 @@ The main engine entrypoints are:
|
|
|
115
116
|
- `scripts/check-task-workflow.sh`
|
|
116
117
|
- `scripts/create-project-dirs.sh`
|
|
117
118
|
|
|
118
|
-
##
|
|
119
|
+
## CLI Command Facade Surface
|
|
119
120
|
|
|
120
|
-
The
|
|
121
|
-
the same engine. Use
|
|
121
|
+
The command facades live in `assets/skill-commands/` as compatibility wrappers
|
|
122
|
+
over the same CLI and hook engine. Use them for routing when the host discovers
|
|
123
|
+
skills; the implementation authority stays in the CLI, scripts, hooks, and
|
|
124
|
+
contract files:
|
|
122
125
|
|
|
123
126
|
- `repo-harness-plan`: interactive planning; no repo mutation by default
|
|
124
127
|
- `repo-harness-review`: plan review across product, engineering, design, and DevEx
|
|
@@ -275,7 +278,10 @@ Migration defaults:
|
|
|
275
278
|
- distill repeated corrections into `tasks/lessons.md`
|
|
276
279
|
- merge missing `external_tooling` defaults into `.ai/harness/policy.json` without overwriting explicit user values
|
|
277
280
|
- keep gstack/gbrain/CodeGraph detection advisory-only; do not auto-install, auto-upgrade, auto-sync, or auto-enable MCP
|
|
278
|
-
- let `repo-harness init` bootstrap required
|
|
281
|
+
- let `repo-harness init` bootstrap the required global runtime in one pass:
|
|
282
|
+
CLI install, repo-harness runtime alias sync, user-level hook adapters, Waza
|
|
283
|
+
(`think`, `hunt`, `check`, `health`), Mermaid, brain root persistence, and
|
|
284
|
+
CodeGraph CLI/MCP configuration
|
|
279
285
|
- treat Waza as Codex-first: `~/.codex/skills` is the Codex runtime source, `~/.agents/skills` is only skills CLI staging/cache, and updates require stage -> copy to Codex -> `cmp` verification
|
|
280
286
|
|
|
281
287
|
## Repo-Local Contract
|
|
@@ -17,7 +17,7 @@ root prompt concise; this file owns the detailed routing.
|
|
|
17
17
|
|
|
18
18
|
## repo-harness Command Surface
|
|
19
19
|
|
|
20
|
-
Use these
|
|
20
|
+
Use these CLI-backed command facades when the work is about installing,
|
|
21
21
|
migrating, repairing, or verifying this repo-local harness:
|
|
22
22
|
|
|
23
23
|
| Work type | Command | Boundary |
|
|
@@ -14,16 +14,17 @@ source, while `~/.agents/skills` is only the skills CLI staging/cache path used
|
|
|
14
14
|
to receive upstream `tw93/Waza` updates before syncing verified copies into
|
|
15
15
|
Codex.
|
|
16
16
|
|
|
17
|
-
`repo-harness init` is allowed to bootstrap the workflow-owned runtime
|
|
18
|
-
one pass:
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
`repo-harness init` is allowed to bootstrap the workflow-owned global runtime in
|
|
18
|
+
one pass: the `repo-harness` CLI, repo-harness runtime aliases, user-level
|
|
19
|
+
Codex/Claude hook adapters, Waza (`think`, `hunt`, `check`, `health`), brain
|
|
20
|
+
root persistence, Mermaid, and CodeGraph CLI/MCP configuration. It must not
|
|
21
|
+
silently install unrelated toolchains or Claude marketplace plugins.
|
|
21
22
|
|
|
22
23
|
The cross-review skills are **harness-owned and self-contained** — their source
|
|
23
24
|
lives in `assets/skills/<skill>/` and they wrap the peer CLI (`codex exec` /
|
|
24
25
|
`claude -p`) in a read-only sandbox with no gstack dependency, so installing them
|
|
25
|
-
is a workflow-owned
|
|
26
|
-
host-aware
|
|
26
|
+
is a workflow-owned repo-local update concern, not an unrelated toolchain. They
|
|
27
|
+
install host-aware during `repo-harness update`: `codex-review` only into `~/.claude/skills` (a Claude session asking
|
|
27
28
|
Codex for an independent review) and `claude-review` only into `~/.codex/skills`
|
|
28
29
|
(a Codex session asking Claude). When gstack is present, its `/codex` and
|
|
29
30
|
`gstack-claude` skills are a more featureful superset; the harness skills are the
|
|
@@ -36,8 +37,8 @@ changes, and untracked files are all in scope. A timeout or missing peer CLI is
|
|
|
36
37
|
reported as unavailable review evidence, not as a pass.
|
|
37
38
|
|
|
38
39
|
The Codex automation profile is a runtime reference, not a vendored copy. It
|
|
39
|
-
requires Waza `health`, Waza `check`, and the standalone `mermaid` skill
|
|
40
|
-
|
|
40
|
+
requires Waza `health`, Waza `check`, and the standalone `mermaid` skill to
|
|
41
|
+
exist under `~/.codex/skills`; the skill bodies stay owned by their original
|
|
41
42
|
installations.
|
|
42
43
|
|
|
43
44
|
## Detect Safely
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"surface": "repo-harness-
|
|
3
|
+
"surface": "repo-harness-cli-hooks-command-facades",
|
|
4
4
|
"source": "assets/skill-commands",
|
|
5
5
|
"router": "repo-harness",
|
|
6
6
|
"commands": [
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"name": "repo-harness-scaffold",
|
|
44
|
-
"class": "project-scaffolding",
|
|
44
|
+
"class": "branch-project-scaffolding",
|
|
45
45
|
"mutatesRepoByDefault": true,
|
|
46
46
|
"engine": "init-project.sh plus workflow install",
|
|
47
|
-
"summary": "
|
|
47
|
+
"summary": "Branch command that creates a new project or module scaffold from plan catalog A-K and attaches the harness."
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"name": "repo-harness-migrate",
|
|
@@ -20,7 +20,7 @@ architecture documentation, drift-request, or diagram pass.
|
|
|
20
20
|
- module or snapshot docs under `docs/architecture/`
|
|
21
21
|
- Mermaid fenced block in the relevant module or snapshot Markdown when a visual flow materially helps
|
|
22
22
|
- optional human-readable diagram artifact under `docs/architecture/diagrams/`
|
|
23
|
-
5. Use Markdown Mermaid as the semantic diagram source; use `mermaid` only for human-readable HTML renderings grounded in observed repo files.
|
|
23
|
+
5. Use Markdown Mermaid as the semantic diagram source; use `mermaid` only for optional human-readable HTML renderings grounded in observed repo files.
|
|
24
24
|
6. Archive handled requests with:
|
|
25
25
|
- `bash scripts/archive-architecture-request.sh --request <request> --status <resolved|superseded|rejected|no-change> --artifact <path> --note <text>`
|
|
26
26
|
7. Verify with:
|
|
@@ -11,11 +11,11 @@ Use this command for an existing repository that needs the repo-local agentic wo
|
|
|
11
11
|
## Protocol
|
|
12
12
|
|
|
13
13
|
1. Confirm the target repo path.
|
|
14
|
-
2. If running from the target repo root, use `repo-harness
|
|
14
|
+
2. If running from the target repo root, use `repo-harness update`; do not require `--repo .`.
|
|
15
15
|
3. Run `bun scripts/inspect-project-state.ts --repo <repo> --format text`.
|
|
16
16
|
4. If the repo is legacy, route to `repo-harness-migrate`.
|
|
17
|
-
5. Otherwise run the safe path through `repo-harness
|
|
18
|
-
6. Bootstrap the expected host runtime
|
|
17
|
+
5. Otherwise run the safe path through `repo-harness update` or `bash scripts/migrate-project-template.sh --repo <repo> --apply`.
|
|
18
|
+
6. Bootstrap the expected host runtime dependencies in the same pass: Waza (`think`, `hunt`, `check`, `health`) and the bundled cross-review skills when source copies are available.
|
|
19
19
|
7. Verify with `bash scripts/check-task-workflow.sh --strict` inside the target repo when the helper exists.
|
|
20
20
|
|
|
21
21
|
## Boundaries
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: repo-harness-scaffold
|
|
3
|
-
description:
|
|
3
|
+
description: Branch command that creates a new project or module scaffold from the repo-harness plan catalog A-K, then attaches the repo-local workflow harness.
|
|
4
4
|
when_to_use: "repo-harness-scaffold, scaffold new project, create new app with agentic workflow, Plan A, Plan B, Plan C, Plan D, Plan E, Plan F, Plan G, Plan H, Plan I, Plan J, Plan K"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# repo-harness-scaffold
|
|
8
8
|
|
|
9
|
-
Use this command when the user asks to create a new project, app, or module skeleton.
|
|
9
|
+
Use this branch command when the user asks to create a new project, app, or module skeleton.
|
|
10
10
|
|
|
11
11
|
## Protocol
|
|
12
12
|
|