What
A 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:
- The runner passes
CLAUDE_RUNNER_START_FOLDER,CLAUDE_CODE_RUNNER_START_NOTESandCLAUDE_CODE_PROJECTS_FEATURE_FLAGSto the session as environment variables (named values a program reads when it starts). The first two were also added to several allowed lists next toCLAUDE_RUNNER_OFFERS_NEW_MACHINE. - It removes
SELF_HOSTED_RUNNER_START_DIRfrom the environment the session inherits. - A start folder is refused if it is an absolute path, contains
.., points into.git, is a link, or sits in a nested repository. - 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 inacme/web=services/api.
Why
Operators can point sessions at a subfolder, such as one service in a larger repository, and unsafe paths are caught instead of being used.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agree
Self-hosted runner: Added --start-dir / SELF_HOSTED_RUNNER_START_DIR to have Claude start its work in a folder of a repository, while…