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,449 @@
1
+ # Knowledge management
2
+ The `/knowledge` command provides persistent knowledge base functionality for Kiro CLI, allowing you to store, search, and manage contextual information that persists across chat sessions.
3
+ ## Getting started[](https://kiro.dev/docs/cli/experimental/knowledge-management/#getting-started)
4
+ ### Enable knowledge feature[](https://kiro.dev/docs/cli/experimental/knowledge-management/#enable-knowledge-feature)
5
+ Knowledge management is experimental and must be enabled before use:
6
+ bash
7
+ ```
8
+
9
+ kiro-cli settings chat.enableKnowledge true
10
+
11
+
12
+ ```
13
+
14
+ ### Basic usage[](https://kiro.dev/docs/cli/experimental/knowledge-management/#basic-usage)
15
+ Once enabled, use `/knowledge` commands within your chat session:
16
+ bash
17
+ ```
18
+
19
+ /knowledge add --name myproject --path /path/to/project
20
+ /knowledge show
21
+
22
+
23
+ ```
24
+
25
+ ## Commands[](https://kiro.dev/docs/cli/experimental/knowledge-management/#commands)
26
+ ### /knowledge show[](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-show)
27
+ Display all entries in your knowledge base with detailed information including creation dates, item counts, and persistence status. Also shows any active background indexing operations with progress and ETA.
28
+ This unified command provides a complete view of both your stored knowledge and ongoing operations.
29
+ bash
30
+ ```
31
+
32
+ /knowledge show
33
+
34
+
35
+ ```
36
+
37
+ ### /knowledge add[](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-add)
38
+ Add files or directories to your knowledge base. The system recursively indexes all supported files in directories.
39
+ **Syntax:**
40
+ bash
41
+ ```
42
+
43
+ /knowledge add --name <name> --path <path> [--include pattern] [--exclude pattern] [--index-type Fast|Best]
44
+
45
+
46
+ ```
47
+
48
+ **Required Parameters:**
49
+ * `--name` or `-n`: Descriptive name for the knowledge entry
50
+ * `--path` or `-p`: Path to file or directory to index
51
+
52
+
53
+ **Examples:**
54
+ bash
55
+ ```
56
+
57
+ /knowledge add --name "project-docs" --path /path/to/documentation
58
+ /knowledge add -n "config-files" -p /path/to/config.json
59
+ /knowledge add --name "fast-search" --path /path/to/logs --index-type Fast
60
+ /knowledge add -n "semantic-search" -p /path/to/docs --index-type Best
61
+
62
+
63
+ ```
64
+
65
+ ### Index types[](https://kiro.dev/docs/cli/experimental/knowledge-management/#index-types)
66
+ Choose the indexing approach that best fits your needs:
67
+ #### Fast (Lexical - bm25)[](https://kiro.dev/docs/cli/experimental/knowledge-management/#fast-lexical---bm25)
68
+ **Advantages:**
69
+ * ✅ Lightning-fast indexing - processes files quickly
70
+ * ✅ Instant search - keyword-based with immediate results
71
+ * ✅ Low resource usage - minimal CPU and memory
72
+ * ✅ Perfect for logs, configs, and large codebases
73
+
74
+
75
+ **Disadvantages:**
76
+ * ❌ Less intelligent - requires exact keyword matches
77
+
78
+
79
+ #### Best (Semantic - all-minilm-l6-v2)[](https://kiro.dev/docs/cli/experimental/knowledge-management/#best-semantic---all-minilm-l6-v2)
80
+ **Advantages:**
81
+ * ✅ Intelligent search - understands context and meaning
82
+ * ✅ Natural language queries - search with full sentences
83
+ * ✅ Finds related concepts - even without exact keywords
84
+ * ✅ Perfect for documentation and research
85
+
86
+
87
+ **Disadvantages:**
88
+ * ❌ Slower indexing - requires AI model processing
89
+ * ❌ Higher resource usage - more CPU and memory intensive
90
+
91
+
92
+ ### When to use each type[](https://kiro.dev/docs/cli/experimental/knowledge-management/#when-to-use-each-type)
93
+ Use Case | Recommended Type | Why
94
+ ---|---|---
95
+ Log files, error messages | Fast | Quick keyword searches, large volumes
96
+ Configuration files | Fast | Exact parameter/value lookups
97
+ Large codebases | Fast | Fast symbol and function searches
98
+ Documentation | Best | Natural language understanding
99
+ Research papers | Best | Concept-based searching
100
+ Mixed content | Best | Better overall search experience
101
+ ### Default behavior[](https://kiro.dev/docs/cli/experimental/knowledge-management/#default-behavior)
102
+ If you don't specify `--index-type`, the system uses your configured default:
103
+ bash
104
+ ```
105
+
106
+ # Set your preferred default
107
+ kiro-cli settings knowledge.indexType Fast # or Best
108
+
109
+ # This will use your default setting
110
+ /knowledge add "my-project" /path/to/project
111
+
112
+
113
+ ```
114
+
115
+ ### Pattern filtering[](https://kiro.dev/docs/cli/experimental/knowledge-management/#pattern-filtering)
116
+ Control which files are indexed using include and exclude patterns:
117
+ bash
118
+ ```
119
+
120
+ /knowledge add "rust-code" /path/to/project --include "*.rs" --exclude "target/**"
121
+ /knowledge add "docs" /path/to/project --include "**/*.md" --include "**/*.txt" --exclude "node_modules/**"
122
+
123
+
124
+ ```
125
+
126
+ **Pattern Examples:**
127
+ * `*.rs` - All Rust files recursively (equivalent to `**/*.rs`)
128
+ * `**/*.py` - All Python files recursively
129
+ * `target/**` - Everything in target directory
130
+ * `node_modules/**` - Everything in node_modules
131
+
132
+
133
+ **Default Pattern Behavior:**
134
+ When you don't specify patterns, the system uses configured defaults:
135
+ bash
136
+ ```
137
+
138
+ kiro-cli settings knowledge.defaultIncludePatterns '["**/*.rs", "**/*.py"]'
139
+ kiro-cli settings knowledge.defaultExcludePatterns '["target/**", "__pycache__/**"]'
140
+
141
+ # Uses default patterns
142
+ /knowledge add "my-project" /path/to/project
143
+
144
+ # Overrides defaults
145
+ /knowledge add "docs-only" /path/to/project --include "**/*.md"
146
+
147
+
148
+ ```
149
+
150
+ ### Supported file types[](https://kiro.dev/docs/cli/experimental/knowledge-management/#supported-file-types)
151
+ **Text files:** .txt, .log, .rtf, .tex, .rst
152
+ **Markdown:** .md, .markdown, .mdx
153
+ **JSON:** .json (treated as text for searchability)
154
+ **Configuration:** .ini, .conf, .cfg, .properties, .env
155
+ **Data files:** .csv, .tsv
156
+ **Web formats:** .svg (text-based)
157
+ **Code files:** .rs, .py, .js, .jsx, .ts, .tsx, .java, .c, .cpp, .h, .hpp, .go, .rb, .php, .swift, .kt, .kts, .cs, .sh, .bash, .zsh, .html, .htm, .xml, .css, .scss, .sass, .less, .sql, .yaml, .yml, .toml
158
+ **Special files:** Dockerfile, Makefile, LICENSE, CHANGELOG, README (files without extensions)
159
+ **Note:** Unsupported files are indexed without text content extraction.
160
+ ### /knowledge remove[](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-remove)
161
+ Remove entries from your knowledge base by name, path, or context ID.
162
+ bash
163
+ ```
164
+
165
+ /knowledge remove "project-docs" # Remove by name
166
+ /knowledge remove /path/to/old/project # Remove by path
167
+
168
+
169
+ ```
170
+
171
+ ### /knowledge update[](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-update)
172
+ Update an existing knowledge base entry with new content. Original include/exclude patterns are preserved.
173
+ bash
174
+ ```
175
+
176
+ /knowledge update /path/to/updated/project
177
+
178
+
179
+ ```
180
+
181
+ ### /knowledge clear[](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-clear)
182
+ Remove all entries from your knowledge base. Requires confirmation and cannot be undone.
183
+ bash
184
+ ```
185
+
186
+ /knowledge clear
187
+
188
+
189
+ ```
190
+
191
+ You'll be prompted:
192
+ ```
193
+
194
+ ⚠️ This will remove ALL knowledge base entries. Are you sure? (y/N):
195
+
196
+
197
+ ```
198
+
199
+ ### /knowledge cancel[](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-cancel)
200
+ Cancel background operations. Cancel specific operation by ID or all operations.
201
+ bash
202
+ ```
203
+
204
+ /knowledge cancel abc12345 # Cancel specific operation
205
+ /knowledge cancel all # Cancel all operations
206
+
207
+
208
+ ```
209
+
210
+ ## Configuration[](https://kiro.dev/docs/cli/experimental/knowledge-management/#configuration)
211
+ Configure knowledge base behavior:
212
+ bash
213
+ ```
214
+
215
+ # Maximum files per knowledge base
216
+ kiro-cli settings knowledge.maxFiles 10000
217
+
218
+ # Text chunk size for processing
219
+ kiro-cli settings knowledge.chunkSize 1024
220
+
221
+ # Overlap between chunks
222
+ kiro-cli settings knowledge.chunkOverlap 256
223
+
224
+ # Default index type
225
+ kiro-cli settings knowledge.indexType Fast
226
+
227
+ # Default include patterns
228
+ kiro-cli settings knowledge.defaultIncludePatterns '["**/*.rs", "**/*.md"]'
229
+
230
+ # Default exclude patterns
231
+ kiro-cli settings knowledge.defaultExcludePatterns '["target/**", "node_modules/**"]'
232
+
233
+
234
+ ```
235
+
236
+ ## Agent-specific knowledge bases[](https://kiro.dev/docs/cli/experimental/knowledge-management/#agent-specific-knowledge-bases)
237
+ ### Isolated knowledge storage[](https://kiro.dev/docs/cli/experimental/knowledge-management/#isolated-knowledge-storage)
238
+ Each agent maintains its own isolated knowledge base, ensuring knowledge contexts are scoped to the specific agent you're working with. This provides better organization and prevents knowledge conflicts.
239
+ ### Folder structure[](https://kiro.dev/docs/cli/experimental/knowledge-management/#folder-structure)
240
+ Knowledge bases are stored in:
241
+ ```
242
+
243
+ ~/.kiro/knowledge_bases/
244
+ ├── kiro_cli_default/ # Default agent
245
+ │ ├── contexts.json
246
+ │ ├── context-id-1/
247
+ │ │ ├── data.json
248
+ │ │ └── bm25_data.json
249
+ │ └── context-id-2/
250
+ │ └── data.json
251
+ ├── my-custom-agent_<code>/ # Custom agent
252
+ │ ├── contexts.json
253
+ │ └── context-id-3/
254
+ │ └── data.json
255
+ └── another-agent_<code>/ # Another agent
256
+ ├── contexts.json
257
+ └── context-id-4/
258
+ └── data.json
259
+
260
+
261
+ ```
262
+
263
+ ### How agent isolation works[](https://kiro.dev/docs/cli/experimental/knowledge-management/#how-agent-isolation-works)
264
+ * **Automatic Scoping** : `/knowledge` commands operate on current agent's knowledge base
265
+ * **No Cross-Agent Access** : Agent A cannot access Agent B's knowledge
266
+ * **Independent Configuration** : Each agent has different settings and contexts
267
+ * **Migration Support** : Legacy knowledge bases migrate to default agent
268
+
269
+
270
+ ### Agent switching[](https://kiro.dev/docs/cli/experimental/knowledge-management/#agent-switching)
271
+ When you switch agents, knowledge commands automatically work with that agent's knowledge base:
272
+ bash
273
+ ```
274
+
275
+ # Working with default agent
276
+ /knowledge add /path/to/docs
277
+
278
+ # Switch to custom agent
279
+ kiro chat --agent my-custom-agent
280
+
281
+ # Creates separate knowledge base for my-custom-agent
282
+ /knowledge add /path/to/agent/docs
283
+
284
+ # Switch back to default
285
+ kiro chat
286
+
287
+ # Only sees original docs, not agent-specific docs
288
+ /knowledge show
289
+
290
+
291
+ ```
292
+
293
+ ## How it works[](https://kiro.dev/docs/cli/experimental/knowledge-management/#how-it-works)
294
+ ### Indexing process[](https://kiro.dev/docs/cli/experimental/knowledge-management/#indexing-process)
295
+ 1. **Pattern Filtering** : Files filtered by include/exclude patterns
296
+ 2. **File Discovery** : Recursive scan for supported file types
297
+ 3. **Content Extraction** : Text extracted from each file
298
+ 4. **Chunking** : Large files split into searchable chunks
299
+ 5. **Background Processing** : Asynchronous indexing
300
+ 6. **Semantic Embedding** : Content processed for semantic search
301
+
302
+
303
+ ### Search capabilities[](https://kiro.dev/docs/cli/experimental/knowledge-management/#search-capabilities)
304
+ Knowledge bases use semantic search:
305
+ * Natural language queries
306
+ * Results ranked by relevance, not just keywords
307
+ * Related concepts found even without exact word matches
308
+
309
+
310
+ ### Persistence[](https://kiro.dev/docs/cli/experimental/knowledge-management/#persistence)
311
+ * Contexts survive across chat sessions and CLI restarts
312
+ * Persistence determined automatically by usage patterns
313
+ * Include/exclude patterns stored and reused during updates
314
+
315
+
316
+ ## Best practices[](https://kiro.dev/docs/cli/experimental/knowledge-management/#best-practices)
317
+ ### Organizing your knowledge base[](https://kiro.dev/docs/cli/experimental/knowledge-management/#organizing-your-knowledge-base)
318
+ * Use descriptive names: "api-documentation" not "docs"
319
+ * Group related files in directories before adding
320
+ * Use include/exclude patterns to focus on relevant files
321
+ * Regularly review and update outdated contexts
322
+
323
+
324
+ ### Effective searching[](https://kiro.dev/docs/cli/experimental/knowledge-management/#effective-searching)
325
+ * Use natural language: "how to handle authentication errors using the knowledge tool"
326
+ * Be specific: "database connection configuration"
327
+ * Try different phrasings if initial searches don't work
328
+ * Prompt Kiro to use the tool: "find database connection configuration using your knowledge bases"
329
+
330
+
331
+ ### Managing large projects[](https://kiro.dev/docs/cli/experimental/knowledge-management/#managing-large-projects)
332
+ * Add project directories rather than individual files
333
+ * Use patterns to avoid build artifacts: `--exclude "target/**" --exclude "node_modules/**"`
334
+ * Use `/knowledge show` to monitor indexing progress
335
+ * Consider breaking large projects into logical sub-directories
336
+
337
+
338
+ ### Pattern filtering best practices[](https://kiro.dev/docs/cli/experimental/knowledge-management/#pattern-filtering-best-practices)
339
+ * **Be specific** : Use precise patterns to avoid over-inclusion
340
+ * **Exclude build artifacts** : Always exclude `target/**`, `node_modules/**`, `.git/**`
341
+ * **Include relevant extensions** : Focus on file types you need
342
+ * **Test patterns** : Verify patterns match expected files before large operations
343
+
344
+
345
+ ## Limitations[](https://kiro.dev/docs/cli/experimental/knowledge-management/#limitations)
346
+ ### File type support[](https://kiro.dev/docs/cli/experimental/knowledge-management/#file-type-support)
347
+ * Binary files ignored during indexing
348
+ * Very large files may be chunked, potentially splitting related content
349
+ * Some specialized formats may not extract content optimally
350
+
351
+
352
+ ### Performance considerations[](https://kiro.dev/docs/cli/experimental/knowledge-management/#performance-considerations)
353
+ * Large directories may take significant time to index
354
+ * Background operations limited by concurrent processing
355
+ * Search performance varies by knowledge base size
356
+ * Pattern filtering improves performance for large directories
357
+
358
+
359
+ ### Storage and persistence[](https://kiro.dev/docs/cli/experimental/knowledge-management/#storage-and-persistence)
360
+ * No explicit storage size limits, but practical limits apply
361
+ * No automatic cleanup of old or unused contexts
362
+ * Clear operations are irreversible with no backup
363
+
364
+
365
+ ## Troubleshooting[](https://kiro.dev/docs/cli/experimental/knowledge-management/#troubleshooting)
366
+ ### Files not being indexed[](https://kiro.dev/docs/cli/experimental/knowledge-management/#files-not-being-indexed)
367
+ 1. **Check patterns** : Ensure include patterns match your files
368
+ 2. **Verify exclude patterns** : Make sure they're not filtering desired files
369
+ 3. **Check file types** : Ensure files have supported extensions
370
+ 4. **Monitor progress** : Use `/knowledge show` to check indexing status
371
+ 5. **Verify paths** : Ensure paths exist and are accessible
372
+ 6. **Check for errors** : Look for error messages in CLI output
373
+
374
+
375
+ ### Search not finding expected results[](https://kiro.dev/docs/cli/experimental/knowledge-management/#search-not-finding-expected-results)
376
+ 1. **Wait for indexing** : Use `/knowledge show` to ensure completion
377
+ 2. **Try different queries** : Use various phrasings and keywords
378
+ 3. **Verify content** : Confirm content was added with `/knowledge show`
379
+ 4. **Check file types** : Unsupported types won't have searchable content
380
+
381
+
382
+ ### Performance issues[](https://kiro.dev/docs/cli/experimental/knowledge-management/#performance-issues)
383
+ 1. **Check operations** : Use `/knowledge show` for progress
384
+ 2. **Cancel if needed** : Use `/knowledge cancel` for problematic operations
385
+ 3. **Add smaller chunks** : Consider subdirectories instead of entire projects
386
+ 4. **Use better patterns** : Exclude unnecessary files
387
+ 5. **Adjust settings** : Lower `maxFiles` or `chunkSize` for better performance
388
+
389
+
390
+ ### Pattern issues[](https://kiro.dev/docs/cli/experimental/knowledge-management/#pattern-issues)
391
+ 1. **Test patterns** : Start simple, then add complexity
392
+ 2. **Check syntax** : Ensure glob patterns use correct syntax (`**` for recursive)
393
+ 3. **Verify paths** : Make sure patterns match actual file paths
394
+ 4. **Use absolute patterns** : Consider full paths for precision
395
+
396
+
397
+ ## Next steps[](https://kiro.dev/docs/cli/experimental/knowledge-management/#next-steps)
398
+ * [Context Management](https://kiro.dev/docs/cli/chat/context/)
399
+ * [Custom Agents](https://kiro.dev/docs/cli/custom-agents)
400
+ * [Settings Configuration](https://kiro.dev/docs/cli/reference/settings)
401
+ * [Experimental Features](https://kiro.dev/docs/cli/experimental)
402
+
403
+
404
+ Page updated: December 8, 2025
405
+ [Experimental](https://kiro.dev/docs/cli/experimental/)
406
+ [Tangent mode](https://kiro.dev/docs/cli/experimental/tangent-mode/)
407
+ On this page
408
+ * [Getting started](https://kiro.dev/docs/cli/experimental/knowledge-management/#getting-started)
409
+ * [Enable knowledge feature](https://kiro.dev/docs/cli/experimental/knowledge-management/#enable-knowledge-feature)
410
+ * [Basic usage](https://kiro.dev/docs/cli/experimental/knowledge-management/#basic-usage)
411
+ * [Commands](https://kiro.dev/docs/cli/experimental/knowledge-management/#commands)
412
+ * [/knowledge show](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-show)
413
+ * [/knowledge add](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-add)
414
+ * [Index types](https://kiro.dev/docs/cli/experimental/knowledge-management/#index-types)
415
+ * [Fast (Lexical - bm25)](https://kiro.dev/docs/cli/experimental/knowledge-management/#fast-lexical---bm25)
416
+ * [Best (Semantic - all-minilm-l6-v2)](https://kiro.dev/docs/cli/experimental/knowledge-management/#best-semantic---all-minilm-l6-v2)
417
+ * [When to use each type](https://kiro.dev/docs/cli/experimental/knowledge-management/#when-to-use-each-type)
418
+ * [Default behavior](https://kiro.dev/docs/cli/experimental/knowledge-management/#default-behavior)
419
+ * [Pattern filtering](https://kiro.dev/docs/cli/experimental/knowledge-management/#pattern-filtering)
420
+ * [Supported file types](https://kiro.dev/docs/cli/experimental/knowledge-management/#supported-file-types)
421
+ * [/knowledge remove](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-remove)
422
+ * [/knowledge update](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-update)
423
+ * [/knowledge clear](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-clear)
424
+ * [/knowledge cancel](https://kiro.dev/docs/cli/experimental/knowledge-management/#knowledge-cancel)
425
+ * [Configuration](https://kiro.dev/docs/cli/experimental/knowledge-management/#configuration)
426
+ * [Agent-specific knowledge bases](https://kiro.dev/docs/cli/experimental/knowledge-management/#agent-specific-knowledge-bases)
427
+ * [Isolated knowledge storage](https://kiro.dev/docs/cli/experimental/knowledge-management/#isolated-knowledge-storage)
428
+ * [Folder structure](https://kiro.dev/docs/cli/experimental/knowledge-management/#folder-structure)
429
+ * [How agent isolation works](https://kiro.dev/docs/cli/experimental/knowledge-management/#how-agent-isolation-works)
430
+ * [Agent switching](https://kiro.dev/docs/cli/experimental/knowledge-management/#agent-switching)
431
+ * [How it works](https://kiro.dev/docs/cli/experimental/knowledge-management/#how-it-works)
432
+ * [Indexing process](https://kiro.dev/docs/cli/experimental/knowledge-management/#indexing-process)
433
+ * [Search capabilities](https://kiro.dev/docs/cli/experimental/knowledge-management/#search-capabilities)
434
+ * [Persistence](https://kiro.dev/docs/cli/experimental/knowledge-management/#persistence)
435
+ * [Best practices](https://kiro.dev/docs/cli/experimental/knowledge-management/#best-practices)
436
+ * [Organizing your knowledge base](https://kiro.dev/docs/cli/experimental/knowledge-management/#organizing-your-knowledge-base)
437
+ * [Effective searching](https://kiro.dev/docs/cli/experimental/knowledge-management/#effective-searching)
438
+ * [Managing large projects](https://kiro.dev/docs/cli/experimental/knowledge-management/#managing-large-projects)
439
+ * [Pattern filtering best practices](https://kiro.dev/docs/cli/experimental/knowledge-management/#pattern-filtering-best-practices)
440
+ * [Limitations](https://kiro.dev/docs/cli/experimental/knowledge-management/#limitations)
441
+ * [File type support](https://kiro.dev/docs/cli/experimental/knowledge-management/#file-type-support)
442
+ * [Performance considerations](https://kiro.dev/docs/cli/experimental/knowledge-management/#performance-considerations)
443
+ * [Storage and persistence](https://kiro.dev/docs/cli/experimental/knowledge-management/#storage-and-persistence)
444
+ * [Troubleshooting](https://kiro.dev/docs/cli/experimental/knowledge-management/#troubleshooting)
445
+ * [Files not being indexed](https://kiro.dev/docs/cli/experimental/knowledge-management/#files-not-being-indexed)
446
+ * [Search not finding expected results](https://kiro.dev/docs/cli/experimental/knowledge-management/#search-not-finding-expected-results)
447
+ * [Performance issues](https://kiro.dev/docs/cli/experimental/knowledge-management/#performance-issues)
448
+ * [Pattern issues](https://kiro.dev/docs/cli/experimental/knowledge-management/#pattern-issues)
449
+ * [Next steps](https://kiro.dev/docs/cli/experimental/knowledge-management/#next-steps)