cyberneticlibrary

Switch Claude Code repository context

switch-repocommandsetup L10
corp0ratestarts-cmd/qash
What it does

Switch Claude Code active repository context without mutating

Best for

Multi-repo workflows where maintaining distinct contexts without git mutations is essential for context isolation.

Inputs
  • · <owner/repo> repository identifier
  • · Optional --branch <branch-or-ref>
  • · Optional --path <subdir>
Outputs
  • · Active repository metadata
  • · Branch/ref confirmation
  • · Working path
  • · Access level (read/write/admin)
Requires
  • · MCP session scope (GitHub access)
Preconditions
  • · Repository visible in active MCP session
  • · GitHub access configured
Failure modes
  • · Repository not visible in MCP scope — reports missing scope clearly
  • · Partial name matches multiple repos — rejects ambiguity (doesn't guess)
  • · User asks to create/modify files during switch — blocked
Trust signals
  • · Explicit guardrails against mutations (no reset/checkout/pull/push during switch)
  • · Rejects repo name ambiguity (doesn't infer)
  • · Reports access level to set user expectations