claude-code-chat

andrepimenta活跃维护

把 Claude Code 的对话界面搬进 VS Code 的扩展,让写代码时直接在编辑器里跟 AI 结对编程,不用切终端。

Beautiful Claude Code Chat Interface for VS Code

v2.3.0发布于 2026-09-18 17:43 UTC1,086star164fork同步于 2026-11-07 07:32 UTC

怎么上手

由 README 提炼,执行前请确认
ext install claude-code-chat
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

在 VS Code 里用图形聊天界面操作 Claude Code,告别终端命令行

把 Claude Code 的对话界面搬进 VS Code 的扩展,让写代码时直接在编辑器里跟 AI 结对编程,不用切终端。

核心能力

  • 用聊天界面替代终端,实时流式输出并支持 Markdown 高亮
  • 基于 Git 自动创建检查点,可一键回滚到任意历史状态
  • 内置 MCP、Skills、插件市场,支持一键安装到项目或全局
  • 内联展示文件 diff,可一键打开 VS Code 原生对比视图
  • 支持 @ 引用文件、粘贴图片附件与 / 斜杠命令

容易踩的坑

需先自行安装并配置好 Claude Code 本体,扩展只是它的界面;Windows 用户走 WSL 时要在设置里单独填写 WSL 发行版及 node、claude 路径;YOLO 模式会跳过全部权限检查,慎用

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v2.3.0
  1. v2.3.0最新正式版2026-09-18 · 2026-09-18 17:43 UTC

    🚀 Features Added

    • New "Fable" tier: A fourth capability tier above Opus, wired end to end — a native Claude Fable card, a fable model for every bundled provider, the ANTHROPIC_DEFAULT_FABLE_MODEL environment variable and its removal path, and local-router mapping. Capability order is now Fable → Opus → Sonnet → Haiku.
    • Refreshed model catalogue: GPT moves to named tiers (Terra / Sol / Luna / Astra), plus Kimi K3 with kimi-k2.7-code as its fast tier, GLM 5.3, DeepSeek V4.1 Flash, and a full tier block for MiniMax. Credit costs were corrected against the live pricing endpoint — GLM and DeepSeek were previously understated.
    • Model staleness policy: When a provider's flagship falls 100+ days behind that same provider's own fast line, the fast model is promoted. Age is only ever compared between tiers of the same provider, so an older provider is never penalised against a newer one.

    🔒 Security

    • Command injection through the chat box: Checkpoint commits were built as a shell command string with your message interpolated into it, so a message containing $(...) or backticks executed on your machine before Claude ever saw it — for example asking what a command does. All git calls now pass arguments directly, with no shell involved.
    • Global Claude config could be replaced with a stub: Saving an MCP server at global scope treated every read failure as "the file does not exist" and then wrote over it. Because the Claude Code CLI rewrites ~/.claude.json continuously, a single partial read could have destroyed the whole file. Only a genuinely missing file now starts fresh; anything else aborts without writing and tells you.
    • Skill names could escape the skills folder: Saving or deleting a skill joined an unvalidated name onto the skills directory and deleted recursively, so a name containing path separators could reach outside it. Names are now bounded to their own directory, rejecting separators on every platform rather than only the host's.

    🐛 Bug Fixes

    • Spinner stuck after a truncated turn: When the CLI ended a turn with error_during_execution or error_max_turns, nothing handled it — no error appeared, the spinner kept running and the composer stayed disabled until you reloaded the window.
    • Paying for one model and running another: Selecting a model whose id also appears as another card's tier entry (e.g. GPT 5.6 Sol) could apply the wrong card's tier map, so you were billed for Sol and served Terra. Selection now matches on the card id only.
    • Checkpoints silently stopped for messages containing a double quote: The same quoting flaw as the injection above also produced a malformed command, which was caught and logged but never surfaced — so restore points quietly stopped being created.
    • Chat panel could come up inert: Messages sent before the webview had attached its listeners were dropped, leaving the model selector and quick buttons unrendered. The webview now announces readiness and the extension replays the initial state.
    • Failed turns counted as requests: Three logged-out sends reported "3 requests". Only a successful turn is counted now.
    • Capitalised GLM ids did not resolve: The gateway has served this namespace capitalised (zai/GLM-4.7-Flash); only the fast-tier pattern was case-insensitive, so a capitalised flagship matched nothing.

    ⚠️ Known Issues

    • Gemini 3.8 Flash currently fails through the OpenCredits gateway with API Error: 400 'system messages are only supported at the beginning of the conversation'. This is a request-translation issue upstream, not in the extension — the model itself answers normally on direct calls. Gemini has been moved to the end of the recommended list until it is resolved; the other five recommended models were each verified working.

    🔧 Technical Improvements

    • Structural auth-failure detection: Login detection no longer matches on error text. The previous patterns were dead on both
  2. v2.1.02026-06-07 · 2026-06-07 13:35 UTC
    查看更新说明

    🚀 Features Added

    • Sponsor button: Added a Sponsor button on both the GitHub repository and the VS Code Marketplace listing, linking to GitHub Sponsors.
    • GPT 5.5 as the default GPT model: The "GPT" quick-select now targets OpenAI's mainline GPT 5.5, replacing the previous GPT 5.3 Codex entry, with a faster gpt-5.4-mini tier.

    🐛 Bug Fixes

    • Valid fast-tier GPT fallback: The bundled model fallback no longer points the GPT fast (haiku) tier at a non-existent openai/gpt-5.5-mini. It now uses openai/gpt-5.4-mini, matching what the live resolver selects.

    🔧 Technical Improvements

    • OpenAI model resolver retargeted: model-updater.ts now resolves the OpenAI quick-model against mainline openai/gpt-<version> and openai/gpt-<version>-mini slugs instead of the -codex / -codex-mini variants.

    Artifact: claude-code-chat-2.1.0.vsix

  3. 2.0.62026-04-23 · 2026-04-23 21:49 UTC
    查看更新说明

    [2.0.6] - 2026-04-23

    🚀 Features Added

    • Smarter post-install setup: Fresh installs now "just work" without a VS Code restart. After install, the extension checks whether claude resolved on your PATH and, if not, auto-configures claudeCodeChat.executable.path to the known install location. An existing custom executable path is respected.
    • WSL: Node.js path is now optional: Recent Claude Code ships as a native binary and doesn't need Node. Leave the Node.js Path field blank unless you installed Claude via npm. The WSL settings panel was also reordered so Claude Path comes first.

    🐛 Bug Fixes

    • Rock-solid terminals across shells: Login, Model, /usage, and slash-command terminals now launch Claude directly instead of sending text through the shell. Fixes a class of quoting issues on Windows PowerShell and keeps behavior identical across PowerShell, cmd, bash, and zsh.
  4. 2.0.42026-04-17 · 2026-04-17 20:34 UTC
    查看更新说明

    v2.0.4 Release Notes

    Plan Mode (Improved)

    • Plans now render as beautifully formatted markdown with headings, lists, and code blocks
    • Suggested actions shown as clickable buttons below the plan (e.g. "run npm build")
    • Permission prompt says "Approve the plan above?" with an Approve button instead of the generic tool approval

    MCP, Skills & Plugins Marketplace (New)

    • Browse 30+ curated MCP servers (GitHub, Slack, Stripe, Notion, Supabase, etc.)
    • Search across both add-mcp curated and official Anthropic registries with smart ranking
    • Install MCP servers to project (.mcp.json) or global (~/.claude.json)
    • Skills marketplace with one-click install via npx skills add
    • Plugins marketplace to extend Claude Code
    • OAuth authentication support — open terminal to log in to MCPs

    150+ AI Models via OpenCredits (New)

    • Quick model switching: GPT, Gemini, MiniMax, Kimi, GLM, DeepSeek buttons above the text box
    • Browse and select from 150+ models across providers
    • Pay-as-you-go with OpenCredits — no subscription needed
    • US & EU provider filtering option in settings
    • Model selection persists correctly after checkout

    Image Preview (New)

    • Paste or pick images with thumbnail preview before sending
    • Remove attached images before sending
    • Multiple image attachments per message
    • Image paths in text auto-detected and sent as base64

    Support & Feedback (New)

    • "Support" button in status bar to send bug reports and feature requests
    • Submissions sent directly to Discord

    UI Improvements

  5. 1.1.02025-12-06 · 2025-12-06 13:16 UTC
    查看更新说明

    [1.1.0] - 2025-12-06

    🚀 Features Added

    • Install Modal: Added installation flow for users without Claude Code CLI
      • Auto-detects when Claude Code is not installed
      • One-click installation with progress indicator
      • Platform-specific installation commands
    • Diff Viewer Improvements:
      • Show full diff in Edit, MultiEdit, and Write tool use messages
      • Add "Open Diff" button to open VS Code's native side-by-side diff editor
      • Add truncation with expand button for long diffs
      • Optimize diff storage and improve Open Diff button behavior
    • Processing Indicator: New morphing orange dot animation while Claude is working
    • Subscription Detection: Added usage badge to status bar showing plan type (Pro, Max) or API cost
    • Conversation Compacting: Handle /compact command in chat with status messages and token reset
    • Permission System: Migrated from MCP file-based to stdio-based permission prompts
    • Plan Mode: Now uses native --permission-mode plan CLI flag for cleaner implementation

    🐛 Bug Fixes

    • Fixed diff line alignment by removing ::before pseudo-elements
    • Fixed auto-scroll for diff tool results
    • Strip tool_use_error tags from error messages
    • Improved process termination handling

    🔧 Technical Improvements

    • Run /compact command in chat instead of spawning terminal
    • Improved terminal and UI experience
    • Updated diff icon colors

    📊 Analytics

    • Added Umami analytics events to track install flow (modal shown, started, success/failed)

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    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