pub fn user_home() -> Option<PathBuf>Expand description
This user’s home directory: HOME when it is set (every Unix shell, and the
shells that set it on Windows), else the operating system’s own
(USERPROFILE on Windows). Where a harness keeps its sessions under the
user’s home (~/.claude, ~/.codex), this is that home on every platform.