Knowledge Scope
Select exactly which files and folders your AI assistant knows about.
What is the Knowledge Scope?
The Knowledge Scope is the set of files and folders you've selected in the dashboard's FolderTree panel. When you toggle a file or folder on, it gets included in your project's index. When you toggle it off, it's excluded. Only selected files are searchable and available as context for your AI tools.
How it works
Using the dashboard
Open the Knowledge Sources panel in your dashboard. Each file and folder has a checkbox. Checked items are in scope; unchecked items are excluded.
- Select a folder — includes all files inside it (descendants are cleaned up automatically)
- Deselect a folder — removes it and all descendants; if a parent was selected, it "explodes" into sibling selections
- Clear all — removes all selections (next build will index everything matching your glob patterns)
After changing your selection, click Build to re-index with the new scope. Pro-tier users with auto-rebuild enabled get automatic debounced rebuilds.
API usage
Get current scope
Set scope (full replacement)
Add files to scope
Remove files from scope
How it fits together
**/*.py, **/*.md. Knowledge Scope then lets you pick specific files/folders from that set. Think of globs as the "universe" and scope as your "selection."prep (the primary MCP tool), it combines both: atlas routing from the graph + semantic search from your selected files.API reference
Returns the current Knowledge Scope (list of selected file/folder paths).
Replace the entire scope. Body: { "included_paths": ["src", "docs"] }. Paths are deduplicated and sorted.
Add paths to the scope. Body: { "paths": ["src/core"] }. Adding a parent auto-removes explicit children.
Remove paths from the scope. Body: { "paths": ["vendor"] }. Removing a path also removes descendants.
Returns pipeline status (state, pending changes, debounce info) plus the full included_paths list.
