<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Context | The .NET Blog</title><link>https://thedotnetblog.com/tags/context/</link><description>Articles, tutorials and insights from the .NET community.</description><generator>Hugo</generator><language>en</language><managingEditor>@thedotnetblog (The .NET Blog)</managingEditor><webMaster>@thedotnetblog</webMaster><lastBuildDate>Tue, 11 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://thedotnetblog.com/tags/context/index.xml" rel="self" type="application/rss+xml"/><item><title>AI Meets Remote Development: Context-Aware Agents in Any Environment</title><link>https://thedotnetblog.com/news/emiliano-montesdeoca/ai-and-remote-development-unified/</link><pubDate>Tue, 11 Aug 2026 00:00:00 +0000</pubDate><author>Emiliano Montesdeoca</author><guid>https://thedotnetblog.com/news/emiliano-montesdeoca/ai-and-remote-development-unified/</guid><description>VS Code integrates AI seamlessly across remote SSH, dev containers, WSL, tunnels, and Codespaces. Custom instructions, chat participants, and auto-approvals transform how you work from anywhere.</description><content:encoded>&lt;p&gt;Original source: &lt;a href="https://code.visualstudio.com/blogs/2025/05/27/ai-and-remote"&gt;Enhance productivity with AI + Remote Dev&lt;/a&gt;&lt;/p&gt;
&lt;h1 id="ai-meets-remote-development-context-aware-agents-in-any-environment"&gt;AI Meets Remote Development: Context-Aware Agents in Any Environment&lt;/h1&gt;
&lt;p&gt;Remote development was already powerful in VS Code—SSH into a VM, work in a dev container, develop in WSL, tunnel to a remote machine, or use GitHub Codespaces. But those workflows were isolated from AI. You had to switch contexts mentally: AI in the editor, but your actual code living somewhere else.&lt;/p&gt;
&lt;p&gt;That split is gone. VS Code&amp;rsquo;s latest integration brings agent mode, chat, and AI completions to every remote environment. More importantly, it lets agents understand which environment they&amp;rsquo;re in and tailor their behavior accordingly.&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s not just convenience. That&amp;rsquo;s a fundamentally different approach to distributed development.&lt;/p&gt;
&lt;h2 id="the-five-remote-flavors-now-ai-enabled"&gt;The Five Remote Flavors, Now AI-Enabled&lt;/h2&gt;
&lt;p&gt;VS Code&amp;rsquo;s remote development comes in five flavors:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Remote SSH&lt;/strong&gt; — Connect to any VM or machine via SSH&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dev Containers&lt;/strong&gt; — Work inside a containerized environment with preconfigured dependencies&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;WSL&lt;/strong&gt; — Linux-powered development on Windows&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Remote Tunnels&lt;/strong&gt; — Access a machine via secure tunnel, no SSH config needed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GitHub Codespaces&lt;/strong&gt; — Managed cloud environments&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Before this update, AI worked in all of them. But now, it works &lt;em&gt;with context&lt;/em&gt;. GitHub Copilot automatically installs when you connect remotely. Better: custom instructions and chat participants now understand your remote setup.&lt;/p&gt;
&lt;h2 id="custom-instructions-teaching-ai-about-your-environment"&gt;Custom Instructions: Teaching AI About Your Environment&lt;/h2&gt;
&lt;p&gt;Imagine you connect to a dev container for Python development. The container has Python 3, pip, and the Python language extensions installed. But the agent doesn&amp;rsquo;t know that automatically.&lt;/p&gt;
&lt;p&gt;With custom instructions, you can tell it:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;This is a dev container that includes `python3` and `pip3` pre-installed
and available on the `PATH`, along with the Python language extensions
for Python development.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That one instruction changes everything. Now when you ask the agent to write Python code, it won&amp;rsquo;t suggest installation steps you&amp;rsquo;ve already done. It won&amp;rsquo;t guess at your project structure. It understands the environment.&lt;/p&gt;
&lt;p&gt;Better yet: VS Code&amp;rsquo;s dev container templates now include custom instructions by default. The Python template, the Node.js template—they all ship with environment context built in. Clone a repo with a dev container, open it in VS Code, and the agent knows exactly what toolchain is available.&lt;/p&gt;
&lt;p&gt;From the blog: &amp;ldquo;We&amp;rsquo;ve made it so that custom instructions can merge successfully across images and Templates.&amp;rdquo; That means custom instructions compose. Your base Python image has one set of instructions. Your project adds another. The agent gets the union of both.&lt;/p&gt;
&lt;h2 id="chat-participants-domain-specific-helpers"&gt;Chat Participants: Domain-Specific Helpers&lt;/h2&gt;
&lt;p&gt;Chat participants are AI helpers specialized in particular domains. Type &lt;code&gt;@&lt;/code&gt; in the chat field and you see the available options—&lt;code&gt;@workspace&lt;/code&gt;, &lt;code&gt;@vscode&lt;/code&gt;, &lt;code&gt;@terminal&lt;/code&gt;. Extensions can add their own.&lt;/p&gt;
&lt;p&gt;The Remote SSH extension includes &lt;code&gt;@remote-ssh&lt;/code&gt;. Ask it how to troubleshoot SSH connection failures. Ask how to configure key-based authentication. It&amp;rsquo;s like having someone who knows your remote setup sitting next to you.&lt;/p&gt;
&lt;p&gt;If an SSH connection fails, there&amp;rsquo;s a &lt;strong&gt;Diagnose with Copilot&lt;/strong&gt; button. The agent investigates and surfaces actionable insights right in the editor. No context switching. No searching the web. The agent is already in the right context.&lt;/p&gt;
&lt;h2 id="auto-approvals-agent-autonomy-safely"&gt;Auto-Approvals: Agent Autonomy, Safely&lt;/h2&gt;
&lt;p&gt;Agents are powerful because they can run terminal commands and tools—install dependencies, run tests, modify local configuration. But some commands are destructive. You might not want an agent deleting files on your local machine.&lt;/p&gt;
&lt;p&gt;VS Code now supports &lt;code&gt;chat.tools.autoApprove&lt;/code&gt;. When enabled, the agent doesn&amp;rsquo;t pause for confirmation on tool calls. It just runs them.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s the key: you can scope this to dev containers or remote machines only. This gives you a security model where:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Local dev machine&lt;/strong&gt;: tools require explicit approval&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dev container&lt;/strong&gt;: tools auto-approve (it&amp;rsquo;s ephemeral, less risk)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Remote VM&lt;/strong&gt;: depends on your risk tolerance&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You get autonomy without exposing your local dev machine to potentially destructive commands.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;chat.tools.autoApprove&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Treat that setting as an environment policy, not a productivity switch. A remote VM with production credentials is not automatically safe just because it is remote.&lt;/p&gt;
&lt;h2 id="practical-pattern-dev-container--custom-instructions"&gt;Practical Pattern: Dev Container + Custom Instructions&lt;/h2&gt;
&lt;p&gt;Here&amp;rsquo;s how it comes together:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create a dev container from the &lt;strong&gt;Dev Containers: Add Dev Container Configuration&lt;/strong&gt; command.&lt;/li&gt;
&lt;li&gt;Select Python (or your language of choice).&lt;/li&gt;
&lt;li&gt;Reopen the folder in the container.&lt;/li&gt;
&lt;li&gt;Open chat and ask the agent to build something.&lt;/li&gt;
&lt;li&gt;Check that the agent uses the installed toolchain and your repository instructions.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;What used to require manual setup—&amp;ldquo;I&amp;rsquo;m working in a container, let me tell the agent about it&amp;rdquo;—now becomes part of the environment definition.&lt;/p&gt;
&lt;h2 id="the-caveat-context-bleed-risk"&gt;The Caveat: Context Bleed Risk&lt;/h2&gt;
&lt;p&gt;Here&amp;rsquo;s the edge case: the more context an agent has, the more it can hallucinate connections that don&amp;rsquo;t exist.&lt;/p&gt;
&lt;p&gt;An agent in your Python dev container might think there is a database available because a &lt;code&gt;.env&lt;/code&gt; file contains a connection string. That database may not be running. The agent tries to use it and fails.&lt;/p&gt;
&lt;p&gt;Custom instructions help—you can explicitly say &amp;ldquo;this container does NOT have access to the production database&amp;rdquo;—but they&amp;rsquo;re not foolproof. Agents still need human review for risky operations.&lt;/p&gt;
&lt;h2 id="my-perspective-this-unlocks-asynchronous-teamwork"&gt;My Perspective: This Unlocks Asynchronous Teamwork&lt;/h2&gt;
&lt;p&gt;Remote development is already about working asynchronously across machines. AI makes it better because agents now understand the context of &lt;em&gt;where&lt;/em&gt; they&amp;rsquo;re working.&lt;/p&gt;
&lt;p&gt;Pair this with GitHub&amp;rsquo;s Copilot Coding Agent, which runs in the cloud, and you have a powerful model:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Local agents&lt;/strong&gt; handle quick tasks and understand your local dev container.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Remote agents&lt;/strong&gt; tackle complex features across your codebase.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Both speak the same language&lt;/strong&gt; because they can share workspace context and coding standards.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="what-to-do-next"&gt;What To Do Next&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Add custom instructions to your dev container templates.&lt;/strong&gt; If you maintain dev containers for your team, include environment-aware guidance.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Test auto-approvals in an ephemeral container.&lt;/strong&gt; Do not begin with a remote machine that holds production credentials.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Experiment with &lt;code&gt;@remote-ssh&lt;/code&gt;.&lt;/strong&gt; Use it to troubleshoot your own setup, then consider what domain-specific participants would help your team.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Remote development plus AI is no longer AI in a desktop editor. It is a distributed workflow where context follows you everywhere you work.&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s the future. It&amp;rsquo;s here.&lt;/p&gt;
&lt;p&gt;Happy coding.&lt;/p&gt;</content:encoded></item></channel></rss>