env

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 2 Imported by: 0

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

func IsAllowedForSession(key string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL