Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.219 Home All releases olderv2.1.218 v2.1.220newer
Claude Code v2.1.219

register_repo_root accepts launch-time roots and rejects duplicates

You'll notice
Useful3 Signal0
SDK Protocol

Registering a repo root now accepts launch-time --add-dir roots and clearly rejects duplicates or bad paths.

--add-dirregister_repo_root
What

The SDK control request for registering a repo root now accepts more legitimate targets and fails loudly on cases it previously handled silently or not at all.

Details
  • Previously the target only had to be a subdirectory of cwd; it now also accepts subdirectories of directories registered at launch via --add-dir.
  • Rejects cwd itself with a dedicated message, rejects paths that are not directories, and rejects an already-registered directory instead of silently re-running registration.
  • Rejection message names both accepted roots: "is not a subdirectory of cwd or of a launch-time --add-dir root".
  • The tool description now states that the registration pipeline and DirectoryAdded hooks do not re-run on a duplicate.
Evidence

is not a subdirectory of cwd or of a launch-time --add-dir root

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.219 →