Implement working PowerShell/CMD wrappers for claude-python command#36
Merged
Implement working PowerShell/CMD wrappers for claude-python command#36
Conversation
The claude-python command now only works in Git Bash on Windows due to insurmountable shell escaping issues when passing 28KB of prompt content through PowerShell/CMD. This change: - Removes non-functional PowerShell launcher and .cmd wrapper creation - Creates only bash launchers for all platforms - Bash wrapper directly executes claude with prompt content using $(cat) - PowerShell/CMD now properly return 'command not found' instead of silently failing to load the system prompt This prevents users from being misled by a command that appears to work but actually fails to load the Python developer system prompt.
Removed all references to using system prompts with PowerShell/CMD as they DO NOT WORK. Updated documentation to clearly state: - Windows users MUST use Git Bash for claude-python command - PowerShell/CMD cannot properly pass system prompts - No workarounds exist for PowerShell/CMD limitations - Removed non-functional PowerShell command examples This prevents users from wasting time with non-functional commands.
The previous implementation failed to properly pass the system prompt through PowerShell and CMD due to shell escaping issues. This fix: - Uses Git Bash as an intermediary to handle the system prompt correctly - PowerShell: Uses proper escaping with backticks and handles arguments - CMD: Direct Git Bash invocation with properly escaped quotes - Both wrappers support additional arguments like --continue All Windows shells (PowerShell, CMD, Git Bash) now work correctly with the claude-python command.
…lutions Detailed explanations of how the Windows shell solutions work: - PowerShell stop-parsing token and escaping mechanics - CMD command-line parsing and Git Bash invocation - Complete micro-timeline of execution for both shells These documents explain the intricate shell escaping required to pass multi-line system prompts through different Windows shells.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.