Prepare file context and directory maps for models like ChatGPT, Claude, or Gemini within VS Code. Drag files into organized tracks to copy project context in one action.
Quick start
Install the extension from the VS Code Marketplace.
Open the Stackr view in the Activity Bar.
Stage files by dragging them into the Staged Files panel, or right-click any file in the Explorer to add it directly.
Quick add files with Ctrl+Alt+A / Cmd+Opt+A. Use Ctrl+A to select all or Ctrl+Space to toggle individual items in the picker.
Preview the context with Ctrl+Shift+V / Cmd+Shift+V.
Copy with Ctrl+Shift+C / Cmd+Shift+C when focused on the Staged Files view.
Paste into the model.
Press F1 and type "Stackr" to see all available commands.
Features
File staging
Token counting: counts update as you type; large files calculate in the background
Persistence: staged files survive session restarts and load automatically on open
Folder syncing: rescan all staged folders or sync individual folders from their context menu
Auto-sync: renames and deletes reflect automatically as the project structure changes
Multi-root support: works with GitHub Codespaces, WSL2, and SSH Remote sessions
Context tracks
Create separate tracks for different tasks, for example "Bug Fix #123" or "Refactor Auth." Each track maintains its own staged file list.
Switch tracks with Ctrl+Alt+S / Cmd+Opt+S
Rename inline with F2
Reorder by dragging or with Alt+↑↓ / Option+↑↓
Pinning and filtering
Pin files to keep them through a Clear Stack
Toggle Show Pinned Only to filter the view; copy commands respect the active filter
Press Space to toggle pin on selected files
Context map
Copied output optionally includes an ASCII directory tree: