DEV Community

Hector Flores
Hector Flores

Posted on • Originally published at htek.dev

Visual Studio Weekly: Custom Agents, Profiler Upgrades, and MSVC's 6.5% Performance Jump

Custom Agents Just Changed the Game

Visual Studio 2026's March update (version 18.4.0, released March 10) delivered something that should fundamentally change how enterprise teams use Copilot: custom agents defined as .agent.md files.

This isn't a cosmetic feature. It's a declarative way to encode your team's workflow patterns, toolchains, and institutional knowledge directly into Copilot's agent mode. Drop a .github/agents/code-reviewer.agent.md file in your repo, and every developer on your team can invoke a specialist agent that understands your testing strategy, your CI/CD pipeline, your security requirements, and your architectural constraints. The agent has full workspace awareness, code understanding, tool access, and MCP connections to your internal docs and databases.

We've crossed a threshold here. AI assistance has moved from generic autocomplete to domain-specific, context-aware agents that can be tailored to how your team actually builds software. If you're still treating Copilot like a fancy IntelliSense, you're missing the point.

Profiler Agent Meets Unit Tests

The @profiler agent now works with unit tests, and it's a bigger deal than it sounds. Previously, profiling felt like a separate workflow — something you did after debugging when performance became a problem. Now, as you debug and step through code, Visual Studio shows execution time and performance signals inline with each step.

Spot a slow line? Click the Perf Tip. Copilot captures runtime data (elapsed time, CPU, memory) during debugging and suggests optimizations on the spot. The Profiler Agent can also discover relevant unit tests or BenchmarkDotNet benchmarks that exercise performance-critical paths. If none exist, it creates a small measurement setup so you can baseline and compare results after changes.

This makes the Profiler Agent practical for C++ projects, where benchmarks aren't always set up, but unit tests often are. Performance optimization is now part of the debugging loop, not a separate investigation you postpone until users complain.

MSVC 14.51 Preview: Real Performance Gains

Microsoft shipped MSVC Build Tools version 14.51 Preview, and the runtime performance improvements are measurable, not marketing:

  • +6.5% Integer, Arm64, PGO
  • +5.0% Integer, X64, PGO
  • +4.4% Integer, Arm64, VS Defaults
  • +4.3% Integer, X64, VS Defaults

These gains come from smarter optimization passes:

  • Improved SLP vectorizer (considers partial vectors, oversized vectors before mapping to target width)
  • Better SROA handling of indirect accesses, large structs, typecasts
  • Loop vectorizer can now hoist runtime checks
  • Elimination of logical-OR short-circuiting when safe
  • More aggressive inlining for functions with few uses
  • Better inline expansion of memset/memcpy for AVX
  • Unrolling of outer loops and loops with multiple exits

The Arm64 numbers are particularly notable — +6.5% on integer workloads with PGO is a real step forward for Arm-based Windows development. If you're shipping native code on Arm64 or targeting Xbox, this preview is worth testing.

Find Symbol Tool for Agent Mode

Agent mode gets a new find_symbol tool that brings language-aware symbol navigation directly to the agent. You can now ask Copilot to find all references to a symbol, access metadata like type info and declarations, or reason about symbol scope across C++, C#, Razor, TypeScript, or any language with an LSP extension installed.

This is infrastructure for smarter refactoring and cross-file reasoning. The agent can now understand how a change in one file ripples through your codebase before making edits. It's the kind of deep code understanding that was missing from earlier generations of AI code tools.

JSON Editor in Core, HTML Rich Copy, and Smart Watch Suggestions

Three quality-of-life improvements that reduce friction:

JSON editor is now part of Core Editor — you no longer need the Web Development workload to edit JSON files. This should have always been the case.

HTML rich copy/cut — copy code from Visual Studio and paste it into PowerPoint, Azure DevOps work items, or any HTML-based tool with syntax highlighting and formatting intact. Enabled by default, configurable in Tools → Options → Text Editor → Advanced.

Smart Watch Suggestions — Copilot now suggests context-aware expressions in Watch windows. Place your cursor in the text box, and Copilot suggests relevant runtime values based on your current debugging context. Faster watch creation, less guesswork.

Enterprise MCP Governance

MCP server usage in Visual Studio now respects GitHub allowlist policies. Admins can specify which MCP servers are allowed within their organization. If you try to connect to an unauthorized server, you get an error message explaining it isn't allowed.

This was a missing piece for enterprise adoption. MCP servers can access sensitive data, and organizations need control over which external services can process that data. The allowlist model is the right approach — secure by default, with explicit approvals for specific servers.

What This Signals

The March update continues the trajectory set by Visual Studio 2026's release in December: AI is becoming infrastructure, not a feature. Custom agents, profiling during debug, symbol-aware tooling, and enterprise governance are all foundational pieces that enable AI to participate in the full development lifecycle, not just code generation.

If your team is still experimenting with Copilot as a personal productivity tool, it's time to level up. Custom agents turn Copilot into a platform for encoding your team's expertise. The tooling is there. The question is whether you're going to use it.

The Bottom Line

Visual Studio 2026 March update ships custom agents, profiling during debug, C++ compiler improvements that actually move the needle, and enterprise controls for MCP. These aren't incremental improvements — they're building blocks for a fundamentally different development workflow where AI agents are specialized, context-aware, and integrated into the full stack. If you're shipping C++, .NET, or enterprise apps on Visual Studio, this update deserves a deeper look than the release notes. The IDE is quietly becoming an agent platform, and the teams that figure out how to use it first will have a real advantage.

Top comments (0)