Exclude files¶
Use ignore rules to keep generated files, build artifacts, and irrelevant directories out of the index.
What kbolt ignores by default¶
kbolt already skips common noisy directories and files, including:
.gitnode_modulestargetdistbuild.next.turbo.venvvenv__pycache__.pytest_cache.cachecoverage.DS_Store*.lock
These defaults apply even if you do not add custom ignore rules.
.gitignore support¶
Inside a collection root, kbolt respects the collection's .gitignore.
That means:
- files ignored by the collection's own
.gitignoreare skipped - parent
.gitignorefiles outside the collection root are not applied
This keeps collection behavior local and predictable.
Add a custom ignore rule¶
To add one pattern:
To inspect the current rules for a collection:
To remove one exact pattern:
To edit the ignore file directly:
To list all collections that currently have custom ignore rules:
Refresh after changing ignore rules¶
Ignore rules only affect future indexing work. If the watcher is running, it refreshes the affected collection automatically after the ignore file changes.
If you want the new exclusion set applied immediately, run:
Good candidates for custom ignore rules¶
Use custom rules for:
- generated API docs
- vendored snapshots
- export folders
- logs
- binary assets that do not help retrieval
Next steps¶
- For the grouped command reference, see Content management.
- For automatic freshness, see Keep indexes fresh.
- For indexing behavior and default local setup, see Quickstart.