Qew - Push to Claude Code
A VSCode extension that allows you to save, organize, and queue instructions for Claude Code terminal execution.
Features
- Save Instructions: Save frequently used instructions for quick access
- Folder Organization: Organize instructions into custom folders
- Run All (Queue): Execute all saved instructions sequentially - Claude finishes one, then starts the next
- Run Instructions: Send individual instructions directly to Claude Code terminal
- Output Channel: View real-time output when running queued instructions
- Connect to Claude: Connect to an existing or new Claude terminal session
- Keyboard Shortcuts: Fast access with customizable keybindings
- Auto-clear: Optionally clear instructions after running
- Compact View: Toggle between full and compact instruction display
Usage
Getting Started
- Find the Qew panel in the Explorer sidebar
- Click Connect to start or connect to a Claude terminal
- Type your instruction and press Enter to save it
- Click Run on any saved instruction to send it to Claude
Choose Your Layout
The Qew panel can be moved to your preferred location:
- Panel (recommended): Drag "Qew" tab to the bottom panel next to Terminal
- Secondary Sidebar: Drag to the right sidebar
- Explorer: Default location in left sidebar
VSCode remembers your layout preference.
Run All (Queue Execution)
The killer feature - queue up multiple instructions and run them sequentially:
- Save multiple instructions to your list
- Click Run All to execute them one after another
- View progress in the Output panel (View → Output → select "Qew")
- Each instruction waits for the previous one to complete before starting
This is perfect for:
- Multi-step refactoring tasks
- Sequential code generation
- Batch operations where order matters
Folder Organization
Organize your instructions into folders:
- Click the folder+ icon next to the folder dropdown
- Type a folder name and press Enter
- Switch between folders using the dropdown
- Delete custom folders with the "Delete this folder" button
The default "Saved Folder" cannot be deleted.
Keyboard Shortcuts
In the textarea:
Enter - Save the instruction
Shift+Enter - Add a new line
Global shortcuts:
Cmd+Shift+Q (Mac) / Ctrl+Shift+Q (Windows/Linux) - Open input box to type and push text
Cmd+Shift+Alt+Q (Mac) / Ctrl+Shift+Alt+Q (Windows/Linux) - Push currently selected text
Panel Features
- Run All - Execute all instructions in the current folder sequentially
- Stop - Stop the queue execution (appears while running)
- Clear - Clear all saved instructions in current folder
- Run - Execute an individual instruction (appears on hover)
- Copy - Copy instruction to clipboard
- Delete - Remove instruction from list
Settings
- Clear the instruction after run - Automatically remove instruction after execution
- Compact instruction view - Show truncated instructions (2 lines max)
- Select text in any editor
- Right-click and choose "Push Selection to Claude Code"
Via Command Palette
- Open Command Palette (
Cmd+Shift+P / Ctrl+Shift+P)
- Search for "Qew" to see available commands:
Qew: Push to Claude Code
Qew: Push Selection to Claude Code
Qew: Open Qew Panel
How It Works
The extension has two modes of operation:
Single Instruction Mode
- Connects to Claude Code running in a VSCode terminal
- Sends text to the terminal and presses Enter to execute
Queue Mode (Run All)
- Spawns Claude with
-p flag for each instruction
- Uses
--continue to maintain conversation context
- Streams output to the Qew Output channel in real-time
- Automatically proceeds to next instruction when one completes
Requirements
- VSCode 1.85.0 or higher
- Claude Code CLI installed (
claude command available in ~/.local/bin/)
Development
Build
npm install
npm run compile
Debug
Press F5 in VSCode to launch the Extension Development Host.
Package
npx @vscode/vsce package
Changelog
v1.7.0
- Streamlined UI - Cleaner layout with Connect button next to Run
- Compact controls - Checkboxes now on single line
- Smart button visibility - Save/Run hidden when disconnected, only Connect shows
- Status indicator - Moved to bottom right near Donate button
v1.6.0
- View Output button - Output panel no longer auto-opens; click "View Output" next to progress bar when needed
- Improved Cmd+Enter - Textarea now clears and refocuses after running instruction
- Dynamic placeholder - Shows "Press Connect to get started" when disconnected
- UI polish: progress bar and text color improvements
v1.5.0
- Version bump and stability improvements
v1.4.0
- Added flexible layout - drag Qew to Panel, Sidebar, or Secondary Sidebar
- VSCode remembers your preferred location
v1.3.0
- Added Persistent storage - folders, instructions, and preferences now survive restarts
- Data stored using VSCode's globalState API
v1.2.0
- Added Cmd+Enter shortcut to run instruction directly from textarea
- Added Donate button to support development
- UI improvements and bug fixes
v1.1.0
- Added Run All feature for sequential queue execution
- Added Folder support for organizing instructions
- Added Output channel for viewing queue progress in real-time
- Queue execution uses Claude's
-p flag for reliable completion detection
v1.0.0
- Initial release
- Save and run instructions
- Connect to Claude terminal
- Keyboard shortcuts and context menu support
License
MIT
| |