Unclear It is not clear whether --tree-ready-file can be typed by users or is only meant for host apps.
What
There is a new startup option, --tree-ready-file <file>. It is hidden from the help text, marked as only for the Agent SDK (the toolkit developers use to run Claude Code from their own programs), and ordinary command-line users cannot reach it. It is new in this build.
A host program passes it when it is still writing the working folder, such as a new git worktree (a separate checkout of a repository). Until the named file says "ready", tools and hooks wait. Hooks are scripts that run automatically at set points.
The rules it enforces at startup:
- Only for a new session started with
--print,--input-format=stream-jsonand--output-format=stream-json. - Not allowed with
--await-claim,--worktree,--sdk-url,--continue,--resumeor--fork-session. - Needs a
--project-config-rootoutside the working folder. - The file path must be absolute, local, and outside both the working folder and the
--project-config-root. - Breaking a rule exits with an error.
It is also listed as unsupported for remote or cloud launches, described as holding "a local session for a folder that its host is still writing".
Why
A host can start Claude Code before a worktree is fully filled in without tools or hooks acting on a half-written folder. Most users never see this option.
It is not clear whether `--tree-ready-file` can be typed by users or is only meant for host apps.