Documentation
¶
Overview ¶
Package env provides environment variable helpers for spawning subprocesses.
ForSpawnCC strips Claude Code session markers (CLAUDECODE, CLAUDE_CODE_ENTRYPOINT) from the current process environment so that spawned Claude Code workers do not detect themselves as nested sessions and alter their behaviour accordingly.
Plane: shared
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForSpawnCC ¶
func ForSpawnCC() []string
ForSpawnCC returns the current environment with CC-specific vars removed, so spawned Claude Code subprocesses don't detect themselves as nested sessions.
func IsAllowedForSession ¶ added in v1.6.0
IsAllowedForSession returns true for env vars that workers/agents are permitted to receive. All other .env vars are blocked — their operations are proxied through the daemon for token isolation.
Types ¶
This section is empty.