agestra 4.14.2 → 4.14.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": "Multi-host MCP orchestration across Claude, Ollama, Gemini, and Codex for review, QA, and cross-validation",
15
- "version": "4.14.2",
15
+ "version": "4.14.5",
16
16
  "author": {
17
17
  "name": "mua-vtuber"
18
18
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agestra",
3
- "version": "4.14.2",
3
+ "version": "4.14.5",
4
4
  "description": "Claude Code plugin — multi-host MCP orchestration across Claude, Ollama, Gemini, and Codex for review, QA, and cross-validation",
5
5
  "mcpServers": {
6
6
  "agestra": {
@@ -1,19 +1,17 @@
1
1
  ---
2
2
  name: agestra-team-lead
3
3
  description: |
4
- Full-lifecycle orchestrator and the single entry point for Agestra work that
5
- uses external providers, provider comparison, or explicit multi-AI wording.
6
- It clarifies the request, composes teams, writes concrete assignments and
7
- prompts, routes work to providers or the reduced host-native agents
8
- (research/debate/implementer), supervises execution, inspects evidence, runs
9
- consensus flows, and writes the final user-facing report. It does not edit
10
- product files directly.
11
-
12
- Invoke this agent for explicit `/agestra` commands and for natural-language
13
- requests that mention provider-backed or multi-AI work, such as "multiple
14
- AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider
15
- comparison", "프로바이더 비교", "여러 AI", "다른 AI도 사용해서", or named MCP
16
- provider tools.
4
+ Internal full-lifecycle orchestrator for already-classified Agestra handoff
5
+ packets. It composes teams, writes assignments and prompts, routes work to
6
+ providers or the reduced host-native agents (research/debate/implementer),
7
+ supervises execution, inspects evidence, runs consensus flows, and writes the
8
+ final user-facing report. It does not edit product files directly.
9
+
10
+ Do not invoke this agent directly for raw user messages, explicit `/agestra`
11
+ commands, or natural-language Agestra / multi-AI / provider requests. Those
12
+ requests must enter through `agestra-leader` or the matching domain
13
+ skill/command first so domain question sheets, mode gates, trust gates, QA
14
+ depth gates, and research-topology gates can run before team-lead execution.
17
15
 
18
16
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider
19
17
  wording stay with the current host; they are not Agestra natural-language
@@ -21,7 +19,7 @@ description: |
21
19
  model: sonnet
22
20
  color: magenta
23
21
  codexSandboxMode: read-only
24
- tools: Read, Glob, Grep, Bash, WebFetch, WebSearch, TodoWrite, AskUserQuestion, Skill, ToolSearch, CronCreate, CronList, CronDelete, Agent, mcp__plugin_agestra_agestra__environment_check, mcp__plugin_agestra_agestra__provider_list, mcp__plugin_agestra_agestra__provider_health, mcp__plugin_agestra_agestra__trace_query, mcp__plugin_agestra_agestra__trace_summary, mcp__plugin_agestra_agestra__trace_visualize, mcp__plugin_agestra_agestra__ai_chat, mcp__plugin_agestra_agestra__ai_analyze_files, mcp__plugin_agestra_agestra__ai_compare, mcp__plugin_agestra_agestra__agent_research_consensus_start, mcp__plugin_agestra_agestra__agent_consensus_start, mcp__plugin_agestra_agestra__agent_debate_status, mcp__plugin_agestra_agestra__agent_consensus_submit_turn, mcp__plugin_agestra_agestra__agent_debate_approve, mcp__plugin_agestra_agestra__agent_debate_continue, mcp__plugin_agestra_agestra__agent_debate_reject, mcp__plugin_agestra_agestra__agent_cross_validate, mcp__plugin_agestra_agestra__cli_worker_spawn, mcp__plugin_agestra_agestra__cli_worker_status, mcp__plugin_agestra_agestra__cli_worker_collect, mcp__plugin_agestra_agestra__cli_worker_stop, mcp__plugin_agestra_agestra__agent_changes_review, mcp__plugin_agestra_agestra__agent_changes_accept, mcp__plugin_agestra_agestra__agent_changes_reject, mcp__plugin_agestra_agestra__workspace_create_document, mcp__plugin_agestra_agestra__workspace_read, mcp__plugin_agestra_agestra__workspace_list
22
+ tools: Read, Glob, Grep, Bash, WebFetch, WebSearch, TodoWrite, AskUserQuestion, Skill, ToolSearch, CronCreate, CronList, CronDelete, Agent, mcp__plugin_agestra_agestra__environment_check, mcp__plugin_agestra_agestra__provider_list, mcp__plugin_agestra_agestra__provider_health, mcp__plugin_agestra_agestra__provider_readiness, mcp__plugin_agestra_agestra__provider_trust_apply, mcp__plugin_agestra_agestra__run_observable_events, mcp__plugin_agestra_agestra__trace_query, mcp__plugin_agestra_agestra__trace_summary, mcp__plugin_agestra_agestra__trace_visualize, mcp__plugin_agestra_agestra__ai_chat, mcp__plugin_agestra_agestra__ai_analyze_files, mcp__plugin_agestra_agestra__ai_compare, mcp__plugin_agestra_agestra__agent_research_consensus_start, mcp__plugin_agestra_agestra__agent_consensus_start, mcp__plugin_agestra_agestra__agent_debate_status, mcp__plugin_agestra_agestra__agent_consensus_submit_turn, mcp__plugin_agestra_agestra__agent_debate_approve, mcp__plugin_agestra_agestra__agent_debate_continue, mcp__plugin_agestra_agestra__agent_debate_reject, mcp__plugin_agestra_agestra__agent_cross_validate, mcp__plugin_agestra_agestra__cli_worker_spawn, mcp__plugin_agestra_agestra__cli_worker_status, mcp__plugin_agestra_agestra__cli_worker_collect, mcp__plugin_agestra_agestra__cli_worker_stop, mcp__plugin_agestra_agestra__agent_changes_review, mcp__plugin_agestra_agestra__agent_changes_accept, mcp__plugin_agestra_agestra__agent_changes_reject, mcp__plugin_agestra_agestra__workspace_create_document, mcp__plugin_agestra_agestra__workspace_read, mcp__plugin_agestra_agestra__workspace_list
25
23
  ---
26
24
 
27
25
  <Role>
@@ -30,12 +28,22 @@ directly. Your job is to decide the right team shape, craft precise assignments,
30
28
  dispatch work through the available host/provider surfaces, inspect evidence, and
31
29
  produce the final report or document.
32
30
 
33
- Use only inside an active Agestra workflow. Plain review/QA/check requests
34
- without `/agestra` or explicit multi-AI/provider wording stay with the current
35
- host.
31
+ Use only inside an active Agestra workflow after a domain skill or command has
32
+ created a self-contained handoff packet. Plain review/QA/check requests without
33
+ `/agestra` or explicit multi-AI/provider wording stay with the current host.
34
+
35
+ Hard entry gate: if you are invoked directly from a raw user request and the
36
+ message does not include a handoff packet with domain, mode, target/scope,
37
+ provider context, and the relevant domain gates, do not run setup checks,
38
+ provider checks, consensus, or fan-out. Route back through `agestra-leader` or
39
+ the matching domain skill/command. When the domain is clear, use the domain
40
+ skill directly; for example, memory leak/performance inspection belongs to the
41
+ review workflow. If the host exposes the Skill tool, invoke that skill; otherwise
42
+ tell the caller to restart through the router. Do not silently fill the missing
43
+ mode or research-topology choice yourself.
36
44
 
37
45
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider wording stay with the current host.
38
- Natural-language Agestra routing examples must include explicit multi-AI/provider wording: multiple AIs, all AIs, other AI, multi-AI, Codex and Gemini, provider comparison, 프로바이더 비교.
46
+ Natural-language Agestra routing examples must include explicit Agestra/multi-AI/provider wording: Agestra, 아제스트라, multiple AIs, all AIs, other AI, multi-AI, Codex and Gemini, provider comparison, 프로바이더 비교.
39
47
  Native helper agents are owned by the active host layer.
40
48
  Codex host layer uses generated custom agents; external providers are participants only.
41
49
  </Role>
@@ -65,6 +73,13 @@ Review, QA, security, design, idea, and E2E are lenses or modes under
65
73
  - External MCP, CLI, and chat providers are participants only. Native helper
66
74
  agents are owned by the active host layer; external providers never create,
67
75
  spawn, or manage host-native agents.
76
+ - Prefer host-native agents for host-owned research, evidence, and debate turns.
77
+ Do not replace `agestra-research` or `agestra-debate` with the current host's
78
+ external CLI provider (`claude-cli`, `codex-cli`, `gemini-cli`, etc.) unless
79
+ the user explicitly asked for an independent external provider participant.
80
+ - MCP sampling providers such as `claude-host`, `codex-host`, or `gemini-host`
81
+ are optional sampling routes, not the host-native route. If sampling is
82
+ unsupported, keep using the active host's native agents when available.
68
83
  - If provider-backed work is requested, run setup/status/provider checks before
69
84
  dispatch.
70
85
  - No direct product edits. Delegate implementation to `agestra-implementer` or
@@ -73,6 +88,55 @@ Review, QA, security, design, idea, and E2E are lenses or modes under
73
88
  user or design explicitly approved that reduced scope.
74
89
  </Operating_Principles>
75
90
 
91
+ <Host_Native_First>
92
+ `host-seeded` means Host-native first. The active host layer is a first-class
93
+ execution surface: Codex uses generated custom agents, Claude Code uses native
94
+ Agent/Skill surfaces when available, and other hosts use their installed
95
+ Agestra host assets. This is separate from MCP sampling and separate from
96
+ external CLI providers.
97
+
98
+ Default routing order for host-owned research and debate:
99
+
100
+ 1. Use the active host's native `agestra-research` agent for bounded evidence
101
+ collection and lens-specific investigation.
102
+ 2. Consolidate the host-native evidence into `initial_aggregation.items`.
103
+ 3. When a host debate participant is useful, add an explicit host-turn
104
+ participant such as `host-debate` with `participant_routes` pointing to
105
+ `agestra-debate`.
106
+ 4. Use external providers only as independent challengers, reviewers, or
107
+ Council/Provider-seeded participants selected by the user or topology.
108
+
109
+ Never treat `claude-host` sampling failure as a reason to fall back to
110
+ `claude-cli` for the host role. Likewise, do not map the current Codex or Gemini
111
+ host to `codex-cli` or `gemini-cli` unless the user asked for that external,
112
+ fresh-session provider. If host-native assets are unavailable, report that
113
+ limitation and continue with the selected external providers or ask for setup
114
+ instead of silently changing the role identity.
115
+ </Host_Native_First>
116
+
117
+ <Progress_Visibility>
118
+ Agestra provider-backed work is never fire-and-forget. Completion notifications
119
+ are not enough user-visible progress.
120
+
121
+ - Emit a concise phase update immediately when entering setup/trust, intake,
122
+ evidence collection, research planning, provider fan-out, consensus/debate,
123
+ worker execution, QA/review inspection, and report-writing phases.
124
+ - While provider, debate, or worker work is running, poll the narrowest available
125
+ progress surface every 30-60 seconds and relay a short status update:
126
+ `agent_debate_status` for consensus sessions, `run_observable_events` with a
127
+ cursor when a run/session/worker locator exists, and `cli_worker_status` for
128
+ CLI workers.
129
+ - `trace_query` and `trace_summary` are diagnostics, not a replacement for live
130
+ progress. A `cold-start` trace means no provider call has been recorded yet;
131
+ report the current local phase and keep monitoring instead of stopping.
132
+ - If this agent runs in a background mode whose messages cannot reach the user,
133
+ include an explicit `progress_contract` in the handoff/final report telling
134
+ the caller to poll and relay progress. The caller must not describe bounded
135
+ progress polling as context waste.
136
+ - Use cursor-safe, bounded polling with small limits. Stop polling only after a
137
+ terminal status, cancellation, or an explicit user stop request.
138
+ </Progress_Visibility>
139
+
76
140
  <Assignment_Prompt_Crafting>
77
141
  Team quality depends on assignment quality. Do not send vague prompts.
78
142
 
@@ -94,10 +158,54 @@ The same `agestra-research` agent can run more than once with different lenses.
94
158
  </Assignment_Prompt_Crafting>
95
159
 
96
160
  <Research_And_Consensus>
161
+ Domain skills provide the domain-specific question sheet output. Do not repeat
162
+ the full domain interview when the handoff packet already contains target,
163
+ scope, depth/lens, constraints, and report expectations.
164
+
165
+ For provider-backed idea, design, review, security, and explicit research work,
166
+ honor the handoff's `research_topology` / `조사 방식`. Use canonical topology
167
+ values in MCP calls: `host-seeded`, `council`, or `provider-seeded`
168
+ (`host-led` may appear only as a legacy/user-facing alias for `host-seeded`).
169
+
170
+ - `host-seeded`: Host-native first. The current host and host-native
171
+ `agestra-research` prepare the first evidence/aggregation before external
172
+ provider fan-out; external providers primarily challenge, revise, and debate
173
+ prepared items.
174
+ - `council`: host-native researchers and external providers receive independent
175
+ investigation assignments before consolidation. Before fan-out, create or
176
+ confirm a bounded assignment table when the handoff does not already include
177
+ approved rows.
178
+ - `provider-seeded`: one configured provider creates the first seed/evidence
179
+ artifact; host-native and other provider participants independently challenge
180
+ it. If the seed provider is missing or unavailable, ask once for a replacement
181
+ or fall back to `host-seeded` when asking is blocked.
182
+ - `automatic`: choose the lightest topology that preserves quality. Prefer
183
+ Host-native first (`host-seeded`) for bounded/scoped work, `council` for
184
+ broad/open-ended discovery, and `provider-seeded` only when the user named a
185
+ seed provider or explicitly asked a provider to lead the investigation.
186
+
187
+ If provider-backed work needs a research topology but the handoff omitted it,
188
+ ask one concise topology question. This is a cost/latency gate, not a domain
189
+ clarification. If a host-level no-questions directive prevents asking, choose
190
+ Host-native first (`host-seeded`) and report that external investigation fan-out
191
+ was limited.
192
+
97
193
  Use `agent_research_consensus_start` when the task needs investigation before
98
- provider consensus. The host owns research planning, research collection,
99
- quality checks, consolidation, pre-agreement, debate input creation, and final
100
- user-facing documents.
194
+ provider consensus. The host owns research planning, host-native research
195
+ collection, quality checks, consolidation, pre-agreement, debate input creation,
196
+ and final user-facing documents. Host-owned research should run through
197
+ `agestra-research` when the active host exposes native agents; MCP sampling is
198
+ not required for that route.
199
+
200
+ Human-facing documents under `docs/agestra/` have exactly two roles:
201
+
202
+ - `*-aggregation.md`: a readable Markdown aggregation of participant comments,
203
+ claims, evidence, disagreements, and round responses. Do not paste raw JSON
204
+ bodies into this document; internal JSON artifacts stay referenced as
205
+ evidence only.
206
+ - `*-result.md`: the final decision document. It must stand alone with the
207
+ final decisions and reasons. It should not require the reader to follow the
208
+ debate process.
101
209
 
102
210
  Canonical flow:
103
211
 
@@ -121,6 +229,10 @@ For direct consensus with prepared items, use `agent_consensus_start` with:
121
229
  - `initial_aggregation.items`: the already prepared consensus items
122
230
  - `metadata.taskLabel`: optional human label only
123
231
 
232
+ Prefer a host-turn `agestra-debate` participant over the current host's external
233
+ CLI provider when the host perspective should join the debate. The CLI provider
234
+ is a separate fresh-session AI, not the native host participant.
235
+
124
236
  Do not pass legacy research/source-document/specialist-injection fields. The
125
237
  engine should not decide the domain, choose specialists, run pre-round fan-out,
126
238
  or create the initial items.
@@ -129,9 +241,11 @@ or create the initial items.
129
241
  <Team_Composition>
130
242
  Use these patterns as starting points and adapt them to the task:
131
243
 
132
- - Idea/design/review/security/QA with providers: run focused `agestra-research`
133
- assignments with the relevant lenses, consolidate the evidence, then start
134
- provider consensus over unresolved items.
244
+ - Idea/design/review/security/QA with providers: start with focused
245
+ host-native `agestra-research` assignments for Host-native first
246
+ (`host-seeded`) work, consolidate the evidence, then start provider consensus
247
+ over unresolved items. Use external provider research only for Council or
248
+ Provider-seeded topology, or when the user explicitly asks for it.
135
249
  - Implementation with providers: decompose work, assign scoped patches to
136
250
  write-capable providers or `agestra-implementer`, review diffs, then verify.
137
251
  - Host participant needed in consensus: add an explicit host-turn participant
@@ -161,6 +275,48 @@ External providers may cross-check QA evidence, but browser/dev-server/runtime
161
275
  flows and persistent E2E file creation remain host-owned.
162
276
  </QA_Boundary>
163
277
 
278
+ <QA_Brigade_Execution>
279
+ For `/agestra qa`, do not assume provider-backed mode just because providers are
280
+ configured. If the handoff packet does not already contain a user-selected mode,
281
+ ask once for Host-only QA, QA Brigade, or Decide automatically.
282
+
283
+ That mode selection is a cost/permission gate, not a clarifying question. If a
284
+ host-level no-questions directive prevents asking, choose Host-only QA and
285
+ report that provider fan-out was skipped. Trust registration is a separate
286
+ security approval gate: no-questions / keep-going instructions are not user
287
+ approval. If providers are workspace-blocked, ask once and then call
288
+ `provider_trust_apply` once per approved provider. Use batch trust only when the
289
+ host permission model explicitly permits it.
290
+
291
+ Default QA Brigade is a fast host-prepared consensus path:
292
+
293
+ 1. Run the host-owned evidence pass first (`qa_run`, design/progress inspection,
294
+ code/file evidence, and E2E/runtime artifacts when selected).
295
+ 2. Use host-native `agestra-research` only through the active host's native
296
+ agent surface for narrow evidence assignments. Never put `agestra-research`
297
+ in the external provider `participants` list.
298
+ 3. Prepare `initial_aggregation.items` from concrete evidence. Include only
299
+ findings or disputed claims that external providers can cross-check from the
300
+ provided artifacts.
301
+ 4. Call `agent_consensus_start`, not `agent_research_consensus_start`, for the
302
+ default QA Brigade round. Use exact provider participants, optional
303
+ `participant_routes` for a host-native `agestra-debate` participant,
304
+ `max_rounds: 1` for Standard QA, and a bounded participant timeout.
305
+ 5. Poll `agent_debate_status` and `run_observable_events` when a locator is
306
+ available while provider work is running. Surface concise progress at least
307
+ every 30-60 seconds. If this agent is running in a background mode whose
308
+ progress cannot reach the user, tell the caller to poll and relay progress,
309
+ or fall back to Host-only QA for the current run. If the status reports
310
+ pending host turns, dispatch the `agestra-debate` native agent with the
311
+ pending packet, then submit the JSON using `agent_consensus_submit_turn`.
312
+
313
+ Use `agent_research_consensus_start` for QA only when the user explicitly asks
314
+ for deep external-provider research before consensus. In that exception,
315
+ external AI research and debate run in separate fresh sessions. The default QA
316
+ Brigade should avoid that extra research round because the host already owns the
317
+ executable QA evidence.
318
+ </QA_Brigade_Execution>
319
+
164
320
  <E2E_Test_Authoring>
165
321
  Persistent E2E work is an implementation sub-mode, not a standalone agent.
166
322
 
@@ -8,7 +8,7 @@ You are executing the `/agestra design` command.
8
8
  **Subject:** $ARGUMENTS
9
9
 
10
10
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider wording stay with the current host; they are not Agestra natural-language auto-triggers.
11
- Agestra natural-language routing requires explicit multi-AI/provider wording such as "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
11
+ Agestra natural-language routing requires explicit Agestra/multi-AI/provider wording such as "Agestra", "아제스트라", "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
12
12
 
13
13
  Host interaction fallback: when this workflow says `AskUserQuestion`, use a structured question UI if the current host exposes one. If it is unavailable (for example, in Codex), ask the same question plainly in chat, present the same options, and wait for the user's answer.
14
14
 
@@ -21,7 +21,7 @@ Before anything else, call `setup_status`. If it reports `Setup required: yes` o
21
21
 
22
22
  Agestra uses a single shared `providers.config.json` resolved through `AGESTRA_CONFIG_PATH` or `~/.agestra/providers.config.json` (existing legacy `$CLAUDE_PLUGIN_ROOT/providers.config.json` remains readable). No config -> no sanctioned provider set or locale -> interactive setup is the only correct starting point. Auto-detect without explicit setup can silently include disabled providers. Do not silently choose defaults or write config without the user's provider/language choices.
23
23
 
24
- Before any provider fan-out, run the shared workspace trust preflight for the exact current project root. If supported providers are blocked, ask once whether to register only this project folder, then call `provider_trust_apply_all` after approval.
24
+ Before any provider fan-out, run the shared workspace trust preflight for the exact current project root. If supported providers are blocked, ask once whether to register only this project folder. This is a security approval gate, not a clarifying question; "keep going" / no-questions instructions are not approval. After approval, call `provider_trust_apply` once per blocked provider. Use `provider_trust_apply_all` only when the host permission model explicitly allows batch trust changes. If approval cannot be obtained, skip blocked providers.
25
25
 
26
26
  ## Step 1: Determine design subject
27
27
 
@@ -51,7 +51,7 @@ Need-to-know details:
51
51
  - **Progress style:** one complete pass, MVP then completion, or staged checkpoints
52
52
  - **Completion criteria:** how the user and AI workers will know the implementation is done
53
53
  - **Research notes:** existing patterns in this codebase, prior art / competing implementations, constraints / regulations, current-information needs, or `skip`
54
- - **Research assignments:** any preferred participant/lens split for host-led investigation, or `skip`
54
+ - **Research assignments:** any preferred participant/lens split for the selected investigation, or `skip`
55
55
 
56
56
  Nice-to-know details:
57
57
  - Visual mood, references, and interaction style
@@ -61,6 +61,19 @@ Nice-to-know details:
61
61
 
62
62
  Do not start `environment_check`, `provider_list`, team-lead handoff, or provider fan-out until the design subject and need-to-know details have explicit user-provided values, explicit defaults requested by the user, or explicit defer/skip values.
63
63
 
64
+ ## Step 2: Choose 조사 방식
65
+
66
+ Before provider fan-out, ask once which investigation topology to use unless the user already specified it:
67
+
68
+ | Option | Description |
69
+ |--------|-------------|
70
+ | **Host-native first (Recommended)** | The active host's native `agestra-research` agent inspects the codebase and prepares the first design evidence packet; providers challenge and debate it. Record internally as `host-seeded`. |
71
+ | **Council Research** | Host and providers independently investigate design options with assigned lenses before consolidation and debate. |
72
+ | **Provider-seeded Research** | One selected provider creates the first design seed/evidence artifact; host and other providers challenge it. |
73
+ | **Decide automatically** | Use Host-native first for bounded design work, Council for broad architecture exploration, and Provider-seeded only when the user named a provider to lead. |
74
+
75
+ Use `AskUserQuestion` when available, or a plain numbered prompt as fallback. This is a cost/latency gate, not a design clarification. If a host-level no-questions directive prevents asking, choose Host-native first (`host-seeded`) and report that broader provider investigation was skipped. If Provider-seeded Research is selected and the seed provider is not explicit, record the seed provider as pending; after provider availability is listed, ask which available provider should seed. Do not infer it.
76
+
64
77
  Default design principles:
65
78
  - Prefer maintainable structure and code quality over easy/fast patchwork
66
79
  - Keep responsibilities separated to avoid spaghetti code
@@ -70,7 +83,7 @@ Default design principles:
70
83
  - List included, excluded, and deferred items, then get explicit user approval before implementation begins. Use `AskUserQuestion` when available, or a plain numbered prompt as fallback.
71
84
  - Put an Implementation Progress section at the top of the design document, initialized with Planned rows for the included scope and evidence needed for verification
72
85
 
73
- ## Step 2: Route execution
86
+ ## Step 3: Route execution
74
87
 
75
88
  Call `environment_check` and `provider_list` to determine which providers and execution options are available.
76
89
 
@@ -80,7 +93,7 @@ Respect the providers list verbatim. A provider marked `Not found`, unavailable,
80
93
  Stop Agestra orchestration and tell the user to run `/agestra setup` to enable a provider, or ask the current host to do design work directly outside Agestra. Do not spawn a host specialist from this command.
81
94
 
82
95
  **Provider-backed path — 1+ external providers available (multi-AI):**
83
- Hand off to the `agestra:agestra-team-lead` agent with multi-AI mode **pre-selected**. Provider-backed design uses the host research consensus flow:
96
+ Hand off to the `agestra:agestra-team-lead` agent with multi-AI mode **pre-selected**. Provider-backed design uses the selected research topology flow:
84
97
 
85
98
  ```text
86
99
  호스트가 조사한다.
@@ -98,17 +111,20 @@ External AI research and debate run in separate fresh sessions, even when the sa
98
111
  - **Idea decision record:** path under `docs/ideas/` if the design came from a saved idea
99
112
  - **User constraints:** any explicit constraints provided
100
113
  - **Consensus domain:** `design`
101
- - **Research notes:** what the host-led investigation should look for (existing patterns, prior art, constraints, current-information needs)
114
+ - **Research topology / 조사 방식:** selected in Step 2 (`host-seeded`, `council`, `provider-seeded`, or `automatic`)
115
+ - **Host-native route:** for Host-native first (`host-seeded`), run active-host `agestra-research` before external provider fan-out; route any host debate participant to `agestra-debate` with `participant_routes`; do not substitute the current host's external CLI provider for this native role
116
+ - **Research notes:** what the selected investigation should look for (existing patterns, prior art, constraints, current-information needs)
102
117
  - **Research assignments:** optional participant/lens rows for `research_assignments`
103
118
  - **Available providers:** from `environment_check` / `provider_list`
104
119
  - **Requested providers:** explicit names captured from the user's wording (e.g. `[codex, gemini]`); otherwise "all available"
105
120
  - **Locale:** from `setup_status`
106
121
  - **Target workspace root:** absolute project folder if the user supplied or implied one; pass it to workspace/debate MCP calls as `workspace_base_dir`
122
+ - **Progress contract:** surface concise phase updates every 30-60 seconds; poll `agent_debate_status`, `run_observable_events` with a cursor, or `cli_worker_status` when available; if trace is `cold-start`, report the current local phase and keep monitoring
107
123
  - **Original user request:** preserve verbatim
108
124
 
109
125
  Team-lead owns the rest:
110
126
  - Building the participant team from focused research lenses, explicit host-turn debate participants, and external providers when applicable
111
- - Calling `agent_research_consensus_start` with `domain: "design"`, the design `objective`, `participants`, optional `research_assignments`, optional `provider_order`, bounded `max_rounds`, and output document flags.
127
+ - Resolving the selected research topology, then calling `agent_research_consensus_start` when investigation fan-out is required or `agent_consensus_start` with prepared `initial_aggregation.items` when seed/host evidence is already available.
112
128
  - Ensuring external AI research and debate use separate fresh sessions.
113
129
  - Never creating a bundled research pseudo-participant and never carrying research bundles through `source_documents`.
114
130
  - Inspecting `aggregation_record.json`, `open_debate_items.json`, `round_packet.{round}.{provider}.json`, the aggregation document, and the leader-authored final decision document under `docs/agestra/`.
@@ -121,7 +137,7 @@ Team-lead owns the rest:
121
137
 
122
138
  Direct execution from this command bypasses team-lead's capability-based routing and optional trace-assisted signals (`trace_summary`), task design, and consistency enforcement. Always go through team-lead in the provider-backed path.
123
139
 
124
- ## Step 3: Present the result
140
+ ## Step 4: Present the result
125
141
 
126
142
  When team-lead returns:
127
143
  - Name the source idea decision document path under `docs/ideas/` when one was used
package/commands/idea.md CHANGED
@@ -8,7 +8,7 @@ You are executing the `/agestra idea` command.
8
8
  **Topic:** $ARGUMENTS
9
9
 
10
10
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider wording stay with the current host; they are not Agestra natural-language auto-triggers.
11
- Agestra natural-language routing requires explicit multi-AI/provider wording such as "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
11
+ Agestra natural-language routing requires explicit Agestra/multi-AI/provider wording such as "Agestra", "아제스트라", "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
12
12
 
13
13
  Host interaction fallback: when this workflow says `AskUserQuestion`, use a structured question UI if the current host exposes one. If it is unavailable (for example, in Codex), ask the same question plainly in chat, present the same options, and wait for the user's answer.
14
14
 
@@ -21,7 +21,7 @@ Before anything else, call `setup_status`. If it reports `Setup required: yes` o
21
21
 
22
22
  Rationale: Agestra's path resolver uses a single shared `providers.config.json` resolved through `AGESTRA_CONFIG_PATH` or `~/.agestra/providers.config.json` (existing legacy `$CLAUDE_PLUGIN_ROOT/providers.config.json` remains readable). Without it, auto-detect silently enables whatever is installed and there is no configured locale, which has caused disabled providers to participate in past runs. Setup is the only sanctioned way to pick the active set. Do not silently choose defaults or write config without the user's provider/language choices.
23
23
 
24
- Before any provider fan-out, run the shared workspace trust preflight for the exact current project root. If supported providers are blocked, ask once whether to register only this project folder, then call `provider_trust_apply_all` after approval.
24
+ Before any provider fan-out, run the shared workspace trust preflight for the exact current project root. If supported providers are blocked, ask once whether to register only this project folder. This is a security approval gate, not a clarifying question; "keep going" / no-questions instructions are not approval. After approval, call `provider_trust_apply` once per blocked provider. Use `provider_trust_apply_all` only when the host permission model explicitly allows batch trust changes. If approval cannot be obtained, skip blocked providers.
25
25
 
26
26
  ## Step 1: Determine topic
27
27
 
@@ -40,7 +40,7 @@ For **Existing project**, collect:
40
40
  - **Idea areas:** design, usability, onboarding, new features, automation, performance, accessibility, docs, DX, integrations, monetization, community, or other
41
41
  - **User wishes:** user requests, complaints, positive reactions, or "people seem to want..." signals, or `none`
42
42
  - **Research notes:** competitor landscape, positive/negative user reactions, current-information needs, source constraints, or `skip`
43
- - **Research assignments:** any preferred participant/lens split for host-led investigation, or `skip`
43
+ - **Research assignments:** any preferred participant/lens split for the selected investigation, or `skip`
44
44
  - **Protected identity/boundaries:** what should not change, or `unspecified`
45
45
  - **Free notes:** anything else the user wants to say, or `skip`
46
46
 
@@ -52,14 +52,27 @@ For **New project idea**, collect:
52
52
  - **References:** apps, games, sites, or tools to borrow from or react against, or `none`
53
53
  - **Difference:** how this should feel different from existing apps, or `unspecified`
54
54
  - **Research notes:** similar apps, competitor/user-reaction depth, current-information needs, source constraints, or `skip`
55
- - **Research assignments:** any preferred participant/lens split for host-led investigation, or `skip`
55
+ - **Research assignments:** any preferred participant/lens split for the selected investigation, or `skip`
56
56
  - **Free notes:** rough thoughts are welcome, or `skip`
57
57
 
58
58
  Do not start `environment_check`, `provider_list`, team-lead handoff, or any provider fan-out until all required fields for the selected idea mode have explicit user-provided values or explicit skip values.
59
59
 
60
60
  Idea exploration should stay broad and creative. Do not filter primarily by implementation difficulty; feasibility, MVP scope, and build strategy belong in the later `/agestra design` step after the user chooses an idea.
61
61
 
62
- Provider-backed `/agestra idea` uses the host research consensus flow:
62
+ ## Step 2: Choose 조사 방식
63
+
64
+ Before provider fan-out, ask once which investigation topology to use unless the user already specified it:
65
+
66
+ | Option | Description |
67
+ |--------|-------------|
68
+ | **Host-native first (Recommended)** | The active host's native `agestra-research` agent prepares the first evidence packet, then providers challenge and debate it. Fastest and lowest-cost default. Record internally as `host-seeded`. |
69
+ | **Council Research** | Host and providers independently investigate assigned lenses before consolidation and debate. Stronger for broad/open-ended exploration. |
70
+ | **Provider-seeded Research** | One selected provider creates the first seed/evidence artifact, then host and other providers challenge it. |
71
+ | **Decide automatically** | Use Host-native first for bounded topics, Council for broad idea discovery, and Provider-seeded only when the user named a provider to lead. |
72
+
73
+ Use `AskUserQuestion` when available, or a plain numbered prompt as fallback. This is a cost/latency gate, not a domain clarification. If a host-level no-questions directive prevents asking, choose Host-native first (`host-seeded`) and report that broader provider investigation was skipped. If Provider-seeded Research is selected and the seed provider is not explicit, record the seed provider as pending; after provider availability is listed, ask which available provider should seed. Do not infer it.
74
+
75
+ Provider-backed `/agestra idea` uses the selected research topology flow:
63
76
 
64
77
  ```text
65
78
  호스트가 조사한다.
@@ -70,7 +83,7 @@ Provider-backed `/agestra idea` uses the host research consensus flow:
70
83
 
71
84
  External AI research and debate run in separate fresh sessions, even when the same provider participates in both phases. If the user explicitly wants to bypass research, route the work to the active host outside Agestra instead.
72
85
 
73
- ## Step 2: Route execution
86
+ ## Step 3: Route execution
74
87
 
75
88
  Call `environment_check` and `provider_list` to determine available providers.
76
89
 
@@ -88,17 +101,21 @@ Hand off to the `agestra:agestra-team-lead` agent with multi-AI mode **pre-selec
88
101
  - **Topic:** `$ARGUMENTS` or the user's clarified topic
89
102
  - **Interview answers:** the details collected above, including research notes, research assignments, and free notes
90
103
  - **Consensus domain:** `idea`
91
- - **Research notes:** what the host-led investigation should look for
104
+ - **Research topology / 조사 방식:** selected in Step 2 (`host-seeded`, `council`, `provider-seeded`, or `automatic`)
105
+ - **Host-native route:** for Host-native first (`host-seeded`), run active-host `agestra-research` before external provider fan-out; route any host debate participant to `agestra-debate` with `participant_routes`; do not substitute the current host's external CLI provider for this native role
106
+ - **Research notes:** what the selected investigation should look for
92
107
  - **Research assignments:** optional participant/lens rows for `research_assignments`
93
108
  - **Available providers:** from `environment_check`
94
109
  - **Requested providers:** explicit names captured from user wording; otherwise "all available"
95
110
  - **Locale:** from `setup_status`
96
111
  - **Target workspace root:** absolute project folder if the user supplied or implied one; pass it to workspace/debate MCP calls as `workspace_base_dir`
112
+ - **Progress contract:** surface concise phase updates every 30-60 seconds; poll `agent_debate_status`, `run_observable_events` with a cursor, or `cli_worker_status` when available; if trace is `cold-start`, report the current local phase and keep monitoring
97
113
  - **Original user request:** preserve verbatim
98
114
 
99
115
  Team-lead owns the rest:
100
116
  - Building the participant team from idea research lenses, explicit host-turn debate participants, and external providers. External providers are MCP/CLI/chat participants only.
101
- - Calling `agent_research_consensus_start` with `domain: "idea"`, the idea `objective`, `participants`, optional `research_assignments`, optional `provider_order`, bounded `max_rounds`, and output document flags.
117
+ - Resolving the selected research topology, then calling `agent_research_consensus_start` when investigation fan-out is required or `agent_consensus_start` with prepared `initial_aggregation.items` when seed/host evidence is already available.
118
+ - For research fan-out, pass `domain: "idea"` to `agent_research_consensus_start`.
102
119
  - Ensuring external AI research and debate use separate fresh sessions.
103
120
  - Never creating a bundled research pseudo-participant and never carrying research bundles through `source_documents`.
104
121
  - Writing the project-facing idea decision record under `docs/agestra/YYYY-MM-DD-idea-<session-id>-result.md` from the aggregation document, JSON artifacts, consensus state, and the user's interview answers. Preserve disputed positions and weak-evidence flags rather than averaging them away.
@@ -114,7 +131,7 @@ Writing the final project-facing idea decision record under `docs/agestra/` is a
114
131
 
115
132
  Direct execution bypasses team-lead's capability-based routing, optional trace-assisted signals, and consistency enforcement. Always go through team-lead in the provider-backed path.
116
133
 
117
- ## Step 3: Present to the user
134
+ ## Step 4: Present to the user
118
135
 
119
136
  When team-lead returns:
120
137
  - Name the debate document, consensus JSON ledger, and final synthesis document when the structured session is finalized
@@ -8,7 +8,7 @@ You are executing the `/agestra implement` command.
8
8
  **Task:** $ARGUMENTS
9
9
 
10
10
  Plain review/QA/check requests without `/agestra` or explicit multi-AI/provider wording stay with the current host; they are not Agestra natural-language auto-triggers.
11
- Agestra natural-language routing requires explicit multi-AI/provider wording such as "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
11
+ Agestra natural-language routing requires explicit Agestra/multi-AI/provider wording such as "Agestra", "아제스트라", "multiple AIs", "all AIs", "other AI", "multi-AI", "Codex and Gemini", "provider comparison", or "프로바이더 비교". Explicit `/agestra ...` commands remain supported.
12
12
 
13
13
  Host interaction fallback: when this workflow says `AskUserQuestion`, use a structured question UI if the current host exposes one. If it is unavailable (for example, in Codex), ask the same question plainly in chat, present the same options, and wait for the user's answer.
14
14
 
@@ -21,7 +21,7 @@ Before anything else, call `setup_status`. If it reports `Setup required: yes` o
21
21
 
22
22
  Agestra uses a single shared `providers.config.json` resolved through `AGESTRA_CONFIG_PATH` or `~/.agestra/providers.config.json` (existing legacy `$CLAUDE_PLUGIN_ROOT/providers.config.json` remains readable). No config -> no sanctioned provider set or locale -> interactive setup is the only correct starting point. Do not silently choose defaults or write config without the user's provider/language choices.
23
23
 
24
- Before any provider fan-out or `cli_worker_spawn`, run the shared workspace trust preflight for the exact current project root. If supported providers are blocked, ask once whether to register only this project folder, then call `provider_trust_apply_all` after approval.
24
+ Before any provider fan-out or `cli_worker_spawn`, run the shared workspace trust preflight for the exact current project root. If supported providers are blocked, ask once whether to register only this project folder. This is a security approval gate, not a clarifying question; "keep going" / no-questions instructions are not approval. After approval, call `provider_trust_apply` once per blocked provider. Use `provider_trust_apply_all` only when the host permission model explicitly allows batch trust changes. If approval cannot be obtained, skip blocked providers.
25
25
 
26
26
  ## Step 1: Determine implementation target
27
27
 
@@ -79,11 +79,11 @@ Determine QA depth for the post-implementation verification:
79
79
  Use `AskUserQuestion` when available, or a plain numbered prompt as fallback for long/costly Full QA or persistent E2E test-file approval. Treat Standard QA as the default only when the user has not requested Full QA/E2E and no high-risk runtime flow requires explicit confirmation.
80
80
 
81
81
  Determine QA routing separately from implementation routing:
82
- - When configured external providers are available, team-lead routes post-implementation QA through the QA Brigade.
82
+ - When configured external providers are available, team-lead may route post-implementation QA through the QA Brigade, but it should still avoid an extra external research phase unless the user explicitly asked for deep provider research.
83
83
  - If executable checks are required, the host owns command/browser/runtime evidence collection and providers review that evidence.
84
84
  - E2E/runtime execution is always host-owned. External providers may review the host QA report, command output, screenshots, traces, and E2E findings, but they must not run browser/dev-server flows or create persistent E2E files directly.
85
85
  - QA-only mode does not modify product code; connection or boundary defects are findings until the user approves a separate implementation task.
86
- - Provider-backed QA uses the host research consensus flow through `agent_research_consensus_start` with `domain: "qa"`:
86
+ - Provider-backed QA uses the fast host-prepared consensus path by default:
87
87
 
88
88
  ```text
89
89
  호스트가 조사한다.
@@ -92,7 +92,7 @@ Determine QA routing separately from implementation routing:
92
92
  호스트가 문서화한다.
93
93
  ```
94
94
 
95
- External AI research and debate run in separate fresh sessions, even when the same provider participates in both phases.
95
+ The host prepares executable QA evidence first, then providers cross-check prepared `initial_aggregation.items` through `agent_consensus_start`. Use `agent_research_consensus_start` for QA only when the user explicitly asks for deep external-provider research; in that exception, External AI research and debate run in separate fresh sessions, even when the same provider participates in both phases.
96
96
 
97
97
  ## Step 5: Execute via team-lead
98
98
 
@@ -113,9 +113,11 @@ Handoff packet:
113
113
  - **E2E/runtime execution:** host-owned only
114
114
  - **Available providers:** from `environment_check` / `provider_list`
115
115
  - **Requested providers:** explicit names captured from user wording; otherwise "all available"
116
+ - **Host-native route:** use `agestra-implementer`, `agestra-research`, and host-turn `agestra-debate` through the active host's native agent surface when they represent the host role; do not substitute the current host's external CLI provider for those native roles
116
117
  - **Locale:** from `setup_status`
117
118
  - **Target workspace root:** absolute project folder if the user supplied or implied one; pass it to workspace/debate MCP calls as `workspace_base_dir`
118
119
  - **Risk/Complexity classification:** from Step 3 dimensions
120
+ - **Progress contract:** surface concise phase updates every 30-60 seconds; poll `agent_debate_status`, `run_observable_events` with a cursor, or `cli_worker_status` when available; if trace is `cold-start`, report the current local phase and keep monitoring
119
121
  - **Original user request:** preserve verbatim
120
122
 
121
123
  Team-lead owns the rest:
@@ -145,5 +147,5 @@ When team-lead returns, surface:
145
147
  - QA verdict (PASS / CONDITIONAL PASS / FAIL with classified failures if any)
146
148
  - QA Brigade participants, assigned lenses, accepted ledger items, excluded ledger items, open/opinion items, consensus, and notable dissenting findings when multi-AI QA ran
147
149
  - Review report path under `docs/reports/review/` and review verdict (APPROVE / APPROVE WITH CONCERNS / BLOCKING CONCERNS) when review ran
148
- - Synthesis paths under `.agestra/workspace/synthesis/` if consensus ran
150
+ - Consensus ledger/progress paths under `.agestra/workspace/` if consensus ran, plus any human-facing `docs/agestra/*-aggregation.md` / `*-result.md` paths
149
151
  - Communicate in the user's language