Describe the bug
There are two related issues here:
-
The WebFetch tool does not send requests from the user's local machine. Requests are proxied through Anthropic's servers instead. As a result:
raw.githubusercontent.com may be reachable from the local browser
- but the same host can still be blocked from Anthropic's side
This is a Claude Code / WebFetch network policy limitation, not a problem with the user's local network.
-
This repository contains many submodules. In that case, shallow cloning should be preferred to reduce setup time and network overhead.
Reproduction
- Open a
raw.githubusercontent.com URL in a local browser and confirm it works.
- Access the same resource through
WebFetch and observe that it can fail because the request is made from Anthropic's servers, where that domain may be restricted.
- Clone or update a repository with many submodules and observe the unnecessary overhead from full fetches; shallow clone should be preferred.
System Info
System:
OS: macOS 26.3.1
CPU: (12) arm64 Apple M2 Max
Memory: 286.00 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.17.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.6.5 - /opt/homebrew/bin/npm
pnpm: 10.30.3 - /Users/zhangqi/Library/pnpm/pnpm
Browsers:
Chrome: 145.0.7632.160
Safari: 26.3.1
Used Package Manager
npm
Validations
Contributions
Describe the bug
There are two related issues here:
The
WebFetchtool does not send requests from the user's local machine. Requests are proxied through Anthropic's servers instead. As a result:raw.githubusercontent.commay be reachable from the local browserThis is a Claude Code / WebFetch network policy limitation, not a problem with the user's local network.
This repository contains many submodules. In that case, shallow cloning should be preferred to reduce setup time and network overhead.
Reproduction
raw.githubusercontent.comURL in a local browser and confirm it works.WebFetchand observe that it can fail because the request is made from Anthropic's servers, where that domain may be restricted.System Info
System: OS: macOS 26.3.1 CPU: (12) arm64 Apple M2 Max Memory: 286.00 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.17.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 9.6.5 - /opt/homebrew/bin/npm pnpm: 10.30.3 - /Users/zhangqi/Library/pnpm/pnpm Browsers: Chrome: 145.0.7632.160 Safari: 26.3.1Used Package Manager
npm
Validations
Contributions