{"version":"2.1.330","anchor":"self-hosted-runner-passes-a-start-folder-and-projects-featur","canonical_anchor":"self-hosted-runner-passes-a-start-folder-and-projects-featur","heading":"Self-hosted runners can start a session in a subfolder of the repository","tier":"notice","area":"Runners","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/self-hosted-runner-passes-a-start-folder-and-projects-featur","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Self-hosted runners can start a session in a subfolder of the repository\n\nSelf-hosted runners pass a checked start folder and new variables like `CLAUDE_RUNNER_START_FOLDER` to the session they launch\n\n**What**\n\nA self-hosted runner is a machine you operate that launches Claude Code sessions. It can now start a session in a chosen folder inside the first repository:\n\n- The runner passes `CLAUDE_RUNNER_START_FOLDER`, `CLAUDE_CODE_RUNNER_START_NOTES` and `CLAUDE_CODE_PROJECTS_FEATURE_FLAGS` to the session as environment variables (named values a program reads when it starts). The first two were also added to several allowed lists next to `CLAUDE_RUNNER_OFFERS_NEW_MACHINE`.\n\n- It removes `SELF_HOSTED_RUNNER_START_DIR` from the environment the session inherits.\n\n- A start folder is refused if it is an absolute path, contains `..`, points into `.git`, is a link, or sits in a nested repository.\n\n- When a folder is refused, Claude starts where it would without one, and the operator is told to set `SELF_HOSTED_RUNNER_START_DIR` (`--start-dir`) to an existing folder that is not a link, relative to the repository's root, as in `acme\/web=services\/api`.\n\n**Why**\n\nOperators can point sessions at a subfolder, such as one service in a larger repository, and unsafe paths are caught instead of being used.\n\n- Area: Runners\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}