What problem does it solve? Claude Code's WebFetch tool and Bash curl/wget commands do not use your GitHub authentication, causing 404 errors on private repos, low rate limits (60/hour unauthenticated vs 5,000/hour authenticated), and incomplete API responses. ## Core Features & Use Cases - PreToolUse Hooks: Intercept GitHub URL access via WebFetch or curl/wget and suggest the correct gh CLI command, such as gh repo view, gh pr list, or gh api. - PATH Shim for gh: Blocks anti-patterns like fetching file contents via the /contents/ API endpoint and cloning into non-session-scoped temp directories. - Automatic Cleanup: A SessionEnd hook removes session-scoped clones stored in $TMPDIR/gh-clones-<session-id>/ so concurrent sessions never conflict. - Use Case: When Claude tries to fetch a private repository file from raw.githubusercontent.com, the hook denies the request and instructs it to clone the repo with gh and read files locally instead. ## Quick Start Install the plugin and authenticate the GitHub CLI with gh auth login, then let the hooks automatically redirect any GitHub URL fetch to the authenticated gh CLI.