{"version":"2.1.317","anchor":"new-env-claude-code-plain-delta-direct-write-for-streaming-d","canonical_anchor":"new-env-claude-code-plain-delta-direct-write-for-streaming-d","heading":"New CLAUDE_CODE_PLAIN_DELTA_DIRECT_WRITE setting for faster stream-json output","tier":"use","area":"Headless Mode","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.317\/e\/new-env-claude-code-plain-delta-direct-write-for-streaming-d","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.317","markdown":"### New `CLAUDE_CODE_PLAIN_DELTA_DIRECT_WRITE` setting for faster stream-json output\n\nSetting CLAUDE_CODE_PLAIN_DELTA_DIRECT_WRITE with the fast-path option writes streamed text pieces straight out when the reader is waiting\n\n**What**\n\nA new environment variable, `CLAUDE_CODE_PLAIN_DELTA_DIRECT_WRITE`, changes how Claude Code sends streamed text when its output is read by another program. Deltas are the small pieces of a reply sent as it is written. Plain deltas are written out directly while the reading program is waiting for them, but only when all of these hold:\n\n- `CLAUDE_CODE_PLAIN_DELTA_DIRECT_WRITE` is set.\n\n- `CLAUDE_CODE_PLAIN_DELTA_FAST_PATH` is also set.\n\n- The output format is `stream-json`.\n\n- Verbose output is on.\n\n**Why**\n\nIt is an opt-in way to cut delay for programs that read Claude Code's `stream-json` output.\n\n- Area: Headless Mode\n- Names: `CLAUDE_CODE_PLAIN_DELTA_DIRECT_WRITE`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}