Skip to main content

Module build

Module build 

Source
Expand description

The spawn environment of a persistent-controller CLI process.

Functions§

build_persistent_spawn_env
Builds the full spawn environment for a persistent-controller CLI process: cmd:env base → Layer 3 identity/credential gate → the two RESERVED wrapper variables (unconditionally overwritten — AGENTMUX_AUTH_KEY/AGENTMUX_BLOCKID) → the two agent-identity variables and per-agent git identity (from the row’s slug when it has one, identity_env) → bundled/user tools PATH → the reserved guards (gh_guard, account_login_guard: no agent gets a human’s gh login or the account’s cloud login).