Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.0.52 Home All releases olderv2.0.51 v2.0.53newer
Claude Code v2.0.52

Custom Session Environment File

What: New CLAUDE_ENV_FILE environment variable allows loading custom session environment scripts.

How to use:

export CLAUDE_ENV_FILE=/path/to/my-env-setup.sh
claude

Details:

  • Scripts from CLAUDE_ENV_FILE are loaded before hook files from session-env directory
  • Multiple sources can be combined (env file + hooks)
  • Independent error handling - failures in one source don't prevent loading others
  • Useful for personal environment configuration that doesn't belong in hooks
  • Evidence: kqB() at line 232402, environment read at line 232407

See this entry in the whole of v2.0.52 →