generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 176
Open
Labels
Description
Bug Description
Both include_patterns and exclude_patterns from agent config and global settings are ignored during KB indexing. The resulting contexts.json always shows empty arrays, causing all files to be indexed.
Steps to Reproduce
- Set
knowledge.defaultExcludePatternsin~/.kiro/settings/cli.json:
"knowledge.defaultExcludePatterns": [".obsidian/**", "Attachments/**"]- Set
includein agent knowledgeBase resource config (~/.kiro/agents/sa-agent.json):
{
"type": "knowledgeBase",
"source": "file:///path/to/vault/",
"include": ["**/*.md"],
"autoUpdate": true
}- Start chat session, KB auto-indexes
- Check
~/Library/Application Support/kiro-cli/knowledge_bases/*/contexts.json - Observe
include_patterns: []andexclude_patterns: []
Expected Behavior
- Agent config
include: ["**/*.md"]should limit indexing to .md files only - Global
knowledge.defaultExcludePatternsshould exclude matching directories contexts.jsonshould reflect these patterns
Actual Behavior
contexts.jsonshows:"include_patterns": [], "exclude_patterns": []- 478 unique files indexed (expected ~285 .md files)
- 187 files from
.obsidian/directory included (should be excluded) - Non-.md files indexed: .ts(72), .json(40), .js(14), .css(12), .pdf(6), .sh(3), .mjs(2)
Environment
- Kiro CLI: v1.27.3
- OS: macOS
- Index type: best
Notes
This was working in a previous version. The regression likely occurred in a recent update where the pattern fields are no longer passed through to the indexing engine.
Reactions are currently unavailable