{"version":"2.1.337","anchor":"new-claude-code-starter-reads-folder-settings-env-var-for-ch","canonical_anchor":"new-claude-code-starter-reads-folder-settings-env-var-for-ch","heading":"New starter variables control history saving and folder settings in child sessions","tier":"use","area":"Child Sessions","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/new-claude-code-starter-reads-folder-settings-env-var-for-ch","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### New starter variables control history saving and folder settings in child sessions\n\nCLAUDE_CODE_STARTER_SAVES_NOTHING and CLAUDE_CODE_STARTER_READS_FOLDER_SETTINGS shape child sessions and are cleared before further children start\n\n**Unclear.** Which value of the variable turns folder settings off, and which settings are affected, is not stated.\n\n**What**\n\nThere are two new environment variables. An environment variable is a named value that a program passes on to the programs it starts. Both apply to \"starter\" child sessions, meaning a Claude Code session launched by another program or by another Claude Code session. Neither existed in the previous build.\n\n- `CLAUDE_CODE_STARTER_SAVES_NOTHING` stops prompt history from being saved. Under certain conditions, Claude Code sets it to \"1\" for the child processes it launches.\n\n- `CLAUDE_CODE_STARTER_READS_FOLDER_SETTINGS` controls whether a child session reads folder-level settings. Child sessions read them unless this variable turns that off. The exact values it accepts were not checked.\n\nA new check decides when prompt history is not saved. It only applies when a separate condition passes. When it does, history is skipped if any of these is true:\n\n- `CLAUDE_CODE_SKIP_PROMPT_HISTORY` is set\n\n- `CLAUDE_CODE_STARTER_SAVES_NOTHING` is set\n\n- the server-controlled flag `tengu_cosmic_cerf` is pinned to false for the account\n\nWhen the server sends no value for that flag, the flag does not cause a skip. The same check also feeds other decisions, including one that marks a session as nested inside another.\n\nBoth new variables are deleted from the environment handed to further child processes, alongside `CLAUDE_CODE_SESSION_ATTENDED`.\n\n**Why**\n\nA program that starts Claude Code can now run a session that saves no prompt history and can choose whether that session picks up folder settings. Because the variables are removed before further processes start, a process launched from such a session does not inherit them.\n\n- Area: Child Sessions\n- Names: `CLAUDE_CODE_STARTER_READS_FOLDER_SETTINGS`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 4\/5\n- Scope: both\n- Heads-up: no"}