Unclear What --instruction-dirs does and what it expects as a value is not known.
What
A flag is an option you add when starting Claude Code from the command line. Claude Code now accepts a hidden flag, --instruction-dirs, meant for the SDK only. The SDK is the toolkit programs use to run Claude Code for you.
--instruction-dirstakes a JSON list of absolute folder paths. Claude Code loads instruction files from those folders.- A path only counts if it is also an added directory, meaning a folder you have already given Claude Code access to. A path that is not an added directory loads nothing.
- Claude Code rejects the value unless it is a list of absolute paths written as text with no NUL bytes. A NUL byte is an invisible zero character.
- The flag sits in the same list as
--metadata,--forward-home-settingsand--project-config-root.
Why
A program that runs Claude Code through the SDK can now pick which of its added directories supply instruction files, such as CLAUDE.md, instead of having all of them or none of them do so.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What `--instruction-dirs` does and what it expects as a value is not known.