agestra 4.11.0 → 4.12.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/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.gemini/commands/agestra/design.toml +1 -1
- package/.gemini/commands/agestra/implement.toml +3 -2
- package/AGENTS.md +1 -1
- package/GEMINI.md +1 -1
- package/README.ja.md +36 -9
- package/README.ko.md +23 -11
- package/README.md +30 -16
- package/README.zh.md +36 -9
- package/agents/agestra-designer.md +1 -0
- package/agents/agestra-ideator.md +1 -0
- package/agents/agestra-implementer.md +76 -0
- package/agents/agestra-moderator.md +15 -14
- package/agents/agestra-qa.md +1 -1
- package/agents/agestra-team-lead.md +53 -40
- package/commands/design.md +56 -46
- package/commands/idea.md +8 -8
- package/commands/implement.md +32 -10
- package/commands/review.md +11 -11
- package/commands/setup.md +1 -1
- package/dist/bundle.js +9 -9
- package/hooks/user-prompt-submit.js +86 -8
- package/package.json +11 -2
- package/scripts/host-assets/codex-assets.mjs +200 -0
- package/scripts/host-assets/gemini-assets.mjs +341 -0
- package/scripts/host-assets/manifest.mjs +211 -0
- package/scripts/install-host-mcp.mjs +195 -24
- package/scripts/uninstall-host-mcp.mjs +122 -8
- package/skills/design.md +46 -34
- package/skills/idea.md +11 -11
- package/skills/leader.md +162 -0
- package/skills/provider-guide.md +18 -13
- package/skills/review.md +11 -11
- package/skills/setup.md +2 -2
|
@@ -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.
|
|
@@ -9,8 +9,9 @@ Use the shared workflow spec below as the source of truth and adapt it to the cu
|
|
|
9
9
|
@{commands/implement.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 and worker orchestration over ad-hoc shell-heavy implementation plans.
|
|
14
|
-
-
|
|
14
|
+
- Treat "Leader-host only" as the Gemini-led local path when Gemini is the active host.
|
|
15
|
+
- Use the shared `agestra-implementer` role semantics for host-local code edits.
|
|
15
16
|
- Keep the final answer in the user's language.
|
|
16
17
|
"""
|
package/AGENTS.md
CHANGED
|
@@ -13,7 +13,7 @@ This repository includes a Codex-friendly host wrapper for Agestra.
|
|
|
13
13
|
- Treat `commands/*.md` as the source of truth for Agestra workflows.
|
|
14
14
|
- When the user asks for review, design, idea, or implementation help, start with `environment_check` and `provider_list`.
|
|
15
15
|
- Prefer Agestra MCP tools over ad-hoc multi-provider prompting.
|
|
16
|
-
- If
|
|
16
|
+
- If any legacy workflow text mentions "Claude only", interpret that as the current leader-host-only path when Claude is not the active host.
|
|
17
17
|
|
|
18
18
|
## Workflow Mapping
|
|
19
19
|
|
package/GEMINI.md
CHANGED
|
@@ -24,7 +24,7 @@ Each command delegates to the shared workflow specs in `commands/*.md`.
|
|
|
24
24
|
- Start orchestration requests with `environment_check` and `provider_list`.
|
|
25
25
|
- Prefer Agestra MCP tools instead of rebuilding workflows in free-form prompts.
|
|
26
26
|
- Treat `commands/*.md` and `agents/*.md` as the canonical workflow and role assets.
|
|
27
|
-
- If
|
|
27
|
+
- If any legacy shared workflow text mentions "Claude only", translate that to the current leader-host-only path when Gemini is the active host.
|
|
28
28
|
|
|
29
29
|
## Core MCP Tools
|
|
30
30
|
|
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`
|
|
@@ -84,7 +99,7 @@ Gemini ではリポジトリ直下の [GEMINI.md](GEMINI.md) と、[`.gemini/com
|
|
|
84
99
|
| `/agestra setup` | 初期 AI プロバイダー選択とセットアップ |
|
|
85
100
|
| `/agestra implement [task]` | Claude only または Multi-AI モードで実装を進める |
|
|
86
101
|
|
|
87
|
-
外部プロバイダーが利用可能な場合、テキストコマンド(review、design、idea
|
|
102
|
+
外部プロバイダーが利用可能な場合、テキストコマンド(review、design、idea)は直接徹底討論モードに入り、マルチ AI クロスバリデーションを行います。プロバイダーが検出されない場合、Claude が自動的に単独で作業します。
|
|
88
103
|
|
|
89
104
|
## エージェント
|
|
90
105
|
|
|
@@ -106,8 +121,11 @@ Gemini ではリポジトリ直下の [GEMINI.md](GEMINI.md) と、[`.gemini/com
|
|
|
106
121
|
| `cancel` | ワーカー、ディベート、チェーン、タスクの安全な停止 |
|
|
107
122
|
| `build-fix` | build/typecheck/lint エラーの自動診断と修正 |
|
|
108
123
|
| `trace` | エージェント実行タイムラインとフローダイアグラムの表示 |
|
|
124
|
+
| `setup` | 初期プロバイダー選択と `providers.config.json` 書き込み |
|
|
109
125
|
| `design` | Multi-AI モード選択を含む設計探索ワークフロー |
|
|
110
126
|
| `idea` | Multi-AI モード選択を含む改善案発見ワークフロー |
|
|
127
|
+
| `review` | Multi-AI モード選択を含むコード品質・セキュリティ・ハードコーディングレビューワークフロー |
|
|
128
|
+
| `leader` | マルチAI/プロバイダーオーケストレーションのエントリーポイント — 明示的なプロバイダー、ディベート、合意形成、相互検証シグナルを検知し、ドメイン分類後 `agestra-team-lead` へ委譲 |
|
|
111
129
|
|
|
112
130
|
---
|
|
113
131
|
|
|
@@ -137,7 +155,7 @@ Turborepo モノレポで、9 パッケージ構成です:
|
|
|
137
155
|
|
|
138
156
|
### 作業モード
|
|
139
157
|
|
|
140
|
-
**Text work**(レビュー、設計、アイデア): プロバイダーあり →
|
|
158
|
+
**Text work**(レビュー、設計、アイデア): プロバイダーあり → 徹底討論モード; なし → Claude only
|
|
141
159
|
|
|
142
160
|
**Implementation work**(team-lead orchestration):
|
|
143
161
|
- **Claude만으로** — Claude がプロジェクト/グローバルエージェントを使って直接実装します。
|
|
@@ -314,15 +332,20 @@ agestra/
|
|
|
314
332
|
│ ├── worker-manage.md # CLI ワーカー管理
|
|
315
333
|
│ ├── cancel.md # 安全な操作キャンセル
|
|
316
334
|
│ ├── build-fix.md # ビルドエラー自動修復
|
|
317
|
-
│
|
|
335
|
+
│ ├── trace.md # 実行タイムラインビューア
|
|
336
|
+
│ ├── setup.md # 初期プロバイダー選択
|
|
337
|
+
│ ├── design.md # 設計探索ワークフロー
|
|
338
|
+
│ ├── idea.md # 改善案発見ワークフロー
|
|
339
|
+
│ ├── review.md # コード品質レビューワークフロー
|
|
340
|
+
│ └── leader.md # マルチAIオーケストレーションルーター
|
|
318
341
|
├── hooks/
|
|
319
342
|
│ └── user-prompt-submit.md # ツール推奨フック
|
|
320
343
|
├── dist/
|
|
321
344
|
│ └── bundle.js # 単一ファイル MCP サーバーバンドル
|
|
322
345
|
├── scripts/
|
|
323
346
|
│ ├── bundle.mjs # esbuild バンドルスクリプト
|
|
324
|
-
│ ├── install-host-mcp.mjs # Codex/Gemini
|
|
325
|
-
│ └── uninstall-host-mcp.mjs #
|
|
347
|
+
│ ├── install-host-mcp.mjs # Claude/Codex/Gemini の MCP + host assets を登録
|
|
348
|
+
│ └── uninstall-host-mcp.mjs # ホスト登録と管理対象 assets を削除
|
|
326
349
|
├── packages/
|
|
327
350
|
│ ├── core/ # AIProvider、レジストリ、セキュリティ、ワーカー
|
|
328
351
|
│ ├── provider-ollama/ # Ollama HTTP アダプター
|
|
@@ -355,14 +378,18 @@ Codex CLI:
|
|
|
355
378
|
|
|
356
379
|
```
|
|
357
380
|
npm run uninstall:codex
|
|
381
|
+
npm run uninstall:codex:assets
|
|
358
382
|
```
|
|
359
383
|
|
|
360
384
|
Gemini CLI:
|
|
361
385
|
|
|
362
386
|
```
|
|
363
387
|
npm run uninstall:gemini
|
|
388
|
+
npm run uninstall:gemini:assets
|
|
364
389
|
```
|
|
365
390
|
|
|
391
|
+
`*:assets` のアンインストールは、ホスト登録と未変更の生成済みホスト資産を一緒に削除します。ユーザーが生成済み資産を編集していた場合、Agestra はそのファイルを残して報告します。グローバル npm インストールでは `agestra-uninstall codex --assets` または `agestra-uninstall gemini --assets --scope user` を使ってください。
|
|
392
|
+
|
|
366
393
|
生成済みのプロジェクトデータも削除したい場合は、`.agestra/` ディレクトリを手動で削除してください。
|
|
367
394
|
|
|
368
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
|
|
|
@@ -148,8 +148,11 @@ winget install BurntSushi.ripgrep.MSVC
|
|
|
148
148
|
| `cancel` | 워커, 토론, 체인, 작업의 정상 종료 |
|
|
149
149
|
| `build-fix` | 빌드/타입체크/린트 에러 자동 진단 및 수정 |
|
|
150
150
|
| `trace` | 에이전트 실행 타임라인 및 흐름 다이어그램 조회 |
|
|
151
|
+
| `setup` | 초기 공급자 선택 및 `providers.config.json` 작성 |
|
|
151
152
|
| `design` | 멀티 AI 모드 선택이 포함된 아키텍처 탐색 워크플로우 |
|
|
152
153
|
| `idea` | 멀티 AI 모드 선택이 포함된 개선점 발굴 워크플로우 |
|
|
154
|
+
| `review` | 멀티 AI 모드 선택이 포함된 코드 품질·보안·하드코딩 리뷰 워크플로우 |
|
|
155
|
+
| `leader` | 멀티 AI/프로바이더 오케스트레이션 진입점 — 명시적인 프로바이더, 토론, 합의, 교차 검증 신호를 잡아 도메인을 분류한 뒤 `agestra-team-lead`에 위임 |
|
|
153
156
|
|
|
154
157
|
---
|
|
155
158
|
|
|
@@ -357,15 +360,20 @@ agestra/
|
|
|
357
360
|
│ ├── worker-manage.md # CLI 워커 관리
|
|
358
361
|
│ ├── cancel.md # 정상 작업 취소
|
|
359
362
|
│ ├── build-fix.md # 빌드 에러 자동 수정
|
|
360
|
-
│
|
|
363
|
+
│ ├── trace.md # 실행 타임라인 조회
|
|
364
|
+
│ ├── setup.md # 초기 공급자 선택
|
|
365
|
+
│ ├── design.md # 아키텍처 탐색 워크플로우
|
|
366
|
+
│ ├── idea.md # 개선점 발굴 워크플로우
|
|
367
|
+
│ ├── review.md # 코드 품질 리뷰 워크플로우
|
|
368
|
+
│ └── leader.md # 멀티 AI 오케스트레이션 라우터
|
|
361
369
|
├── hooks/
|
|
362
370
|
│ └── user-prompt-submit.md # 도구 추천 hook
|
|
363
371
|
├── dist/
|
|
364
372
|
│ └── bundle.js # 단일 파일 MCP 서버 번들
|
|
365
373
|
├── scripts/
|
|
366
374
|
│ ├── bundle.mjs # esbuild 번들 스크립트
|
|
367
|
-
│ ├── install-host-mcp.mjs # Codex/Gemini
|
|
368
|
-
│ └── uninstall-host-mcp.mjs #
|
|
375
|
+
│ ├── install-host-mcp.mjs # Claude/Codex/Gemini MCP + host assets 등록
|
|
376
|
+
│ └── uninstall-host-mcp.mjs # 호스트 등록과 관리 자산 제거
|
|
369
377
|
├── packages/
|
|
370
378
|
│ ├── core/ # AIProvider 인터페이스, 레지스트리, 보안, 워커
|
|
371
379
|
│ ├── provider-ollama/ # Ollama HTTP 어댑터
|
|
@@ -398,14 +406,18 @@ Codex CLI:
|
|
|
398
406
|
|
|
399
407
|
```
|
|
400
408
|
npm run uninstall:codex
|
|
409
|
+
npm run uninstall:codex:assets
|
|
401
410
|
```
|
|
402
411
|
|
|
403
412
|
Gemini CLI:
|
|
404
413
|
|
|
405
414
|
```
|
|
406
415
|
npm run uninstall:gemini
|
|
416
|
+
npm run uninstall:gemini:assets
|
|
407
417
|
```
|
|
408
418
|
|
|
419
|
+
`*:assets` 제거 명령은 호스트 등록과 변경되지 않은 생성형 호스트 자산을 함께 제거합니다. 사용자가 생성된 자산을 수정했다면 Agestra는 삭제하지 않고 남겨둔 파일을 보고합니다. 전역 npm 설치에서는 `agestra-uninstall codex --assets` 또는 `agestra-uninstall gemini --assets --scope user`를 사용하세요.
|
|
420
|
+
|
|
409
421
|
프로젝트에 생성된 데이터까지 지우려면 `.agestra/` 디렉터리를 수동으로 삭제하세요.
|
|
410
422
|
|
|
411
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
|
|
|
@@ -124,15 +124,16 @@ All three hosts drive the same MCP server and shared workflow specs from `comman
|
|
|
124
124
|
| `/agestra idea [topic]` | Discover improvements by comparing with similar projects |
|
|
125
125
|
| `/agestra design [subject]` | Explore architecture and design trade-offs before implementation |
|
|
126
126
|
| `/agestra setup` | Initial AI provider selection and setup |
|
|
127
|
-
| `/agestra implement [task]` | Execute implementation
|
|
127
|
+
| `/agestra implement [task]` | Execute implementation through Leader-host-only or suggested AI distribution mode |
|
|
128
128
|
|
|
129
|
-
When external providers are available, text commands (review, design, idea) go directly to debate mode for multi-AI cross-validation. When no providers are detected,
|
|
129
|
+
When external providers are available, text commands (review, design, idea) go directly to consensus debate mode for multi-AI cross-validation. When no providers are detected, the current leader host works with its local specialist agent automatically. Implementation requests first classify the task and can ask whether to propose an AI task distribution.
|
|
130
130
|
|
|
131
131
|
## Agents
|
|
132
132
|
|
|
133
133
|
| Agent | Model | Role |
|
|
134
134
|
|-------|-------|------|
|
|
135
135
|
| `agestra-team-lead` | Sonnet | Full orchestrator — environment check, quality-based provider routing, work mode selection, CLI worker supervision, QA loop |
|
|
136
|
+
| `agestra-implementer` | Sonnet | Scoped implementation executor — code edits, test updates, local verification |
|
|
136
137
|
| `agestra-reviewer` | Opus | Strict quality verifier — security, orphans, spec drift, test gaps |
|
|
137
138
|
| `agestra-designer` | Opus | Architecture explorer — Socratic questioning, trade-off analysis |
|
|
138
139
|
| `agestra-ideator` | Sonnet | Improvement discoverer — web research, competitive analysis |
|
|
@@ -148,8 +149,11 @@ When external providers are available, text commands (review, design, idea) go d
|
|
|
148
149
|
| `cancel` | Graceful stop for workers, debates, chains, tasks |
|
|
149
150
|
| `build-fix` | Auto-diagnose and fix build/typecheck/lint errors |
|
|
150
151
|
| `trace` | View agent execution timeline and flow diagrams |
|
|
152
|
+
| `setup` | Initial provider selection and `providers.config.json` write |
|
|
151
153
|
| `design` | Architecture exploration workflow with multi-AI mode selection |
|
|
152
154
|
| `idea` | Improvement discovery workflow with multi-AI mode selection |
|
|
155
|
+
| `review` | Code quality / security / hardcoding review workflow with multi-AI mode selection |
|
|
156
|
+
| `leader` | Multi-AI/provider orchestration entry — catches explicit provider, debate, consensus, or cross-validation signals, classifies the domain, and hands off to `agestra-team-lead` |
|
|
153
157
|
|
|
154
158
|
---
|
|
155
159
|
|
|
@@ -179,11 +183,11 @@ Turborepo monorepo with 9 packages:
|
|
|
179
183
|
|
|
180
184
|
### Work Modes
|
|
181
185
|
|
|
182
|
-
**Text work** (review, design, idea): providers available → debate mode; no providers →
|
|
186
|
+
**Text work** (review, design, idea): providers available → consensus debate mode; no providers → Leader-host only
|
|
183
187
|
|
|
184
188
|
**Implementation work** (team-lead orchestration):
|
|
185
|
-
- **
|
|
186
|
-
-
|
|
189
|
+
- **Leader-host only** — `agestra-implementer` applies scoped code changes; reviewer/QA verify.
|
|
190
|
+
- **Suggested AI distribution** — the team lead proposes a routing table, asks for approval, then dispatches Codex/Gemini CLI workers for suitable code edits and Ollama for simple/repetitive proposal work.
|
|
187
191
|
|
|
188
192
|
---
|
|
189
193
|
|
|
@@ -349,6 +353,7 @@ agestra/
|
|
|
349
353
|
│ ├── agestra-reviewer.md # Strict quality verifier (Opus)
|
|
350
354
|
│ ├── agestra-designer.md # Architecture explorer (Opus)
|
|
351
355
|
│ ├── agestra-ideator.md # Improvement discoverer (Sonnet)
|
|
356
|
+
│ ├── agestra-implementer.md # Scoped implementation executor (Sonnet)
|
|
352
357
|
│ ├── agestra-moderator.md # Multi-mode facilitator (Sonnet)
|
|
353
358
|
│ ├── agestra-qa.md # QA verifier (Opus, no code writes)
|
|
354
359
|
│ └── agestra-team-lead.md # Full orchestrator (Sonnet, no code writes)
|
|
@@ -357,15 +362,20 @@ agestra/
|
|
|
357
362
|
│ ├── worker-manage.md # CLI worker management
|
|
358
363
|
│ ├── cancel.md # Graceful operation cancellation
|
|
359
364
|
│ ├── build-fix.md # Build error auto-repair
|
|
360
|
-
│
|
|
365
|
+
│ ├── trace.md # Execution timeline viewer
|
|
366
|
+
│ ├── setup.md # Initial provider selection
|
|
367
|
+
│ ├── design.md # Architecture exploration workflow
|
|
368
|
+
│ ├── idea.md # Improvement discovery workflow
|
|
369
|
+
│ ├── review.md # Code quality review workflow
|
|
370
|
+
│ └── leader.md # Multi-AI orchestration entry router
|
|
361
371
|
├── hooks/
|
|
362
372
|
│ └── user-prompt-submit.md # Tool recommendation hook
|
|
363
373
|
├── dist/
|
|
364
374
|
│ └── bundle.js # Single-file MCP server bundle
|
|
365
375
|
├── scripts/
|
|
366
376
|
│ ├── bundle.mjs # esbuild bundle script
|
|
367
|
-
│ ├── install-host-mcp.mjs # Register
|
|
368
|
-
│ └── 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
|
|
369
379
|
├── packages/
|
|
370
380
|
│ ├── core/ # AIProvider interface, registry, security, workers
|
|
371
381
|
│ ├── provider-ollama/ # Ollama HTTP adapter
|
|
@@ -398,14 +408,18 @@ Codex CLI:
|
|
|
398
408
|
|
|
399
409
|
```
|
|
400
410
|
npm run uninstall:codex
|
|
411
|
+
npm run uninstall:codex:assets
|
|
401
412
|
```
|
|
402
413
|
|
|
403
414
|
Gemini CLI:
|
|
404
415
|
|
|
405
416
|
```
|
|
406
417
|
npm run uninstall:gemini
|
|
418
|
+
npm run uninstall:gemini:assets
|
|
407
419
|
```
|
|
408
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
|
+
|
|
409
423
|
If you also want to delete generated project data, remove the `.agestra/` directory manually.
|
|
410
424
|
|
|
411
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`
|
|
@@ -84,7 +99,7 @@ Gemini 会结合仓库根目录下的 [GEMINI.md](GEMINI.md) 与 [`.gemini/comma
|
|
|
84
99
|
| `/agestra setup` | 初始 AI 提供方选择与设置 |
|
|
85
100
|
| `/agestra implement [task]` | 以 Claude only 或 Multi-AI 模式执行实现 |
|
|
86
101
|
|
|
87
|
-
当外部提供方可用时,文本命令(review、design、idea
|
|
102
|
+
当外部提供方可用时,文本命令(review、design、idea)直接进入终极辩论模式,进行多 AI 交叉验证。当未检测到提供方时,Claude 自动独立工作。
|
|
88
103
|
|
|
89
104
|
## 代理
|
|
90
105
|
|
|
@@ -106,8 +121,11 @@ Gemini 会结合仓库根目录下的 [GEMINI.md](GEMINI.md) 与 [`.gemini/comma
|
|
|
106
121
|
| `cancel` | 安全停止 worker、辩论、链路和任务 |
|
|
107
122
|
| `build-fix` | 自动诊断并修复 build/typecheck/lint 错误 |
|
|
108
123
|
| `trace` | 查看代理执行时间线与流程图 |
|
|
124
|
+
| `setup` | 初始提供方选择与 `providers.config.json` 写入 |
|
|
109
125
|
| `design` | 包含 Multi-AI 模式选择的架构探索工作流 |
|
|
110
126
|
| `idea` | 包含 Multi-AI 模式选择的改进发现工作流 |
|
|
127
|
+
| `review` | 包含 Multi-AI 模式选择的代码质量·安全·硬编码审查工作流 |
|
|
128
|
+
| `leader` | 多AI/提供方编排入口 — 捕获明确的提供方、辩论、共识或交叉验证信号,进行领域分类后委托给 `agestra-team-lead` |
|
|
111
129
|
|
|
112
130
|
---
|
|
113
131
|
|
|
@@ -137,7 +155,7 @@ Gemini 会结合仓库根目录下的 [GEMINI.md](GEMINI.md) 与 [`.gemini/comma
|
|
|
137
155
|
|
|
138
156
|
### 工作模式
|
|
139
157
|
|
|
140
|
-
**文本工作**(review、design、idea):有提供方 →
|
|
158
|
+
**文本工作**(review、design、idea):有提供方 → 终极辩论模式;无提供方 → Claude only
|
|
141
159
|
|
|
142
160
|
**实现工作**(team-lead orchestration):
|
|
143
161
|
- **Claude만으로** — Claude 直接结合项目/全局代理完成实现。
|
|
@@ -314,15 +332,20 @@ agestra/
|
|
|
314
332
|
│ ├── worker-manage.md # CLI Worker 管理
|
|
315
333
|
│ ├── cancel.md # 安全取消操作
|
|
316
334
|
│ ├── build-fix.md # 构建错误自动修复
|
|
317
|
-
│
|
|
335
|
+
│ ├── trace.md # 执行时间线查看器
|
|
336
|
+
│ ├── setup.md # 初始提供方选择
|
|
337
|
+
│ ├── design.md # 架构探索工作流
|
|
338
|
+
│ ├── idea.md # 改进发现工作流
|
|
339
|
+
│ ├── review.md # 代码质量审查工作流
|
|
340
|
+
│ └── leader.md # 多AI 编排路由器
|
|
318
341
|
├── hooks/
|
|
319
342
|
│ └── user-prompt-submit.md # 工具推荐 hook
|
|
320
343
|
├── dist/
|
|
321
344
|
│ └── bundle.js # 单文件 MCP Server bundle
|
|
322
345
|
├── scripts/
|
|
323
346
|
│ ├── bundle.mjs # esbuild bundle 脚本
|
|
324
|
-
│ ├── install-host-mcp.mjs #
|
|
325
|
-
│ └── uninstall-host-mcp.mjs #
|
|
347
|
+
│ ├── install-host-mcp.mjs # 注册 Claude/Codex/Gemini MCP + host assets
|
|
348
|
+
│ └── uninstall-host-mcp.mjs # 移除宿主注册和受管理资产
|
|
326
349
|
├── packages/
|
|
327
350
|
│ ├── core/ # AIProvider 接口、注册表、安全、worker
|
|
328
351
|
│ ├── provider-ollama/ # Ollama HTTP 适配器
|
|
@@ -355,14 +378,18 @@ Codex CLI:
|
|
|
355
378
|
|
|
356
379
|
```
|
|
357
380
|
npm run uninstall:codex
|
|
381
|
+
npm run uninstall:codex:assets
|
|
358
382
|
```
|
|
359
383
|
|
|
360
384
|
Gemini CLI:
|
|
361
385
|
|
|
362
386
|
```
|
|
363
387
|
npm run uninstall:gemini
|
|
388
|
+
npm run uninstall:gemini:assets
|
|
364
389
|
```
|
|
365
390
|
|
|
391
|
+
`*:assets` 卸载命令会同时移除宿主注册和未修改的生成宿主资产。如果用户编辑过生成资产,Agestra 会保留该文件并报告。使用全局 npm 安装时,请运行 `agestra-uninstall codex --assets` 或 `agestra-uninstall gemini --assets --scope user`。
|
|
392
|
+
|
|
366
393
|
如果还想删除生成的项目数据,请手动删除 `.agestra/` 目录。
|
|
367
394
|
|
|
368
395
|
---
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agestra-implementer
|
|
3
|
+
description: |
|
|
4
|
+
Implementation executor. Applies scoped code changes, writes or updates tests,
|
|
5
|
+
follows existing project patterns, and verifies the result. Receives tasks from
|
|
6
|
+
the team lead; does not orchestrate other providers.
|
|
7
|
+
|
|
8
|
+
<example>
|
|
9
|
+
Context: The team lead has decomposed a task and needs a host-local executor
|
|
10
|
+
user: "이 작업은 현재 호스트 구현 에이전트가 처리해"
|
|
11
|
+
assistant: "I'll use the agestra-implementer agent to apply the scoped code changes."
|
|
12
|
+
<commentary>
|
|
13
|
+
Implementation executor — modifies code within the assigned files and verifies.
|
|
14
|
+
</commentary>
|
|
15
|
+
</example>
|
|
16
|
+
model: sonnet
|
|
17
|
+
color: green
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<Role>
|
|
21
|
+
You are a focused implementation executor. You receive a bounded task from the
|
|
22
|
+
leader, modify the code, add or update tests when needed, run verification, and
|
|
23
|
+
report exactly what changed. You are not the moderator, planner, or reviewer.
|
|
24
|
+
</Role>
|
|
25
|
+
|
|
26
|
+
<Operating_Principles>
|
|
27
|
+
- Stay inside the assigned scope. Do not perform unrelated cleanup or broad refactors.
|
|
28
|
+
- Follow existing project patterns before introducing new abstractions.
|
|
29
|
+
- Treat small and simple as different concepts: a small security or concurrency change may be high-risk; a large repetitive rename may be simple.
|
|
30
|
+
- Prefer tests first for behavioral changes and regressions.
|
|
31
|
+
- Preserve user or other-agent changes. If a file has unrelated edits, work with them rather than reverting them.
|
|
32
|
+
- Do not spawn other AI providers, run debates, or approve external worker changes. Escalate those decisions to the leader.
|
|
33
|
+
</Operating_Principles>
|
|
34
|
+
|
|
35
|
+
<Workflow>
|
|
36
|
+
|
|
37
|
+
### Phase 1: Intake
|
|
38
|
+
|
|
39
|
+
Confirm the task packet contains:
|
|
40
|
+
- Task goal
|
|
41
|
+
- Files allowed to modify
|
|
42
|
+
- Files useful to read
|
|
43
|
+
- Constraints and non-goals
|
|
44
|
+
- Success criteria and verification commands
|
|
45
|
+
- Design/spec reference if one exists
|
|
46
|
+
|
|
47
|
+
If the task packet is too vague to implement safely, ask the leader for clarification rather than guessing.
|
|
48
|
+
|
|
49
|
+
### Phase 2: Inspect
|
|
50
|
+
|
|
51
|
+
Read the relevant files and identify the existing local pattern. Keep the implementation approach small and compatible with surrounding code.
|
|
52
|
+
|
|
53
|
+
### Phase 3: Implement
|
|
54
|
+
|
|
55
|
+
Apply the minimal code changes needed to satisfy the task. Add tests when the change affects behavior, public contracts, generated output, provider routing, orchestration, or failure handling.
|
|
56
|
+
|
|
57
|
+
### Phase 4: Verify
|
|
58
|
+
|
|
59
|
+
Run the narrowest useful tests first, then broader checks when the change touches shared behavior. If verification fails, diagnose and fix within the assigned scope. If the failure belongs outside the task scope, report it clearly to the leader.
|
|
60
|
+
|
|
61
|
+
### Phase 5: Report
|
|
62
|
+
|
|
63
|
+
Report:
|
|
64
|
+
- Files changed
|
|
65
|
+
- Behavior changed
|
|
66
|
+
- Tests or commands run, with pass/fail status
|
|
67
|
+
- Any remaining risks or follow-up decisions for the leader
|
|
68
|
+
|
|
69
|
+
</Workflow>
|
|
70
|
+
|
|
71
|
+
<Constraints>
|
|
72
|
+
- You may edit files only for the assigned implementation task.
|
|
73
|
+
- Do not accept or reject CLI worker worktrees.
|
|
74
|
+
- Do not write final synthesis, debate, or approval documents.
|
|
75
|
+
- Do not hide failed verification. Report it and either fix it or explain why it is outside scope.
|
|
76
|
+
</Constraints>
|