Exit codes and environment
Exit codes
phax prune uses a subset of these codes: 0 when every selected run was pruned, for a --dry-run preview, or when there is nothing to prune; 1 when nothing was deleted (a bad selection, no project config, or a declined or missing confirmation); 3 when at least one selected run was kept; 7 when a selected run is locked.
Environment
phax reads no environment variable for its configuration values: everything is in phax.json, its layers and the phax home, ~/.phax/ unless PHAX_HOME names another directory. It reads a few variables for their usual meaning: GIT_COMMITTER_NAME (who approves), CLAUDE_CONFIG_DIR and CODEX_HOME (where the providers keep their sessions), SHELL (phax shell) and NO_COLOR. Its own end-to-end tests run only with PHAX_E2E_RUN=1.