Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.205 Home All releases olderv2.1.204 v2.1.206newer

Auto-mode repo visibility lookup

Feature flag
tengu_auto_mode_config Not enough to say

Nothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.

This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.205: not a boolean we can read

These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.

Read once, for one account on one subscription tier, against v2.1.205. It isn't a statement about your account. What a flag value here can and cannot tell you

When the tengu_auto_mode_config feature flag has repoVisibility: true (or CLAUDE_CODE_AUTO_MODE_REPO_VISIBILITY is set), Claude Code now automatically looks up GitHub repo visibility before git push/remote operations and injects a {"meta":{"repoVisibility":...}} line into the classifier context so the auto-mode security classifier can make better decisions about public vs. private pushes.

Details
  • Activates when the CLAUDE_CODE_AUTO_MODE_REPO_VISIBILITY environment variable is set, or when tengu_auto_mode_config.repoVisibility === true; only applies to Bash and GitHub CLI (gh) tool calls — all other tool types are skipped immediately
  • Parses Bash commands for git push and git remote set-url/git remote add patterns; parses gh commands for pr create and repo fork subcommands to identify target repositories
  • Calls the GitHub REST API (GET /repos/{owner}/{repo}, API version 2022-11-28) with a 3-second timeout, no redirects, and the locally cached GitHub token when available; results are cached in-memory per host/owner/repo key for the process lifetime
  • Visibility values normalised to three states: "public", "private" (GitHub "internal" repos map to "private"), or "unknown" (returned for non-GitHub hosts, essential-traffic-only mode, HTTP/parse errors, or missing API fields)
  • One {"meta":{"repoVisibility":{"remote":"owner/repo","visibility":"..."}}} JSON line is prepended to the classifier context for each repository identified in the command; multiple repos in a single command each get their own line
  • The lookup runs concurrently with the classifier API call via Promise.race with a deadline; any already-resolved visibility entries are included in the classifier context even if the full lookup has not yet completed
Evidence

Repo visibility lookup (search for "tengu_auto_mode_repo_visibility_lookup_failed") — T0u() at line ~416404; yEg() GitHub API call at line ~415701; fKi() JSON format at line ~415951

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.205 →