agestra 4.4.2 → 4.5.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.
@@ -12,7 +12,7 @@
12
12
  "name": "agestra",
13
13
  "source": "./",
14
14
  "description": "Orchestrate Ollama, Gemini, and Codex for multi-AI debates, cross-validation, and GraphRAG memory",
15
- "version": "4.4.2",
15
+ "version": "4.5.2",
16
16
  "author": {
17
17
  "name": "mua-vtuber"
18
18
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agestra",
3
- "version": "4.4.2",
3
+ "version": "4.5.2",
4
4
  "description": "Claude Code plugin — orchestrate Ollama, Gemini, and Codex for multi-AI debates, cross-validation, and GraphRAG memory",
5
5
  "mcpServers": {
6
6
  "agestra": {
@@ -0,0 +1,16 @@
1
+ description = "Run the Agestra design workflow for an architecture or implementation topic."
2
+ prompt = """
3
+ You are executing the Agestra design workflow inside Gemini CLI.
4
+
5
+ User topic:
6
+ {{args}}
7
+
8
+ Use the shared workflow spec below as the source of truth and adapt it to the current Gemini host session:
9
+ @{commands/design.md}
10
+
11
+ Gemini-specific rules:
12
+ - Start with `environment_check` and `provider_list`.
13
+ - Prefer Agestra MCP tools, workspace documents, and debate flows over free-form brainstorming.
14
+ - Translate Claude-specific wording into leader-host wording when Gemini is the active host.
15
+ - Keep the final answer in the user's language.
16
+ """
@@ -0,0 +1,16 @@
1
+ description = "Run the Agestra idea workflow to discover improvements or compare options."
2
+ prompt = """
3
+ You are executing the Agestra idea workflow inside Gemini CLI.
4
+
5
+ User topic:
6
+ {{args}}
7
+
8
+ Use the shared workflow spec below as the source of truth and adapt it to the current Gemini host session:
9
+ @{commands/idea.md}
10
+
11
+ Gemini-specific rules:
12
+ - Start with `environment_check` and `provider_list`.
13
+ - Prefer Agestra MCP tools, workspace documents, and provider comparisons over one-shot brainstorming.
14
+ - Translate Claude-specific wording into leader-host wording when Gemini is the active host.
15
+ - Keep the final answer in the user's language.
16
+ """
@@ -0,0 +1,16 @@
1
+ description = "Run the Agestra implementation workflow with leader-only or multi-provider execution."
2
+ prompt = """
3
+ You are executing the Agestra implementation workflow inside Gemini CLI.
4
+
5
+ User task:
6
+ {{args}}
7
+
8
+ Use the shared workflow spec below as the source of truth and adapt it to the current Gemini host session:
9
+ @{commands/implement.md}
10
+
11
+ Gemini-specific rules:
12
+ - Start with `environment_check` and `provider_list`.
13
+ - Prefer Agestra MCP tools and worker orchestration over ad-hoc shell-heavy implementation plans.
14
+ - Translate Claude-specific wording into leader-host wording when Gemini is the active host.
15
+ - Keep the final answer in the user's language.
16
+ """
@@ -0,0 +1,16 @@
1
+ description = "Run the Agestra review workflow for a target, diff, or feature."
2
+ prompt = """
3
+ You are executing the Agestra review workflow inside Gemini CLI.
4
+
5
+ User target:
6
+ {{args}}
7
+
8
+ Use the shared workflow spec below as the source of truth and adapt it to the current Gemini host session:
9
+ @{commands/review.md}
10
+
11
+ Gemini-specific rules:
12
+ - Start with `environment_check` and `provider_list`.
13
+ - Prefer Agestra MCP tools and prompt assets over ad-hoc review prompting.
14
+ - If the workflow refers to Claude-specific wording, translate it to the current leader-host path rather than asking the user to switch hosts.
15
+ - Keep the final answer in the user's language.
16
+ """
package/AGENTS.md ADDED
@@ -0,0 +1,36 @@
1
+ # Agestra for Codex
2
+
3
+ This repository includes a Codex-friendly host wrapper for Agestra.
4
+
5
+ ## First Run
6
+
7
+ 1. Build the bundled MCP server if needed: `npm run bundle`
8
+ 2. Register Agestra with Codex once per machine: `npm run install:codex`
9
+ 3. Open this repository in Codex. This `AGENTS.md` file is loaded automatically.
10
+
11
+ ## How to Work Here
12
+
13
+ - Treat `commands/*.md` as the source of truth for Agestra workflows.
14
+ - When the user asks for review, design, idea, or implementation help, start with `environment_check` and `provider_list`.
15
+ - Prefer Agestra MCP tools over ad-hoc multi-provider prompting.
16
+ - If a workflow mentions "Claude only", interpret that as the current leader-host-only path when Claude is not the active host.
17
+
18
+ ## Workflow Mapping
19
+
20
+ - Review requests: follow `commands/review.md`
21
+ - Design and architecture requests: follow `commands/design.md`
22
+ - Idea discovery requests: follow `commands/idea.md`
23
+ - Implementation requests: follow `commands/implement.md`
24
+
25
+ ## Core MCP Tools
26
+
27
+ - `environment_check` and `provider_list`: inspect host/provider state first
28
+ - `agent_debate_moderate` and `agent_debate_review`: run structured multi-provider review flows
29
+ - `cli_worker_spawn`, `agent_changes_review`, `agent_changes_accept`, `agent_changes_reject`: use for autonomous Codex/Gemini worker tasks
30
+ - `qa_run`: verify implementation before reporting completion
31
+
32
+ ## Project Assets
33
+
34
+ - `agents/`: canonical role prompts (`agestra-team-lead`, `agestra-reviewer`, etc.)
35
+ - `skills/`: reusable workflow references
36
+ - `GEMINI.md` and `.gemini/commands/`: Gemini-specific host assets; keep behavior aligned with them when updating shared workflows
package/GEMINI.md ADDED
@@ -0,0 +1,34 @@
1
+ # Agestra for Gemini CLI
2
+
3
+ This repository includes Gemini-native wrapper assets for Agestra.
4
+
5
+ ## First Run
6
+
7
+ 1. Build the bundled MCP server if needed: `npm run bundle`
8
+ 2. Register Agestra with Gemini in this project: `npm run install:gemini`
9
+ 3. Open the repository in Gemini CLI. `GEMINI.md` and `.gemini/commands/` are loaded automatically.
10
+
11
+ ## Project Commands
12
+
13
+ After setup, Gemini project commands are available:
14
+
15
+ - `/agestra:review`
16
+ - `/agestra:design`
17
+ - `/agestra:idea`
18
+ - `/agestra:implement`
19
+
20
+ Each command delegates to the shared workflow specs in `commands/*.md`.
21
+
22
+ ## Usage Rules
23
+
24
+ - Start orchestration requests with `environment_check` and `provider_list`.
25
+ - Prefer Agestra MCP tools instead of rebuilding workflows in free-form prompts.
26
+ - Treat `commands/*.md` and `agents/*.md` as the canonical workflow and role assets.
27
+ - If a shared workflow mentions "Claude only", translate that to the current leader-host-only path when Gemini is the active host.
28
+
29
+ ## Core MCP Tools
30
+
31
+ - `agent_debate_moderate`, `agent_debate_review`: structured multi-provider reviews and debates
32
+ - `cli_worker_spawn`, `agent_changes_review`, `agent_changes_accept`, `agent_changes_reject`: autonomous worker lifecycle
33
+ - `workspace_*`: document-backed review and aggregation flows
34
+ - `qa_run`: final verification step before completion
package/README.ja.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![npm version](https://img.shields.io/npm/v/agestra.svg)](https://www.npmjs.com/package/agestra)
4
4
  [![license](https://img.shields.io/npm/l/agestra.svg)](LICENSE)
5
5
 
6
- **Agent + Orchestra** — Claude Code 上で複数の AI プロバイダーをオーケストレーションするプラグイン。
6
+ **Agent + Orchestra** — Claude Code、Codex CLI、Gemini CLI で共通利用できるマルチホスト・オーケストレーションツールキット。
7
7
 
8
8
  [English](README.md) | [한국어](README.ko.md) | [日本語](README.ja.md) | [中文](README.zh.md)
9
9
 
@@ -11,14 +11,39 @@ Agestra は Ollama(ローカル)、Gemini CLI、Codex CLI を Claude Code
11
11
 
12
12
  ## クイックスタート
13
13
 
14
- Claude Code で次を実行します:
14
+ ### Claude Code
15
15
 
16
16
  ```
17
17
  /plugin marketplace add mua-vtuber/Agestra
18
18
  /plugin install agestra@agestra
19
19
  ```
20
20
 
21
- これだけです。Agestra は初回利用時に `environment_check` を通じて利用可能なプロバイダー(Ollama、Gemini CLI、Codex CLI)を自動検出します。
21
+ Claude では既存のプラグイン UX をそのまま維持します。Agestra は初回利用時に `environment_check` を通じて利用可能なプロバイダー(Claude host、Ollama、Gemini CLI、Codex CLI)を自動検出します。
22
+
23
+ ### Codex CLI
24
+
25
+ ```
26
+ npm run bundle
27
+ npm run install:codex
28
+ ```
29
+
30
+ Codex ではリポジトリ直下の [AGENTS.md](AGENTS.md) と、登録済みの `agestra` MCP サーバーを一緒に使います。
31
+
32
+ ### Gemini CLI
33
+
34
+ ```
35
+ npm run bundle
36
+ npm run install:gemini
37
+ ```
38
+
39
+ Gemini ではリポジトリ直下の [GEMINI.md](GEMINI.md) と、[`.gemini/commands/agestra/`](.gemini/commands/agestra) のプロジェクトコマンドを一緒に使います。
40
+
41
+ セットアップ後に利用できる Gemini コマンド:
42
+
43
+ - `/agestra:review`
44
+ - `/agestra:design`
45
+ - `/agestra:idea`
46
+ - `/agestra:implement`
22
47
 
23
48
  ### 前提条件
24
49
 
@@ -39,6 +64,16 @@ Claude Code で次を実行します:
39
64
 
40
65
  **Multi-AI はトークン節約のためではなく、検証のために使います。** レビュー、設計探索、アイデア創出のワークフローは、速度のための並列化ではなく、複数の AI プロバイダーから独立した視点を集めて見落としを防ぐ検証プロセスとして設計されています。
41
66
 
67
+ ## ホストごとの入口
68
+
69
+ | ホスト | 自然な入口 |
70
+ |--------|------------|
71
+ | Claude Code | `/agestra review`, `/agestra design`, `/agestra idea`, `/agestra implement` |
72
+ | Codex CLI | `AGENTS.md` に沿った自然言語リクエスト |
73
+ | Gemini CLI | `/agestra:review`, `/agestra:design`, `/agestra:idea`, `/agestra:implement` |
74
+
75
+ 3 つのホストはすべて同じ MCP サーバーと `commands/*.md` の共通ワークフロー仕様を利用します。
76
+
42
77
  ## コマンド
43
78
 
44
79
  | コマンド | 説明 |
@@ -100,7 +135,7 @@ Turborepo モノレポで、8 パッケージ構成です:
100
135
 
101
136
  - **Provider abstraction** — すべてのバックエンドは `AIProvider`(`chat`, `healthCheck`, `getCapabilities`)を実装します。新規プロバイダー追加は専用パッケージとファクトリ登録に分離されます。
102
137
  - **Zero-config** — プロバイダーは起動時に自動検出されます。手動設定は不要です。
103
- - **Plugin-native** — Claude Code プラグインとして配布され、Skills、hooks、MCP サーバーがひとまとめになっています。
138
+ - **Host-native** — Claude はプラグインバンドル、Codex は `AGENTS.md`、Gemini は `GEMINI.md` とプロジェクトコマンドを使いますが、内部の MCP サーバーとワークフローコアは共通です。
104
139
  - **Modular dispatch** — 各ツールカテゴリは `getTools()` + `handleTool()` を持つ独立モジュールです。サーバーが動的に収集してディスパッチします。
105
140
  - **Atomic writes** — すべてのファイル操作は一時ファイルへの書き込み後に rename する方式で、破損を防ぎます。
106
141
  - **Dead-end tracking** — 失敗したアプローチは GraphRAG に記録され、今後のプロンプトに注入されます。
@@ -135,7 +170,7 @@ Turborepo モノレポで、8 パッケージ構成です:
135
170
  | `agent_debate_create` | ターン制ディベートセッションを作成(debate ID を返す) |
136
171
  | `agent_debate_turn` | 1 プロバイダー分のターンを実行。`provider: "claude"` で Claude の独立参加も可能 |
137
172
  | `agent_debate_conclude` | ディベートを終了し、最終トランスクリプトを生成 |
138
- | `agent_debate_moderate` | 完全自動のディベートを実行。セッション作成、専門エージェントによるラウンド、合意検出を行い、要約のみ返す |
173
+ | `agent_debate_moderate` | 完全自動のディベートを実行。セッション作成、provider ラウンドの実行、専門エージェント選定の記録、合意検出を行い、要約のみ返す |
139
174
  | `agent_debate_review` | 文書を複数プロバイダーへ送り、独立したレビューを依頼 |
140
175
  | `agent_cross_validate` | 出力をクロスバリデーション(agent-tier validators のみ) |
141
176
  | `agent_changes_review` | 分離タスクでのファイル変更をレビュー |
@@ -263,9 +298,18 @@ npm run clean # dist/ を削除
263
298
 
264
299
  ```
265
300
  agestra/
301
+ ├── AGENTS.md # Codex ホスト向け指示
302
+ ├── GEMINI.md # Gemini ホスト向け指示
266
303
  ├── .claude-plugin/
267
304
  │ ├── plugin.json # Claude Code プラグインマニフェスト
268
305
  │ └── marketplace.json # プラグインマーケットプレイスのメタデータ
306
+ ├── .gemini/
307
+ │ └── commands/
308
+ │ └── agestra/
309
+ │ ├── review.toml # Gemini CLI の /agestra:review
310
+ │ ├── design.toml # Gemini CLI の /agestra:design
311
+ │ ├── idea.toml # Gemini CLI の /agestra:idea
312
+ │ └── implement.toml # Gemini CLI の /agestra:implement
269
313
  ├── commands/
270
314
  │ ├── review.md # /agestra review — 品質検証
271
315
  │ ├── idea.md # /agestra idea — 改善案探索
@@ -289,7 +333,9 @@ agestra/
289
333
  ├── dist/
290
334
  │ └── bundle.js # 単一ファイル MCP サーバーバンドル
291
335
  ├── scripts/
292
- └── bundle.mjs # esbuild バンドルスクリプト
336
+ ├── bundle.mjs # esbuild バンドルスクリプト
337
+ │ ├── install-host-mcp.mjs # Codex/Gemini に Agestra を登録
338
+ │ └── uninstall-host-mcp.mjs # Codex/Gemini から Agestra 登録を削除
293
339
  ├── packages/
294
340
  │ ├── core/ # AIProvider、レジストリ、セキュリティ、ワーカー
295
341
  │ ├── provider-ollama/ # Ollama HTTP アダプター
@@ -313,13 +359,25 @@ agestra/
313
359
 
314
360
  ## アンインストール
315
361
 
316
- Claude Code で:
362
+ Claude Code:
317
363
 
318
364
  ```
319
365
  /plugin uninstall agestra@agestra
320
366
  ```
321
367
 
322
- プラグイン自体はきれいに削除されます。生成済みのプロジェクトデータも削除したい場合は、`.agestra/` ディレクトリを手動で削除してください。
368
+ Codex CLI:
369
+
370
+ ```
371
+ npm run uninstall:codex
372
+ ```
373
+
374
+ Gemini CLI:
375
+
376
+ ```
377
+ npm run uninstall:gemini
378
+ ```
379
+
380
+ 生成済みのプロジェクトデータも削除したい場合は、`.agestra/` ディレクトリを手動で削除してください。
323
381
 
324
382
  ---
325
383
 
package/README.ko.md CHANGED
@@ -3,22 +3,47 @@
3
3
  [![npm version](https://img.shields.io/npm/v/agestra.svg)](https://www.npmjs.com/package/agestra)
4
4
  [![license](https://img.shields.io/npm/l/agestra.svg)](LICENSE)
5
5
 
6
- **Agent + Orchestra** — 여러 AI 공급자를 Claude Code에서 오케스트레이션하는 플러그인.
6
+ **Agent + Orchestra** — Claude Code, Codex CLI, Gemini CLI에서 공통으로 쓰는 멀티 호스트 오케스트레이션 툴킷.
7
7
 
8
8
  [English](README.md) | [한국어](README.ko.md) | [日本語](README.ja.md) | [中文](README.zh.md)
9
9
 
10
- Agestra는 Ollama(로컬), Gemini CLI, Codex CLI를 Claude Code에 플러그형으로 연결합니다. 독립 취합, 합의 토론, 자율 CLI 워커, 병렬 작업 분배, 교차 검증, 품질 기반 공급자 라우팅, 지속적 GraphRAG 메모리 시스템을 42개 MCP 도구로 제공합니다.
10
+ Agestra는 Claude 호스트, Ollama(로컬), Gemini CLI, Codex CLI를 플러그형 공급자로 연결합니다. 독립 취합, 합의 토론, 자율 CLI 워커, 병렬 작업 분배, 교차 검증, 품질 기반 공급자 라우팅, 지속적 GraphRAG 메모리 시스템을 42개 MCP 도구로 제공합니다.
11
11
 
12
- ## 빠른 시작
13
-
14
- Claude Code에서 실행:
15
-
16
- ```
17
- /plugin marketplace add mua-vtuber/Agestra
18
- /plugin install agestra@agestra
19
- ```
20
-
21
- 끝. Agestra가 첫 사용 시 `environment_check`로 사용 가능한 공급자(Ollama, Gemini CLI, Codex CLI)를 자동 감지합니다.
12
+ ## 빠른 시작
13
+
14
+ ### Claude Code
15
+
16
+ ```
17
+ /plugin marketplace add mua-vtuber/Agestra
18
+ /plugin install agestra@agestra
19
+ ```
20
+
21
+ Claude는 기존 플러그인 설치 UX를 그대로 유지합니다. Agestra가 첫 사용 시 `environment_check`로 사용 가능한 공급자(Claude 호스트, Ollama, Gemini CLI, Codex CLI)를 자동 감지합니다.
22
+
23
+ ### Codex CLI
24
+
25
+ ```
26
+ npm run bundle
27
+ npm run install:codex
28
+ ```
29
+
30
+ Codex는 저장소 루트의 [AGENTS.md](AGENTS.md)와 등록된 `agestra` MCP 서버를 함께 사용합니다.
31
+
32
+ ### Gemini CLI
33
+
34
+ ```
35
+ npm run bundle
36
+ npm run install:gemini
37
+ ```
38
+
39
+ Gemini는 저장소 루트의 [GEMINI.md](GEMINI.md)와 [`.gemini/commands/agestra/`](.gemini/commands/agestra) 프로젝트 커맨드를 함께 사용합니다.
40
+
41
+ 설치 후 Gemini에서 사용할 수 있는 명령:
42
+
43
+ - `/agestra:review`
44
+ - `/agestra:design`
45
+ - `/agestra:idea`
46
+ - `/agestra:implement`
22
47
 
23
48
  ### 사전 요구사항
24
49
 
@@ -39,7 +64,17 @@ Claude Code에서 실행:
39
64
 
40
65
  **멀티 AI는 검증을 위한 것이지, 토큰 절약을 위한 것이 아닙니다.** 리뷰, 설계 탐색, 아이디어 발굴 워크플로우는 검증 프로세스로 설계되었습니다 — 속도를 위한 병렬화가 아니라, 사각지대를 잡기 위해 여러 AI 공급자로부터 독립적인 의견을 얻는 것입니다.
41
66
 
42
- ## 커맨드
67
+ ## 호스트별 진입 방식
68
+
69
+ | 호스트 | 자연스러운 진입 방식 |
70
+ |--------|----------------------|
71
+ | Claude Code | `/agestra review`, `/agestra design`, `/agestra idea`, `/agestra implement` |
72
+ | Codex CLI | `AGENTS.md`에 맞춘 자연어 요청 |
73
+ | Gemini CLI | `/agestra:review`, `/agestra:design`, `/agestra:idea`, `/agestra:implement` |
74
+
75
+ 세 호스트 모두 같은 MCP 서버와 `commands/*.md` 공유 워크플로우를 사용합니다.
76
+
77
+ ## 커맨드
43
78
 
44
79
  | 커맨드 | 설명 |
45
80
  |--------|------|
@@ -100,7 +135,7 @@ Turborepo 모노레포, 8개 패키지:
100
135
 
101
136
  - **공급자 추상화** — 모든 백엔드가 `AIProvider`(`chat`, `healthCheck`, `getCapabilities`)를 구현. 새 공급자 추가는 전용 패키지 구현과 팩토리 등록으로 분리됩니다.
102
137
  - **제로 설정** — 시작 시 공급자를 자동 감지. 수동 설정 불필요.
103
- - **플러그인 네이티브** — Claude Code 플러그인으로 설치. Skills, hooks, MCP 서버가 함께 번들.
138
+ - **호스트 네이티브** — Claude 플러그인 번들을, Codex는 `AGENTS.md`를, Gemini는 `GEMINI.md`와 프로젝트 커맨드를 사용하지만 내부 MCP 서버와 워크플로우 코어는 공통으로 공유합니다.
104
139
  - **모듈형 디스패치** — 각 도구 카테고리가 `getTools()` + `handleTool()`을 내보내는 독립 모듈. 서버가 동적으로 수집·디스패치.
105
140
  - **원자적 쓰기** — 모든 파일 연산이 임시 파일 → rename 방식. 크래시 시 손상 방지.
106
141
  - **실패 추적** — 실패한 접근법이 GraphRAG에 자동 기록, 이후 프롬프트에 주입.
@@ -135,7 +170,7 @@ Turborepo 모노레포, 8개 패키지:
135
170
  | `agent_debate_create` | 턴 기반 토론 세션 생성 (토론 ID 반환) |
136
171
  | `agent_debate_turn` | 공급자 1턴 실행; `provider: "claude"`로 Claude 독립 참여 지원 |
137
172
  | `agent_debate_conclude` | 토론 종료 및 최종 트랜스크립트 생성 |
138
- | `agent_debate_moderate` | 완전 자동화 토론 — 세션 생성, Specialist 에이전트 참여 라운드 실행, 합의 검출, 요약만 반환 |
173
+ | `agent_debate_moderate` | 완전 자동화 토론 — 세션 생성, provider 라운드 실행, Specialist 선택 기록, 가능할 Claude host-backed 턴에 반영, 합의 검출, 요약만 반환 |
139
174
  | `agent_debate_review` | 문서를 여러 공급자에게 독립적으로 리뷰 요청 |
140
175
  | `agent_cross_validate` | 출력 교차 검증 (에이전트 등급 검증자만 가능) |
141
176
  | `agent_changes_review` | 격리된 작업의 파일 변경 리뷰 |
@@ -262,10 +297,19 @@ npm run clean # dist/ 삭제
262
297
  ### 프로젝트 구조
263
298
 
264
299
  ```
265
- agestra/
266
- ├── .claude-plugin/
267
- ├── plugin.json # Claude Code 플러그인 매니페스트
268
- │ └── marketplace.json # 플러그인 마켓플레이스 메타데이터
300
+ agestra/
301
+ ├── AGENTS.md # Codex 호스트용 지침
302
+ ├── GEMINI.md # Gemini 호스트용 지침
303
+ ├── .claude-plugin/
304
+ │ ├── plugin.json # Claude Code 플러그인 매니페스트
305
+ │ └── marketplace.json # 플러그인 마켓플레이스 메타데이터
306
+ ├── .gemini/
307
+ │ └── commands/
308
+ │ └── agestra/
309
+ │ ├── review.toml # Gemini CLI의 /agestra:review
310
+ │ ├── design.toml # Gemini CLI의 /agestra:design
311
+ │ ├── idea.toml # Gemini CLI의 /agestra:idea
312
+ │ └── implement.toml # Gemini CLI의 /agestra:implement
269
313
  ├── commands/
270
314
  │ ├── review.md # /agestra review — 품질 검증
271
315
  │ ├── idea.md # /agestra idea — 개선점 발굴
@@ -288,9 +332,11 @@ agestra/
288
332
  │ └── user-prompt-submit.md # 도구 추천 hook
289
333
  ├── dist/
290
334
  │ └── bundle.js # 단일 파일 MCP 서버 번들
291
- ├── scripts/
292
- └── bundle.mjs # esbuild 번들 스크립트
293
- ├── packages/
335
+ ├── scripts/
336
+ ├── bundle.mjs # esbuild 번들 스크립트
337
+ ├── install-host-mcp.mjs # Codex/Gemini에 Agestra 등록
338
+ │ └── uninstall-host-mcp.mjs # Codex/Gemini에서 Agestra 제거
339
+ ├── packages/
294
340
  │ ├── core/ # AIProvider 인터페이스, 레지스트리, 보안, 워커
295
341
  │ ├── provider-ollama/ # Ollama HTTP 어댑터
296
342
  │ ├── provider-gemini/ # Gemini CLI 어댑터
@@ -311,15 +357,27 @@ agestra/
311
357
 
312
358
  ---
313
359
 
314
- ## 제거
315
-
316
- Claude Code에서:
317
-
318
- ```
319
- /plugin uninstall agestra@agestra
320
- ```
321
-
322
- 플러그인 자체는 깔끔하게 제거됩니다. 프로젝트에 생성된 데이터까지 지우려면 `.agestra/` 디렉터리를 수동으로 삭제하세요.
360
+ ## 제거
361
+
362
+ Claude Code:
363
+
364
+ ```
365
+ /plugin uninstall agestra@agestra
366
+ ```
367
+
368
+ Codex CLI:
369
+
370
+ ```
371
+ npm run uninstall:codex
372
+ ```
373
+
374
+ Gemini CLI:
375
+
376
+ ```
377
+ npm run uninstall:gemini
378
+ ```
379
+
380
+ 프로젝트에 생성된 데이터까지 지우려면 `.agestra/` 디렉터리를 수동으로 삭제하세요.
323
381
 
324
382
  ---
325
383
 
package/README.md CHANGED
@@ -3,22 +3,47 @@
3
3
  [![npm version](https://img.shields.io/npm/v/agestra.svg)](https://www.npmjs.com/package/agestra)
4
4
  [![license](https://img.shields.io/npm/l/agestra.svg)](LICENSE)
5
5
 
6
- **Agent + Orchestra** — A Claude Code plugin that orchestrates multiple AI providers.
6
+ **Agent + Orchestra** — A multi-host orchestration toolkit for Claude Code, Codex CLI, and Gemini CLI.
7
7
 
8
8
  [English](README.md) | [한국어](README.ko.md) | [日本語](README.ja.md) | [中文](README.zh.md)
9
9
 
10
- Agestra connects Ollama (local), Gemini CLI, and Codex CLI to Claude Code as pluggable providers, enabling multi-agent orchestration with independent aggregation, consensus debates, autonomous CLI workers, parallel task dispatch, cross-validation, quality-based provider routing, and a persistent GraphRAG memory system — all through 42 MCP tools.
10
+ Agestra connects the Claude host, Ollama (local), Gemini CLI, and Codex CLI as pluggable providers, enabling multi-agent orchestration with independent aggregation, consensus debates, autonomous CLI workers, parallel task dispatch, cross-validation, quality-based provider routing, and a persistent GraphRAG memory system — all through 42 MCP tools.
11
11
 
12
- ## Quick Start
13
-
14
- In Claude Code, run:
15
-
16
- ```
17
- /plugin marketplace add mua-vtuber/Agestra
18
- /plugin install agestra@agestra
19
- ```
20
-
21
- That's it. Agestra auto-detects available providers (Ollama, Gemini CLI, Codex CLI) on first use via `environment_check`.
12
+ ## Quick Start
13
+
14
+ ### Claude Code
15
+
16
+ ```
17
+ /plugin marketplace add mua-vtuber/Agestra
18
+ /plugin install agestra@agestra
19
+ ```
20
+
21
+ Claude keeps the existing plugin UX. Agestra auto-detects available providers (Claude host, Ollama, Gemini CLI, Codex CLI) on first use via `environment_check`.
22
+
23
+ ### Codex CLI
24
+
25
+ ```
26
+ npm run bundle
27
+ npm run install:codex
28
+ ```
29
+
30
+ Codex uses the repository-level [AGENTS.md](AGENTS.md) instructions plus the registered `agestra` MCP server.
31
+
32
+ ### Gemini CLI
33
+
34
+ ```
35
+ npm run bundle
36
+ npm run install:gemini
37
+ ```
38
+
39
+ Gemini uses the repository-level [GEMINI.md](GEMINI.md) context file plus project commands under [`.gemini/commands/agestra/`](.gemini/commands/agestra).
40
+
41
+ Available Gemini commands after setup:
42
+
43
+ - `/agestra:review`
44
+ - `/agestra:design`
45
+ - `/agestra:idea`
46
+ - `/agestra:implement`
22
47
 
23
48
  ### Prerequisites
24
49
 
@@ -39,7 +64,17 @@ Optional but recommended:
39
64
 
40
65
  **Multi-AI is for verification, not token savings.** The review, design exploration, and idea generation workflows are structured as validation processes — getting independent opinions from multiple AI providers to catch blind spots, not to parallelize for speed.
41
66
 
42
- ## Commands
67
+ ## Host Workflows
68
+
69
+ | Host | Natural entrypoint |
70
+ |------|--------------------|
71
+ | Claude Code | `/agestra review`, `/agestra design`, `/agestra idea`, `/agestra implement` |
72
+ | Codex CLI | Plain-language requests guided by `AGENTS.md` |
73
+ | Gemini CLI | `/agestra:review`, `/agestra:design`, `/agestra:idea`, `/agestra:implement` |
74
+
75
+ All three hosts drive the same MCP server and shared workflow specs from `commands/*.md`.
76
+
77
+ ## Commands
43
78
 
44
79
  | Command | Description |
45
80
  |---------|-------------|
@@ -100,7 +135,7 @@ Turborepo monorepo with 8 packages:
100
135
 
101
136
  - **Provider abstraction** — All backends implement `AIProvider` (`chat`, `healthCheck`, `getCapabilities`). Adding a new provider is isolated to a provider package plus factory registration.
102
137
  - **Zero-config** — Providers are auto-detected at startup. No manual configuration required.
103
- - **Plugin-native** — Installed as a Claude Code plugin. Skills, hooks, and MCP server are bundled together.
138
+ - **Host-native** — Claude uses the plugin bundle, Codex uses `AGENTS.md`, and Gemini uses `GEMINI.md` plus project commands, while all three share the same MCP server and workflow core.
104
139
  - **Modular dispatch** — Each tool category is an independent module with `getTools()` + `handleTool()`. The server collects and dispatches dynamically.
105
140
  - **Atomic writes** — All file operations use write-to-temp-then-rename to prevent corruption.
106
141
  - **Dead-end tracking** — Failed approaches are recorded in GraphRAG and injected into future prompts.
@@ -135,7 +170,7 @@ Turborepo monorepo with 8 packages:
135
170
  | `agent_debate_create` | Create a turn-based debate session (returns debate ID) |
136
171
  | `agent_debate_turn` | Execute one provider's turn; supports `provider: "claude"` for Claude's independent participation |
137
172
  | `agent_debate_conclude` | End a debate and generate final transcript |
138
- | `agent_debate_moderate` | Run a fully automated debate — creates session, runs rounds with specialist agents, detects consensus, returns summary only |
173
+ | `agent_debate_moderate` | Run a fully automated debate — creates session, runs provider rounds, records specialist selection, applies it to Claude's host-backed turn when available, detects consensus, returns summary only |
139
174
  | `agent_debate_review` | Send a document to multiple providers for independent review |
140
175
  | `agent_cross_validate` | Cross-validate outputs (agent-tier validators only) |
141
176
  | `agent_changes_review` | Review file changes from an isolated task |
@@ -262,10 +297,19 @@ npm run clean # Remove dist/
262
297
  ### Project Structure
263
298
 
264
299
  ```
265
- agestra/
266
- ├── .claude-plugin/
267
- ├── plugin.json # Claude Code plugin manifest
268
- │ └── marketplace.json # Plugin marketplace metadata
300
+ agestra/
301
+ ├── AGENTS.md # Codex host instructions
302
+ ├── GEMINI.md # Gemini host instructions
303
+ ├── .claude-plugin/
304
+ │ ├── plugin.json # Claude Code plugin manifest
305
+ │ └── marketplace.json # Plugin marketplace metadata
306
+ ├── .gemini/
307
+ │ └── commands/
308
+ │ └── agestra/
309
+ │ ├── review.toml # /agestra:review in Gemini CLI
310
+ │ ├── design.toml # /agestra:design in Gemini CLI
311
+ │ ├── idea.toml # /agestra:idea in Gemini CLI
312
+ │ └── implement.toml # /agestra:implement in Gemini CLI
269
313
  ├── commands/
270
314
  │ ├── review.md # /agestra review — quality verification
271
315
  │ ├── idea.md # /agestra idea — improvement discovery
@@ -288,9 +332,11 @@ agestra/
288
332
  │ └── user-prompt-submit.md # Tool recommendation hook
289
333
  ├── dist/
290
334
  │ └── bundle.js # Single-file MCP server bundle
291
- ├── scripts/
292
- └── bundle.mjs # esbuild bundle script
293
- ├── packages/
335
+ ├── scripts/
336
+ ├── bundle.mjs # esbuild bundle script
337
+ ├── install-host-mcp.mjs # Register Agestra with Codex/Gemini
338
+ │ └── uninstall-host-mcp.mjs # Remove Codex/Gemini MCP registration
339
+ ├── packages/
294
340
  │ ├── core/ # AIProvider interface, registry, security, workers
295
341
  │ ├── provider-ollama/ # Ollama HTTP adapter
296
342
  │ ├── provider-gemini/ # Gemini CLI adapter
@@ -311,15 +357,27 @@ agestra/
311
357
 
312
358
  ---
313
359
 
314
- ## Uninstall
315
-
316
- In Claude Code:
317
-
318
- ```
319
- /plugin uninstall agestra@agestra
320
- ```
321
-
322
- The plugin is removed cleanly. If you want to delete generated project data as well, remove the `.agestra/` directory manually.
360
+ ## Uninstall
361
+
362
+ Claude Code:
363
+
364
+ ```
365
+ /plugin uninstall agestra@agestra
366
+ ```
367
+
368
+ Codex CLI:
369
+
370
+ ```
371
+ npm run uninstall:codex
372
+ ```
373
+
374
+ Gemini CLI:
375
+
376
+ ```
377
+ npm run uninstall:gemini
378
+ ```
379
+
380
+ If you also want to delete generated project data, remove the `.agestra/` directory manually.
323
381
 
324
382
  ---
325
383