kiro-agent-team 1.0.0

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.
Files changed (155) hide show
  1. package/.kiro/README.md +228 -0
  2. package/.kiro/agents/backend-engineer.json +6 -0
  3. package/.kiro/agents/backend-engineer.md +643 -0
  4. package/.kiro/agents/database-specialist.json +6 -0
  5. package/.kiro/agents/database-specialist.md +390 -0
  6. package/.kiro/agents/development-logger.json +6 -0
  7. package/.kiro/agents/development-logger.md +265 -0
  8. package/.kiro/agents/devops-engineer.json +6 -0
  9. package/.kiro/agents/devops-engineer.md +287 -0
  10. package/.kiro/agents/frontend-architect.json +6 -0
  11. package/.kiro/agents/frontend-architect.md +1032 -0
  12. package/.kiro/agents/hooks/backend-engineer-hooks.yaml +540 -0
  13. package/.kiro/agents/hooks/database-specialist-hooks.yaml +488 -0
  14. package/.kiro/agents/hooks/development-logger-hooks.yaml +361 -0
  15. package/.kiro/agents/hooks/devops-engineer-hooks.yaml +345 -0
  16. package/.kiro/agents/hooks/frontend-architect-hooks.yaml +521 -0
  17. package/.kiro/agents/hooks/project-manager-hooks.yaml +513 -0
  18. package/.kiro/agents/hooks/security-specialist-hooks.yaml +358 -0
  19. package/.kiro/agents/hooks/test-orchestrator-hooks.yaml +380 -0
  20. package/.kiro/agents/hooks/ui-ux-designer-hooks.yaml +353 -0
  21. package/.kiro/agents/project-manager.json +6 -0
  22. package/.kiro/agents/project-manager.md +344 -0
  23. package/.kiro/agents/prompts/backend-engineer-system.md +815 -0
  24. package/.kiro/agents/prompts/database-specialist-system.md +332 -0
  25. package/.kiro/agents/prompts/development-logger-system.md +232 -0
  26. package/.kiro/agents/prompts/devops-engineer-system.md +260 -0
  27. package/.kiro/agents/prompts/frontend-architect-system.md +305 -0
  28. package/.kiro/agents/prompts/project-manager-system.md +285 -0
  29. package/.kiro/agents/prompts/security-specialist-system.md +231 -0
  30. package/.kiro/agents/prompts/test-orchestrator-system.md +214 -0
  31. package/.kiro/agents/prompts/ui-ux-designer-system.md +270 -0
  32. package/.kiro/agents/security-specialist.json +6 -0
  33. package/.kiro/agents/security-specialist.md +277 -0
  34. package/.kiro/agents/test-orchestrator.json +6 -0
  35. package/.kiro/agents/test-orchestrator.md +266 -0
  36. package/.kiro/agents/ui-ux-designer.json +6 -0
  37. package/.kiro/agents/ui-ux-designer.md +284 -0
  38. package/.kiro/devlog/00-START-HERE.md +444 -0
  39. package/.kiro/devlog/COMPLETE-WORKFLOW.md +553 -0
  40. package/.kiro/devlog/DEVLOG-INTEGRATION.md +413 -0
  41. package/.kiro/devlog/DEVLOG-PROCESS-FLOWS.md +484 -0
  42. package/.kiro/devlog/DEVLOG-QUICK-REF.md +299 -0
  43. package/.kiro/devlog/DEVLOG.md +22 -0
  44. package/.kiro/devlog/IMPLEMENTATION-COMPLETE.txt +434 -0
  45. package/.kiro/devlog/IMPLEMENTATION-SUMMARY.md +358 -0
  46. package/.kiro/devlog/README.md +363 -0
  47. package/.kiro/devlog/devlog-update.bat +136 -0
  48. package/.kiro/devlog/devlog-update.sh +275 -0
  49. package/.kiro/devlog/feature-completion-hook.bat +78 -0
  50. package/.kiro/devlog/feature-completion-hook.sh +84 -0
  51. package/.kiro/documentation/cli.md +31 -0
  52. package/.kiro/documentation/docs_cli.md +41 -0
  53. package/.kiro/documentation/docs_cli_authentication.md +43 -0
  54. package/.kiro/documentation/docs_cli_autocomplete.md +132 -0
  55. package/.kiro/documentation/docs_cli_billing.md +31 -0
  56. package/.kiro/documentation/docs_cli_billing_contact-support.md +43 -0
  57. package/.kiro/documentation/docs_cli_billing_managing-taxes.md +67 -0
  58. package/.kiro/documentation/docs_cli_billing_related-questions.md +49 -0
  59. package/.kiro/documentation/docs_cli_billing_subscription-portal.md +31 -0
  60. package/.kiro/documentation/docs_cli_chat.md +84 -0
  61. package/.kiro/documentation/docs_cli_chat_configuration.md +40 -0
  62. package/.kiro/documentation/docs_cli_chat_context.md +258 -0
  63. package/.kiro/documentation/docs_cli_chat_git-aware-selection.md +41 -0
  64. package/.kiro/documentation/docs_cli_chat_images.md +53 -0
  65. package/.kiro/documentation/docs_cli_chat_manage-prompts.md +216 -0
  66. package/.kiro/documentation/docs_cli_chat_model-selection.md +153 -0
  67. package/.kiro/documentation/docs_cli_chat_permissions.md +68 -0
  68. package/.kiro/documentation/docs_cli_chat_planning-agent.md +230 -0
  69. package/.kiro/documentation/docs_cli_chat_responding.md +123 -0
  70. package/.kiro/documentation/docs_cli_chat_security.md +87 -0
  71. package/.kiro/documentation/docs_cli_chat_subagents.md +77 -0
  72. package/.kiro/documentation/docs_cli_code-intelligence.md +251 -0
  73. package/.kiro/documentation/docs_cli_custom-agents.md +37 -0
  74. package/.kiro/documentation/docs_cli_custom-agents_configuration-reference.md +941 -0
  75. package/.kiro/documentation/docs_cli_custom-agents_creating.md +93 -0
  76. package/.kiro/documentation/docs_cli_custom-agents_examples.md +360 -0
  77. package/.kiro/documentation/docs_cli_custom-agents_troubleshooting.md +180 -0
  78. package/.kiro/documentation/docs_cli_enterprise_billing.md +33 -0
  79. package/.kiro/documentation/docs_cli_enterprise_concepts.md +34 -0
  80. package/.kiro/documentation/docs_cli_enterprise_getting-started.md +19 -0
  81. package/.kiro/documentation/docs_cli_enterprise_iam.md +251 -0
  82. package/.kiro/documentation/docs_cli_enterprise_monitor-and-track.md +15 -0
  83. package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_dashboard.md +62 -0
  84. package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_prompt-logging.md +165 -0
  85. package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_user-activity.md +123 -0
  86. package/.kiro/documentation/docs_cli_enterprise_settings.md +15 -0
  87. package/.kiro/documentation/docs_cli_enterprise_subscribe.md +36 -0
  88. package/.kiro/documentation/docs_cli_enterprise_subscription-management.md +55 -0
  89. package/.kiro/documentation/docs_cli_enterprise_supported-regions.md +39 -0
  90. package/.kiro/documentation/docs_cli_experimental.md +282 -0
  91. package/.kiro/documentation/docs_cli_experimental_checkpointing.md +439 -0
  92. package/.kiro/documentation/docs_cli_experimental_delegate.md +422 -0
  93. package/.kiro/documentation/docs_cli_experimental_knowledge-management.md +449 -0
  94. package/.kiro/documentation/docs_cli_experimental_tangent-mode.md +357 -0
  95. package/.kiro/documentation/docs_cli_experimental_thinking.md +331 -0
  96. package/.kiro/documentation/docs_cli_experimental_todo-lists.md +385 -0
  97. package/.kiro/documentation/docs_cli_hooks.md +207 -0
  98. package/.kiro/documentation/docs_cli_installation.md +235 -0
  99. package/.kiro/documentation/docs_cli_mcp.md +106 -0
  100. package/.kiro/documentation/docs_cli_mcp_configuration.md +294 -0
  101. package/.kiro/documentation/docs_cli_mcp_examples.md +273 -0
  102. package/.kiro/documentation/docs_cli_mcp_governance.md +436 -0
  103. package/.kiro/documentation/docs_cli_mcp_security.md +77 -0
  104. package/.kiro/documentation/docs_cli_migrating-from-q.md +129 -0
  105. package/.kiro/documentation/docs_cli_privacy-and-security.md +83 -0
  106. package/.kiro/documentation/docs_cli_privacy-and-security_compliance-validation.md +17 -0
  107. package/.kiro/documentation/docs_cli_privacy-and-security_data-protection.md +104 -0
  108. package/.kiro/documentation/docs_cli_privacy-and-security_firewalls.md +26 -0
  109. package/.kiro/documentation/docs_cli_privacy-and-security_infrastructure-security.md +10 -0
  110. package/.kiro/documentation/docs_cli_privacy-and-security_vpc-endpoints.md +41 -0
  111. package/.kiro/documentation/docs_cli_reference_built-in-tools.md +624 -0
  112. package/.kiro/documentation/docs_cli_reference_cli-commands.md +689 -0
  113. package/.kiro/documentation/docs_cli_reference_settings.md +294 -0
  114. package/.kiro/documentation/docs_cli_reference_slash-commands.md +559 -0
  115. package/.kiro/documentation/docs_cli_steering.md +84 -0
  116. package/.kiro/guides/AGENT_WORKFLOW_GUIDE.md +294 -0
  117. package/.kiro/guides/DEVLOG.md +882 -0
  118. package/.kiro/guides/IMPLEMENTATION_EXAMPLES.md +611 -0
  119. package/.kiro/guides/PIV Loop.md +122 -0
  120. package/.kiro/guides/PIV Loop.png +0 -0
  121. package/.kiro/guides/PIVLoop.png +0 -0
  122. package/.kiro/guides/QUICK_REFERENCE.md +202 -0
  123. package/.kiro/guides/README.md +149 -0
  124. package/.kiro/guides/advanced-patterns.md +514 -0
  125. package/.kiro/guides/agent-coordination.md +434 -0
  126. package/.kiro/guides/core-workflows.md +409 -0
  127. package/.kiro/guides/emergency-procedures.md +414 -0
  128. package/.kiro/guides/project-evaluation.md +534 -0
  129. package/.kiro/guides/quality-assurance.md +431 -0
  130. package/.kiro/guides/quick-start.md +235 -0
  131. package/.kiro/guides/troubleshooting.md +575 -0
  132. package/.kiro/guides/walkthroughs.md +711 -0
  133. package/.kiro/prompts/add-to-devlog.md +263 -0
  134. package/.kiro/prompts/code-review-fix.md +18 -0
  135. package/.kiro/prompts/code-review-hackathon.md +167 -0
  136. package/.kiro/prompts/code-review-security.md +454 -0
  137. package/.kiro/prompts/code-review.md +113 -0
  138. package/.kiro/prompts/create-prd.md +151 -0
  139. package/.kiro/prompts/execute-backend.md +257 -0
  140. package/.kiro/prompts/execute-frontend.md +438 -0
  141. package/.kiro/prompts/execute-logging.md +491 -0
  142. package/.kiro/prompts/execute-security.md +482 -0
  143. package/.kiro/prompts/execute-testing.md +528 -0
  144. package/.kiro/prompts/execute.md +101 -0
  145. package/.kiro/prompts/execution-report.md +72 -0
  146. package/.kiro/prompts/implement-fix.md +228 -0
  147. package/.kiro/prompts/plan-feature.md +433 -0
  148. package/.kiro/prompts/prime.md +73 -0
  149. package/.kiro/prompts/quality-metrics.md +622 -0
  150. package/.kiro/prompts/quickstart.md +318 -0
  151. package/.kiro/prompts/rca.md +220 -0
  152. package/.kiro/prompts/system-review.md +189 -0
  153. package/README.md +32 -0
  154. package/bin/cli.js +97 -0
  155. package/package.json +33 -0
@@ -0,0 +1,422 @@
1
+ # Delegate
2
+ **Deprecation notice**
3
+ The experimental delegate tool will be replaced by the official [subagents](https://kiro.dev/docs/cli/chat/subagents) tool in a future release. We recommend using subagents for new workflows.
4
+ Delegate enables launching and managing asynchronous task processes, allowing you to run Kiro chat sessions with specific agents in parallel to your main conversation. Subagents extend this capability by providing specialized agents that can autonomously handle complex tasks with real-time progress tracking.
5
+ ## Overview[](https://kiro.dev/docs/cli/experimental/delegate/#overview)
6
+ The delegate feature allows you to:
7
+ * Launch background tasks using natural language
8
+ * Run parallel Kiro chat sessions with specific agents
9
+ * Monitor task progress independently
10
+ * Continue your main conversation while tasks run
11
+
12
+
13
+ ## Enabling delegate[](https://kiro.dev/docs/cli/experimental/delegate/#enabling-delegate)
14
+ bash
15
+ ```
16
+
17
+ kiro-cli settings chat.enableDelegate true
18
+
19
+
20
+ ```
21
+
22
+ Or use the experiment command:
23
+ bash
24
+ ```
25
+
26
+ /experiment
27
+ # Select "Delegate" from the list
28
+
29
+
30
+ ```
31
+
32
+ ## How it works[](https://kiro.dev/docs/cli/experimental/delegate/#how-it-works)
33
+ ### Task creation[](https://kiro.dev/docs/cli/experimental/delegate/#task-creation)
34
+ Use natural language to ask Kiro to launch a background task:
35
+ ```
36
+
37
+ > Can you create a background task to analyze the performance of our API endpoints?
38
+
39
+
40
+ ```
41
+
42
+ Kiro will:
43
+ 1. Understand the task requirements
44
+ 2. Determine if an agent is needed
45
+ 3. Request approval if using an agent
46
+ 4. Launch the task in the background
47
+ 5. Return control to your main conversation
48
+
49
+
50
+ ### Agent approval flow[](https://kiro.dev/docs/cli/experimental/delegate/#agent-approval-flow)
51
+ **Tasks with agents:**
52
+ * Require explicit approval
53
+ * Show agent details before execution
54
+ * Display agent configuration and permissions
55
+
56
+
57
+ **Tasks without agents:**
58
+ * Run with a warning about trust-all permissions
59
+ * May have broader access to tools
60
+
61
+
62
+ ### Task management[](https://kiro.dev/docs/cli/experimental/delegate/#task-management)
63
+ Once delegated, tasks work independently. You can:
64
+ * Check progress at any time
65
+ * Read results when complete
66
+ * Delete tasks when no longer needed
67
+
68
+
69
+ ## Usage examples[](https://kiro.dev/docs/cli/experimental/delegate/#usage-examples)
70
+ ### Example 1: Code analysis[](https://kiro.dev/docs/cli/experimental/delegate/#example-1-code-analysis)
71
+ ```
72
+
73
+ > Can you create a background task to analyze the performance of our API endpoints?
74
+
75
+ I'll create a background task to analyze your API performance.
76
+
77
+ Agent: performance-analyzer
78
+ Tools: read, shell, aws
79
+ Resources: api-docs, performance-metrics
80
+
81
+ Approve this agent? (y/n): y
82
+
83
+ ✓ Task created: api-performance-analysis
84
+ Task ID: task-abc123
85
+ Status: Running
86
+
87
+ You can continue working while the analysis runs in the background.
88
+
89
+ > Great! Now help me with the frontend code...
90
+
91
+ # Continue main conversation
92
+
93
+ > Check the status of my API analysis task
94
+
95
+ Let me check on that task...
96
+
97
+ Task: api-performance-analysis (task-abc123)
98
+ Status: Complete
99
+ Duration: 2m 34s
100
+
101
+ Results:
102
+ - Analyzed 15 API endpoints
103
+ - Found 3 performance bottlenecks
104
+ - Generated optimization recommendations
105
+
106
+ Would you like me to show you the detailed results?
107
+
108
+
109
+ ```
110
+
111
+ ### Example 2: Test suite execution[](https://kiro.dev/docs/cli/experimental/delegate/#example-2-test-suite-execution)
112
+ ```
113
+
114
+ > Run our test suite in the background while I work on the new feature
115
+
116
+ I'll start the test suite in a background task.
117
+
118
+ ✓ Task created: test-suite-run
119
+ Task ID: task-def456
120
+ Status: Running
121
+
122
+ # Continue working on feature
123
+
124
+ > How's the test suite doing?
125
+
126
+ Let me check...
127
+
128
+ Task: test-suite-run (task-def456)
129
+ Status: Running (45% complete)
130
+ Progress: 127/283 tests passed
131
+
132
+ Still running. I'll let you know when it's complete.
133
+
134
+
135
+ ```
136
+
137
+ ### Example 3: Documentation generation[](https://kiro.dev/docs/cli/experimental/delegate/#example-3-documentation-generation)
138
+ ```
139
+
140
+ > Generate API documentation in the background
141
+
142
+ I'll create a task to generate your API documentation.
143
+
144
+ ✓ Task created: api-docs-generation
145
+ Task ID: task-ghi789
146
+ Status: Running
147
+
148
+ # Work on other things
149
+
150
+ > Show me the results from the documentation task
151
+
152
+ Task: api-docs-generation (task-ghi789)
153
+ Status: Complete
154
+
155
+ Generated documentation for:
156
+ - 23 API endpoints
157
+ - 15 data models
158
+ - 8 authentication methods
159
+
160
+ Documentation saved to: docs/api/
161
+
162
+
163
+ ```
164
+
165
+ ## Task lifecycle[](https://kiro.dev/docs/cli/experimental/delegate/#task-lifecycle)
166
+ ### 1. Creation[](https://kiro.dev/docs/cli/experimental/delegate/#1-creation)
167
+ ```
168
+
169
+ > Create a background task to [description]
170
+
171
+
172
+ ```
173
+
174
+ Kiro analyzes the request and determines:
175
+ * What agent (if any) is needed
176
+ * What tools are required
177
+ * What resources to access
178
+
179
+
180
+ ### 2. Approval (if needed)[](https://kiro.dev/docs/cli/experimental/delegate/#2-approval-if-needed)
181
+ If an agent is required, you'll see:
182
+ ```
183
+
184
+ Agent: task-agent-name
185
+ Description: What this agent does
186
+ Tools: List of tools it can use
187
+ Resources: Files it can access
188
+
189
+ Approve this agent? (y/n):
190
+
191
+
192
+ ```
193
+
194
+ ### 3. Execution[](https://kiro.dev/docs/cli/experimental/delegate/#3-execution)
195
+ Task runs in the background while you continue your main conversation.
196
+ ### 4. Monitoring[](https://kiro.dev/docs/cli/experimental/delegate/#4-monitoring)
197
+ Check status anytime:
198
+ ```
199
+
200
+ > Check on [task name]
201
+ > What's the status of my background task?
202
+ > Show me task progress
203
+
204
+
205
+ ```
206
+
207
+ ### 5. Completion[](https://kiro.dev/docs/cli/experimental/delegate/#5-completion)
208
+ When complete, you can:
209
+ ```
210
+
211
+ > Show me the results from [task name]
212
+ > What did the background task find?
213
+
214
+
215
+ ```
216
+
217
+ ### 6. Cleanup[](https://kiro.dev/docs/cli/experimental/delegate/#6-cleanup)
218
+ Delete tasks when done:
219
+ ```
220
+
221
+ > Delete the [task name] task
222
+ > Clean up completed tasks
223
+
224
+
225
+ ```
226
+
227
+ ## Best practices[](https://kiro.dev/docs/cli/experimental/delegate/#best-practices)
228
+ ### When to use delegate[](https://kiro.dev/docs/cli/experimental/delegate/#when-to-use-delegate)
229
+ * **Long-running operations** : Test suites, builds, analysis
230
+ * **Independent tasks** : Work that doesn't need your input
231
+ * **Parallel work** : Multiple tasks that can run simultaneously
232
+ * **Background monitoring** : Continuous checks or watches
233
+
234
+
235
+ ### When not to use[](https://kiro.dev/docs/cli/experimental/delegate/#when-not-to-use)
236
+ * **Interactive tasks** : Work requiring your input
237
+ * **Quick operations** : Tasks that complete in seconds
238
+ * **Dependent work** : Tasks that need results from main conversation
239
+ * **Simple commands** : Direct execution is faster
240
+
241
+
242
+ ### Task organization[](https://kiro.dev/docs/cli/experimental/delegate/#task-organization)
243
+ * **Use descriptive names** : Make tasks easy to identify
244
+ * **Monitor progress** : Check on long-running tasks periodically
245
+ * **Clean up completed tasks** : Delete when no longer needed
246
+ * **Limit concurrent tasks** : Too many may slow down system
247
+
248
+
249
+ ## Security considerations[](https://kiro.dev/docs/cli/experimental/delegate/#security-considerations)
250
+ ### Agent approval[](https://kiro.dev/docs/cli/experimental/delegate/#agent-approval)
251
+ Always review agent details before approval:
252
+ * **Tools** : What can the agent do?
253
+ * **Resources** : What files can it access?
254
+ * **Permissions** : What operations are allowed?
255
+
256
+
257
+ ### Trust-all warning[](https://kiro.dev/docs/cli/experimental/delegate/#trust-all-warning)
258
+ Tasks without agents run with elevated permissions:
259
+ * Can access all tools
260
+ * May have broader file access
261
+ * Should be used carefully
262
+
263
+
264
+ ### Best practices[](https://kiro.dev/docs/cli/experimental/delegate/#best-practices-1)
265
+ 1. **Review agent configurations** : Understand what you're approving
266
+ 2. **Use specific agents** : Create agents with minimal required permissions
267
+ 3. **Monitor task activity** : Check what tasks are doing
268
+ 4. **Delete sensitive results** : Clean up tasks with sensitive data
269
+
270
+
271
+ ## Limitations[](https://kiro.dev/docs/cli/experimental/delegate/#limitations)
272
+ ### Concurrency[](https://kiro.dev/docs/cli/experimental/delegate/#concurrency)
273
+ * Limited number of concurrent tasks
274
+ * System resources shared between tasks
275
+ * May impact performance with many tasks
276
+
277
+
278
+ ### Task isolation[](https://kiro.dev/docs/cli/experimental/delegate/#task-isolation)
279
+ * Tasks run independently
280
+ * Cannot directly communicate with main conversation
281
+ * Results must be explicitly retrieved
282
+
283
+
284
+ ### Persistence[](https://kiro.dev/docs/cli/experimental/delegate/#persistence)
285
+ * Tasks are session-scoped
286
+ * May not survive session restarts
287
+ * Results should be saved if needed long-term
288
+
289
+
290
+ ## Troubleshooting[](https://kiro.dev/docs/cli/experimental/delegate/#troubleshooting)
291
+ ### Task not starting[](https://kiro.dev/docs/cli/experimental/delegate/#task-not-starting)
292
+ 1. **Verify delegate is enabled** :
293
+ bash
294
+ ```
295
+
296
+ kiro-cli settings chat.enableDelegate
297
+
298
+
299
+ ```
300
+
301
+ 2. **Check for errors** : Look for error messages in chat
302
+ 3. **Try simpler task** : Test with a basic task first
303
+
304
+
305
+ ### Cannot check task status[](https://kiro.dev/docs/cli/experimental/delegate/#cannot-check-task-status)
306
+ 1. **Verify task ID** : Ensure you're using correct task name/ID
307
+ 2. **Check if task completed** : Completed tasks may be cleaned up
308
+ 3. **List all tasks** : Ask Kiro to show all active tasks
309
+
310
+
311
+ ### Agent approval issues[](https://kiro.dev/docs/cli/experimental/delegate/#agent-approval-issues)
312
+ 1. **Review agent details carefully** : Ensure you understand permissions
313
+ 2. **Check agent exists** : Verify agent is properly configured
314
+ 3. **Try without agent** : Some tasks can run without specific agents
315
+
316
+
317
+ ## Advanced usage[](https://kiro.dev/docs/cli/experimental/delegate/#advanced-usage)
318
+ ### Custom agents for tasks[](https://kiro.dev/docs/cli/experimental/delegate/#custom-agents-for-tasks)
319
+ Create specialized agents for common background tasks:
320
+ json
321
+ ```
322
+
323
+ {
324
+ "name": "test-runner",
325
+ "description": "Runs test suites in background",
326
+ "tools": ["shell", "read"],
327
+ "allowedTools": ["shell"],
328
+ "toolsSettings": {
329
+ "shell": {
330
+ "allowedCommands": ["npm test", "pytest", "cargo test"]
331
+ }
332
+ }
333
+ }
334
+
335
+
336
+ ```
337
+
338
+ ### Task patterns[](https://kiro.dev/docs/cli/experimental/delegate/#task-patterns)
339
+ **Analysis Tasks:**
340
+ ```
341
+
342
+ > Analyze code quality in the background
343
+ > Run security scan as a background task
344
+ > Generate performance report in background
345
+
346
+
347
+ ```
348
+
349
+ **Build Tasks:**
350
+ ```
351
+
352
+ > Build the project in the background
353
+ > Compile and run tests as a background task
354
+ > Generate production bundle in background
355
+
356
+
357
+ ```
358
+
359
+ **Monitoring Tasks:**
360
+ ```
361
+
362
+ > Monitor log files in the background
363
+ > Watch for file changes as a background task
364
+ > Track system metrics in background
365
+
366
+
367
+ ```
368
+
369
+ ## Related features[](https://kiro.dev/docs/cli/experimental/delegate/#related-features)
370
+ * [Experimental Features](https://kiro.dev/docs/cli/experimental)
371
+ * [Custom Agents](https://kiro.dev/docs/cli/custom-agents)
372
+ * [TODO Lists](https://kiro.dev/docs/cli/experimental/todo-lists)
373
+
374
+
375
+ ## Next steps[](https://kiro.dev/docs/cli/experimental/delegate/#next-steps)
376
+ * [Create custom agents for tasks](https://kiro.dev/docs/cli/custom-agents/creating)
377
+ * [Configure agents](https://kiro.dev/docs/cli/custom-agents/configuration-reference)
378
+ * [Enable other experimental features](https://kiro.dev/docs/cli/experimental)
379
+
380
+
381
+ Page updated: December 18, 2025
382
+ [Checkpointing](https://kiro.dev/docs/cli/experimental/checkpointing/)
383
+ [Hooks](https://kiro.dev/docs/cli/hooks/)
384
+ On this page
385
+ * [Overview](https://kiro.dev/docs/cli/experimental/delegate/#overview)
386
+ * [Enabling delegate](https://kiro.dev/docs/cli/experimental/delegate/#enabling-delegate)
387
+ * [How it works](https://kiro.dev/docs/cli/experimental/delegate/#how-it-works)
388
+ * [Task creation](https://kiro.dev/docs/cli/experimental/delegate/#task-creation)
389
+ * [Agent approval flow](https://kiro.dev/docs/cli/experimental/delegate/#agent-approval-flow)
390
+ * [Task management](https://kiro.dev/docs/cli/experimental/delegate/#task-management)
391
+ * [Usage examples](https://kiro.dev/docs/cli/experimental/delegate/#usage-examples)
392
+ * [Example 1: Code analysis](https://kiro.dev/docs/cli/experimental/delegate/#example-1-code-analysis)
393
+ * [Example 2: Test suite execution](https://kiro.dev/docs/cli/experimental/delegate/#example-2-test-suite-execution)
394
+ * [Example 3: Documentation generation](https://kiro.dev/docs/cli/experimental/delegate/#example-3-documentation-generation)
395
+ * [Task lifecycle](https://kiro.dev/docs/cli/experimental/delegate/#task-lifecycle)
396
+ * [1. Creation](https://kiro.dev/docs/cli/experimental/delegate/#1-creation)
397
+ * [2. Approval (if needed)](https://kiro.dev/docs/cli/experimental/delegate/#2-approval-if-needed)
398
+ * [3. Execution](https://kiro.dev/docs/cli/experimental/delegate/#3-execution)
399
+ * [4. Monitoring](https://kiro.dev/docs/cli/experimental/delegate/#4-monitoring)
400
+ * [5. Completion](https://kiro.dev/docs/cli/experimental/delegate/#5-completion)
401
+ * [6. Cleanup](https://kiro.dev/docs/cli/experimental/delegate/#6-cleanup)
402
+ * [Best practices](https://kiro.dev/docs/cli/experimental/delegate/#best-practices)
403
+ * [When to use delegate](https://kiro.dev/docs/cli/experimental/delegate/#when-to-use-delegate)
404
+ * [When not to use](https://kiro.dev/docs/cli/experimental/delegate/#when-not-to-use)
405
+ * [Task organization](https://kiro.dev/docs/cli/experimental/delegate/#task-organization)
406
+ * [Security considerations](https://kiro.dev/docs/cli/experimental/delegate/#security-considerations)
407
+ * [Agent approval](https://kiro.dev/docs/cli/experimental/delegate/#agent-approval)
408
+ * [Trust-all warning](https://kiro.dev/docs/cli/experimental/delegate/#trust-all-warning)
409
+ * [Best practices](https://kiro.dev/docs/cli/experimental/delegate/#best-practices-1)
410
+ * [Limitations](https://kiro.dev/docs/cli/experimental/delegate/#limitations)
411
+ * [Concurrency](https://kiro.dev/docs/cli/experimental/delegate/#concurrency)
412
+ * [Task isolation](https://kiro.dev/docs/cli/experimental/delegate/#task-isolation)
413
+ * [Persistence](https://kiro.dev/docs/cli/experimental/delegate/#persistence)
414
+ * [Troubleshooting](https://kiro.dev/docs/cli/experimental/delegate/#troubleshooting)
415
+ * [Task not starting](https://kiro.dev/docs/cli/experimental/delegate/#task-not-starting)
416
+ * [Cannot check task status](https://kiro.dev/docs/cli/experimental/delegate/#cannot-check-task-status)
417
+ * [Agent approval issues](https://kiro.dev/docs/cli/experimental/delegate/#agent-approval-issues)
418
+ * [Advanced usage](https://kiro.dev/docs/cli/experimental/delegate/#advanced-usage)
419
+ * [Custom agents for tasks](https://kiro.dev/docs/cli/experimental/delegate/#custom-agents-for-tasks)
420
+ * [Task patterns](https://kiro.dev/docs/cli/experimental/delegate/#task-patterns)
421
+ * [Related features](https://kiro.dev/docs/cli/experimental/delegate/#related-features)
422
+ * [Next steps](https://kiro.dev/docs/cli/experimental/delegate/#next-steps)