pub struct ScanConfig {
pub exclude_paths: Vec<String>,
pub max_file_size_kb: u64,
pub exclude_submodules: bool,
pub local_packages: Vec<String>,
pub auto_scan_limit: usize,
pub additional_denylist_paths: Vec<String>,
}Expand description
Configuration for the scanning pipeline.
Fields§
§exclude_paths: Vec<String>Glob patterns (relative to project root) to exclude from all discovery flows — source files, documentation ingestion, and any future filesystem walks.
Examples:
[scan]
exclude_paths = [".opencode/**", "_bmad/**", "logs/**", "*.log"]The old name exclude_patterns is accepted as a TOML alias for
backwards compatibility.
max_file_size_kb: u64Maximum file size in kilobytes. Files larger than this are skipped.
exclude_submodules: boolWhether to exclude separate submodule scans.
Defaults to false — submodules are scanned into their own DBs by default.
Root discovery always excludes submodule dirs (they get their own DBs);
this flag controls whether separate submodule scans happen at all.
local_packages: Vec<String>Top-level package names that belong to this project and should not be treated as external dependencies.
Useful for monorepos or projects where internal packages are imported
without a relative-path prefix (common in Python). For example, if
from myawesomeapp.web import app and myawesomeapp is a local package, add
"myawesomeapp" here so it is excluded from the external-dependency list.
Applies to all languages, though it is most relevant for Python where internal and external imports are syntactically identical.
Example:
[scan]
local_packages = ["myawesomeapp", "shared", "worker"]auto_scan_limit: usizeMaximum number of files allowed for auto-scan on seshat serve.
Projects exceeding this limit will not be auto-scanned; the user
must run seshat scan explicitly.
additional_denylist_paths: Vec<String>Additional absolute paths that seshat serve should treat as
dangerous when deciding whether to auto-scan from a non-git cwd.
Each entry matches when the cwd equals the entry or is a
descendant of it (component-wise prefix). Absolute paths only —
tilde (~) and environment variables are not expanded.
Relative entries are skipped at runtime with a warn-level log.
Example:
[scan]
additional_denylist_paths = ["/mnt/nfs", "/Volumes/BackupDrive"]Trait Implementations§
Source§impl Clone for ScanConfig
impl Clone for ScanConfig
Source§fn clone(&self) -> ScanConfig
fn clone(&self) -> ScanConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more