Skip to content

Environment variables (inventory)

Selected env vars consumed by the workspace (non-exhaustive; see code for authority).

Var Purpose
AMPLIHACK_HOME Root of the amplihack install (asset lookup)
AMPLIHACK_AGENT_BINARY Which agent binary to use (copilot/claude)
AMPLIHACK_AGENT_BINARY_SOURCE default:<binary> when the exported agent binary was only the built-in default guess (#1481); session:<binary> when a launcher named the session it started, or recipe run passed on an answer from a session marker or launcher context, so it ranks with the session markers rather than above them (crusty review of #1490); tmux_server:<marker variable> when agent-binary --shell read it from a session marker the tmux server also holds (#1525)
AMPLIHACK_MAX_DEPTH Max recursion depth for nested sessions
AMPLIHACK_SESSION_DEPTH / AMPLIHACK_TREE_ID Session-tree recursion guard
AMPLIHACK_STEP_TIMEOUT Optional per-step propagation (opt-in)
AMPLIHACK_NONINTERACTIVE Skip interactive prompts
CLAUDECODE Claude Code session marker; amplihack recipe run reads it, then removes it from the recipe runner's env

Orphaned/undocumented env vars are tracked as a code-atlas-bughunt issue.