{"name":"CLAUDE_CODE_AGENT_PROXY_GIT_CONFIG","slug":"claude-code-agent-proxy-git-config","family":"env","title":"Environment variables","noun":"environment variable","description":"Turns on governed git routing in Claude Code's agent proxy; Claude Code sets it to `1` in a remote session's environment when that session's tool config enables `gitConfig`. When truthy and the agent proxy starts (a remote session with `CCR_AGENT_PROXY_ENABLED`), it appends a marked `governed-git` block to the git config file named by `GIT_CONFIG_GLOBAL` (skipped with a warning if that is unset), routing HTTPS git traffic for the governed hosts (`CLAUDE_CODE_AGENT_PROXY_GIT_HOSTS`, default `github.com`) through the local proxy with its CA bundle and git credential prompts disabled. Like `CLAUDE_CODE_AGENT_PROXY_GH_SHIM`, it also puts the proxy in its tool-scoped mode, and a settings file's `env` block cannot set it.","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.202","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":95,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.216","anchor":"ccr-agent-proxy-selective-relay-mode","heading":"CCR Agent Proxy: Selective Relay Mode","line":null,"released_at":"2026-07-20 20:19:37","reason":"found in this entry's text"}],"entries_total":1,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_AGENT_PROXY_GIT_HOSTS","slug":"claude-code-agent-proxy-git-hosts","description":"A new `CLAUDE_CODE_AGENT_PROXY_GIT_HOSTS` variable lists the git hosts a session sends through the agent proxy, instead of just one"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-agent-proxy-git-config","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}