{"version":"2.1.333","anchor":"new-instruction-dirs-cli-flag-in-the-flag-list","canonical_anchor":"new-instruction-dirs-cli-flag-in-the-flag-list","heading":"New hidden --instruction-dirs launch option for SDK use","tier":"use","area":"CLI","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/new-instruction-dirs-cli-flag-in-the-flag-list","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### New hidden --instruction-dirs launch option for SDK use\n\nA hidden --instruction-dirs flag lets SDK hosts choose which added directories load instruction files such as CLAUDE.md\n\n**Unclear.** What `--instruction-dirs` does and what it expects as a value is not known.\n\n**What**\n\nA 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.\n\n- `--instruction-dirs` takes a JSON list of absolute folder paths. Claude Code loads instruction files from those folders.\n\n- 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.\n\n- 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.\n\n- The flag sits in the same list as `--metadata`, `--forward-home-settings` and `--project-config-root`.\n\n**Why**\n\nA 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.\n\n- Area: CLI\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no"}