{"version":"2.1.336","anchor":"sdk-additionaldirectoriesdelivery-option","canonical_anchor":"sdk-additionaldirectoriesdelivery-option","heading":"SDK hosts can choose how extra working directories are passed in","tier":"use","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/sdk-additionaldirectoriesdelivery-option","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### SDK hosts can choose how extra working directories are passed in\n\nThe SDK's `additionalDirectoriesDelivery` option sends extra directories on the command line or in the opening message\n\n**What**\n\nThe SDK lets other programs run Claude Code from their own code. Its `additionalDirectoriesDelivery` option controls how extra directories Claude Code may work in are handed over:\n\n- `argv`, the default, passes them on the command line\n\n- `initialize` passes them in the first message sent to Claude Code\n\nAny other value stops with the error \"Invalid additionalDirectoriesDelivery. Expected 'argv' or 'initialize'.\" The temporary folder used when resuming a session also now contains a `.claude` folder.\n\n**Why**\n\nPrograms embedding Claude Code can send directory lists in the opening message instead of on the command line.\n\n- Area: SDK\n- Names: `additionalDirectoriesDelivery`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}