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,385 @@
1
+ # TODO lists
2
+ The TODO list feature enables Kiro to automatically create and modify task lists, while providing you with commands to view and manage existing TODO lists.
3
+ ## Getting started[](https://kiro.dev/docs/cli/experimental/todo-lists/#getting-started)
4
+ TODO lists are automatically created when Kiro breaks down complex tasks. You can then manage these lists using the `/todo` command.
5
+ ### Enable TODO lists[](https://kiro.dev/docs/cli/experimental/todo-lists/#enable-todo-lists)
6
+ bash
7
+ ```
8
+
9
+ kiro-cli settings chat.enableTodoList true
10
+
11
+
12
+ ```
13
+
14
+ ### Basic usage[](https://kiro.dev/docs/cli/experimental/todo-lists/#basic-usage)
15
+ bash
16
+ ```
17
+
18
+ /todo view # View existing TODO lists
19
+ /todo resume # Resume a TODO list
20
+
21
+
22
+ ```
23
+
24
+ ## How it works[](https://kiro.dev/docs/cli/experimental/todo-lists/#how-it-works)
25
+ ### Automatic creation[](https://kiro.dev/docs/cli/experimental/todo-lists/#automatic-creation)
26
+ Kiro automatically creates TODO lists when:
27
+ * You ask for help with multi-step tasks
28
+ * A complex problem needs to be broken down
29
+ * You explicitly request a TODO list
30
+
31
+
32
+ **Example:**
33
+ ```
34
+
35
+ > Make a todo list with 3 read-only tasks.
36
+
37
+ I'll create a todo list with 3 read-only tasks for you.
38
+
39
+ 🛠️ Using tool: todo_list (trusted)
40
+
41
+ ● TODO:
42
+ [ ] Review project documentation
43
+ [ ] Check system status
44
+ [ ] Read latest updates
45
+
46
+ ● Completed in 0.4s
47
+
48
+
49
+ ```
50
+
51
+ ### Task management[](https://kiro.dev/docs/cli/experimental/todo-lists/#task-management)
52
+ Kiro can:
53
+ * Create TODO lists
54
+ * Mark tasks as complete
55
+ * Add/remove tasks
56
+ * Load TODO lists by ID
57
+ * Search for existing TODO lists
58
+
59
+
60
+ You can:
61
+ * View TODO lists
62
+ * Resume TODO lists
63
+ * Delete TODO lists
64
+
65
+
66
+ ## Commands[](https://kiro.dev/docs/cli/experimental/todo-lists/#commands)
67
+ ### /todo view[](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-view)
68
+ Display and select a TODO list to view its contents, showing task descriptions and completion status.
69
+ bash
70
+ ```
71
+
72
+ /todo view
73
+
74
+
75
+ ```
76
+
77
+ **Interactive selection shows:**
78
+ * ✓ Completed lists (green checkmark)
79
+ * ✗ In-progress lists with completion count (red X with progress)
80
+
81
+
82
+ **Example:**
83
+ ```
84
+
85
+ > /todo view
86
+
87
+ ? Select a to-do list to view: ›
88
+ ❯ ✗ Unfinished todo list (0/3)
89
+ ✔ Completed todo list (3/3)
90
+
91
+
92
+ ```
93
+
94
+ ### /todo resume[](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-resume)
95
+ Show an interactive menu of available TODO lists with their current progress status. Selecting a list loads it back into your chat session, allowing Kiro to continue where it left off.
96
+ bash
97
+ ```
98
+
99
+ /todo resume
100
+
101
+
102
+ ```
103
+
104
+ **Example:**
105
+ ```
106
+
107
+ > /todo resume
108
+
109
+ ⟳ Resuming: Read-only tasks for information gathering
110
+
111
+ 🛠️ Using tool: todo (trusted)
112
+
113
+ ● TODO:
114
+ [x] Review project documentation
115
+ [ ] Check system status
116
+ [ ] Read latest updates
117
+
118
+ ● Completed in 0.1s
119
+
120
+
121
+ ```
122
+
123
+ ### /todo clear-finished[](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-clear-finished)
124
+ Remove all completed TODO lists from storage. This helps clean up your workspace by removing lists where all tasks have been completed.
125
+ bash
126
+ ```
127
+
128
+ /todo clear-finished
129
+
130
+
131
+ ```
132
+
133
+ ### /todo delete[](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-delete)
134
+ Delete specific TODO lists or all lists at once.
135
+ bash
136
+ ```
137
+
138
+ /todo delete # Interactive selection to delete one list
139
+ /todo delete --all # Delete all TODO lists
140
+
141
+
142
+ ```
143
+
144
+ **Options:**
145
+ * `--all` - Delete all TODO lists without interactive selection
146
+
147
+
148
+ ## Storage[](https://kiro.dev/docs/cli/experimental/todo-lists/#storage)
149
+ TODO lists are persisted across sessions
150
+ Each list is saved as a JSON file with:
151
+ * Unique timestamp-based ID
152
+ * Task descriptions and completion status
153
+ * Context updates from completed tasks
154
+ * Modified file paths
155
+ * Overall list description
156
+
157
+
158
+ ### Directory structure[](https://kiro.dev/docs/cli/experimental/todo-lists/#directory-structure)
159
+ ```
160
+
161
+ my-project/
162
+ ├── .kiro/
163
+ │ └── cli-todo-lists/
164
+ │ ├── 1234567890-task-list.json
165
+ │ └── 1234567891-another-list.json
166
+ └── src/
167
+ └── main.py
168
+
169
+
170
+ ```
171
+
172
+ ## Interactive selection[](https://kiro.dev/docs/cli/experimental/todo-lists/#interactive-selection)
173
+ All commands use interactive selection allowing you to:
174
+ * Navigate with arrow keys
175
+ * Press Enter to select
176
+ * Press Esc to cancel
177
+
178
+
179
+ ## Use cases[](https://kiro.dev/docs/cli/experimental/todo-lists/#use-cases)
180
+ ### Breaking down complex tasks[](https://kiro.dev/docs/cli/experimental/todo-lists/#breaking-down-complex-tasks)
181
+ ```
182
+
183
+ > I need to migrate our database from MySQL to PostgreSQL
184
+
185
+ Let me create a TODO list for this migration:
186
+
187
+ 🛠️ Using tool: todo
188
+ ● TODO: Database Migration
189
+ [ ] Backup current MySQL database
190
+ [ ] Set up PostgreSQL instance
191
+ [ ] Create schema migration scripts
192
+ [ ] Test migration on staging
193
+ [ ] Perform production migration
194
+ [ ] Verify data integrity
195
+
196
+
197
+ ```
198
+
199
+ ### Tracking multi-step implementations[](https://kiro.dev/docs/cli/experimental/todo-lists/#tracking-multi-step-implementations)
200
+ ```
201
+
202
+ > Help me implement user authentication
203
+
204
+ I'll break this down into manageable steps:
205
+
206
+ 🛠️ Using tool: todo
207
+ ● TODO: User Authentication Implementation
208
+ [ ] Set up authentication library
209
+ [ ] Create user model and database schema
210
+ [ ] Implement registration endpoint
211
+ [ ] Implement login endpoint
212
+ [ ] Add password hashing
213
+ [ ] Create JWT token generation
214
+ [ ] Add authentication middleware
215
+ [ ] Write tests for auth flow
216
+
217
+
218
+ ```
219
+
220
+ ### Resuming previous work[](https://kiro.dev/docs/cli/experimental/todo-lists/#resuming-previous-work)
221
+ ```
222
+
223
+ > /todo resume
224
+
225
+ ? Select a to-do list to resume: ›
226
+ ❯ ✗ User Authentication Implementation (3/8)
227
+ ✗ Database Migration (1/6)
228
+ ✔ Code Refactoring (5/5)
229
+
230
+ # Select "User Authentication Implementation"
231
+
232
+ ⟳ Resuming: User Authentication Implementation
233
+
234
+ Let's continue with the authentication implementation.
235
+ We've completed the first 3 tasks. Next up is implementing the login endpoint...
236
+
237
+
238
+ ```
239
+
240
+ ## Best practices[](https://kiro.dev/docs/cli/experimental/todo-lists/#best-practices)
241
+ ### Managing lists[](https://kiro.dev/docs/cli/experimental/todo-lists/#managing-lists)
242
+ * **Use`clear-finished` regularly** to remove completed lists
243
+ * **Resume lists** to continue complex multi-step tasks
244
+ * **Check`view`** to see progress without resuming
245
+
246
+
247
+ ### Workflow integration[](https://kiro.dev/docs/cli/experimental/todo-lists/#workflow-integration)
248
+ * **Let Kiro create TODO lists** for complex tasks automatically
249
+ * **Use`resume`** to pick up where you left off in previous sessions
250
+ * **Check`view`** to see what tasks remain before resuming work
251
+
252
+
253
+ ### Organization[](https://kiro.dev/docs/cli/experimental/todo-lists/#organization)
254
+ * **Work in project directories** where TODO lists are relevant
255
+ * **Complete tasks in order** for better context
256
+ * **Delete old lists** when no longer needed
257
+
258
+
259
+ ## Limitations[](https://kiro.dev/docs/cli/experimental/todo-lists/#limitations)
260
+ ### Functionality[](https://kiro.dev/docs/cli/experimental/todo-lists/#functionality)
261
+ * Cannot manually edit TODO list files
262
+ * Cannot merge or split TODO lists
263
+ * Cannot reorder tasks after creation
264
+
265
+
266
+ ## Troubleshooting[](https://kiro.dev/docs/cli/experimental/todo-lists/#troubleshooting)
267
+ ### Tasks not updating[](https://kiro.dev/docs/cli/experimental/todo-lists/#tasks-not-updating)
268
+ If task completion isn't being tracked:
269
+ 1. **Ensure TODO list is active** : Resume the list first
270
+ 2. **Let Kiro mark tasks** : Don't manually edit JSON files
271
+ 3. **Check for errors** : Look for error messages in chat
272
+
273
+
274
+ ## Tool vs command[](https://kiro.dev/docs/cli/experimental/todo-lists/#tool-vs-command)
275
+ ### `todo` tool[](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-tool)
276
+ The `todo` tool is for Kiro to call. Kiro can:
277
+ * Create TODO lists
278
+ * Mark tasks as complete
279
+ * Add/remove tasks
280
+ * Load TODO lists with given ID
281
+ * Search for existing TODO lists
282
+
283
+
284
+ ### `/todo` command[](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-command)
285
+ The `/todo` command is for you to manage existing TODO lists. You can:
286
+ * View TODO lists
287
+ * Resume TODO lists
288
+ * Delete TODO lists
289
+ * Clear finished lists
290
+
291
+
292
+ ## Example workflow[](https://kiro.dev/docs/cli/experimental/todo-lists/#example-workflow)
293
+ ### 1. Start complex task[](https://kiro.dev/docs/cli/experimental/todo-lists/#1-start-complex-task)
294
+ ```
295
+
296
+ > I need to set up CI/CD for our project
297
+
298
+
299
+ ```
300
+
301
+ ### 2. Kiro creates TODO list[](https://kiro.dev/docs/cli/experimental/todo-lists/#2-kiro-creates-todo-list)
302
+ ```
303
+
304
+ 🛠️ Using tool: todo_list
305
+ ● TODO: CI/CD Setup
306
+ [ ] Choose CI/CD platform
307
+ [ ] Create pipeline configuration
308
+ [ ] Set up build stage
309
+ [ ] Add test stage
310
+ [ ] Configure deployment stage
311
+ [ ] Set up environment variables
312
+ [ ] Test pipeline
313
+
314
+
315
+ ```
316
+
317
+ ### 3. Work through tasks[](https://kiro.dev/docs/cli/experimental/todo-lists/#3-work-through-tasks)
318
+ Kiro works through tasks, marking them complete as you go.
319
+ ### 4. Resume later[](https://kiro.dev/docs/cli/experimental/todo-lists/#4-resume-later)
320
+ ```
321
+
322
+ > /todo resume
323
+
324
+ ? Select a to-do list to resume: ›
325
+ ❯ ✗ CI/CD Setup (4/7)
326
+
327
+ # Continue where you left off
328
+
329
+
330
+ ```
331
+
332
+ ### 5. Clean up when done[](https://kiro.dev/docs/cli/experimental/todo-lists/#5-clean-up-when-done)
333
+ ```
334
+
335
+ > /todo clear-finished
336
+
337
+
338
+ ```
339
+
340
+ ## Next steps[](https://kiro.dev/docs/cli/experimental/todo-lists/#next-steps)
341
+ * [Experimental Features Overview](https://kiro.dev/docs/cli/experimental)
342
+ * [Checkpointing](https://kiro.dev/docs/cli/experimental/checkpointing)
343
+ * [Custom Agents](https://kiro.dev/docs/cli/custom-agents)
344
+
345
+
346
+ Page updated: November 18, 2025
347
+ [Tangent mode](https://kiro.dev/docs/cli/experimental/tangent-mode/)
348
+ [Thinking tool](https://kiro.dev/docs/cli/experimental/thinking/)
349
+ On this page
350
+ * [Getting started](https://kiro.dev/docs/cli/experimental/todo-lists/#getting-started)
351
+ * [Enable TODO lists](https://kiro.dev/docs/cli/experimental/todo-lists/#enable-todo-lists)
352
+ * [Basic usage](https://kiro.dev/docs/cli/experimental/todo-lists/#basic-usage)
353
+ * [How it works](https://kiro.dev/docs/cli/experimental/todo-lists/#how-it-works)
354
+ * [Automatic creation](https://kiro.dev/docs/cli/experimental/todo-lists/#automatic-creation)
355
+ * [Task management](https://kiro.dev/docs/cli/experimental/todo-lists/#task-management)
356
+ * [Commands](https://kiro.dev/docs/cli/experimental/todo-lists/#commands)
357
+ * [/todo view](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-view)
358
+ * [/todo resume](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-resume)
359
+ * [/todo clear-finished](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-clear-finished)
360
+ * [/todo delete](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-delete)
361
+ * [Storage](https://kiro.dev/docs/cli/experimental/todo-lists/#storage)
362
+ * [Directory structure](https://kiro.dev/docs/cli/experimental/todo-lists/#directory-structure)
363
+ * [Interactive selection](https://kiro.dev/docs/cli/experimental/todo-lists/#interactive-selection)
364
+ * [Use cases](https://kiro.dev/docs/cli/experimental/todo-lists/#use-cases)
365
+ * [Breaking down complex tasks](https://kiro.dev/docs/cli/experimental/todo-lists/#breaking-down-complex-tasks)
366
+ * [Tracking multi-step implementations](https://kiro.dev/docs/cli/experimental/todo-lists/#tracking-multi-step-implementations)
367
+ * [Resuming previous work](https://kiro.dev/docs/cli/experimental/todo-lists/#resuming-previous-work)
368
+ * [Best practices](https://kiro.dev/docs/cli/experimental/todo-lists/#best-practices)
369
+ * [Managing lists](https://kiro.dev/docs/cli/experimental/todo-lists/#managing-lists)
370
+ * [Workflow integration](https://kiro.dev/docs/cli/experimental/todo-lists/#workflow-integration)
371
+ * [Organization](https://kiro.dev/docs/cli/experimental/todo-lists/#organization)
372
+ * [Limitations](https://kiro.dev/docs/cli/experimental/todo-lists/#limitations)
373
+ * [Functionality](https://kiro.dev/docs/cli/experimental/todo-lists/#functionality)
374
+ * [Troubleshooting](https://kiro.dev/docs/cli/experimental/todo-lists/#troubleshooting)
375
+ * [Tasks not updating](https://kiro.dev/docs/cli/experimental/todo-lists/#tasks-not-updating)
376
+ * [Tool vs command](https://kiro.dev/docs/cli/experimental/todo-lists/#tool-vs-command)
377
+ * [`todo` tool](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-tool)
378
+ * [`/todo` command](https://kiro.dev/docs/cli/experimental/todo-lists/#todo-command)
379
+ * [Example workflow](https://kiro.dev/docs/cli/experimental/todo-lists/#example-workflow)
380
+ * [1. Start complex task](https://kiro.dev/docs/cli/experimental/todo-lists/#1-start-complex-task)
381
+ * [2. Kiro creates TODO list](https://kiro.dev/docs/cli/experimental/todo-lists/#2-kiro-creates-todo-list)
382
+ * [3. Work through tasks](https://kiro.dev/docs/cli/experimental/todo-lists/#3-work-through-tasks)
383
+ * [4. Resume later](https://kiro.dev/docs/cli/experimental/todo-lists/#4-resume-later)
384
+ * [5. Clean up when done](https://kiro.dev/docs/cli/experimental/todo-lists/#5-clean-up-when-done)
385
+ * [Next steps](https://kiro.dev/docs/cli/experimental/todo-lists/#next-steps)
@@ -0,0 +1,207 @@
1
+ # Hooks
2
+ Hooks allow you to execute custom commands at specific points during agent lifecycle and tool execution. This enables security validation, logging, formatting, context gathering, and other custom behaviors.
3
+ ## Defining hooks[](https://kiro.dev/docs/cli/hooks/#defining-hooks)
4
+ Hooks are defined in the agent configuration file. See the [Agent Configuration Reference](https://kiro.dev/docs/cli/custom-agents/configuration-reference#hooks-field) for the complete syntax and examples.
5
+ ## Hook event[](https://kiro.dev/docs/cli/hooks/#hook-event)
6
+ Hooks receive hook event in JSON format via STDIN:
7
+ json
8
+ ```
9
+
10
+ {
11
+ "hook_event_name": "agentSpawn",
12
+ "cwd": "/current/working/directory"
13
+ }
14
+
15
+
16
+ ```
17
+
18
+ For tool-related hooks, additional fields are included:
19
+ * `tool_name`: Name of the tool being executed
20
+ * `tool_input`: Tool-specific parameters (see individual tool documentation)
21
+ * `tool_response`: Tool execution results (PostToolUse only)
22
+
23
+
24
+ ## Hook output[](https://kiro.dev/docs/cli/hooks/#hook-output)
25
+ * **Exit code 0** : Hook succeeded. STDOUT is captured but not shown to user.
26
+ * **Exit code 2** : (PreToolUse only) Block tool execution. STDERR is returned to the LLM.
27
+ * **Other exit codes** : Hook failed. STDERR is shown as warning to user.
28
+
29
+
30
+ ## Tool matching[](https://kiro.dev/docs/cli/hooks/#tool-matching)
31
+ Use the `matcher` field to specify which tools the hook applies to:
32
+ ### Examples[](https://kiro.dev/docs/cli/hooks/#examples)
33
+ * `"write"` - Exact match for built-in tools
34
+ * `"@git"` - All tools from git MCP server
35
+ * `"@git/status"` - Specific tool from git MCP server
36
+ * `"*"` - All tools (built-in and MCP)
37
+ * `"@builtin"` - All built-in tools only
38
+ * No matcher - Applies to all tools
39
+
40
+
41
+ For complete tool reference format, see [Agent Configuration Reference](https://kiro.dev/docs/cli/custom-agents/configuration-reference#tools-field).
42
+ ## Hook types[](https://kiro.dev/docs/cli/hooks/#hook-types)
43
+ ### AgentSpawn[](https://kiro.dev/docs/cli/hooks/#agentspawn)
44
+ Runs when agent is activated. No tool context provided.
45
+ **Hook Event**
46
+ json
47
+ ```
48
+
49
+ {
50
+ "hook_event_name": "agentSpawn",
51
+ "cwd": "/current/working/directory"
52
+ }
53
+
54
+
55
+ ```
56
+
57
+ **Exit Code Behavior:**
58
+ * **0** : Hook succeeded, STDOUT is added to agent's context
59
+ * **Other** : Show STDERR warning to user
60
+
61
+
62
+ ### UserPromptSubmit[](https://kiro.dev/docs/cli/hooks/#userpromptsubmit)
63
+ Runs when user submits a prompt. Output is added to conversation context.
64
+ **Hook Event**
65
+ json
66
+ ```
67
+
68
+ {
69
+ "hook_event_name": "userPromptSubmit",
70
+ "cwd": "/current/working/directory",
71
+ "prompt": "user's input prompt"
72
+ }
73
+
74
+
75
+ ```
76
+
77
+ **Exit Code Behavior:**
78
+ * **0** : Hook succeeded, STDOUT is added to agent's context
79
+ * **Other** : Show STDERR warning to user
80
+
81
+
82
+ ### PreToolUse[](https://kiro.dev/docs/cli/hooks/#pretooluse)
83
+ Runs before tool execution. Can validate and block tool usage.
84
+ **Hook Event**
85
+ json
86
+ ```
87
+
88
+ {
89
+ "hook_event_name": "preToolUse",
90
+ "cwd": "/current/working/directory",
91
+ "tool_name": "read",
92
+ "tool_input": {
93
+ "operations": [
94
+ {
95
+ "mode": "Line",
96
+ "path": "/current/working/directory/docs/hooks.md"
97
+ }
98
+ ]
99
+ }
100
+ }
101
+
102
+
103
+ ```
104
+
105
+ **Exit Code Behavior:**
106
+ * **0** : Allow tool execution.
107
+ * **2** : Block tool execution, return STDERR to LLM.
108
+ * **Other** : Show STDERR warning to user, allow tool execution.
109
+
110
+
111
+ ### PostToolUse[](https://kiro.dev/docs/cli/hooks/#posttooluse)
112
+ Runs after tool execution with access to tool results.
113
+ **Hook Event**
114
+ json
115
+ ```
116
+
117
+ {
118
+ "hook_event_name": "postToolUse",
119
+ "cwd": "/current/working/directory",
120
+ "tool_name": "read",
121
+ "tool_input": {
122
+ "operations": [
123
+ {
124
+ "mode": "Line",
125
+ "path": "/current/working/directory/docs/hooks.md"
126
+ }
127
+ ]
128
+ },
129
+ "tool_response": {
130
+ "success": true,
131
+ "result": ["# Hooks\n\nHooks allow you to execute..."]
132
+ }
133
+ }
134
+
135
+
136
+ ```
137
+
138
+ **Exit Code Behavior:**
139
+ * **0** : Hook succeeded.
140
+ * **Other** : Show STDERR warning to user. Tool already ran.
141
+
142
+
143
+ ### Stop[](https://kiro.dev/docs/cli/hooks/#stop)
144
+ Runs when the assistant finishes responding to the user (at the end of each turn). This is useful for running post-processing tasks like code compilation, testing, formatting, or cleanup after the assistant's response.
145
+ **Hook Event**
146
+ json
147
+ ```
148
+
149
+ {
150
+ "hook_event_name": "stop",
151
+ "cwd": "/current/working/directory"
152
+ }
153
+
154
+
155
+ ```
156
+
157
+ **Exit Code Behavior:**
158
+ * **0** : Hook succeeded.
159
+ * **Other** : Show STDERR warning to user.
160
+
161
+
162
+ **Note** : Stop hooks do not use matchers since they don't relate to specific tools.
163
+ ### MCP Example[](https://kiro.dev/docs/cli/hooks/#mcp-example)
164
+ For MCP tools, the tool name includes the full namespaced format including the MCP Server name:
165
+ **Hook Event**
166
+ json
167
+ ```
168
+
169
+ {
170
+ "hook_event_name": "preToolUse",
171
+ "cwd": "/current/working/directory",
172
+ "tool_name": "@postgres/query",
173
+ "tool_input": {
174
+ "sql": "SELECT * FROM orders LIMIT 10;"
175
+ }
176
+ }
177
+
178
+
179
+ ```
180
+
181
+ ## Timeout[](https://kiro.dev/docs/cli/hooks/#timeout)
182
+ Default timeout is 30 seconds (30,000ms). Configure with `timeout_ms` field.
183
+ ## Caching[](https://kiro.dev/docs/cli/hooks/#caching)
184
+ Successful hook results are cached based on `cache_ttl_seconds`:
185
+ * `0`: No caching (default)
186
+ * `> 0`: Cache successful results for specified seconds
187
+ * AgentSpawn hooks are never cached
188
+
189
+
190
+ Page updated: November 24, 2025
191
+ [Delegate](https://kiro.dev/docs/cli/experimental/delegate/)
192
+ [Auto complete](https://kiro.dev/docs/cli/autocomplete/)
193
+ On this page
194
+ * [Defining hooks](https://kiro.dev/docs/cli/hooks/#defining-hooks)
195
+ * [Hook event](https://kiro.dev/docs/cli/hooks/#hook-event)
196
+ * [Hook output](https://kiro.dev/docs/cli/hooks/#hook-output)
197
+ * [Tool matching](https://kiro.dev/docs/cli/hooks/#tool-matching)
198
+ * [Examples](https://kiro.dev/docs/cli/hooks/#examples)
199
+ * [Hook types](https://kiro.dev/docs/cli/hooks/#hook-types)
200
+ * [AgentSpawn](https://kiro.dev/docs/cli/hooks/#agentspawn)
201
+ * [UserPromptSubmit](https://kiro.dev/docs/cli/hooks/#userpromptsubmit)
202
+ * [PreToolUse](https://kiro.dev/docs/cli/hooks/#pretooluse)
203
+ * [PostToolUse](https://kiro.dev/docs/cli/hooks/#posttooluse)
204
+ * [Stop](https://kiro.dev/docs/cli/hooks/#stop)
205
+ * [MCP Example](https://kiro.dev/docs/cli/hooks/#mcp-example)
206
+ * [Timeout](https://kiro.dev/docs/cli/hooks/#timeout)
207
+ * [Caching](https://kiro.dev/docs/cli/hooks/#caching)