Follow Discord
Sweep 04 Dec 2026 · 17:52Z Build v2.1.337 554 read Stable v2.1.332 Latest v2.1.337 Next v2.1.337 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.337 ·

Hidden --tree-ready-file option lets a host make a session wait for its folder

A new hidden SDK-only --tree-ready-file option makes tools and hooks wait until a host marks the working folder ready

Group of 3 Use it now Notable New Features
JSON All of v2.1.337
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
CLIArea: what it touches
New FeaturesKind: in v2.1.337,
What probably matters to youSection of the release

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-json and --output-format=stream-json.
  • Not allowed with --await-claim, --worktree, --sdk-url, --continue, --resume or --fork-session.
  • Needs a --project-config-root outside 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.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether `--tree-ready-file` can be typed by users or is only meant for host apps.

See this entry in the whole of v2.1.337 →

Feedback