What
A self-hosted runner is a program you run on your own machine to host Claude Code cloud sessions. It can now be pointed at repository folders you already have, instead of making a fresh copy (worktree) for each session.
- A new repeatable
--repository-folderflag, and theSELF_HOSTED_RUNNER_REPOSITORY_FOLDERvariable, take a comma list in the form<owner>/<repo>=<folder>or<owner>/*=<folder>/*. Other shapes are rejected. - It only works at
--capacity1. There the runner checks the folders at startup and rules out its own paths, such as its program path, hooks folder, log file, pool secret and client certificate and key. A conflict stops it with a[runner:fatal]line. - Above capacity 1 it warns: "--repository-folder does nothing at --capacity above 1: sessions get worktrees of their own".
- If a checkout hook prepares the repository, the folder is ignored and a warning is logged.
- Processes the runner starts have
SELF_HOSTED_RUNNER_REPOSITORY_FOLDERcleared from their environment.
Other runner changes found with it:
- A fatal startup error is logged as a
[runner:fatal]line, reported against any assigned sessions with a 4 second timeout, and the runner deregisters with a matching reason. - If every repository was added after the session was created and none could be prepared, the session now starts with no repository instead of failing. Skipped repositories carry a reason.
- Git clean-up failures are reported as a filesystem setup failure.
- After a crash, the saved error output keeps the runner's own words.
- While waiting to drain, busy-session counts come from a different session list.
- The standalone agent proxy is now handled as a separate case.
Why
Operators running a single-session runner can work in their own checkouts. Misconfigured folders now fail clearly at startup rather than causing confusing session errors.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agree
Self-hosted runner: Added --repository-folder to name the folder that sessions use for a repository at --capacity 1, in place of its path…