A Mac only VS Code extension that helps you share code snippets with context to Claude. Designed to work with wcgw mcp
https://github.com/rusiaaman/wcgw.git
Features
Share code snippets from editor with context to Claude
Share terminal output with context
Add helpful instructions or descriptions for each share
Works with editor or terminal selections
NEW: Automatic detection and attachment to WCGW screen sessions
NEW: Polling mechanism to automatically connect to matching screen sessions
NEW: Custom terminal icons to distinguish WCGW screen terminals
How to Use
For Editor Content
Select code in the editor you want to share
Press Cmd+' or run command "WCGW: Send Editor Selection to Application"
Enter helpful text/instructions (or press Escape for default)
Extension will:
Switch to Claude
Type your instructions
Include selected code and context information
Press Cmd+Shift+' to copy the selected code with additional context:
Repository structure
Frequently relevant files (e.g., package.json, pyproject.toml, Readme.md, etc., listing at least 20 such files)
For Terminal Output
Select text in the terminal
Press Cmd+' (Mac) or run command "WCGW: Send Terminal Selection to Application"
Enter helpful text/instructions (or press Escape for default)
Extension will:
Switch to Claude
Type your instructions
Include terminal output and context information
Press Cmd+Shift+' to copy terminal output with additional context:
Repository structure
Frequently relevant files (e.g., package.json, pyproject.toml, Readme.md, etc., listing at least 20 such files)
For WCGW Screen Sessions
The extension automatically detects and attaches to WCGW screen sessions that match your current workspace:
Automatic Detection: The extension polls every 5 seconds for new screen sessions
Workspace Matching: Only attaches to sessions where the hash and basename match your current workspace
Visual Distinction: WCGW screen terminals show with a desktop icon and "WCGW Screen: [basename]" name
Manual Commands:
Run "WCGW: Check and Attach to Screen Sessions" to manually check
Run "WCGW: Toggle Screen Session Polling" to enable/disable automatic polling
Screen Session Format: Sessions must follow the pattern PID.wcgw.TIMESTAMP.HASH.BASENAME