agestra 4.12.0 → 4.12.2
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/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.gemini/commands/agestra/design.toml +1 -1
- package/README.ja.md +26 -7
- package/README.ko.md +15 -11
- package/README.md +15 -11
- package/README.zh.md +26 -7
- package/agents/agestra-team-lead.md +4 -0
- package/commands/design.md +50 -40
- package/dist/bundle.js +173 -172
- package/package.json +1 -3
- package/skills/design.md +49 -37
- package/skills/review.md +21 -15
- package/dist/sql-wasm.cjs +0 -198
- package/dist/sql-wasm.wasm +0 -0
|
@@ -9,7 +9,7 @@ Use the shared workflow spec below as the source of truth and adapt it to the cu
|
|
|
9
9
|
@{commands/design.md}
|
|
10
10
|
|
|
11
11
|
Gemini-specific rules:
|
|
12
|
-
- Start with `environment_check` and `provider_list`.
|
|
12
|
+
- Start with `setup_status`, then `environment_check` and `provider_list`.
|
|
13
13
|
- Prefer Agestra MCP tools, workspace documents, and debate flows over free-form brainstorming.
|
|
14
14
|
- Translate Claude-specific wording into leader-host wording when Gemini is the active host.
|
|
15
15
|
- Keep the final answer in the user's language.
|
package/README.ja.md
CHANGED
|
@@ -24,22 +24,37 @@ Claude では既存のプラグイン UX をそのまま維持します。Agestr
|
|
|
24
24
|
|
|
25
25
|
```
|
|
26
26
|
npm run bundle
|
|
27
|
-
npm run install:codex
|
|
27
|
+
npm run install:codex:assets
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
グローバル npm パッケージから使う場合:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
npm install -g agestra
|
|
34
|
+
agestra-install codex --assets
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Codex ではリポジトリ直下の [AGENTS.md](AGENTS.md) と、登録済みの `agestra` MCP サーバーを一緒に使います。`--assets` は `.codex/agents/` に生成済み Codex custom agent もインストールし、Agestra host-asset manifest に記録します。MCP 登録だけでよい場合は `npm run install:codex` または `agestra-install codex` を使ってください。
|
|
31
38
|
|
|
32
39
|
### Gemini CLI
|
|
33
40
|
|
|
34
41
|
```
|
|
35
42
|
npm run bundle
|
|
36
|
-
npm run install:gemini
|
|
43
|
+
npm run install:gemini:assets
|
|
37
44
|
```
|
|
38
45
|
|
|
39
|
-
|
|
46
|
+
グローバル npm パッケージから使う場合:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
npm install -g agestra
|
|
50
|
+
agestra-install gemini --assets --scope user
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Gemini ではリポジトリ直下の [GEMINI.md](GEMINI.md) と、[`.gemini/commands/agestra/`](.gemini/commands/agestra) のプロジェクトコマンドを一緒に使います。user scope の `--assets` は Agestra Gemini native extension をインストールします。MCP 登録だけでよい場合は `npm run install:gemini` または `agestra-install gemini` を使ってください。
|
|
40
54
|
|
|
41
55
|
セットアップ後に利用できる Gemini コマンド:
|
|
42
56
|
|
|
57
|
+
- `/agestra:setup`
|
|
43
58
|
- `/agestra:review`
|
|
44
59
|
- `/agestra:design`
|
|
45
60
|
- `/agestra:idea`
|
|
@@ -116,7 +131,7 @@ Gemini ではリポジトリ直下の [GEMINI.md](GEMINI.md) と、[`.gemini/com
|
|
|
116
131
|
|
|
117
132
|
## アーキテクチャ
|
|
118
133
|
|
|
119
|
-
Turborepo モノレポで、
|
|
134
|
+
Turborepo モノレポで、8 パッケージ構成です:
|
|
120
135
|
|
|
121
136
|
| パッケージ | 説明 |
|
|
122
137
|
|------------|------|
|
|
@@ -329,8 +344,8 @@ agestra/
|
|
|
329
344
|
│ └── bundle.js # 単一ファイル MCP サーバーバンドル
|
|
330
345
|
├── scripts/
|
|
331
346
|
│ ├── bundle.mjs # esbuild バンドルスクリプト
|
|
332
|
-
│ ├── install-host-mcp.mjs # Codex/Gemini
|
|
333
|
-
│ └── uninstall-host-mcp.mjs #
|
|
347
|
+
│ ├── install-host-mcp.mjs # Claude/Codex/Gemini の MCP + host assets を登録
|
|
348
|
+
│ └── uninstall-host-mcp.mjs # ホスト登録と管理対象 assets を削除
|
|
334
349
|
├── packages/
|
|
335
350
|
│ ├── core/ # AIProvider、レジストリ、セキュリティ、ワーカー
|
|
336
351
|
│ ├── provider-ollama/ # Ollama HTTP アダプター
|
|
@@ -363,14 +378,18 @@ Codex CLI:
|
|
|
363
378
|
|
|
364
379
|
```
|
|
365
380
|
npm run uninstall:codex
|
|
381
|
+
npm run uninstall:codex:assets
|
|
366
382
|
```
|
|
367
383
|
|
|
368
384
|
Gemini CLI:
|
|
369
385
|
|
|
370
386
|
```
|
|
371
387
|
npm run uninstall:gemini
|
|
388
|
+
npm run uninstall:gemini:assets
|
|
372
389
|
```
|
|
373
390
|
|
|
391
|
+
`*:assets` のアンインストールは、ホスト登録と未変更の生成済みホスト資産を一緒に削除します。ユーザーが生成済み資産を編集していた場合、Agestra はそのファイルを残して報告します。グローバル npm インストールでは `agestra-uninstall codex --assets` または `agestra-uninstall gemini --assets --scope user` を使ってください。
|
|
392
|
+
|
|
374
393
|
生成済みのプロジェクトデータも削除したい場合は、`.agestra/` ディレクトリを手動で削除してください。
|
|
375
394
|
|
|
376
395
|
---
|
package/README.ko.md
CHANGED
|
@@ -26,23 +26,23 @@ Claude는 기존 플러그인 설치 UX를 그대로 유지합니다. Agestra가
|
|
|
26
26
|
|
|
27
27
|
```
|
|
28
28
|
npm run bundle
|
|
29
|
-
npm run install:codex
|
|
29
|
+
npm run install:codex:assets
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
전역 npm 패키지 기준:
|
|
33
33
|
|
|
34
34
|
```
|
|
35
35
|
npm install -g agestra
|
|
36
|
-
agestra-install codex
|
|
36
|
+
agestra-install codex --assets
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
저장소에서 작업 중이지만
|
|
39
|
+
저장소에서 작업 중이지만 전역 npm 패키지를 MCP만 등록하고 싶다면:
|
|
40
40
|
|
|
41
41
|
```
|
|
42
42
|
npm run install:codex:global
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
Codex는 저장소 루트의 [AGENTS.md](AGENTS.md)와 등록된 `agestra` MCP 서버를 함께 사용합니다.
|
|
45
|
+
Codex는 저장소 루트의 [AGENTS.md](AGENTS.md)와 등록된 `agestra` MCP 서버를 함께 사용합니다. `--assets` 경로는 `.codex/agents/` 아래에 생성형 Codex custom agent도 설치하고 Agestra host-asset manifest에 기록합니다. MCP만 등록하려면 `npm run install:codex` 또는 `agestra-install codex`를 사용하세요.
|
|
46
46
|
|
|
47
47
|
### Gemini CLI
|
|
48
48
|
|
|
@@ -50,23 +50,23 @@ Codex는 저장소 루트의 [AGENTS.md](AGENTS.md)와 등록된 `agestra` MCP
|
|
|
50
50
|
|
|
51
51
|
```
|
|
52
52
|
npm run bundle
|
|
53
|
-
npm run install:gemini
|
|
53
|
+
npm run install:gemini:assets
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
전역 npm 패키지 기준:
|
|
57
57
|
|
|
58
58
|
```
|
|
59
59
|
npm install -g agestra
|
|
60
|
-
agestra-install gemini
|
|
60
|
+
agestra-install gemini --assets --scope user
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
저장소에서 작업 중이지만
|
|
63
|
+
저장소에서 작업 중이지만 전역 npm 패키지를 MCP만 등록하고 싶다면:
|
|
64
64
|
|
|
65
65
|
```
|
|
66
66
|
npm run install:gemini:global
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
Gemini는 저장소 루트의 [GEMINI.md](GEMINI.md)와 [`.gemini/commands/agestra/`](.gemini/commands/agestra) 프로젝트 커맨드를 함께 사용합니다.
|
|
69
|
+
Gemini는 저장소 루트의 [GEMINI.md](GEMINI.md)와 [`.gemini/commands/agestra/`](.gemini/commands/agestra) 프로젝트 커맨드를 함께 사용합니다. user scope의 `--assets` 경로는 Agestra Gemini native extension을 설치합니다. MCP만 등록하려면 `npm run install:gemini` 또는 `agestra-install gemini`를 사용하세요.
|
|
70
70
|
|
|
71
71
|
설치 후 Gemini에서 사용할 수 있는 명령:
|
|
72
72
|
|
|
@@ -158,7 +158,7 @@ winget install BurntSushi.ripgrep.MSVC
|
|
|
158
158
|
|
|
159
159
|
## 아키텍처
|
|
160
160
|
|
|
161
|
-
Turborepo 모노레포,
|
|
161
|
+
Turborepo 모노레포, 8개 패키지:
|
|
162
162
|
|
|
163
163
|
| 패키지 | 설명 |
|
|
164
164
|
|--------|------|
|
|
@@ -372,8 +372,8 @@ agestra/
|
|
|
372
372
|
│ └── bundle.js # 단일 파일 MCP 서버 번들
|
|
373
373
|
├── scripts/
|
|
374
374
|
│ ├── bundle.mjs # esbuild 번들 스크립트
|
|
375
|
-
│ ├── install-host-mcp.mjs # Codex/Gemini
|
|
376
|
-
│ └── uninstall-host-mcp.mjs #
|
|
375
|
+
│ ├── install-host-mcp.mjs # Claude/Codex/Gemini MCP + host assets 등록
|
|
376
|
+
│ └── uninstall-host-mcp.mjs # 호스트 등록과 관리 자산 제거
|
|
377
377
|
├── packages/
|
|
378
378
|
│ ├── core/ # AIProvider 인터페이스, 레지스트리, 보안, 워커
|
|
379
379
|
│ ├── provider-ollama/ # Ollama HTTP 어댑터
|
|
@@ -406,14 +406,18 @@ Codex CLI:
|
|
|
406
406
|
|
|
407
407
|
```
|
|
408
408
|
npm run uninstall:codex
|
|
409
|
+
npm run uninstall:codex:assets
|
|
409
410
|
```
|
|
410
411
|
|
|
411
412
|
Gemini CLI:
|
|
412
413
|
|
|
413
414
|
```
|
|
414
415
|
npm run uninstall:gemini
|
|
416
|
+
npm run uninstall:gemini:assets
|
|
415
417
|
```
|
|
416
418
|
|
|
419
|
+
`*:assets` 제거 명령은 호스트 등록과 변경되지 않은 생성형 호스트 자산을 함께 제거합니다. 사용자가 생성된 자산을 수정했다면 Agestra는 삭제하지 않고 남겨둔 파일을 보고합니다. 전역 npm 설치에서는 `agestra-uninstall codex --assets` 또는 `agestra-uninstall gemini --assets --scope user`를 사용하세요.
|
|
420
|
+
|
|
417
421
|
프로젝트에 생성된 데이터까지 지우려면 `.agestra/` 디렉터리를 수동으로 삭제하세요.
|
|
418
422
|
|
|
419
423
|
---
|
package/README.md
CHANGED
|
@@ -26,23 +26,23 @@ Repository checkout:
|
|
|
26
26
|
|
|
27
27
|
```
|
|
28
28
|
npm run bundle
|
|
29
|
-
npm run install:codex
|
|
29
|
+
npm run install:codex:assets
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Global npm package:
|
|
33
33
|
|
|
34
34
|
```
|
|
35
35
|
npm install -g agestra
|
|
36
|
-
agestra-install codex
|
|
36
|
+
agestra-install codex --assets
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
If you want
|
|
39
|
+
If you want MCP-only registration of the global package while working from a repo checkout, use:
|
|
40
40
|
|
|
41
41
|
```
|
|
42
42
|
npm run install:codex:global
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
Codex uses the repository-level [AGENTS.md](AGENTS.md) instructions plus the registered `agestra` MCP server.
|
|
45
|
+
Codex uses the repository-level [AGENTS.md](AGENTS.md) instructions plus the registered `agestra` MCP server. The `--assets` path also installs generated Codex custom agents under `.codex/agents/` and tracks them in the Agestra host-asset manifest. For MCP-only registration, use `npm run install:codex` or `agestra-install codex`.
|
|
46
46
|
|
|
47
47
|
### Gemini CLI
|
|
48
48
|
|
|
@@ -50,23 +50,23 @@ Repository checkout:
|
|
|
50
50
|
|
|
51
51
|
```
|
|
52
52
|
npm run bundle
|
|
53
|
-
npm run install:gemini
|
|
53
|
+
npm run install:gemini:assets
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
Global npm package:
|
|
57
57
|
|
|
58
58
|
```
|
|
59
59
|
npm install -g agestra
|
|
60
|
-
agestra-install gemini
|
|
60
|
+
agestra-install gemini --assets --scope user
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
If you want
|
|
63
|
+
If you want MCP-only registration of the global package while working from a repo checkout, use:
|
|
64
64
|
|
|
65
65
|
```
|
|
66
66
|
npm run install:gemini:global
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
Gemini uses the repository-level [GEMINI.md](GEMINI.md) context file plus project commands under [`.gemini/commands/agestra/`](.gemini/commands/agestra).
|
|
69
|
+
Gemini uses the repository-level [GEMINI.md](GEMINI.md) context file plus project commands under [`.gemini/commands/agestra/`](.gemini/commands/agestra). The user-scope `--assets` path installs the Agestra Gemini native extension. For MCP-only registration, use `npm run install:gemini` or `agestra-install gemini`.
|
|
70
70
|
|
|
71
71
|
Available Gemini commands after setup:
|
|
72
72
|
|
|
@@ -159,7 +159,7 @@ When external providers are available, text commands (review, design, idea) go d
|
|
|
159
159
|
|
|
160
160
|
## Architecture
|
|
161
161
|
|
|
162
|
-
Turborepo monorepo with
|
|
162
|
+
Turborepo monorepo with 8 packages:
|
|
163
163
|
|
|
164
164
|
| Package | Description |
|
|
165
165
|
|---------|-------------|
|
|
@@ -374,8 +374,8 @@ agestra/
|
|
|
374
374
|
│ └── bundle.js # Single-file MCP server bundle
|
|
375
375
|
├── scripts/
|
|
376
376
|
│ ├── bundle.mjs # esbuild bundle script
|
|
377
|
-
│ ├── install-host-mcp.mjs # Register
|
|
378
|
-
│ └── uninstall-host-mcp.mjs # Remove
|
|
377
|
+
│ ├── install-host-mcp.mjs # Register Claude/Codex/Gemini MCP + host assets
|
|
378
|
+
│ └── uninstall-host-mcp.mjs # Remove host registrations and managed assets
|
|
379
379
|
├── packages/
|
|
380
380
|
│ ├── core/ # AIProvider interface, registry, security, workers
|
|
381
381
|
│ ├── provider-ollama/ # Ollama HTTP adapter
|
|
@@ -408,14 +408,18 @@ Codex CLI:
|
|
|
408
408
|
|
|
409
409
|
```
|
|
410
410
|
npm run uninstall:codex
|
|
411
|
+
npm run uninstall:codex:assets
|
|
411
412
|
```
|
|
412
413
|
|
|
413
414
|
Gemini CLI:
|
|
414
415
|
|
|
415
416
|
```
|
|
416
417
|
npm run uninstall:gemini
|
|
418
|
+
npm run uninstall:gemini:assets
|
|
417
419
|
```
|
|
418
420
|
|
|
421
|
+
The `*:assets` uninstall commands remove both the host registration and unchanged generated host assets. If a generated asset was edited by the user, Agestra leaves it in place and reports it. For a global npm install, use `agestra-uninstall codex --assets` or `agestra-uninstall gemini --assets --scope user`.
|
|
422
|
+
|
|
419
423
|
If you also want to delete generated project data, remove the `.agestra/` directory manually.
|
|
420
424
|
|
|
421
425
|
---
|
package/README.zh.md
CHANGED
|
@@ -24,22 +24,37 @@ Claude 保持现有插件安装体验不变。Agestra 会在首次使用时通
|
|
|
24
24
|
|
|
25
25
|
```
|
|
26
26
|
npm run bundle
|
|
27
|
-
npm run install:codex
|
|
27
|
+
npm run install:codex:assets
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
使用全局 npm 包时:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
npm install -g agestra
|
|
34
|
+
agestra-install codex --assets
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Codex 会结合仓库根目录下的 [AGENTS.md](AGENTS.md) 与已注册的 `agestra` MCP 服务一起工作。`--assets` 还会在 `.codex/agents/` 下安装生成的 Codex custom agent,并写入 Agestra host-asset manifest。只注册 MCP 时,请使用 `npm run install:codex` 或 `agestra-install codex`。
|
|
31
38
|
|
|
32
39
|
### Gemini CLI
|
|
33
40
|
|
|
34
41
|
```
|
|
35
42
|
npm run bundle
|
|
36
|
-
npm run install:gemini
|
|
43
|
+
npm run install:gemini:assets
|
|
37
44
|
```
|
|
38
45
|
|
|
39
|
-
|
|
46
|
+
使用全局 npm 包时:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
npm install -g agestra
|
|
50
|
+
agestra-install gemini --assets --scope user
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Gemini 会结合仓库根目录下的 [GEMINI.md](GEMINI.md) 与 [`.gemini/commands/agestra/`](.gemini/commands/agestra) 项目命令一起工作。user scope 的 `--assets` 会安装 Agestra Gemini native extension。只注册 MCP 时,请使用 `npm run install:gemini` 或 `agestra-install gemini`。
|
|
40
54
|
|
|
41
55
|
安装后可用的 Gemini 命令:
|
|
42
56
|
|
|
57
|
+
- `/agestra:setup`
|
|
43
58
|
- `/agestra:review`
|
|
44
59
|
- `/agestra:design`
|
|
45
60
|
- `/agestra:idea`
|
|
@@ -116,7 +131,7 @@ Gemini 会结合仓库根目录下的 [GEMINI.md](GEMINI.md) 与 [`.gemini/comma
|
|
|
116
131
|
|
|
117
132
|
## 架构
|
|
118
133
|
|
|
119
|
-
这是一个包含
|
|
134
|
+
这是一个包含 8 个包的 Turborepo monorepo:
|
|
120
135
|
|
|
121
136
|
| 包 | 说明 |
|
|
122
137
|
|----|------|
|
|
@@ -329,8 +344,8 @@ agestra/
|
|
|
329
344
|
│ └── bundle.js # 单文件 MCP Server bundle
|
|
330
345
|
├── scripts/
|
|
331
346
|
│ ├── bundle.mjs # esbuild bundle 脚本
|
|
332
|
-
│ ├── install-host-mcp.mjs #
|
|
333
|
-
│ └── uninstall-host-mcp.mjs #
|
|
347
|
+
│ ├── install-host-mcp.mjs # 注册 Claude/Codex/Gemini MCP + host assets
|
|
348
|
+
│ └── uninstall-host-mcp.mjs # 移除宿主注册和受管理资产
|
|
334
349
|
├── packages/
|
|
335
350
|
│ ├── core/ # AIProvider 接口、注册表、安全、worker
|
|
336
351
|
│ ├── provider-ollama/ # Ollama HTTP 适配器
|
|
@@ -363,14 +378,18 @@ Codex CLI:
|
|
|
363
378
|
|
|
364
379
|
```
|
|
365
380
|
npm run uninstall:codex
|
|
381
|
+
npm run uninstall:codex:assets
|
|
366
382
|
```
|
|
367
383
|
|
|
368
384
|
Gemini CLI:
|
|
369
385
|
|
|
370
386
|
```
|
|
371
387
|
npm run uninstall:gemini
|
|
388
|
+
npm run uninstall:gemini:assets
|
|
372
389
|
```
|
|
373
390
|
|
|
391
|
+
`*:assets` 卸载命令会同时移除宿主注册和未修改的生成宿主资产。如果用户编辑过生成资产,Agestra 会保留该文件并报告。使用全局 npm 安装时,请运行 `agestra-uninstall codex --assets` 或 `agestra-uninstall gemini --assets --scope user`。
|
|
392
|
+
|
|
374
393
|
如果还想删除生成的项目数据,请手动删除 `.agestra/` 目录。
|
|
375
394
|
|
|
376
395
|
---
|
|
@@ -46,6 +46,10 @@ In autonomous mode, all phases still execute in order, but user approval gates a
|
|
|
46
46
|
|
|
47
47
|
<Workflow>
|
|
48
48
|
|
|
49
|
+
### Domain Dispatch
|
|
50
|
+
|
|
51
|
+
If invoked with **Domain: design**, do not enter implementation decomposition, worker routing, or code-changing phases. Execute the structured consensus design workflow in `commands/design.md`, then report the resulting design artifacts.
|
|
52
|
+
|
|
49
53
|
### Phase 0: Clarity Gate
|
|
50
54
|
|
|
51
55
|
If the user's request is vague (no file paths, no concrete acceptance criteria, ambiguous scope):
|
package/commands/design.md
CHANGED
|
@@ -9,12 +9,12 @@ You are executing the `/agestra design` command.
|
|
|
9
9
|
|
|
10
10
|
## Step 0: Setup preflight (MANDATORY)
|
|
11
11
|
|
|
12
|
-
Before anything else, call `setup_status`. If it reports `Current config: not found
|
|
12
|
+
Before anything else, call `setup_status`. If it reports `Current config: not found` (or the path exists but `setup_status` shows 0 detected providers with a missing-config note), **stop this command and run setup first**:
|
|
13
13
|
|
|
14
14
|
1. Invoke the `agestra:setup` skill (or `/agestra setup` inline) — provider detection, selection, locale, `setup_apply`.
|
|
15
15
|
2. After the config is written, resume this `/agestra design` command **from Step 1**, preserving `$ARGUMENTS`. Do not ask the user to retype.
|
|
16
16
|
|
|
17
|
-
Agestra uses a single plugin-scoped `providers.config.json
|
|
17
|
+
Agestra uses a single plugin-scoped `providers.config.json` (`$CLAUDE_PLUGIN_ROOT/providers.config.json` or `~/.agestra/providers.config.json`). No config → no sanctioned provider set → setup is the only correct starting point. Auto-detect without explicit setup can silently include disabled providers.
|
|
18
18
|
|
|
19
19
|
## Step 1: Determine design subject
|
|
20
20
|
|
|
@@ -34,47 +34,57 @@ If `$ARGUMENTS` is provided, use it directly as the subject.
|
|
|
34
34
|
|
|
35
35
|
## Step 2: Check environment and select mode
|
|
36
36
|
|
|
37
|
-
Call `environment_check` to determine which providers and modes are available.
|
|
37
|
+
Call `environment_check` and `provider_list` to determine which providers and modes are available.
|
|
38
38
|
|
|
39
39
|
- If **no providers are available**: run the `agestra:agestra-designer` host specialist directly (Leader-host only) with the subject as context. The designer will ask questions to understand intent, explore the codebase for existing patterns, propose 2-3 approaches with trade-offs, refine based on feedback, and produce a design document in `docs/plans/`. Skip to presenting the result.
|
|
40
40
|
- If **1+ providers are available**: proceed to consensus debate execution below.
|
|
41
41
|
|
|
42
|
+
Respect the providers list verbatim. A provider marked `Not found`, unavailable in `environment_check`, or disabled by setup MUST NOT be invoked. Do not probe disabled providers.
|
|
43
|
+
|
|
42
44
|
## Step 3: Execute consensus debate
|
|
43
45
|
|
|
44
|
-
**팀 구성:** `agestra:agestra-moderator` (조율) + `agestra:agestra-designer` (현재 호스트의 설계 전문 에이전트) +
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
3.
|
|
79
|
-
-
|
|
80
|
-
|
|
46
|
+
**팀 구성:** `agestra:agestra-moderator` (조율) + `agestra:agestra-designer` (현재 호스트의 설계 전문 에이전트) + `environment_check`가 Available로 보고한 외부 AI.
|
|
47
|
+
|
|
48
|
+
Follow the structured consensus document model from `docs/superpowers/specs/2026-04-25-structured-consensus-documents-design.md`:
|
|
49
|
+
|
|
50
|
+
| Artifact | Folder | Role |
|
|
51
|
+
|----------|--------|------|
|
|
52
|
+
| Individual design documents | `.agestra/workspace/individual/` | Raw first-pass source material from each participant |
|
|
53
|
+
| Consensus ledger JSON | `.agestra/workspace/debates/` | Authoritative system state |
|
|
54
|
+
| Aggregated debate Markdown | `.agestra/workspace/debates/` | Generated readable mirror of the JSON ledger |
|
|
55
|
+
| Synthesis document | `.agestra/workspace/synthesis/` | Self-contained final design decision document |
|
|
56
|
+
|
|
57
|
+
The JSON consensus ledger is the source of truth. Generated Markdown must not be parsed or hand-edited to change provider stances, item status, or consensus state.
|
|
58
|
+
|
|
59
|
+
1. Start an approval-gated structured debate with `agent_debate_structured`.
|
|
60
|
+
- **topic:** the design subject.
|
|
61
|
+
- **participants:** only providers reported available by `environment_check` / `provider_list`, plus the host design specialist when the engine supports it.
|
|
62
|
+
- **scope:** the design subject plus any user-provided constraints, relevant existing design docs, and code areas that should anchor the design.
|
|
63
|
+
- **leader:** the current leader identity when known.
|
|
64
|
+
- **locale:** the setup locale when known.
|
|
65
|
+
- **individual_review_prompt:** ask each participant to create a complete design document with:
|
|
66
|
+
1. Problem definition — what exactly is being solved and why.
|
|
67
|
+
2. Constraints and requirements — technical limits, compatibility needs, performance targets.
|
|
68
|
+
3. 2-3 architecture approaches — each with pros/cons, component boundaries, data flow, and effort estimate.
|
|
69
|
+
4. Recommended approach — one choice with justification.
|
|
70
|
+
5. Implementation plan — step-by-step build sequence with dependencies.
|
|
71
|
+
6. Risks and mitigations.
|
|
72
|
+
|
|
73
|
+
2. Let the MCP moderator engine own the consensus flow.
|
|
74
|
+
- The engine writes individual first-pass documents under `individual/`.
|
|
75
|
+
- The engine owns provider turn order, JSON turn packets, response validation, ledger updates, aggregated debate Markdown rendering, synthesis rendering, and the final terminal table.
|
|
76
|
+
- Participants submit explicit JSON stances through the MCP consensus turn packet.
|
|
77
|
+
- The leader/moderator must not infer agreement from prose and must not edit provider stances manually.
|
|
78
|
+
- There must be one generated aggregated debate Markdown document per run, not one Markdown document per provider turn or round.
|
|
79
|
+
|
|
80
|
+
3. Use the approval gate.
|
|
81
|
+
- If the terminal report says the session is `ready-for-approval`, inspect the report and call exactly one of:
|
|
82
|
+
- `agent_debate_approve` to write the synthesis document.
|
|
83
|
+
- `agent_debate_continue` to run 3, 5, or 10 more rounds.
|
|
84
|
+
- `agent_debate_reject` to close without synthesis.
|
|
85
|
+
- If the result is `error`, do not approve; report the orchestration failure.
|
|
86
|
+
|
|
87
|
+
4. Present the final result.
|
|
88
|
+
- Name the debate Markdown path, consensus JSON ledger path, approval snapshot path if surfaced, and synthesis document path if approved.
|
|
89
|
+
- Summarize accepted design decisions, excluded options, and unresolved/disputed items.
|
|
90
|
+
- Preserve each provider's rationale for disputed positions.
|