const REAL_GH_ENV: &str = "AGENTMUX_REAL_GH";
Where the function body finds the real gh (it says command gh in a shell, which would find this program).
gh
command gh