Skip to main content

settings_documents

Function settings_documents 

Source
pub fn settings_documents(
    config_dir: &Path,
    cwd: Option<&Path>,
) -> SettingsDocuments
Expand description

Read the three Claude Code settings documents from disk.

config_dir is the user-scope config directory the caller has bound this read to (typically the per-spawn account binding). cwd is the project root used to locate <cwd>/.claude/settings.local.json - sourced from forge.toml or the agent’s reported cwd, never std::env::current_dir(). It is None when no project root resolves, which reads no project-local document rather than joining an empty root into a relative path.