Ir al contenido

Understand settings precedence

Esta página aún no está disponible en tu idioma.

Project settings apply to one repository; user settings apply across projects; command flags override both for one invocation. Use xcsh config list --json to inspect effective values.

Discovery collects fixed user, project, environment, and command-line sources, normalizes each through the schema-backed configuration wrapper, then resolves values by explicit priority. Capability-specific discovery uses the same roots but owns its own merge and deduplication rules. Native .xcsh providers participate through the documented provider interface, not an implicit recursive scan.

Run xcsh config path instead of assuming a platform path. Project data uses .xcsh/, including settings.json, mcp.json, contexts, skills, agents, extensions, tools, hooks, commands, and XCSH.md. Primary user data lives under the xcsh agent directory; PI_CODING_AGENT_DIR can override that location.

Terminal window
xcsh config get <KEY>
xcsh config set <KEY> <VALUE>
xcsh config reset <KEY>

Use environment variables for credentials and ephemeral process configuration. Do not copy an entire old settings file when only one key is needed.

Change one key in the narrowest applicable scope and restart xcsh before judging precedence. Use /settings or a schema-backed read path to inspect the effective value; do not infer it from the file you edited. Project settings can affect collaborators, while user settings affect other worktrees on the same account. Revert the test key and confirm a new process resolves the prior value.