Bringing AI-Assisted Development into Visual Studio
Reverse-engineering the VS Code experience to learn what desktop AI assistance should feel like for .NET.
March 1, 2025 · 1 min
Desktop developers need AI assistance that feels native to their development environment—not a browser experience repackaged as an IDE tool.
The duet-ai-visualstudio experiment explored bringing a Duet-style AI assistance experience into Visual Studio. The goal was to understand the engineering challenges behind a genuinely integrated developer experience: latency, context management, Roslyn-based symbol awareness, and seamless integration with the edit–compile–debug workflow.
Three principles consistently guided the exploration:
-
Understand code, not just text. Leverage compiler APIs and semantic context to deliver relevant assistance grounded in symbols, types, and the developer’s current position in the code.
-
Treat latency as part of the experience. Fast feedback, streaming responses, and responsive cancellation are essential to maintaining developer flow and trust.
-
Keep developers in control. Make assistance progressive and opt-in—from contextual suggestions to explicit code transformations, never unexpected modifications.
The implementation remains an experimental, unofficial exploration. Its broader lessons extend beyond Visual Studio: successful AI integration requires understanding the developer’s workflow, respecting their context, and keeping them firmly in control.
Explore the project: github.com/Rishabh-V/duet-ai-visualstudio