Skip to content

feat: add --switch/-s to PowerShell script#5

Open
hobostay wants to merge 1 commit into
aattaran:mainfrom
hobostay:fix/powershell-switch
Open

feat: add --switch/-s to PowerShell script#5
hobostay wants to merge 1 commit into
aattaran:mainfrom
hobostay:fix/powershell-switch

Conversation

@hobostay
Copy link
Copy Markdown

@hobostay hobostay commented May 4, 2026

Summary

  • Adds --switch / -s parameter to deepclaude.ps1, matching the bash script's mid-session backend switching feature
  • Includes backend name normalization (ds→deepseek, or→openrouter, fw→fireworks)
  • Updates help text and usage docblock

Problem

The bash script has --switch/-s for switching backends mid-session via the proxy's /_proxy/mode endpoint, but the PowerShell script completely lacked this feature.

Test plan

  • Run deepclaude.ps1 -s ds with proxy running → should switch and report
  • Run deepclaude.ps1 -s invalid → should error with "Unknown backend"
  • Run deepclaude.ps1 -s ds without proxy → should error "Proxy not running"
  • Run deepclaude.ps1 --help → should show -s, --switch option

🤖 Generated with Claude Code

The bash script supports --switch/-s for mid-session backend switching,
but the PowerShell script was missing this feature entirely. This adds
the Switch parameter with alias -s, backend name normalization, and a
call to the proxy /_proxy/mode endpoint — matching the bash behavior.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant