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.0.42 Home All releases olderv2.0.41 v2.0.43newer
Claude Code v2.0.42

Enhanced GitHub Authentication Detection

What: GitHub CLI authentication detection now uses JSON output parsing for more reliable credential extraction.

How it works: The gh auth status command is now called with --active --json hosts flags, parsing structured JSON instead of text output. This improves reliability across different gh CLI versions and configurations.

Details:

  • New function Xi5() at line 426046 uses gh auth status --active --json hosts for structured output
  • Parses JSON response to extract hosts object and active account login
  • Handles multiple GitHub hosts (github.com, Enterprise instances) by iterating through host entries
  • Replaces old shell parsing approach that used sh -c "gh auth status 2>&1 | head -n 1" and regex matching
  • Evidence: Xi5() at line 426046-426076

Why it matters: More robust GitHub authentication detection prevents false negatives and works consistently across different GitHub CLI versions and Enterprise configurations.

See this entry in the whole of v2.0.42 →