{"name":"CLAUDE_CODE_PROJECT_DIR_NAME","slug":"claude-code-project-dir-name","family":"env","title":"Environment variables","noun":"environment variable","description":"You can name the per-project history folder yourself, as long as you also set a custom config directory.","description_source":"entry","described_by":{"version":"2.1.234","anchor":"claude-code-project-dir-name-overrides-the-per-project-state"},"presence":{"first_seen":"2.1.234","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":65,"mined_builds":150,"first_cited":{"version":"2.1.234","released_at":"2026-08-17 18:19:13","spans":1}},"aliases":[],"entries":[{"version":"2.1.290","anchor":"new-backgroundpty-env-vars-added-to-a-passthrough-list","heading":"Seven background-session environment variable names added to an internal list","line":"Claude Code adds seven environment variable names for background sessions and terminal hosts to a list it keeps of such names","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"},{"version":"2.1.234","anchor":"claude-code-project-dir-name-overrides-the-per-project-state","heading":"CLAUDE_CODE_PROJECT_DIR_NAME overrides the per-project state folder","line":"You can name the per-project history folder yourself, as long as you also set a custom config directory.","released_at":"2026-08-17 18:19:13","reason":"named in this entry, found in this entry's text"},{"version":"2.1.234","anchor":"two-more-environment-variables-handled-for-child-sessions","heading":"Two more environment variables handled for child sessions","line":"Two environment variables for project directory name and environment kind now pass to or get scrubbed from child sessions.","released_at":"2026-08-17 18:19:13","reason":"named in this entry, found in this entry's text"}],"entries_total":3,"docs":[{"source":"claude-code","path":"agent-sdk\/hosting","title":"Hosting the Agent SDK","documented":false},{"source":"claude-code","path":"agent-sdk\/session-storage","title":"Persist sessions to external storage","documented":false},{"source":"claude-code","path":"agent-sdk\/sessions","title":"Work with sessions","documented":false},{"source":"claude-code","path":"memory","title":"How Claude remembers your project","documented":false},{"source":"claude-code","path":"sessions","title":"Manage sessions","documented":false},{"source":"claude-code","path":"settings","title":"Claude Code settings","documented":false},{"source":"claude-code","path":"settings-reference","title":"All settings","documented":false}],"docs_total":7,"gates":[],"related":[{"name":"CLAUDE_CODE_PROJECTS_SESSION","slug":"claude-code-projects-session","description":"In some hosted sessions, WebFetch now returns an \"Already fetched\" note instead of fetching the same page with the same prompt again"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-project-dir-name","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}