{"id":31650474,"url":"https://github.com/dliedke/claudecodeextension","last_synced_at":"2025-10-07T08:29:59.343Z","repository":{"id":316838004,"uuid":"1065040579","full_name":"dliedke/ClaudeCodeExtension","owner":"dliedke","description":"A Visual Studio .NET 2022 extension that provides a better interface for Claude Code CLI and OpenAI Codex with support for multi-line prompts and image attachments.","archived":false,"fork":false,"pushed_at":"2025-10-06T22:04:36.000Z","size":191,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T00:09:22.051Z","etag":null,"topics":["ai","claude-code","code-assistant","codex"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=dliedke.ClaudeCodeExtension","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dliedke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-27T00:54:32.000Z","updated_at":"2025-10-06T22:04:39.000Z","dependencies_parsed_at":"2025-09-27T08:20:24.740Z","dependency_job_id":null,"html_url":"https://github.com/dliedke/ClaudeCodeExtension","commit_stats":null,"previous_names":["dliedke/claudecodeextension"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dliedke/ClaudeCodeExtension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dliedke%2FClaudeCodeExtension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dliedke%2FClaudeCodeExtension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dliedke%2FClaudeCodeExtension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dliedke%2FClaudeCodeExtension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dliedke","download_url":"https://codeload.github.com/dliedke/ClaudeCodeExtension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dliedke%2FClaudeCodeExtension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278742889,"owners_count":26037915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","claude-code","code-assistant","codex"],"created_at":"2025-10-07T08:29:53.773Z","updated_at":"2025-10-07T08:29:59.333Z","avatar_url":"https://github.com/dliedke.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Code Extension for Visual Studio\n\nA Visual Studio extension that provides seamless integration with Claude Code, OpenAI Codex or Cursor Agent directly within the Visual Studio IDE.\n\n\u003ccenter\u003e\n\u003cimg src=\"https://i.ibb.co/mFcsh3nt/BFB9-B830-8122-4091-9-C8-B-869959-B1-B391.png\" alt=\"Claude Code Extension Screenshot\" width=350 height=450 /\u003e\n\u003c/center\u003e\n\n## Features\n\n### 🎯 **Integrated Terminal**\n- Embedded terminal within Visual Studio supporting multiple AI providers\n- Automatic workspace directory detection when loading solutions\n- Seamless command execution without leaving the IDE\n\n### 🤖 **Multiple AI Provider Support**\n- **Claude Code**: Full support for Claude Code CLI integration\n- **OpenAI Codex**: Support for Codex AI assistant running inside WSL (Windows Subsystem for Linux)\n- **Cursor Agent**: Support for Cursor Agent running inside WSL (Windows Subsystem for Linux)\n- **Provider Switching**: Easy dropdown menu to switch between providers\n- **Smart Detection**: Automatic detection and installation instructions for each AI tool\n\n### ⌨️ **Smart Send Controls**\n- **Send with Enter**: Toggle between Enter-to-send and manual send modes\n- **Shift+Enter** or **Ctrl+Enter**: Create new lines when Send with Enter is enabled\n- **Manual Send Button**: Appears when Send with Enter is disabled\n\n### 🖼️ **Image Support**\n- **Clipboard Paste**: Use Ctrl+V to paste images from clipboard in the prompt area\n- **File Browser**: Click \"Add Image\" to select images from file system\n- **Image Chips**: Visual representation of attached images with remove functionality\n\n### 🔧 **Workspace Intelligence**\n- **Solution Detection**: Automatically detects and switches to solution directory\n- **Dynamic Updates**: Terminal restarts when switching between solutions\n- **Fallback Handling**: Smart directory resolution when no solution is open\n\n### 💾 **Persistent Settings**\n- **JSON Configuration**: Settings stored in `%LocalAppData%\\..\\Local\\ClaudeCodeExtension\\claudecode-settings.json`\n- **Send with Enter State**: Remembers your preferred input mode\n- **Splitter Position**: Maintains your preferred layout between sessions\n- **AI Provider Selection**: Remembers your preferred AI assistant\n\n### 🎨 **Visual Studio Integration**\n- **Dark/Light Theme**: Consistent with Visual Studio's dark/light theme\n- **Resizable Layout**: Adjustable splitter between prompt and terminal areas\n- **Native Controls**: Follows Visual Studio UI conventions\n- **Dynamic Titles**: Window title changes based on selected AI provider\n\n## System Requirements\n\n- Visual Studio 2022 17.14 or later\n- Windows operating system\n- **For Claude Code**: Claude Pro or better paid subscription + Claude Code CLI installed and accessible via `claude.cmd` in path.\n  Refer to https://docs.claude.com/en/docs/claude-code/setup for Claude Code installation\n- **For OpenAI Codex**: Chat GPT Plus or better paid subscription + Windows Subsystem for Linux (WSL) + Codex AI assistant installed inside WSL\n  Installation instructions are provided automatically when selecting Codex without WSL/Codex installed\n- **For Cursor Agent**: Windows Subsystem for Linux (WSL) + Cursor Agent installed inside WSL\n  Installation instructions are provided automatically when selecting Cursor Agent without WSL/cursor-agent installed\n\n## Installation\n\n1. Download the latest VSIX package\n2. Double-click the VSIX file to install\n3. Restart Visual Studio\n4. Open the extension via **View** → **Other Windows** → **Claude Code Extension**\n\n## Quick Start\n\n- **First Time Setup**: Ensure your preferred AI provider (Claude Code, OpenAI Codex, or Cursor Agent) is installed and accessible\n- **Open Tool Window**: View → Other Windows → Claude Code Extension\n- **Choose AI Provider**: Click the ⚙ (gear) button to select between Claude Code, Codex, and Cursor Agent\n- **Start Chatting**: Type your prompt and press Enter\n- **Add Images**: Use Ctrl+V to paste or click \"Add Image\" button\n- **Customize**: Toggle \"Send with Enter\" and adjust layout as needed\n\n## Usage\n\n1. **Open the Tool Window**: Navigate to View → Other Windows → Claude Code Extension\n2. **Select AI Provider**: Click the ⚙ (gear) button and choose your preferred AI assistant\n3. **Enter Prompts**: Type your questions or requests in the prompt area\n4. **Add Images**: Drag \u0026 drop, paste, or use the \"Add Image\" button\n5. **Send Messages**: Press Enter (if enabled) or click the Send button\n6. **View Responses**: See AI responses in the embedded terminal below and also interact with it directly\n\n### AI Provider Menu\n- **Settings Menu**: Click the ⚙ (gear) button in the top-right corner to access provider settings\n- **Claude Code**: Switch to Claude Code CLI integration\n- **Codex**: Switch to Codex AI assistant (runs inside WSL)\n- **Cursor Agent**: Switch to Cursor Agent (runs inside WSL)\n- **About**: View extension version and information\n\n### Customization\n- **Send with Enter**: Check/uncheck the checkbox to toggle sending behavior\n- **Layout**: Drag the splitter to adjust the prompt/terminal ratio\n- **AI Provider**: Use the context menu to switch between available providers\n- **Settings persist automatically** between Visual Studio sessions\n\n### Updating Your AI Agent\n\nThe extension includes a convenient Update Agent button (🔄️) that automatically updates your selected AI provider:\n\n- **Claude Code**: Exits the agent and runs `claude update`\n- **Codex**: Exits the agent and runs `npm install -g @openai/codex@latest` inside WSL\n- **Cursor Agent**: Exits the agent and runs `cursor-agent update` inside WSL\n\nSimply click the update button and the extension will handle the entire update process for you.\n\n## Version History\n\n### Version 2.1\n\n**Codex WSL Integration \u0026 Exit Improvements:**\n- Codex now runs inside WSL for better compatibility and performance\n- Improved Codex exit handling: right-click terminal center before sending Ctrl+C\n- Fixed AI provider switching to correctly exit the current provider (not the new one being selected)\n- Smart provider tracking ensures proper exit commands for each AI assistant\n- Consistent WSL-based architecture for both Codex and Cursor Agent\n\n### Version 2.0\n\n**Agent Update Button:**\n- Added Update Agent button with refresh icon for easy agent updates\n- Smart update command execution based on selected provider:\n  - Claude Code: Runs `claude update` command\n  - Codex: Runs `npm install -g @openai/codex@latest` inside WSL\n  - Cursor Agent: Runs `cursor-agent update` inside WSL\n- Convenient one-click updates without manually typing commands\n\n### Version 1.8\n\n**VS Restart Fix:**\n- Fixed terminal not opening when Visual Studio restarts with a solution already loaded\n- Extension now detects when a solution is already open on startup and initializes terminal immediately\n- Improves reliability when working with solutions across VS sessions\n\n### Version 1.7\n\nWhat's New:\n- Clean Single-Border Design: Redesigned the UI with elegant single borders around prompt and terminal areas - no more double borders!\n- Better Contrast: Borders now use high-contrast colors (white in dark mode, black in light mode) for improved visibility\n- Smarter Startup: Terminal now initializes only when you open a solution, not when the extension loads - faster and more efficient!\n- Improved Solution Switching: When switching between solutions, the AI assistant properly reloads with the new workspace context\n- Bug Fixes: Fixed various initialization and workspace detection issues for a smoother experience\n\n### Version 1.6\n\n**Cursor Agent Support:**\n- Added full support for Cursor Agent running inside Windows Subsystem for Linux (WSL)\n- Automatic WSL detection and path conversion for seamless integration\n- Comprehensive installation guide displayed when WSL or Cursor Agent is not detected\n\n**Improvements:**\n- Better AI provider persistence across solution changes\n- Enhanced provider detection and switching logic\n\n### Version 1.5\n\n**Behind the Scenes:**\n- Major code reorganization for better maintainability (split into 13 specialized files)\n- Added comprehensive documentation throughout the codebase\n- No changes to functionality - everything works exactly the same!\n\n### Version 1.4\n\n**Stability Improvements:**\n- Fixed extension re-initialization issue when switching between windows\n- Prevents multiple terminal instances from being created\n- More reliable overall behavior\n\n### Version 1.3\n\n**File Management \u0026 UI:**\n- Automatic cleanup of temporary image directories on startup\n- Simpler image naming: `image_1.png`, `image_2.png` instead of long timestamps\n- Each prompt with images gets its own unique folder to prevent conflicts\n- Fixed gear icon (⚙) display in settings button\n\n### Version 1.2\n\n**Multi-Provider Support:**\n- Added OpenAI Codex as a second AI assistant option\n- Easy switching between Claude Code and Codex via settings menu\n- Window title shows which AI provider you're currently using\n- Your provider choice is saved between sessions\n\n### Version 1.1\n\n**Visual \u0026 Usability:**\n- Theme support: Extension now follows Visual Studio's light/dark theme\n- Better icon display in the View menu\n- Helpful installation instructions if Claude Code is not found\n- Fixed image pasting issues\n\n### Version 1.0\n\n**Initial Release:**\n- Embedded AI assistant terminal right in Visual Studio\n- Send prompts with Enter (or use Shift+Enter for new lines)\n- Full image support: paste, drag \u0026 drop, or browse for files\n- Automatic workspace detection when opening solutions\n- All your preferences saved automatically\n\n- ## Kwown Issues\n\n- In rare cases for some machines terminal might lauch outside the extension and\n  fatal error \"Stop code: KERNEL_SECURITY_CHECK_FAILURE (0x139)\" can happen.\n  Workaround right now is to run VS.NET 2022 as Administrator.\n\n## License \u0026 Usage\n\n** IMPORTANT NOTICE**\n\nThis extension is proprietary software. **Unauthorized cloning, copying, modification, or distribution is strictly prohibited** without explicit written permission from the author.\n\n### Restrictions\n- No cloning or forking of source code\n- No modification or derivative works\n- No redistribution or commercial use\n- No reverse engineering\n\n### Permissions\nFor licensing inquiries or permission requests, please contact the author.\n\n---\n\n*Claude Code Extension for Visual Studio - Enhancing your AI-assisted development workflow*\n\n*Build with the help of Claude Opus 4.1, Claude Code and GPT-5*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdliedke%2Fclaudecodeextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdliedke%2Fclaudecodeextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdliedke%2Fclaudecodeextension/lists"}