Sandbox
@andrepimenta/claude-code-chat

Claude Code chat extension for VS Code

This extension puts Claude Code in a visual chat panel inside VS Code instead of the terminal. It supports workspace file context, image uploads, session history, restore checkpoints, slash commands, model switching, and a permissions UI for tool use. It also lets you browse and install MCP servers, skills, and plugins from curated lists.

1,083 starsโ€ข165 forksโ€ขJavaScriptโ€ขUpdated 2mo ago
Who it's for

Builders who use Claude Code in VS Code or Cursor and want a chat-first workflow inside their editor.

What it delivers

You can work with Claude Code through a chat panel, keep context across sessions, and restore earlier checkpoints when you need to back out changes.

What it does

Chat panel inside the editor

Run Claude Code from a VS Code sidebar or panel with a full chat interface, streaming replies, and copy buttons.

Checkpoint and session restore

Save conversations automatically and roll back to earlier project states with restore checkpoints.

File and image context

Reference workspace files with `@`, paste screenshots, and attach multiple images before sending.

MCP, skills, and plugins browser

Browse curated lists, search registries, and install MCP servers, skills, and plugins from the UI.

Permissions and tool controls

Review tools in a dialog, manage allow rules, and use YOLO mode when you want fewer prompts.

Slash commands and model switching

Open Claude Code commands with `/` and switch between model options and thinking modes from the interface.

How to get it

  1. 1Install from VS Code Marketplace
    ext install claude-code-chat
  2. 2Run
    git clone https://github.com/andrepimenta/claude-code-chat
    cd claude-code-chat
    npm install
    
    Click "F5" to run the extension or access the "Run and Debug" section in VSCode

README

๐Ÿš€ Claude Code Chat - Beautiful Claude Code Chat Interface for VS Code

VS Code Extension Claude Code TypeScript

No more terminal commands. Chat with Claude Code through a beautiful, intuitive interface right inside VS Code.

Ditch the command line and experience Claude Code like never before. This extension brings a stunning chat interface directly into your editor, making AI assistance accessible, visual, and enjoyable.

๐Ÿค– Built by Claude Code for Claude Code - This extension was entirely developed using Claude Code itself. Claude Code created its own chat interface!


โœจ Why Choose Claude Code Chat?

๐Ÿ–ฅ๏ธ No Terminal Required - Beautiful chat interface replaces command-line interactions
โช Restore Checkpoints - Undo changes and restore code to any previous state
๐Ÿ”Œ MCP, Skills & Plugins - Browse, search, and install from curated marketplaces
๐Ÿ’พ Conversation History - Automatic conversation history and session management
๐ŸŽจ VS Code & Cursor - Works in VS Code, Cursor, and other compatible editors
๐Ÿง  Plan and Ultrathink modes - Plan First and Ultrathink modes
โšก Smart Context - Reference files, paste images, and create custom commands
๐Ÿง Windows/WSL Support - Full native Windows and WSL support

Claude Code Chat 1 0 0


๐ŸŒŸ Key Features

๐Ÿ’ฌ Beautiful Chat Graphical Interface

  • No terminal required - everything through the UI
  • Real-time streaming responses with typing indicators
  • One-click message copying with visual feedback
  • Enhanced markdown support with syntax highlighting
  • Auto-resizing input that grows with your content
  • Copy-to-clipboard for code blocks

โช Checkpoint & Session Management

  • Restore Checkpoints - Instantly undo changes and restore to any previous state
  • Automatic Git-based backup system for safe experimentation
  • Browse and restore from any conversation checkpoint
  • Automatic conversation saving and restoration
  • Real-time cost and token tracking
  • Session statistics and performance metrics

๐Ÿ“ Inline Diff Viewer

  • Full Diff Display - See complete file changes directly in Edit, MultiEdit, and Write messages
  • Open in VS Code Diff - One-click button to open VS Code's native side-by-side diff editor
  • Smart Truncation - Long diffs are truncated with an expand button for better readability
  • Syntax Highlighting - Proper code highlighting in diff views
  • Visual Change Indicators - Clear green/red highlighting for additions and deletions

๐Ÿ”Œ MCP, Skills & Plugins Marketplace โญ NEW IN V2.0

  • MCP Servers - Browse 30+ featured servers (GitHub, Slack, Stripe, Notion, etc.) with dual registry search
  • Skills - Browse and install curated skills from skills.sh with project or global scope
  • Plugins - Browse and install plugins to extend Claude Code
  • Smart Search - Search across add-mcp curated and official Anthropic registries with relevance ranking
  • Project or Global Install - Install MCP servers to .mcp.json or ~/.claude.json, skills to .claude/skills/
  • One-Click Install - Pre-filled configuration with env vars, headers, and OAuth authentication

๐Ÿ–ผ๏ธ Image Preview & Attachments โญ NEW IN V2.0

  • Paste Images - Paste images with thumbnail preview before sending
  • File Picker - Select images through VS Code's native file picker
  • Preview Strip - See attached images above the text box with remove buttons
  • Inline Detection - Image paths in messages are automatically detected and sent as base64
  • Multiple Images - Attach multiple images to a single message

๐Ÿ”’ Advanced Permissions System

  • Interactive Permission Dialogs - Detailed tool information with command previews
  • Always Allow Functionality - Smart command pattern matching for common tools (npm, git, docker)
  • YOLO Mode - Skip all permission checks for power users
  • Workspace Permissions - Granular control over what tools can execute
  • Real-time Permission Management - Add/remove permissions through intuitive UI

๐Ÿ“ฑ Sidebar Integration

  • Native VS Code Sidebar - Full chat functionality in the sidebar panel
  • Smart Panel Management - Automatic switching between main and sidebar views
  • Persistent Sessions - State maintained across panel switches
  • Activity Bar Integration - Quick access from VS Code's activity bar

๐Ÿ“ Smart File Integration

  • Type @ to instantly search and reference workspace files
  • Image attachments via file browser and copy-paste screenshots
  • Lightning-fast file search across your entire project
  • Seamless context preservation for multi-file discussions

๐Ÿ› ๏ธ Tool Management

  • Visual dashboard showing all available Claude Code tools
  • Real-time tool execution with formatted results
  • Inline stop button replaces send during processing
  • Smart permission system for secure tool execution

๐ŸŽจ VS Code Integration

  • Native theming that matches your editor
  • Status bar with support button
  • Activity bar panel for quick access
  • Responsive design for any screen size

๐Ÿค– Model Selection

  • Quick Buttons - GPT, Gemini, MiniMax, Kimi, GLM, DeepSeek above the text box
  • Opus - Most capable model for complex tasks requiring deep reasoning
  • Sonnet - Balanced model offering great performance for most use cases
  • Default - Uses your configured model setting
  • 150+ OpenCredits Models - Browse and switch to any available model
  • Model preference persists across sessions
  • Provider choice (OpenCredits vs Anthropic) for Claude models

โšก Slash Commands Integration

  • Slash Commands Modal - Type "/" to access all Claude Code commands instantly
  • 23+ Built-in Commands - /agents, /cost, /config, /memory, /review, and more
  • Custom Command Support - Execute any Claude Code command with session context
  • Session-Aware Execution - All commands run with current conversation context
  • Terminal Integration - Commands open directly in VS Code terminal with WSL support

๐Ÿง  Advanced AI Modes

  • Plan First Mode - Toggle to make Claude plan before implementing changes
  • Thinking Mode - Configurable intensity levels (Think, Think Hard, Think Harder, Ultrathink)
  • Mode Toggles - Simple switches above the text input area
  • Intelligent Prompting - Different prompts based on selected thinking intensity
  • Token Awareness - Higher thinking levels consume more tokens but provide deeper reasoning

๐Ÿ’ฌ Support & Feedback โญ NEW IN V2.0

  • In-App Support - Click "Support" in the status bar to send feedback
  • Bug Reports & Feature Requests - Submit directly from the extension
  • Optional Email - Include your email for follow-up

๐Ÿš€ Getting Started

Prerequisites

  • VS Code 1.80+ or Cursor - Latest version recommended
  • Claude Code CLI - Install from Anthropic
  • Active Claude API or subscription - API or Pro/Max plan
  • Node.js 18+ - Required for installation

Installation

  1. Install from VS Code Marketplace

    ext install claude-code-chat
    
  2. Or install manually

    • Download the .vsix file from releases
    • Run code --install-extension claude-code-chat-x.x.x.vsix
  3. Open Claude Code Chat

    • Press Ctrl+Shift+C (or Cmd+Shift+C on Mac)
    • Or click the Claude icon in your status bar
    • Or use Command Palette: Claude Code: Open Chat

๐Ÿ’ก Usage Examples

๐Ÿ”ฅ Code Review & Refactoring

You: @src/components/UserProfile.tsx Can you review this component and suggest improvements?

Claude: I'll analyze your UserProfile component. Looking at the code, here are my recommendations:

1. **Performance Optimization**: Add React.memo() to prevent unnecessary re-renders
2. **TypeScript Enhancement**: The props interface could be more specific
3. **Accessibility**: Missing ARIA labels for screen readers

[Detailed analysis with code examples follows...]

๐Ÿ“Š Project Analysis

You: Analyze the overall architecture of my project and identify potential issues

Claude: I'll examine your project structure and identify areas for improvement:

๐Ÿ—๏ธ **Architecture Overview**
- React frontend with TypeScript
- Node.js backend with Express
- MongoDB database layer

โš ๏ธ **Identified Issues**
- Missing error boundaries in React components
- Database queries lack proper indexing
- API routes missing input validation

[Detailed recommendations with implementation examples...]

๐Ÿ› Debugging Assistant

You: I'm getting a strange error in my API. Here's the stack trace: [paste error]

Claude: Looking at this stack trace, the issue appears to be a race condition in your async middleware. Here's what's happening:

1. **Root Cause**: Multiple requests are modifying shared state
2. **Solution**: Implement proper request isolation
3. **Prevention**: Add comprehensive error handling

[Step-by-step debugging guide follows...]

โช Safe Experimentation with Checkpoints

You: Can you refactor this entire component to use hooks instead of class components?

Claude: I'll refactor your component to use React hooks. Don't worry - I'll create a checkpoint first so you can easily restore if needed.

[Creates automatic checkpoint]

Here's the refactored component using hooks:
[Shows the new implementation]

If you want to revert these changes, just click "Restore Checkpoint" to go back to your original code instantly.

โš™๏ธ Configuration

Keyboard Shortcuts

ShortcutAction
Ctrl+Shift+COpen Claude Code Chat
EnterSend message
@Open file picker
/Open slash commands modal

WSL Configuration (Windows Users)

If you're using Claude Code through WSL (Windows Subsystem for Linux), you can configure the extension to use WSL:

  1. Open VS Code Settings (Ctrl+, or Cmd+,)
  2. Search for "Claude Code Chat"
  3. Configure these settings:
    • Claude Code Chat: WSL Enabled - Enable WSL integration
    • Claude Code Chat: WSL Distro - Your WSL distribution name (e.g., Ubuntu, Debian)
    • Claude Code Chat: WSL Node Path - Path to Node.js in WSL (default: /usr/bin/node)
    • Claude Code Chat: WSL Claude Path - Path to Claude in WSL (default: /usr/local/bin/claude)

Example configuration in settings.json:

{
  "claudeCodeChat.wsl.enabled": true,
  "claudeCodeChat.wsl.distro": "Ubuntu",
  "claudeCodeChat.wsl.nodePath": "/usr/bin/node",
  "claudeCodeChat.wsl.claudePath": "/usr/local/bin/claude"
}

๐ŸŽฏ Pro Tips & Tricks

๐Ÿ”ฅ File Context Magic

  • Type @ followed by your search term to quickly reference files
  • Use @src/ to narrow down to specific directories
  • Reference multiple files in one message for cross-file analysis
  • Paste images directly with preview thumbnails before sending
  • Paste screenshots with Ctrl+V for instant visual communication

โšก Productivity Boosters

  • Creates checkpoints automatically before changes for safe experimentation
  • Restore instantly if changes don't work out as expected
  • Permission system prevents accidental tool execution
  • YOLO mode for power users who want speed over safety
  • Inline stop button to cancel long-running operations
  • Copy message contents to reuse Claude's responses
  • Open history panel to reference previous conversations
  • Sidebar integration for multi-panel workflow
  • Plan mode and Ultrathink toggles above the text box

๐ŸŽจ Interface Customization

  • The UI automatically adapts to your VS Code theme
  • Messages are color-coded: Green for you, Blue for Claude
  • Hover over messages to reveal the copy button
  • Enhanced code block rendering with syntax highlighting
  • Copy-to-clipboard functionality for code blocks

๐Ÿ”ง Advanced Features

๐Ÿ› ๏ธ Tool Integration

Claude Code Chat provides secure access to all Claude Code tools:

  • Bash - Execute shell commands with permission controls
  • File Operations - Read, write, and edit files
  • Search - Grep and glob pattern matching across workspace
  • Web - Fetch and search web content
  • Multi-edit - Batch file modifications
  • MCP Servers - Extend functionality with Model Context Protocol servers
  • Permissions System - Granular control over tool execution for security

๐Ÿ“Š Analytics & Monitoring

  • Real-time cost tracking - Monitor your API usage
  • Token consumption - See input/output token counts
  • Response timing - Track performance metrics
  • Session statistics - Comprehensive usage analytics

โช Checkpoint System

  • Instant restoration - One-click restore to any previous state
  • Conversation checkpoints - Every change creates a restore point
  • Visual timeline - See and navigate through all your project states

๐Ÿ”„ Conversation History

  • Automatic saving - Every conversation is preserved
  • Smart restoration - Resume exactly where you left off
  • Switch between chats - Easily check and switch to previous conversations

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. ๐Ÿ› Report Bugs - Use our issue tracker
  2. ๐Ÿ’ก Suggest Features - Share your ideas
  3. ๐Ÿ”ง Submit PRs - Help us improve the codebase
  4. ๐Ÿ“š Improve Docs - Make the documentation better

Development Setup

git clone https://github.com/andrepimenta/claude-code-chat
cd claude-code-chat
npm install

Click "F5" to run the extension or access the "Run and Debug" section in VSCode

๐Ÿ“ License

See the LICENSE file for details.


๐Ÿ™ Acknowledgments

  • Anthropic - For creating the amazing Claude AI and more specifically the Claude Code SDK
  • VS Code Team - For the incredible extension platform
  • Our Community - For feedback, suggestions, and contributions

๐Ÿ“ž Support

Need help? We've got you covered:

  • ๐Ÿ’ฌ In-App - Click "Support" in the status bar to send feedback directly
  • ๐Ÿ› Issues: GitHub Issues

โญ Star us on GitHub if this project helped you!

Download Now

Files in the repo

Repository payloadโ€ข23 top-level entries
  • .claude
  • .github
  • .vscode
  • build
  • claude-code-chat-permissions-mcp
  • src
  • .gitignore
  • .vscode-test.mjs
  • .vscodeignore
  • backup.sh
  • CHANGELOG.md
  • eslint.config.mjs
  • icon-bubble.png
  • icon.png
  • LICENSE
  • mcp-permissions.js
  • package-lock.json
  • package.json
  • README.md
  • social-preview.png
  • TEST_SETTINGS.md
  • tsconfig.json
  • vsc-extension-quickstart.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More plugins

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

138k
1 add

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

82k
code-yeongyu/
oh-my-openagent

OmO: Just type "mass ulw" keyword with your prompt. Now you are the master of graph engineering.

69k

Persistent Context Across Sessions for Every Agent โ€“ Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

94k

Opinionated Oxlint rules for rejecting low-evidence TypeScript and JavaScript patterns

4.3k