@techwavedev/agi-agent-kit 1.1.7 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @techwavedev/agi-agent-kit might be problematic. Click here for more details.
- package/CHANGELOG.md +82 -1
- package/README.md +190 -12
- package/bin/init.js +30 -2
- package/package.json +6 -3
- package/templates/base/AGENTS.md +54 -23
- package/templates/base/README.md +325 -0
- package/templates/base/directives/memory_integration.md +95 -0
- package/templates/base/execution/memory_manager.py +309 -0
- package/templates/base/execution/session_boot.py +218 -0
- package/templates/base/execution/session_init.py +320 -0
- package/templates/base/skill-creator/SKILL_skillcreator.md +23 -36
- package/templates/base/skill-creator/scripts/init_skill.py +18 -135
- package/templates/skills/ec/README.md +31 -0
- package/templates/skills/ec/aws/SKILL.md +1020 -0
- package/templates/skills/ec/aws/defaults.yaml +13 -0
- package/templates/skills/ec/aws/references/common_patterns.md +80 -0
- package/templates/skills/ec/aws/references/mcp_servers.md +98 -0
- package/templates/skills/ec/aws-terraform/SKILL.md +349 -0
- package/templates/skills/ec/aws-terraform/references/best_practices.md +394 -0
- package/templates/skills/ec/aws-terraform/references/checkov_reference.md +337 -0
- package/templates/skills/ec/aws-terraform/scripts/configure_mcp.py +150 -0
- package/templates/skills/ec/confluent-kafka/SKILL.md +655 -0
- package/templates/skills/ec/confluent-kafka/references/ansible_playbooks.md +792 -0
- package/templates/skills/ec/confluent-kafka/references/ec_deployment.md +579 -0
- package/templates/skills/ec/confluent-kafka/references/kraft_migration.md +490 -0
- package/templates/skills/ec/confluent-kafka/references/troubleshooting.md +778 -0
- package/templates/skills/ec/confluent-kafka/references/upgrade_7x_to_8x.md +488 -0
- package/templates/skills/ec/confluent-kafka/scripts/kafka_health_check.py +435 -0
- package/templates/skills/ec/confluent-kafka/scripts/upgrade_preflight.py +568 -0
- package/templates/skills/ec/confluent-kafka/scripts/validate_config.py +455 -0
- package/templates/skills/ec/consul/SKILL.md +427 -0
- package/templates/skills/ec/consul/references/acl_setup.md +168 -0
- package/templates/skills/ec/consul/references/ha_config.md +196 -0
- package/templates/skills/ec/consul/references/troubleshooting.md +267 -0
- package/templates/skills/ec/consul/references/upgrades.md +213 -0
- package/templates/skills/ec/consul/scripts/consul_health_report.py +530 -0
- package/templates/skills/ec/consul/scripts/consul_status.py +264 -0
- package/templates/skills/ec/consul/scripts/generate_values.py +170 -0
- package/templates/skills/ec/documentation/SKILL.md +351 -0
- package/templates/skills/ec/documentation/references/best_practices.md +201 -0
- package/templates/skills/ec/documentation/scripts/analyze_code.py +307 -0
- package/templates/skills/ec/documentation/scripts/detect_changes.py +460 -0
- package/templates/skills/ec/documentation/scripts/generate_changelog.py +312 -0
- package/templates/skills/ec/documentation/scripts/sync_docs.py +272 -0
- package/templates/skills/ec/documentation/scripts/update_skill_docs.py +366 -0
- package/templates/skills/ec/gitlab/SKILL.md +529 -0
- package/templates/skills/ec/gitlab/references/agent_installation.md +416 -0
- package/templates/skills/ec/gitlab/references/api_reference.md +508 -0
- package/templates/skills/ec/gitlab/references/gitops_flux.md +465 -0
- package/templates/skills/ec/gitlab/references/troubleshooting.md +518 -0
- package/templates/skills/ec/gitlab/scripts/generate_agent_values.py +329 -0
- package/templates/skills/ec/gitlab/scripts/gitlab_agent_status.py +414 -0
- package/templates/skills/ec/jira/SKILL.md +484 -0
- package/templates/skills/ec/jira/references/jql_reference.md +148 -0
- package/templates/skills/ec/jira/scripts/add_comment.py +91 -0
- package/templates/skills/ec/jira/scripts/bulk_log_work.py +124 -0
- package/templates/skills/ec/jira/scripts/create_ticket.py +162 -0
- package/templates/skills/ec/jira/scripts/get_ticket.py +191 -0
- package/templates/skills/ec/jira/scripts/jira_client.py +383 -0
- package/templates/skills/ec/jira/scripts/log_work.py +154 -0
- package/templates/skills/ec/jira/scripts/search_tickets.py +104 -0
- package/templates/skills/ec/jira/scripts/update_comment.py +67 -0
- package/templates/skills/ec/jira/scripts/update_ticket.py +161 -0
- package/templates/skills/ec/karpenter/SKILL.md +301 -0
- package/templates/skills/ec/karpenter/references/ec2nodeclasses.md +421 -0
- package/templates/skills/ec/karpenter/references/migration.md +396 -0
- package/templates/skills/ec/karpenter/references/nodepools.md +400 -0
- package/templates/skills/ec/karpenter/references/troubleshooting.md +359 -0
- package/templates/skills/ec/karpenter/scripts/generate_ec2nodeclass.py +187 -0
- package/templates/skills/ec/karpenter/scripts/generate_nodepool.py +245 -0
- package/templates/skills/ec/karpenter/scripts/karpenter_status.py +359 -0
- package/templates/skills/ec/opensearch/SKILL.md +720 -0
- package/templates/skills/ec/opensearch/references/ml_neural_search.md +576 -0
- package/templates/skills/ec/opensearch/references/operator.md +532 -0
- package/templates/skills/ec/opensearch/references/query_dsl.md +532 -0
- package/templates/skills/ec/opensearch/scripts/configure_mcp.py +148 -0
- package/templates/skills/ec/victoriametrics/SKILL.md +598 -0
- package/templates/skills/ec/victoriametrics/references/kubernetes.md +531 -0
- package/templates/skills/ec/victoriametrics/references/prometheus_migration.md +333 -0
- package/templates/skills/ec/victoriametrics/references/troubleshooting.md +442 -0
- package/templates/skills/knowledge/SKILLS_CATALOG.md +274 -4
- package/templates/skills/knowledge/intelligent-routing/SKILL.md +237 -164
- package/templates/skills/knowledge/parallel-agents/SKILL.md +345 -73
- package/templates/skills/knowledge/plugin-discovery/SKILL.md +582 -0
- package/templates/skills/knowledge/plugin-discovery/scripts/platform_setup.py +1083 -0
- package/templates/skills/knowledge/design-md/README.md +0 -34
- package/templates/skills/knowledge/design-md/SKILL.md +0 -193
- package/templates/skills/knowledge/design-md/examples/DESIGN.md +0 -154
- package/templates/skills/knowledge/notebooklm-mcp/SKILL.md +0 -71
- package/templates/skills/knowledge/notebooklm-mcp/assets/example_asset.txt +0 -24
- package/templates/skills/knowledge/notebooklm-mcp/references/api_reference.md +0 -34
- package/templates/skills/knowledge/notebooklm-mcp/scripts/example.py +0 -19
- package/templates/skills/knowledge/react-components/README.md +0 -36
- package/templates/skills/knowledge/react-components/SKILL.md +0 -53
- package/templates/skills/knowledge/react-components/examples/gold-standard-card.tsx +0 -80
- package/templates/skills/knowledge/react-components/package-lock.json +0 -231
- package/templates/skills/knowledge/react-components/package.json +0 -16
- package/templates/skills/knowledge/react-components/resources/architecture-checklist.md +0 -15
- package/templates/skills/knowledge/react-components/resources/component-template.tsx +0 -37
- package/templates/skills/knowledge/react-components/resources/stitch-api-reference.md +0 -14
- package/templates/skills/knowledge/react-components/resources/style-guide.json +0 -27
- package/templates/skills/knowledge/react-components/scripts/fetch-stitch.sh +0 -30
- package/templates/skills/knowledge/react-components/scripts/validate.js +0 -68
- package/templates/skills/knowledge/self-update/SKILL.md +0 -60
- package/templates/skills/knowledge/self-update/scripts/update_kit.py +0 -103
- package/templates/skills/knowledge/stitch-loop/README.md +0 -54
- package/templates/skills/knowledge/stitch-loop/SKILL.md +0 -235
- package/templates/skills/knowledge/stitch-loop/examples/SITE.md +0 -73
- package/templates/skills/knowledge/stitch-loop/examples/next-prompt.md +0 -25
- package/templates/skills/knowledge/stitch-loop/resources/baton-schema.md +0 -61
- package/templates/skills/knowledge/stitch-loop/resources/site-template.md +0 -104
|
@@ -1,64 +1,330 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: parallel-agents
|
|
3
|
-
description:
|
|
4
|
-
|
|
3
|
+
description: Platform-adaptive multi-agent orchestration. Uses Claude Code Agent Teams when available, subagents as fallback, and sequential persona switching on other platforms. Use when multiple independent tasks can run with different domain expertise or when comprehensive analysis requires multiple perspectives.
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# Multi-Agent Orchestration
|
|
8
8
|
|
|
9
|
-
>
|
|
9
|
+
> Platform-adaptive parallel agent coordination
|
|
10
10
|
|
|
11
11
|
## Overview
|
|
12
12
|
|
|
13
|
-
This skill enables coordinating multiple specialized agents
|
|
13
|
+
This skill enables coordinating multiple specialized agents across different AI platforms. It automatically detects the runtime environment and selects the best orchestration strategy:
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
| Platform | Strategy | Parallelism | Mechanism |
|
|
16
|
+
| ------------------------------------- | ------------------- | ------------------- | ------------------------------ |
|
|
17
|
+
| **Claude Code** (with Agent Teams) | Native Agent Teams | ✅ True parallel | tmux/in-process sessions |
|
|
18
|
+
| **Claude Code** (without Agent Teams) | Subagents | ✅ Background tasks | `Task()` tool, `context: fork` |
|
|
19
|
+
| **Kiro IDE** | Autonomous Agent | ✅ Async parallel | Sandbox environments, PRs |
|
|
20
|
+
| **Gemini / Antigravity** | Sequential Personas | ❌ Sequential | Persona switching via `@agent` |
|
|
21
|
+
| **Opencode / Other** | Sequential Personas | ❌ Sequential | Persona switching via `@agent` |
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Platform Detection
|
|
26
|
+
|
|
27
|
+
Before orchestrating, detect the current platform:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
IF environment has CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
|
|
31
|
+
→ Use Agent Teams (Strategy A)
|
|
32
|
+
ELSE IF environment is Claude Code (has Task tool, /agents command)
|
|
33
|
+
→ Use Subagents (Strategy B)
|
|
34
|
+
ELSE IF environment is Kiro IDE (.kiro/, POWER.md, autonomous agent available)
|
|
35
|
+
→ Use Autonomous Agent (Strategy D)
|
|
36
|
+
ELSE
|
|
37
|
+
→ Use Sequential Personas (Strategy C)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
> **Important**: Always announce which strategy is being used so the user knows what to expect.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Strategy A: Claude Code Agent Teams (Preferred)
|
|
45
|
+
|
|
46
|
+
> **Requires**: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` in settings or environment.
|
|
47
|
+
|
|
48
|
+
Agent Teams spawn **true parallel Claude Code sessions** as teammates. Each teammate runs in its own context with full tool access.
|
|
49
|
+
|
|
50
|
+
### Enabling Agent Teams
|
|
51
|
+
|
|
52
|
+
Users must enable via `settings.json` or environment:
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{ "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### How to Orchestrate with Agent Teams
|
|
59
|
+
|
|
60
|
+
**The lead agent (you) acts as Team Leader.** When a complex multi-domain task is detected:
|
|
61
|
+
|
|
62
|
+
1. **Analyze** the task and identify independent work streams
|
|
63
|
+
2. **Spawn teammates** with clear, self-contained prompts
|
|
64
|
+
3. **Assign tasks** to each teammate
|
|
65
|
+
4. **Monitor** progress and steer if needed
|
|
66
|
+
5. **Synthesize** results when teammates complete
|
|
67
|
+
|
|
68
|
+
#### Spawn a Team
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
Create an agent team with 3 teammates:
|
|
72
|
+
- "security-reviewer": Review the auth module at src/auth/ for security vulnerabilities. Focus on token handling and session management.
|
|
73
|
+
- "api-specialist": Analyze the API layer at src/api/ for best practices, error handling, and performance.
|
|
74
|
+
- "test-engineer": Identify test gaps across the project, focus on untested edge cases.
|
|
75
|
+
|
|
76
|
+
Use Sonnet for each teammate.
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
#### Team Display Modes
|
|
80
|
+
|
|
81
|
+
| Mode | How | Best For |
|
|
82
|
+
| --------------- | ---------------------------------------------- | ----------------- |
|
|
83
|
+
| **In-process** | All in one terminal. `Shift+Up/Down` to switch | Simple setups |
|
|
84
|
+
| **Split panes** | Each gets own tmux/iTerm2 pane | Visual monitoring |
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{ "teammateMode": "in-process" }
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### Team Communication
|
|
91
|
+
|
|
92
|
+
- **Message teammate**: Tell the lead to message a specific teammate
|
|
93
|
+
- **Broadcast**: Send to all teammates (use sparingly — costs scale)
|
|
94
|
+
- **Task list**: Shared task board visible to all agents (`Ctrl+T`)
|
|
95
|
+
- **Idle notifications**: Teammates auto-notify lead when done
|
|
96
|
+
|
|
97
|
+
#### Quality Gates via Hooks
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{
|
|
101
|
+
"hooks": {
|
|
102
|
+
"TeammateIdle": [
|
|
103
|
+
{ "command": "npm test", "description": "Run tests before idle" }
|
|
104
|
+
],
|
|
105
|
+
"TaskCompleted": [
|
|
106
|
+
{ "command": "./scripts/lint.sh", "description": "Lint on completion" }
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
#### Cleanup
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
Clean up the team
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Agent Teams Best Practices
|
|
119
|
+
|
|
120
|
+
1. **Give enough context** — teammates don't share the lead's full conversation
|
|
121
|
+
2. **Size tasks well** — not too small (overhead), not too large (risk)
|
|
122
|
+
3. **Avoid file conflicts** — assign non-overlapping file sets to each teammate
|
|
123
|
+
4. **Wait before synthesizing** — let all teammates finish before combining results
|
|
124
|
+
5. **Start with research** — use research/review tasks before implementation tasks
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Strategy B: Claude Code Subagents (Fallback on Claude Code)
|
|
129
|
+
|
|
130
|
+
> When Agent Teams aren't enabled on Claude Code, use **subagents** for parallel work.
|
|
131
|
+
|
|
132
|
+
Subagents are isolated Claude Code sessions spawned via the `Task` tool. They can run in **foreground** (blocking) or **background** (concurrent).
|
|
133
|
+
|
|
134
|
+
### Built-in Subagents
|
|
135
|
+
|
|
136
|
+
| Agent | Model | Purpose |
|
|
137
|
+
| ------------------- | -------- | ------------------------------ |
|
|
138
|
+
| **Explore** | Haiku | Fast read-only codebase search |
|
|
139
|
+
| **Plan** | Inherits | Research during plan mode |
|
|
140
|
+
| **General-purpose** | Inherits | Complex multi-step operations |
|
|
141
|
+
|
|
142
|
+
### Custom Subagents
|
|
143
|
+
|
|
144
|
+
Define in `.claude/agents/` or `~/.claude/agents/`:
|
|
145
|
+
|
|
146
|
+
```markdown
|
|
147
|
+
---
|
|
148
|
+
name: security-reviewer
|
|
149
|
+
description: Reviews code for security vulnerabilities
|
|
150
|
+
tools: Read, Grep, Glob, Bash
|
|
151
|
+
model: sonnet
|
|
152
|
+
permissionMode: acceptEdits
|
|
153
|
+
skills:
|
|
154
|
+
- vulnerability-scanner
|
|
155
|
+
memory: project
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
You are a security reviewer. Analyze code for vulnerabilities, focusing on:
|
|
159
|
+
|
|
160
|
+
- Authentication and authorization flaws
|
|
161
|
+
- Input validation issues
|
|
162
|
+
- Secret exposure risks
|
|
163
|
+
- Dependency vulnerabilities
|
|
164
|
+
|
|
165
|
+
Report with severity ratings. Check your memory for patterns seen before.
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Subagent Frontmatter Reference
|
|
169
|
+
|
|
170
|
+
| Field | Purpose | Values |
|
|
171
|
+
| ----------------- | ------------------- | ---------------------------------------------------------------------------- |
|
|
172
|
+
| `name` | Identifier | Any string |
|
|
173
|
+
| `description` | When to invoke | Auto-delegation hint |
|
|
174
|
+
| `tools` | Allowed tools | `Read`, `Grep`, `Glob`, `Bash`, `Write`, `Edit`, `Task(agent)` |
|
|
175
|
+
| `disallowedTools` | Blocked tools | Same as above |
|
|
176
|
+
| `model` | AI model | `sonnet`, `opus`, `haiku`, `inherit` |
|
|
177
|
+
| `permissionMode` | Permission handling | `default`, `acceptEdits`, `dontAsk`, `delegate`, `bypassPermissions`, `plan` |
|
|
178
|
+
| `skills` | Preloaded skills | List of skill names |
|
|
179
|
+
| `mcpServers` | MCP servers | Server names from config |
|
|
180
|
+
| `hooks` | Lifecycle hooks | Hook definitions |
|
|
181
|
+
| `memory` | Persistent memory | `user`, `project`, `local` |
|
|
182
|
+
| `maxTurns` | Turn limit | Number |
|
|
183
|
+
|
|
184
|
+
### Invoking Subagents
|
|
185
|
+
|
|
186
|
+
**Foreground** (blocking):
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
Use the security-reviewer subagent to audit the authentication module
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
**Background** (concurrent):
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
Run the security-reviewer subagent in the background to audit auth while I continue working
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**Parallel research**:
|
|
22
199
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
200
|
+
```
|
|
201
|
+
Research the authentication, database, and API modules in parallel using separate subagents
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**Chaining**:
|
|
27
205
|
|
|
206
|
+
```
|
|
207
|
+
Use the code-reviewer subagent to find issues, then use the optimizer subagent to fix them
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Restricting Subagent Spawning
|
|
211
|
+
|
|
212
|
+
A coordinator can restrict which subagents it spawns:
|
|
213
|
+
|
|
214
|
+
```markdown
|
|
28
215
|
---
|
|
216
|
+
name: coordinator
|
|
217
|
+
description: Coordinates work across specialized agents
|
|
218
|
+
tools: Task(worker, researcher), Read, Bash
|
|
219
|
+
---
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
This coordinator can only spawn `worker` and `researcher` subagents.
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Strategy C: Sequential Personas (Universal Fallback)
|
|
227
|
+
|
|
228
|
+
> For Gemini, Opencode, and other platforms without native agent parallelism.
|
|
229
|
+
|
|
230
|
+
### How It Works
|
|
29
231
|
|
|
30
|
-
|
|
232
|
+
The AI adopts different specialist personas sequentially, passing context between phases:
|
|
233
|
+
|
|
234
|
+
```
|
|
235
|
+
🤖 Applying knowledge of @security-auditor...
|
|
236
|
+
[Security analysis]
|
|
237
|
+
|
|
238
|
+
🤖 Applying knowledge of @backend-specialist...
|
|
239
|
+
[API analysis, informed by security findings]
|
|
240
|
+
|
|
241
|
+
🤖 Applying knowledge of @test-engineer...
|
|
242
|
+
[Test gap analysis, informed by both previous analyses]
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Native Agent Invocation
|
|
246
|
+
|
|
247
|
+
**Single Agent:**
|
|
31
248
|
|
|
32
|
-
### Single Agent
|
|
33
249
|
```
|
|
34
250
|
Use the security-auditor agent to review authentication
|
|
35
251
|
```
|
|
36
252
|
|
|
37
|
-
|
|
253
|
+
**Sequential Chain:**
|
|
254
|
+
|
|
38
255
|
```
|
|
39
256
|
First, use the explorer-agent to discover project structure.
|
|
40
257
|
Then, use the backend-specialist to review API endpoints.
|
|
41
258
|
Finally, use the test-engineer to identify test gaps.
|
|
42
259
|
```
|
|
43
260
|
|
|
44
|
-
|
|
261
|
+
**With Context Passing:**
|
|
262
|
+
|
|
45
263
|
```
|
|
46
264
|
Use the frontend-specialist to analyze React components.
|
|
47
265
|
Based on those findings, have the test-engineer generate component tests.
|
|
48
266
|
```
|
|
49
267
|
|
|
50
|
-
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## Strategy D: Kiro Autonomous Agent (On Kiro IDE)
|
|
271
|
+
|
|
272
|
+
> Kiro's Autonomous Agent provides async parallel task execution in sandboxed environments — the team-level equivalent of Claude Code's Agent Teams, but asynchronous and PR-based.
|
|
273
|
+
|
|
274
|
+
### How It Works
|
|
275
|
+
|
|
276
|
+
Unlike Claude Code Agent Teams (which are real-time interactive sessions), Kiro's Autonomous Agent:
|
|
277
|
+
|
|
278
|
+
- **Runs tasks in isolated sandbox environments** — full dev setup, no local impact
|
|
279
|
+
- **Opens pull requests** for each completed task — you review asynchronously
|
|
280
|
+
- **Maintains context** across tasks, repos, and PRs
|
|
281
|
+
- **Learns from your code reviews** — adapts to team patterns over time
|
|
282
|
+
- **Works across multiple repos** — coordinates related changes into linked PRs
|
|
283
|
+
|
|
284
|
+
### When to Use
|
|
285
|
+
|
|
286
|
+
✅ **Best for:**
|
|
287
|
+
|
|
288
|
+
- Async workflows where multiple tasks can run overnight or during focus time
|
|
289
|
+
- Cross-repo changes (e.g., update API contract + client SDK + documentation)
|
|
290
|
+
- Routine fixes, follow-ups, and status updates
|
|
291
|
+
- Tasks that benefit from sandboxed execution (no risk to local environment)
|
|
292
|
+
|
|
293
|
+
❌ **Not ideal for:**
|
|
294
|
+
|
|
295
|
+
- Real-time interactive collaboration (use Agent Teams on Claude Code instead)
|
|
296
|
+
- Quick single-file fixes (use direct agent invocation)
|
|
297
|
+
|
|
298
|
+
### Example: Multi-Task Delegation
|
|
299
|
+
|
|
51
300
|
```
|
|
52
|
-
|
|
301
|
+
Create a Kiro task:
|
|
302
|
+
- "Refactor authentication module to use JWT refresh tokens"
|
|
303
|
+
- Repository: backend-api
|
|
304
|
+
- Let Kiro plan the implementation, execute in sandbox, and open a PR
|
|
305
|
+
|
|
306
|
+
Create another Kiro task:
|
|
307
|
+
- "Update the React login flow to handle JWT refresh"
|
|
308
|
+
- Repository: frontend-app
|
|
309
|
+
- Reference the backend PR for API contract changes
|
|
53
310
|
```
|
|
54
311
|
|
|
312
|
+
Both tasks run in parallel in isolated environments. When complete, you get two linked PRs to review.
|
|
313
|
+
|
|
314
|
+
### Integration with Kiro Powers
|
|
315
|
+
|
|
316
|
+
The Autonomous Agent automatically uses installed Powers for expertise. If the Supabase Power is installed and the task involves database changes, the agent activates the Supabase Power for best-practice guidance.
|
|
317
|
+
|
|
55
318
|
---
|
|
56
319
|
|
|
57
|
-
## Orchestration Patterns
|
|
320
|
+
## Orchestration Patterns (Platform-Independent)
|
|
321
|
+
|
|
322
|
+
These patterns work across all strategies. The platform dictates whether they run in parallel or sequentially.
|
|
58
323
|
|
|
59
324
|
### Pattern 1: Comprehensive Analysis
|
|
325
|
+
|
|
60
326
|
```
|
|
61
|
-
Agents: explorer
|
|
327
|
+
Agents: explorer → [domain-agents] → synthesis
|
|
62
328
|
|
|
63
329
|
1. explorer-agent: Map codebase structure
|
|
64
330
|
2. security-auditor: Security posture
|
|
@@ -68,7 +334,13 @@ Agents: explorer-agent → [domain-agents] → synthesis
|
|
|
68
334
|
6. Synthesize all findings
|
|
69
335
|
```
|
|
70
336
|
|
|
337
|
+
**On Claude Code Agent Teams**: Steps 2-5 run as parallel teammates
|
|
338
|
+
**On Claude Code Subagents**: Steps 2-5 run as background subagents
|
|
339
|
+
**On Kiro IDE**: Steps 2-5 dispatched as autonomous agent tasks (async, PR-based)
|
|
340
|
+
**On Other Platforms**: Steps 1-5 run sequentially with context passing
|
|
341
|
+
|
|
71
342
|
### Pattern 2: Feature Review
|
|
343
|
+
|
|
72
344
|
```
|
|
73
345
|
Agents: affected-domain-agents → test-engineer
|
|
74
346
|
|
|
@@ -79,6 +351,7 @@ Agents: affected-domain-agents → test-engineer
|
|
|
79
351
|
```
|
|
80
352
|
|
|
81
353
|
### Pattern 3: Security Audit
|
|
354
|
+
|
|
82
355
|
```
|
|
83
356
|
Agents: security-auditor → penetration-tester → synthesis
|
|
84
357
|
|
|
@@ -87,68 +360,75 @@ Agents: security-auditor → penetration-tester → synthesis
|
|
|
87
360
|
3. Synthesize with prioritized remediation
|
|
88
361
|
```
|
|
89
362
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
## Available Agents
|
|
363
|
+
### Pattern 4: Cross-Layer Feature Implementation
|
|
93
364
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
| `orchestrator` | Coordination | "comprehensive", "multi-perspective" |
|
|
97
|
-
| `security-auditor` | Security | "security", "auth", "vulnerabilities" |
|
|
98
|
-
| `penetration-tester` | Security Testing | "pentest", "red team", "exploit" |
|
|
99
|
-
| `backend-specialist` | Backend | "API", "server", "Node.js", "Express" |
|
|
100
|
-
| `frontend-specialist` | Frontend | "React", "UI", "components", "Next.js" |
|
|
101
|
-
| `test-engineer` | Testing | "tests", "coverage", "TDD" |
|
|
102
|
-
| `devops-engineer` | DevOps | "deploy", "CI/CD", "infrastructure" |
|
|
103
|
-
| `database-architect` | Database | "schema", "Prisma", "migrations" |
|
|
104
|
-
| `mobile-developer` | Mobile | "React Native", "Flutter", "mobile" |
|
|
105
|
-
| `api-designer` | API Design | "REST", "GraphQL", "OpenAPI" |
|
|
106
|
-
| `debugger` | Debugging | "bug", "error", "not working" |
|
|
107
|
-
| `explorer-agent` | Discovery | "explore", "map", "structure" |
|
|
108
|
-
| `documentation-writer` | Documentation | "write docs", "create README", "generate API docs" |
|
|
109
|
-
| `performance-optimizer` | Performance | "slow", "optimize", "profiling" |
|
|
110
|
-
| `project-planner` | Planning | "plan", "roadmap", "milestones" |
|
|
111
|
-
| `seo-specialist` | SEO | "SEO", "meta tags", "search ranking" |
|
|
112
|
-
| `game-developer` | Game Development | "game", "Unity", "Godot", "Phaser" |
|
|
365
|
+
```
|
|
366
|
+
Agents: database-architect → backend-specialist → frontend-specialist → test-engineer
|
|
113
367
|
|
|
114
|
-
|
|
368
|
+
1. database-architect: Schema changes
|
|
369
|
+
2. backend-specialist: API endpoints
|
|
370
|
+
3. frontend-specialist: UI components
|
|
371
|
+
4. test-engineer: Full-stack tests
|
|
372
|
+
```
|
|
115
373
|
|
|
116
|
-
|
|
374
|
+
**On Agent Teams**: Split into backend teammate + frontend teammate + test teammate
|
|
117
375
|
|
|
118
|
-
|
|
376
|
+
---
|
|
119
377
|
|
|
120
|
-
|
|
121
|
-
|-------|-------|---------|
|
|
122
|
-
| **Explore** | Haiku | Fast read-only codebase search |
|
|
123
|
-
| **Plan** | Sonnet | Research during plan mode |
|
|
124
|
-
| **General-purpose** | Sonnet | Complex multi-step modifications |
|
|
378
|
+
## Available Agents
|
|
125
379
|
|
|
126
|
-
|
|
380
|
+
| Agent | Expertise | Trigger Phrases |
|
|
381
|
+
| ----------------------- | ---------------- | -------------------------------------- |
|
|
382
|
+
| `orchestrator` | Coordination | "comprehensive", "multi-perspective" |
|
|
383
|
+
| `security-auditor` | Security | "security", "auth", "vulnerabilities" |
|
|
384
|
+
| `penetration-tester` | Security Testing | "pentest", "red team", "exploit" |
|
|
385
|
+
| `backend-specialist` | Backend | "API", "server", "Node.js", "Express" |
|
|
386
|
+
| `frontend-specialist` | Frontend | "React", "UI", "components", "Next.js" |
|
|
387
|
+
| `test-engineer` | Testing | "tests", "coverage", "TDD" |
|
|
388
|
+
| `devops-engineer` | DevOps | "deploy", "CI/CD", "infrastructure" |
|
|
389
|
+
| `database-architect` | Database | "schema", "Prisma", "migrations" |
|
|
390
|
+
| `mobile-developer` | Mobile | "React Native", "Flutter", "mobile" |
|
|
391
|
+
| `api-designer` | API Design | "REST", "GraphQL", "OpenAPI" |
|
|
392
|
+
| `debugger` | Debugging | "bug", "error", "not working" |
|
|
393
|
+
| `explorer-agent` | Discovery | "explore", "map", "structure" |
|
|
394
|
+
| `documentation-writer` | Documentation | "write docs", "create README" |
|
|
395
|
+
| `performance-optimizer` | Performance | "slow", "optimize", "profiling" |
|
|
396
|
+
| `project-planner` | Planning | "plan", "roadmap", "milestones" |
|
|
397
|
+
| `seo-specialist` | SEO | "SEO", "meta tags", "search ranking" |
|
|
398
|
+
| `game-developer` | Game Development | "game", "Unity", "Godot", "Phaser" |
|
|
127
399
|
|
|
128
400
|
---
|
|
129
401
|
|
|
130
402
|
## Synthesis Protocol
|
|
131
403
|
|
|
132
|
-
After all agents complete, synthesize:
|
|
404
|
+
After all agents/teammates complete, synthesize:
|
|
133
405
|
|
|
134
406
|
```markdown
|
|
135
407
|
## Orchestration Synthesis
|
|
136
408
|
|
|
137
409
|
### Task Summary
|
|
410
|
+
|
|
138
411
|
[What was accomplished]
|
|
139
412
|
|
|
413
|
+
### Strategy Used
|
|
414
|
+
|
|
415
|
+
[Agent Teams / Subagents / Sequential — and why]
|
|
416
|
+
|
|
140
417
|
### Agent Contributions
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
|
418
|
+
|
|
419
|
+
| Agent | Finding |
|
|
420
|
+
| ------------------ | ------------ |
|
|
421
|
+
| security-auditor | Found X |
|
|
144
422
|
| backend-specialist | Identified Y |
|
|
145
423
|
|
|
146
424
|
### Consolidated Recommendations
|
|
425
|
+
|
|
147
426
|
1. **Critical**: [Issue from Agent A]
|
|
148
427
|
2. **Important**: [Issue from Agent B]
|
|
149
428
|
3. **Nice-to-have**: [Enhancement from Agent C]
|
|
150
429
|
|
|
151
430
|
### Action Items
|
|
431
|
+
|
|
152
432
|
- [ ] Fix critical security issue
|
|
153
433
|
- [ ] Refactor API endpoint
|
|
154
434
|
- [ ] Add missing tests
|
|
@@ -158,18 +438,10 @@ After all agents complete, synthesize:
|
|
|
158
438
|
|
|
159
439
|
## Best Practices
|
|
160
440
|
|
|
161
|
-
1. **
|
|
162
|
-
2. **
|
|
163
|
-
3. **
|
|
164
|
-
4. **
|
|
165
|
-
5. **
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
## Key Benefits
|
|
170
|
-
|
|
171
|
-
- ✅ **Single session** - All agents share context
|
|
172
|
-
- ✅ **AI-controlled** - Claude orchestrates autonomously
|
|
173
|
-
- ✅ **Native integration** - Works with built-in Explore, Plan agents
|
|
174
|
-
- ✅ **Resume support** - Can continue previous agent work
|
|
175
|
-
- ✅ **Context passing** - Findings flow between agents
|
|
441
|
+
1. **Platform-first** — Always use the highest-capability strategy available
|
|
442
|
+
2. **Announce strategy** — Tell the user which orchestration mode is being used
|
|
443
|
+
3. **Logical order** — Discovery → Analysis → Implementation → Testing
|
|
444
|
+
4. **Share context** — Pass relevant findings between agents/teammates
|
|
445
|
+
5. **Single synthesis** — One unified report, not separate outputs
|
|
446
|
+
6. **Verify changes** — Always include test-engineer for code modifications
|
|
447
|
+
7. **Avoid file conflicts** — Assign non-overlapping file scopes to parallel agents
|