agestra 4.3.3 → 4.3.5

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.3.1",
15
+ "version": "4.3.5",
16
16
  "author": {
17
17
  "name": "mua-vtuber"
18
18
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agestra",
3
- "version": "4.3.3",
3
+ "version": "4.3.5",
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": {
package/README.ko.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  [English](README.md) | [한국어](README.ko.md)
9
9
 
10
- Agestra는 Ollama(로컬), Gemini CLI, Codex CLI를 Claude Code에 플러그형으로 연결합니다. 독립 취합, 합의 토론, 자율 CLI 워커, 병렬 작업 분배, 교차 검증, 품질 기반 공급자 라우팅, 지속적 GraphRAG 메모리 시스템을 40개 MCP 도구로 제공합니다.
10
+ Agestra는 Ollama(로컬), Gemini CLI, Codex CLI를 Claude Code에 플러그형으로 연결합니다. 독립 취합, 합의 토론, 자율 CLI 워커, 병렬 작업 분배, 교차 검증, 품질 기반 공급자 라우팅, 지속적 GraphRAG 메모리 시스템을 41개 MCP 도구로 제공합니다.
11
11
 
12
12
  ## 빠른 시작
13
13
 
@@ -43,9 +43,10 @@ Claude Code에서 실행:
43
43
 
44
44
  | 커맨드 | 설명 |
45
45
  |--------|------|
46
- | `/agestra review [대상]` | 코드 품질, 보안, 통합 완성도 검증 |
47
- | `/agestra idea [주제]` | 유사 프로젝트 비교를 통한 개선점 발굴 |
48
- | `/agestra design [주제]` | 구현 전 아키텍처 및 설계 트레이드오프 탐색 |
46
+ | `/agestra review [대상]` | 코드 품질, 보안, 통합 완성도 검증 |
47
+ | `/agestra idea [주제]` | 유사 프로젝트 비교를 통한 개선점 발굴 |
48
+ | `/agestra design [주제]` | 구현 전 아키텍처 및 설계 트레이드오프 탐색 |
49
+ | `/agestra implement [작업]` | Claude only 또는 Multi-AI 모드로 실제 구현 진행 |
49
50
 
50
51
  각 커맨드는 선택지를 제시합니다:
51
52
 
@@ -93,11 +94,11 @@ Turborepo 모노레포, 8개 패키지:
93
94
  | `@agestra/agents` | 합의 검출 토론 엔진, 턴 품질 평가기, 작업 분배기, 교차 검증기, 작업 체인, 자동 QA, 파일 변경 추적기, 세션 관리자 |
94
95
  | `@agestra/workspace` | 코드 리뷰 워크플로우용 문서 관리자 |
95
96
  | `@agestra/memory` | GraphRAG — FTS5 + 벡터 + 지식 그래프 하이브리드 검색, 실패 추적 |
96
- | `@agestra/mcp-server` | MCP 프로토콜 레이어, 40개 도구, 디스패치 |
97
+ | `@agestra/mcp-server` | MCP 프로토콜 레이어, 41개 도구, 환경별 도구 필터링, 디스패치 |
97
98
 
98
99
  ### 설계 원칙
99
100
 
100
- - **공급자 추상화** — 모든 백엔드가 `AIProvider`(`chat`, `healthCheck`, `getCapabilities`)를 구현. 기존 코드 수정 없이 공급자 추가 가능.
101
+ - **공급자 추상화** — 모든 백엔드가 `AIProvider`(`chat`, `healthCheck`, `getCapabilities`)를 구현. 공급자 추가는 전용 패키지 구현과 팩토리 등록으로 분리됩니다.
101
102
  - **제로 설정** — 시작 시 공급자를 자동 감지. 수동 설정 불필요.
102
103
  - **플러그인 네이티브** — Claude Code 플러그인으로 설치. Skills, hooks, MCP 서버가 함께 번들.
103
104
  - **모듈형 디스패치** — 각 도구 카테고리가 `getTools()` + `handleTool()`을 내보내는 독립 모듈. 서버가 동적으로 수집·디스패치.
@@ -115,7 +116,7 @@ Turborepo 모노레포, 8개 패키지:
115
116
 
116
117
  ---
117
118
 
118
- ## 도구 (40개)
119
+ ## 도구 (41개)
119
120
 
120
121
  ### AI 채팅 (3개)
121
122
 
@@ -196,8 +197,14 @@ Turborepo 모노레포, 8개 패키지:
196
197
 
197
198
  | 도구 | 설명 |
198
199
  |------|------|
199
- | `cli_job_submit` | 장시간 CLI 작업을 백그라운드에 제출 |
200
- | `cli_job_status` | 작업 상태 확인 및 출력 조회 |
200
+ | `cli_job_submit` | 장시간 CLI 작업을 백그라운드에 제출 |
201
+ | `cli_job_status` | 작업 상태 확인 및 출력 조회 |
202
+
203
+ ### QA (1개)
204
+
205
+ | 도구 | 설명 |
206
+ |------|------|
207
+ | `qa_run` | 자동 QA 실행: 빌드/테스트 감지 및 PASS/FAIL 요약 |
201
208
 
202
209
  ### 추적 / 관측성 (3개)
203
210
 
@@ -258,10 +265,11 @@ agestra/
258
265
  ├── .claude-plugin/
259
266
  │ ├── plugin.json # Claude Code 플러그인 매니페스트
260
267
  │ └── marketplace.json # 플러그인 마켓플레이스 메타데이터
261
- ├── commands/
262
- │ ├── review.md # /agestra review — 품질 검증
263
- │ ├── idea.md # /agestra idea — 개선점 발굴
264
- └── design.md # /agestra design — 아키텍처 탐색
268
+ ├── commands/
269
+ │ ├── review.md # /agestra review — 품질 검증
270
+ │ ├── idea.md # /agestra idea — 개선점 발굴
271
+ ├── design.md # /agestra design — 아키텍처 탐색
272
+ │ └── implement.md # /agestra implement — 실제 구현 진행
265
273
  ├── agents/
266
274
  │ ├── agestra-reviewer.md # 엄격한 품질 검증자 (Opus)
267
275
  │ ├── agestra-designer.md # 아키텍처 탐색자 (Opus)
@@ -289,7 +297,7 @@ agestra/
289
297
  │ ├── agents/ # 토론 엔진, 분배기, 교차 검증기
290
298
  │ ├── workspace/ # 코드 리뷰 문서 관리자
291
299
  │ ├── memory/ # GraphRAG: 하이브리드 검색, 실패 추적
292
- │ └── mcp-server/ # MCP 서버, 49개 도구, 디스패치
300
+ │ └── mcp-server/ # MCP 서버, 41개 도구, 환경별 필터링, 디스패치
293
301
  ├── package.json # 워크스페이스 루트
294
302
  └── turbo.json # Turborepo 파이프라인
295
303
  ```
@@ -310,7 +318,7 @@ Claude Code에서:
310
318
  /plugin uninstall agestra@agestra
311
319
  ```
312
320
 
313
- 프로젝트에 잔여 파일 없음. 깔끔한 제거.
321
+ 플러그인 자체는 깔끔하게 제거됩니다. 프로젝트에 생성된 데이터까지 지우려면 `.agestra/` 디렉터리를 수동으로 삭제하세요.
314
322
 
315
323
  ---
316
324
 
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  [English](README.md) | [한국어](README.ko.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 40 MCP tools.
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 41 MCP tools.
11
11
 
12
12
  ## Quick Start
13
13
 
@@ -43,9 +43,10 @@ Optional but recommended:
43
43
 
44
44
  | Command | Description |
45
45
  |---------|-------------|
46
- | `/agestra review [target]` | Review code quality, security, and integration completeness |
47
- | `/agestra idea [topic]` | Discover improvements by comparing with similar projects |
48
- | `/agestra design [subject]` | Explore architecture and design trade-offs before implementation |
46
+ | `/agestra review [target]` | Review code quality, security, and integration completeness |
47
+ | `/agestra idea [topic]` | Discover improvements by comparing with similar projects |
48
+ | `/agestra design [subject]` | Explore architecture and design trade-offs before implementation |
49
+ | `/agestra implement [task]` | Execute implementation in Claude-only or Multi-AI mode |
49
50
 
50
51
  Each command presents a choice:
51
52
 
@@ -93,11 +94,11 @@ Turborepo monorepo with 8 packages:
93
94
  | `@agestra/agents` | Debate engine with consensus detection, turn quality evaluator, task dispatcher, cross-validator, task chain, auto-QA, file change tracker, session manager |
94
95
  | `@agestra/workspace` | Document manager for code review workflows |
95
96
  | `@agestra/memory` | GraphRAG — FTS5 + vector + knowledge graph hybrid search, dead-end tracking |
96
- | `@agestra/mcp-server` | MCP protocol layer, 40 tools, dispatch |
97
+ | `@agestra/mcp-server` | MCP protocol layer, 41 tools, environment-aware tool filtering, dispatch |
97
98
 
98
99
  ### Design Principles
99
100
 
100
- - **Provider abstraction** — All backends implement `AIProvider` (`chat`, `healthCheck`, `getCapabilities`). New providers require no existing code changes.
101
+ - **Provider abstraction** — All backends implement `AIProvider` (`chat`, `healthCheck`, `getCapabilities`). Adding a new provider is isolated to a provider package plus factory registration.
101
102
  - **Zero-config** — Providers are auto-detected at startup. No manual configuration required.
102
103
  - **Plugin-native** — Installed as a Claude Code plugin. Skills, hooks, and MCP server are bundled together.
103
104
  - **Modular dispatch** — Each tool category is an independent module with `getTools()` + `handleTool()`. The server collects and dispatches dynamically.
@@ -115,7 +116,7 @@ Turborepo monorepo with 8 packages:
115
116
 
116
117
  ---
117
118
 
118
- ## Tools (40)
119
+ ## Tools (41)
119
120
 
120
121
  ### AI Chat (3)
121
122
 
@@ -196,8 +197,14 @@ Turborepo monorepo with 8 packages:
196
197
 
197
198
  | Tool | Description |
198
199
  |------|-------------|
199
- | `cli_job_submit` | Submit a long-running CLI task to background |
200
- | `cli_job_status` | Check job status and output |
200
+ | `cli_job_submit` | Submit a long-running CLI task to background |
201
+ | `cli_job_status` | Check job status and output |
202
+
203
+ ### QA (1)
204
+
205
+ | Tool | Description |
206
+ |------|-------------|
207
+ | `qa_run` | Run automatic QA with detected build/test commands and a PASS/FAIL summary |
201
208
 
202
209
  ### Trace / Observability (3)
203
210
 
@@ -258,10 +265,11 @@ agestra/
258
265
  ├── .claude-plugin/
259
266
  │ ├── plugin.json # Claude Code plugin manifest
260
267
  │ └── marketplace.json # Plugin marketplace metadata
261
- ├── commands/
262
- │ ├── review.md # /agestra review — quality verification
263
- │ ├── idea.md # /agestra idea — improvement discovery
264
- └── design.md # /agestra design — architecture exploration
268
+ ├── commands/
269
+ │ ├── review.md # /agestra review — quality verification
270
+ │ ├── idea.md # /agestra idea — improvement discovery
271
+ ├── design.md # /agestra design — architecture exploration
272
+ │ └── implement.md # /agestra implement — execution workflow
265
273
  ├── agents/
266
274
  │ ├── agestra-reviewer.md # Strict quality verifier (Opus)
267
275
  │ ├── agestra-designer.md # Architecture explorer (Opus)
@@ -289,7 +297,7 @@ agestra/
289
297
  │ ├── agents/ # Debate engine, dispatcher, cross-validator
290
298
  │ ├── workspace/ # Code review document manager
291
299
  │ ├── memory/ # GraphRAG: hybrid search, dead-end tracking
292
- │ └── mcp-server/ # MCP server, 49 tools, dispatch
300
+ │ └── mcp-server/ # MCP server, 41 tools, environment-aware filtering, dispatch
293
301
  ├── package.json # Workspace root
294
302
  └── turbo.json # Turborepo pipeline
295
303
  ```
@@ -310,7 +318,7 @@ In Claude Code:
310
318
  /plugin uninstall agestra@agestra
311
319
  ```
312
320
 
313
- No residual files in your project. Clean removal.
321
+ The plugin is removed cleanly. If you want to delete generated project data as well, remove the `.agestra/` directory manually.
314
322
 
315
323
  ---
316
324
 
@@ -13,9 +13,9 @@ model: claude-sonnet-4-6
13
13
  disallowedTools: Write, Edit, NotebookEdit
14
14
  ---
15
15
 
16
- <Role>
17
- You are a full-lifecycle orchestrator for multi-AI work using a hybrid architecture. You coordinate Claude workers through the Team API (TeamCreate, TaskCreate, TaskUpdate, TaskList, TaskGet, SendMessage, Agent with team_name) and manage external AI providers through MCP tools (cli_worker_spawn, ai_chat, debates, etc.). You do NOT write code. Your job is to clarify requirements, decompose tasks, assign them to the right AI providers or workers, supervise parallel execution, inspect results, and enforce consistency. You are the single point of coordination — every task goes through you.
18
- </Role>
16
+ <Role>
17
+ You are a full-lifecycle orchestrator for multi-AI work using a hybrid architecture. You coordinate Claude-led execution and external AI providers through MCP tools (`cli_worker_spawn`, `ai_chat`, debates, QA, change review). You do NOT write code. Your job is to clarify requirements, decompose tasks, assign them to the right AI providers or workflows, supervise execution, inspect results, and enforce consistency. You are the single point of coordination — every task goes through you.
18
+ </Role>
19
19
 
20
20
  <Execution_Mode>
21
21
 
@@ -72,10 +72,10 @@ Decompose the work into independent, assignable tasks:
72
72
 
73
73
  Use AskUserQuestion to present (in the user's language):
74
74
 
75
- | Option | Description |
76
- |--------|-------------|
77
- | **Claude only** | Claude handles all work via Team API workers |
78
- | **Multi-AI** | CLI AIs work autonomously, Ollama handles simple tasks, Claude workers handle core tasks |
75
+ | Option | Description |
76
+ |--------|-------------|
77
+ | **Claude only** | Claude handles all work directly, using specialist agents/prompts where appropriate |
78
+ | **Multi-AI** | CLI AIs work autonomously, Ollama handles simple tasks, Claude workers handle core tasks |
79
79
 
80
80
  If no external providers available: skip selection, proceed with Claude only.
81
81
  In autonomous mode: auto-select based on task complexity:
@@ -90,23 +90,22 @@ Decompose the work into independent, assignable tasks:
90
90
 
91
91
  3. **Task Routing** — Route each task by AI suitability:
92
92
 
93
- If **"Claude only"** selected:
94
- - ALL tasks are routed through the Team API
95
- - Create a team via `TeamCreate`, define tasks via `TaskCreate`, spawn Claude workers via `Agent(team_name=...)`
96
- - Role assignment within the team:
97
- - Architecture/design tasks → worker with designer role
98
- - Code review tasks worker with reviewer role
99
- - Quality verificationworker with QA role
100
- - Implementation → workers with implementer role
101
-
102
- If **"Multi-AI"** selected:
103
-
104
- | Task Characteristics | Route To |
105
- |---------------------|----------|
106
- | Complex implementation, multi-step reasoning | MCP: `cli_worker_spawn` (Codex/Gemini) |
107
- | Simple transforms, formatting, pattern application | MCP: `ai_chat` (Ollama, tier-matched model) |
108
- | Core implementation, design decisions | Team API: Claude workers |
109
- | Test writing, review | Team API: Claude workers |
93
+ If **"Claude only"** selected:
94
+ - Claude handles implementation directly in the main workspace
95
+ - Use specialist agents/prompts for focused sub-work:
96
+ - Architecture/design tasks `agestra-designer`
97
+ - Code review tasks → `agestra-reviewer`
98
+ - Quality verification`agestra-qa`
99
+ - General implementationClaude execution in the current thread
100
+
101
+ If **"Multi-AI"** selected:
102
+
103
+ | Task Characteristics | Route To |
104
+ |---------------------|----------|
105
+ | Complex implementation, multi-step reasoning | MCP: `cli_worker_spawn` (Codex/Gemini) |
106
+ | Simple transforms, formatting, pattern application | MCP: `ai_chat` (Ollama, tier-matched model) |
107
+ | Core implementation, design decisions | Claude execution in the current thread |
108
+ | Test writing, review | Claude execution or `agestra-reviewer` / `agestra-qa` |
110
109
 
111
110
  **Quality-Based Provider Selection:**
112
111
 
@@ -126,22 +125,16 @@ Decompose the work into independent, assignable tasks:
126
125
 
127
126
  5. Present the distribution plan to the user and wait for approval before executing (supervised mode).
128
127
 
129
- ### Phase 3: Parallel Execution
130
-
131
- Execute approved tasks across both coordination systems in parallel:
132
-
133
- **Claude tasks (Team API):**
134
- 1. `TeamCreate(name="impl-{feature}", maxWorkers=N)` create a worker team sized to the task count.
135
- 2. `TaskCreate` x M define each task with subject and structured description containing:
136
- - Objective: what to accomplish
137
- - Scope: file paths to read and modify
138
- - Constraints: what NOT to do
139
- - Acceptance criteria: what "done" looks like
140
- 3. `Agent(team_name="impl-{feature}", prompt=<Worker_Preamble> + role)` x N — spawn Claude workers into the team, each with the standard Worker Preamble and their assigned role.
141
- 4. Monitor via `TaskList` — poll task statuses periodically. Coordinate via `SendMessage` when workers need guidance or cross-worker information.
142
- 5. On all tasks completed: `SendMessage(to="all", type="shutdown")` — signal workers to stop.
143
-
144
- **CLI Worker tasks (MCP, parallel with above):**
128
+ ### Phase 3: Parallel Execution
129
+
130
+ Execute approved tasks across available execution paths:
131
+
132
+ **Claude execution path:**
133
+ 1. Implement Claude-owned tasks directly in the current workspace.
134
+ 2. For focused checks, invoke specialist agents/prompts (`agestra-designer`, `agestra-reviewer`, `agestra-qa`) as needed.
135
+ 3. Review Claude-applied changes before moving to QA.
136
+
137
+ **CLI Worker tasks (MCP, parallel with above):**
145
138
  1. For each CLI worker task, call `cli_worker_spawn` with:
146
139
  - `provider`: codex or gemini
147
140
  - `task_description`: detailed task prompt (see Prompt Crafting)
@@ -153,28 +146,28 @@ Execute approved tasks across both coordination systems in parallel:
153
146
  - `use_worktree`: true (git isolation)
154
147
  - `timeout_minutes`: based on task complexity
155
148
  2. Monitor: call `cli_worker_status` every 30 seconds for each active worker.
156
- 3. On worker COMPLETED: call `cli_worker_collect`, review the diff.
157
- 4. On worker FAILED: log the error, decide:
158
- - If transient failure (crash, timeout) and retry_count < 1 → worker auto-retries.
159
- - Otherwise → re-route to a different provider or a Claude worker via Team API.
160
- 5. On worker TIMEOUT: worker transitions to FAILED, follow failure handling above.
161
-
162
- **Ollama tasks (MCP):**
163
- - Call `ai_chat` with tier-matched model for simple tasks.
164
- - Pass the result to a Claude worker via `SendMessage` for application to the codebase.
165
-
166
- **Result Integration:**
167
- - Claude workers: changes are already applied on the main branch (no merge needed).
168
- - CLI workers: call `agent_changes_review` to see full diff, then `agent_changes_accept` or `agent_changes_reject`.
169
- - File overlap between tracks: detect conflicts between Claude worker changes and CLI worker worktrees. If overlap found, use `agestra-moderator` to propose resolution or resolve manually before merging CLI worker results.
149
+ 3. On worker COMPLETED: call `cli_worker_collect`, review the diff.
150
+ 4. On worker FAILED: log the error, decide:
151
+ - If transient failure (crash, timeout) and retry_count < 1 → worker auto-retries.
152
+ - Otherwise → re-route to a different provider or complete the task in Claude execution.
153
+ 5. On worker TIMEOUT: worker transitions to FAILED, follow failure handling above.
154
+
155
+ **Ollama tasks (MCP):**
156
+ - Call `ai_chat` with tier-matched model for simple tasks.
157
+ - Apply the result manually in Claude execution after inspection.
158
+
159
+ **Result Integration:**
160
+ - Claude execution: changes are already applied on the main branch (no merge needed).
161
+ - CLI workers: call `agent_changes_review` to see full diff, then `agent_changes_accept` or `agent_changes_reject`.
162
+ - File overlap between tracks: detect conflicts between Claude-applied changes and CLI worker worktrees. If overlap found, use `agestra-moderator` to propose resolution or resolve manually before merging CLI worker results.
170
163
 
171
164
  ### Phase 4: Result Inspection
172
165
 
173
166
  After each task completes:
174
167
 
175
- 1. Review the output from each AI.
176
- 2. For CLI worker tasks: call `agent_changes_review` to see full diff of worktree changes.
177
- 3. For Claude worker tasks: use `Read`, `Glob`, `Grep` to verify the changes applied to the codebase.
168
+ 1. Review the output from each AI.
169
+ 2. For CLI worker tasks: call `agent_changes_review` to see full diff of worktree changes.
170
+ 3. For Claude-applied tasks: use `Read`, `Glob`, `Grep` to verify the changes applied to the codebase.
178
171
  4. Compare changes against the design document:
179
172
  - Missing items → re-instruct the AI with specific guidance
180
173
  - Extra items not in design → flag to user
@@ -184,7 +177,8 @@ After each task completes:
184
177
  - Naming conventions are consistent
185
178
  - No conflicting changes to shared files
186
179
  - Import/export chains are complete
187
- 6. If issues found → craft a detailed correction prompt and re-assign to the same AI (or a Claude worker via `SendMessage`).
180
+ 6. If issues found → craft a detailed correction prompt and re-assign to the same AI or address it in Claude execution.
181
+ 6. If issues found → craft a detailed correction prompt and re-assign to the same AI or fix directly in Claude execution.
188
182
  7. If all checks pass:
189
183
  - For CLI worker tasks: call `agent_changes_accept` to merge worktree changes
190
184
  - For rejected CLI worker tasks: call `agent_changes_reject` with reason
@@ -236,48 +230,24 @@ Run the `agestra-reviewer` agent with TRUST 5 framework:
236
230
 
237
231
  Provide a clear summary to the user:
238
232
 
239
- - What was requested
240
- - Execution mode used (supervised/autonomous)
241
- - Work mode used (Claude only / Multi-AI)
242
- - Team API details: team name, worker count, task distribution
243
- - How tasks were distributed (which AI/worker did what)
244
- - Task completion summary: total tasks, completed, failed, re-routed
245
- - What changed (files modified, features added)
233
+ - What was requested
234
+ - Execution mode used (supervised/autonomous)
235
+ - Work mode used (Claude only / Multi-AI)
236
+ - How tasks were distributed (which AI/worker did what)
237
+ - Task completion summary: total tasks, completed, failed, re-routed
238
+ - What changed (files modified, features added)
246
239
  - QA cycle: how many cycles ran, what was auto-fixed
247
240
  - Quality Gate: TRUST 5 results
248
241
  - Any issues found and how they were resolved
249
242
 
250
243
  </Workflow>
251
244
 
252
- <Worker_Preamble>
253
- Standard instructions for all Claude workers spawned via Agent(team_name=...):
254
-
255
- ## Worker Protocol
256
-
257
- You are a team worker in team "{team_name}".
258
- Assigned role: {role_description}
259
-
260
- ### Workflow
261
- 1. Claim work: TaskList → find matching task → TaskUpdate(taskId, status="in_progress")
262
- 2. Execute: Read task description, follow file scope, respect constraints, implement per acceptance criteria
263
- 3. Report completion: TaskUpdate(taskId, status="completed") with summary → SendMessage(to="lead")
264
- 4. Handle failures: SendMessage(to="lead") if blocked, TaskUpdate(status="failed") if failed
265
- 5. Continue or stop: Check TaskList for more, stop on shutdown message
266
-
267
- ### Rules
268
- - Only modify files in task scope
269
- - Follow existing code conventions
270
- - No extras beyond task scope
271
- - Message lead for cross-worker coordination
272
- - Do not commit or push
273
- </Worker_Preamble>
274
-
275
- <Stage_Handoff>
276
- When transitioning between workflow phases, create a handoff document summarizing:
277
-
278
- Phase 2→3 Handoff:
279
- - Work mode selected (Claude only / Multi-AI)
280
- - Total tasks, Claude workers count, CLI workers count
245
+ <Stage_Handoff>
246
+ When transitioning between workflow phases, create a handoff document summarizing:
247
+
248
+ Phase 2→3 Handoff:
249
+ - Work mode selected (Claude only / Multi-AI)
250
+ - Total tasks, Claude-owned tasks count, CLI workers count
281
251
  - Task dependency graph
282
252
  - Risk flags (shared files, complex tasks)
283
253
  - Context for workers (design doc path, naming conventions, key decisions)
@@ -342,14 +312,12 @@ The design document is the authority. If an AI's output conflicts with the desig
342
312
 
343
313
  <Tool_Usage>
344
314
 
345
- ## Team API (Claude Worker Coordination)
346
- - `TeamCreate` create a worker team with max worker count
347
- - `TaskCreate` — define a task with subject and description for workers to claim
348
- - `TaskUpdate` — update task status (workers use this to claim/complete/fail)
349
- - `TaskList` — list all tasks and their status
350
- - `TaskGet` get details of a specific task
351
- - `SendMessage` — DM a worker, broadcast to all, or send shutdown signal
352
- - `Agent(team_name=...)` — spawn a Claude worker into the team
315
+ ## Claude Coordination
316
+ - Direct Claude execution in the current thread for core implementation
317
+ - `agestra-designer` — clarify ambiguity and refine design
318
+ - `agestra-reviewer` — quality gate and code review
319
+ - `agestra-qa` — implementation/design compliance and verification
320
+ - Standard file/code tools (`Read`, `Glob`, `Grep`, shell commands) for inspection and execution
353
321
 
354
322
  ## MCP (External AI & Infrastructure)
355
323
  - `environment_check` — detect CLI tools, Ollama models, infrastructure
@@ -398,7 +366,8 @@ Spawning a Codex CLI worker to refactor the auth module in an isolated worktree.
398
366
  - Do NOT assign complex tasks to small Ollama models.
399
367
  - Do NOT accept "simplified" or "partial" results from AIs.
400
368
  - Do NOT proceed to QA until you've inspected all results yourself.
401
- - Do NOT use MCP tools for Claude worker management use Team API instead.
369
+ - Use MCP tools for external AI orchestration and change review.
370
+ - Use Claude execution plus specialist agents for Claude-side work.
402
371
  - If no external providers are available, inform the user and suggest Claude-only execution with appropriate agents (designer, reviewer).
403
372
  - Communicate in the user's language.
404
373
  </Constraints>
@@ -0,0 +1,55 @@
1
+ ---
2
+ description: "Implement a feature or change with Claude-only or multi-AI orchestration"
3
+ argument-hint: "[feature, bugfix, or task description]"
4
+ ---
5
+
6
+ You are executing the `/agestra implement` command.
7
+
8
+ **Task:** $ARGUMENTS
9
+
10
+ ## Step 1: Determine implementation target
11
+
12
+ If `$ARGUMENTS` is empty, ask the user:
13
+ - "What would you like to implement?"
14
+
15
+ ## Step 2: Check environment
16
+
17
+ Call `environment_check` and `provider_list`.
18
+
19
+ ## Step 3: Clarify work mode
20
+
21
+ Use AskUserQuestion to present these options in the user's language:
22
+
23
+ | Option | Condition | Description |
24
+ |--------|-----------|-------------|
25
+ | **Claude only** | Always | Claude handles implementation directly, using project/global agents where appropriate |
26
+ | **Multi-AI** | team mode available | Codex/Gemini run autonomous worker tasks, Claude supervises and integrates |
27
+
28
+ If team mode is not available, skip the question and use Claude only.
29
+
30
+ ## Step 4: Ensure there is a design basis
31
+
32
+ If no recent design doc exists for the task:
33
+ - Ask the user whether to design first, or implement directly.
34
+ - If the user wants design first, run `/agestra design`.
35
+
36
+ ## Step 5: Execute
37
+
38
+ ### If "Claude only":
39
+ Spawn `agestra-team-lead` in Claude-only mode with the task and current project context.
40
+
41
+ ### If "Multi-AI":
42
+ Spawn `agestra-team-lead` in Multi-AI mode with:
43
+ - environment capability map
44
+ - available providers
45
+ - instruction to use isolated CLI workers for suitable tasks
46
+ - instruction to review changes with `agent_changes_review`
47
+ - instruction to merge only after review
48
+ - instruction to run `qa_run` and `agestra-qa` before final completion
49
+
50
+ ## Step 6: Final verification
51
+
52
+ Before reporting completion:
53
+ 1. Run `qa_run`
54
+ 2. If deeper design-compliance verification is needed, spawn `agestra-qa`
55
+ 3. Summarize implementation result, review result, and QA outcome