agestra 4.3.2 → 4.3.4
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/README.ko.md +22 -12
- package/README.md +22 -12
- package/agents/agestra-team-lead.md +72 -103
- package/commands/implement.md +55 -0
- package/dist/bundle.js +560 -69
- package/package.json +1 -1
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 메모리 시스템을
|
|
10
|
+
Agestra는 Ollama(로컬), Gemini CLI, Codex CLI를 Claude Code에 플러그형으로 연결합니다. 독립 취합, 합의 토론, 자율 CLI 워커, 병렬 작업 분배, 교차 검증, 품질 기반 공급자 라우팅, 지속적 GraphRAG 메모리 시스템을 40개 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
|
|
|
@@ -75,6 +76,8 @@ Claude Code에서 실행:
|
|
|
75
76
|
| `cancel` | 워커, 토론, 체인, 작업의 정상 종료 |
|
|
76
77
|
| `build-fix` | 빌드/타입체크/린트 에러 자동 진단 및 수정 |
|
|
77
78
|
| `trace` | 에이전트 실행 타임라인 및 흐름 다이어그램 조회 |
|
|
79
|
+
| `design` | 멀티 AI 모드 선택이 포함된 아키텍처 탐색 워크플로우 |
|
|
80
|
+
| `idea` | 멀티 AI 모드 선택이 포함된 개선점 발굴 워크플로우 |
|
|
78
81
|
|
|
79
82
|
---
|
|
80
83
|
|
|
@@ -91,7 +94,7 @@ Turborepo 모노레포, 8개 패키지:
|
|
|
91
94
|
| `@agestra/agents` | 합의 검출 토론 엔진, 턴 품질 평가기, 작업 분배기, 교차 검증기, 작업 체인, 자동 QA, 파일 변경 추적기, 세션 관리자 |
|
|
92
95
|
| `@agestra/workspace` | 코드 리뷰 워크플로우용 문서 관리자 |
|
|
93
96
|
| `@agestra/memory` | GraphRAG — FTS5 + 벡터 + 지식 그래프 하이브리드 검색, 실패 추적 |
|
|
94
|
-
| `@agestra/mcp-server` | MCP 프로토콜 레이어,
|
|
97
|
+
| `@agestra/mcp-server` | MCP 프로토콜 레이어, 40개 도구, 디스패치 |
|
|
95
98
|
|
|
96
99
|
### 설계 원칙
|
|
97
100
|
|
|
@@ -113,7 +116,7 @@ Turborepo 모노레포, 8개 패키지:
|
|
|
113
116
|
|
|
114
117
|
---
|
|
115
118
|
|
|
116
|
-
## 도구 (
|
|
119
|
+
## 도구 (40개)
|
|
117
120
|
|
|
118
121
|
### AI 채팅 (3개)
|
|
119
122
|
|
|
@@ -194,8 +197,14 @@ Turborepo 모노레포, 8개 패키지:
|
|
|
194
197
|
|
|
195
198
|
| 도구 | 설명 |
|
|
196
199
|
|------|------|
|
|
197
|
-
| `cli_job_submit` | 장시간 CLI 작업을 백그라운드에 제출 |
|
|
198
|
-
| `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 요약 |
|
|
199
208
|
|
|
200
209
|
### 추적 / 관측성 (3개)
|
|
201
210
|
|
|
@@ -256,10 +265,11 @@ agestra/
|
|
|
256
265
|
├── .claude-plugin/
|
|
257
266
|
│ ├── plugin.json # Claude Code 플러그인 매니페스트
|
|
258
267
|
│ └── marketplace.json # 플러그인 마켓플레이스 메타데이터
|
|
259
|
-
├── commands/
|
|
260
|
-
│ ├── review.md # /agestra review — 품질 검증
|
|
261
|
-
│ ├── idea.md # /agestra idea — 개선점 발굴
|
|
262
|
-
│
|
|
268
|
+
├── commands/
|
|
269
|
+
│ ├── review.md # /agestra review — 품질 검증
|
|
270
|
+
│ ├── idea.md # /agestra idea — 개선점 발굴
|
|
271
|
+
│ ├── design.md # /agestra design — 아키텍처 탐색
|
|
272
|
+
│ └── implement.md # /agestra implement — 실제 구현 진행
|
|
263
273
|
├── agents/
|
|
264
274
|
│ ├── agestra-reviewer.md # 엄격한 품질 검증자 (Opus)
|
|
265
275
|
│ ├── agestra-designer.md # 아키텍처 탐색자 (Opus)
|
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
|
|
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.
|
|
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
|
|
|
@@ -75,6 +76,8 @@ Each command presents a choice:
|
|
|
75
76
|
| `cancel` | Graceful stop for workers, debates, chains, tasks |
|
|
76
77
|
| `build-fix` | Auto-diagnose and fix build/typecheck/lint errors |
|
|
77
78
|
| `trace` | View agent execution timeline and flow diagrams |
|
|
79
|
+
| `design` | Architecture exploration workflow with multi-AI mode selection |
|
|
80
|
+
| `idea` | Improvement discovery workflow with multi-AI mode selection |
|
|
78
81
|
|
|
79
82
|
---
|
|
80
83
|
|
|
@@ -91,7 +94,7 @@ Turborepo monorepo with 8 packages:
|
|
|
91
94
|
| `@agestra/agents` | Debate engine with consensus detection, turn quality evaluator, task dispatcher, cross-validator, task chain, auto-QA, file change tracker, session manager |
|
|
92
95
|
| `@agestra/workspace` | Document manager for code review workflows |
|
|
93
96
|
| `@agestra/memory` | GraphRAG — FTS5 + vector + knowledge graph hybrid search, dead-end tracking |
|
|
94
|
-
| `@agestra/mcp-server` | MCP protocol layer,
|
|
97
|
+
| `@agestra/mcp-server` | MCP protocol layer, 40 tools, dispatch |
|
|
95
98
|
|
|
96
99
|
### Design Principles
|
|
97
100
|
|
|
@@ -113,7 +116,7 @@ Turborepo monorepo with 8 packages:
|
|
|
113
116
|
|
|
114
117
|
---
|
|
115
118
|
|
|
116
|
-
## Tools (
|
|
119
|
+
## Tools (40)
|
|
117
120
|
|
|
118
121
|
### AI Chat (3)
|
|
119
122
|
|
|
@@ -194,8 +197,14 @@ Turborepo monorepo with 8 packages:
|
|
|
194
197
|
|
|
195
198
|
| Tool | Description |
|
|
196
199
|
|------|-------------|
|
|
197
|
-
| `cli_job_submit` | Submit a long-running CLI task to background |
|
|
198
|
-
| `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 |
|
|
199
208
|
|
|
200
209
|
### Trace / Observability (3)
|
|
201
210
|
|
|
@@ -256,10 +265,11 @@ agestra/
|
|
|
256
265
|
├── .claude-plugin/
|
|
257
266
|
│ ├── plugin.json # Claude Code plugin manifest
|
|
258
267
|
│ └── marketplace.json # Plugin marketplace metadata
|
|
259
|
-
├── commands/
|
|
260
|
-
│ ├── review.md # /agestra review — quality verification
|
|
261
|
-
│ ├── idea.md # /agestra idea — improvement discovery
|
|
262
|
-
│
|
|
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
|
|
263
273
|
├── agents/
|
|
264
274
|
│ ├── agestra-reviewer.md # Strict quality verifier (Opus)
|
|
265
275
|
│ ├── agestra-designer.md # Architecture explorer (Opus)
|
|
@@ -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
|
|
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
|
|
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
|
-
-
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
|
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 implementation → Claude 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
|
|
132
|
-
|
|
133
|
-
**Claude
|
|
134
|
-
1.
|
|
135
|
-
2.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
|
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
|
-
-
|
|
165
|
-
|
|
166
|
-
**Result Integration:**
|
|
167
|
-
- Claude
|
|
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
|
|
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
|
|
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
|
|
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
|
-
-
|
|
243
|
-
-
|
|
244
|
-
-
|
|
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
|
-
<
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
-
##
|
|
346
|
-
-
|
|
347
|
-
- `
|
|
348
|
-
- `
|
|
349
|
-
- `
|
|
350
|
-
- `
|
|
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
|
-
-
|
|
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
|