[FEATURE] Option to disable remote git operations at session startup

Resolved 💬 3 comments Opened Mar 20, 2026 by ben-sleek-notarize Closed Mar 24, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Claude Code runs git commands at session startup to populate the gitStatus context (current branch, recent commits, working tree status). At least one of these commands appears to contact the remote, which triggers SSH authentication.

For users with SSH keys stored in the macOS Secure Enclave, this causes a Touch ID / ctkcardtoken biometric prompt on every new session — even when the git remote uses HTTPS and all GitHub interactions are handled through the MCP server via PAT.

Expected behavior:

Session startup git checks should be limited to local-only operations (git status, git log, git diff, git branch), or there should be a setting to opt out of remote git operations at startup.

Proposed Solution

Setting to opt out of remote git operations at startup.

Alternative Solutions

_No response_

Priority

High - Significant impact on productivity

Feature Category

Configuration and settings

Use Case Example

_No response_

Additional Context

Environment:

  • macOS with Secure Enclave SSH key
  • Git remote configured as HTTPS
  • GitHub MCP server configured with PAT
  • Touch ID prompt (ctkcardtoken needs to authenticate to continue) appears on every session start

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗