Post

HN
Hacker News

Show HN: Claude Code for Visual Studio (native diff with accept/reject)

Bring Claude Code into Visual Studio 2026 - a native diff window with accept/reject, automatic selection + compiler-diagnostics context, and a live stats panel. The claude CLI does the agent work; this extension is the IDE half of Claude Code's integration protocol.

Status: community project, not affiliated with Anthropic. Visual Studio 2026 only , for now.

Claude Code has first-class IDE integration for VS Code and JetBrains, but not Visual Studio - see anthropics/claude-code#15942 . This extension implements that same IDE-integration protocol natively for VS, so the CLI drives a real Visual Studio diff window and sees your selection and build errors - instead of you copy-pasting into a terminal.

Diagnostics need a loaded project (not a loose file in Open-Folder mode) for the compiler to analyze it.

This is a protocol bridge , not a re-implementation of the agent. On launch the extension:

To make the VS diff the single approval gate , the extension installs a small PreToolUse hook into your workspace's .claude/settings.json that routes proposed edits through the diff. The CLI does all agent work; the extension never makes model calls.