{"version":"2.0.52","anchor":"custom-session-environment-file","canonical_anchor":"custom-session-environment-file","heading":"Custom Session Environment File","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.52\/e\/custom-session-environment-file","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.52","markdown":"### Custom Session Environment File\n\n**What:** New `CLAUDE_ENV_FILE` environment variable allows loading custom session environment scripts.\n\n**How to use:**\n\n`export CLAUDE_ENV_FILE=\/path\/to\/my-env-setup.sh claude` **Details:**\n\n- Scripts from `CLAUDE_ENV_FILE` are loaded before hook files from session-env directory\n- Multiple sources can be combined (env file + hooks)\n- Independent error handling - failures in one source don't prevent loading others\n- Useful for personal environment configuration that doesn't belong in hooks\n- **Evidence:** `kqB()` at line 232402, environment read at line 232407"}