{"version":"2.1.329","anchor":"repo-provenance-reporting-env-var-added-for-self-hosted-sess","canonical_anchor":"repo-provenance-reporting-env-var-added-for-self-hosted-sess","heading":"Remote sessions can report which repositories they have checked out","tier":"use","area":"Sessions","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/repo-provenance-reporting-env-var-added-for-self-hosted-sess","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Remote sessions can report which repositories they have checked out\n\nRemote and self-hosted sessions can report their repository checkouts at startup, controlled by `CLAUDE_CODE_REPORT_REPO_PROVENANCE`\n\n**Unclear.** Where the repository report is sent, and what other condition stops it being built, is not stated.\n\n**What**\n\nClaude Code now reads an environment variable, `CLAUDE_CODE_REPORT_REPO_PROVENANCE`, in self-hosted and cloud sessions. An environment variable is a named setting passed to a program when it starts. A self-hosted session runs on a machine you or your organization manage rather than on Anthropic's.\n\n- When the variable is set, Claude Code builds a report of the code repositories checked out in the session when it starts.\n\n- When it is not set, Claude Code builds no report and clears any repository checkout details it reported earlier.\n\nWhen Claude Code starts one of these sessions, it takes the value from the remote environment's own settings. The report is on unless those settings explicitly turn it off.\n\n**Why**\n\nThis is a way for a session to say which repositories it is working in. If you manage remote environments, you can turn it off in the environment's settings.\n\n- Area: Sessions\n- Names: `CLAUDE_CODE_REPORT_REPO_PROVENANCE`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 4\/5\n- Scope: org\n- Heads-up: no"}