Claude Code Add to Chat
Objective
VS Code and Cursor developers using Claude Code needed a faster, friction-free way to bring specific files, folders, or code selections into their Claude Code conversations. Manually typing file paths or copy-pasting code into the chat disrupted focus and slowed down AI-assisted development workflows.
Solution
We built and open-sourced a lightweight VS Code extension, published on the Open VSX Registry, that integrates natively into the editor's context menus and selection UI. Right-clicking any file or folder in the Explorer surfaces an "Add to Claude Chat" option that passes the resource directly to Claude Code. Selecting code in the editor reveals a floating "Add to Claude Chat" button above the selection for the same one-click action. The extension is zero-configuration, MIT-licensed, and compatible with VS Code 1.80+ and Cursor.
Results
Published as a free, open-source tool on the Open VSX Registry, the extension is available to any developer in the VS Code and Cursor ecosystem. It removes friction from AI-assisted coding workflows by letting developers load context into Claude Code without leaving their current file or breaking their flow.