Unclear It is not settled which Claude Code tool this repository lookup belongs to.
What
When the GitHub CLI (gh) is missing, Claude Code can supply its own limited gh for gh api calls. This release tightens how that stand-in decides which GitHub host a request goes to.
- If
GH_HOSTorGH_REPOnames a host other than the default, that variable is not used to pick a host in this session. A new message says to pass--hostname <host>on the command instead. GH_REPOno longer accepts a host in front of the repository. The error now says to setGH_REPO=OWNER/REPOor spell the repository out in the endpoint, and a host inGH_REPOthat is not a plain host name causes an error.- A host taken from a git remote now goes through a refusal check.
- The help Claude sees when a repository has no default remote now says the remote chosen names the host the request goes to, and that
GH_HOSTand a host inGH_REPOpick no other host. - The help for
--hostname <host>only mentions "as GH_HOST" in some cases; the text is now built when it is shown.
Why
If you rely on GH_HOST or a host in GH_REPO to reach a GitHub Enterprise server, those gh commands may now be refused. Add --hostname <host> to the command instead. Hosts are also no longer taken unchecked from repository remotes.
Names in the bundleGH_REPO
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not settled which Claude Code tool this repository lookup belongs to.
Anthropic's release notes agree
Changed the built-in gh api in cloud sessions: a host other than github.com set in GH_HOST or GH_REPO is now refused (use --hostname or a…