# The agent's session (module claude-code, novox/hq ADR 0266): where this machine names an account of the
# agents' own, claude in an interactive zsh is claude-agent, which starts the session as that account. Where
# agents run as the operator's account the file names that account, and nothing is added. claude-agent runs
# the real claude: exec, sudo and its sh see no alias.
if [[ -r /etc/claude-code/agent-account ]]; then
	() {
		local agent=$(</etc/claude-code/agent-account)
		if [[ -n $agent && $agent != $USERNAME ]]; then
			alias claude=claude-agent
		fi
	}
fi
