{"version":"2.1.275","anchor":"new-project-config-root-cli-flag-reroutes-project-scope-ac","canonical_anchor":"new-project-config-root-cli-flag-reroutes-project-scope-ac","heading":"New --project-config-root flag lets a host override the project directory everywhere","tier":"use","area":"Project Config","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.275\/e\/new-project-config-root-cli-flag-reroutes-project-scope-ac","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.275","markdown":"### New --project-config-root flag lets a host override the project directory everywhere\n\nA new `--project-config-root` flag repoints CLAUDE.md, settings, skills, MCP, and hook resolution to a different project directory\n\n**What**\n\n- A new `--project-config-root` CLI flag lets a host pin the \"project\" directory used for CLAUDE.md discovery, project settings, skills directories, `.mcp.json` resolution, scheduled tasks, and plugin environment variables like `CLAUDE_PROJECT_DIR`, instead of always deriving it from the current working directory.\n\n- Internally, a new accessor (`host.launchOptions.projectConfigRoot()`) is now checked ahead of the normal working-directory-based project root in many places: project settings path resolution, `CLAUDE_SKILL_DIR`\/`CLAUDE_PROJECT_DIR` substitution in skills and slash commands, the environment and working directory used to spawn MCP stdio servers, and the working directory used for LSP server processes. When this override is set, dynamic skill-directory scanning is skipped entirely.\n\n- Hook execution and path handling, and subagent `statusLine` scripts, now also resolve their working directory and `CLAUDE_PROJECT_DIR` from this override before falling back to the normal project root.\n\n**Why**\n\nThis lets a host application run Claude Code against a project directory that differs from the process's actual working directory, useful when embedding Claude Code somewhere the \"project\" isn't simply wherever the process happened to start.\n\n- Area: Project Config\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5"}