Skip to content
| Marketplace
Sign in
Visual Studio>Tools>ShadowPilot
ShadowPilot

ShadowPilot

Arun Devadiga

|
72 installs
| (0) | Free
Provides multiple agent menus in Visual Studio that trigger GitHub Copilot with predefined instruction templates.
Download

Overview

Shadow Pilot — Visual Studio Copilot Extension

AI Workflow. One Click.
A concise multi-stakeholder overview


1. What Is Shadow Pilot?

Shadow Pilot is a Visual Studio extension that automates how developers interact with GitHub Copilot Chat.
It injects structured instruction templates directly into the Copilot Chat window and triggers execution—bringing agent-like functionality to Visual Studio, where such capabilities are currently unavailable.


2. Why Shadow Pilot Is Needed

Limitation on GitHub Copilot Side

  • Agent Mode APIs exists only in VS Code, not Visual Studio.
  • Copilot exposes zero APIs in Visual Studio.
  • No mechanism to submit system prompts or automate messages programmatically.

Limitation on Visual Studio Side

  • VSIX extensions cannot reach or control the Copilot chat UI.
  • No official APIs for Copilot automation or agent development.
  • Copilot Chat behaves as a closed, non-extensible surface.

Combined Limitation

Visual Studio → No extensibility API for Copilot
GitHub Copilot → No agent or prompt injection support in Visual Studio

➡️ Developers are forced to manually paste long instructions, leading to inconsistent workflows.


3. How Shadow Pilot Solves the Problem

Shadow Pilot acts as a bridge between developers and Copilot Chat:

  • Opens Copilot Chat automatically
  • Injects instruction templates into the chat input buffer
  • Sends the message to Copilot
  • Auto-copies workspace context files (copilot-instructions.md and instruction files) to solution's .github folder
  • Emulates lightweight agent behavior until official APIs arrive

This enables governed, repeatable, error-free AI workflows in Visual Studio today.

Automatic Workspace Integration

Shadow Pilot goes beyond just injecting prompts—it automatically prepares your solution for GitHub Copilot:

When any agent is invoked:

  1. Global Instructions - Copies copilot-instructions.md from your agents repository to [Solution]/.github/copilot-instructions.md
  2. Specialized Context - Copies all *.instructions.* files from AgentsPath/instructions/ to [Solution]/.github/instructions/
  3. Zero Configuration - Developers get consistent Copilot context without manual setup
  4. Always Current - Every invocation refreshes files from the central repository

Benefits:

  • Team Consistency - Everyone gets identical Copilot context automatically
  • Solution-Specific - Each solution maintains its own .github folder
  • Version Control Ready - Files can be committed or gitignored per team policy
  • Zero Maintenance - No manual copying, no outdated instructions

4. Key Advantages

Bring Agent-like Experience to Visual Studio

  • Enables structured AI workflows inside Visual Studio
  • Mimics agent behavior without official APIs
  • No need to switch IDEs

Impact: Teams stay in their primary development environment

One-Click AI Workflow Execution

  • Click an agent → Opens Copilot Chat
  • Injects structured prompts automatically
  • Triggers execution instantly

Impact: Reduces manual copy-paste effort • Standardizes AI usage across teams

Centralized & Always Updated Instructions

  • Reads agent instructions from shared location
  • Ensures everyone uses the latest version
  • Eliminates outdated prompt usage

Impact: Governance + consistency across projects

Multi-File Instruction Bundling

Automatically loads:

  • Architecture guidelines
  • Coding standards
  • Test rules
  • Injects everything together

Impact: Enterprise-grade prompt orchestration

Instruction Layering with Precedence

Supports ordered layers:

  1. Org-level rules
  2. Project-level rules
  3. Agent-level instructions
  4. User prompt

Higher priority rules are never overridden.

Impact: Strong compliance + controlled AI behavior

Enterprise Productivity Booster

  • Reduces repetitive prompting
  • Encourages standardized Copilot usage
  • Improves onboarding for new developers
  • Enables scalable AI adoption

Impact: Measurable productivity gains across the organization


5. Value for Different Stakeholders

For Developers

  • One-click execution of complex instructions
  • No need to copy/paste long prompts
  • Reproducible responses from Copilot
  • Faster automation and experimentation
  • Automatic workspace setup - Context files copied to .github folder without manual intervention

For Architects

  • Codified AI workflows
  • Standardized prompt templates
  • Reliable automation despite lack of official Copilot APIs
  • Future-safe approach: easily replaceable with native APIs later
  • Centralized context management - Single source of truth for Copilot instructions

For Engineering Managers

  • Consistency across teams
  • Reduced onboarding effort
  • Improved productivity with minimal training
  • Clear governance model for AI usage
  • Guaranteed context uniformity - All developers work with identical Copilot configurations

For Leadership

  • AI capability uplift without waiting for vendor roadmap
  • Demonstrates internal innovation
  • Enables predictable productivity gains
  • Low-risk, high-impact solution
  • Scalable knowledge distribution - Best practices propagate automatically

6. Limitations (Transparent View)

Shadow Pilot operates as an Agent Emulator, not a full agent framework:

  • Relies on UI workarounds: Uses text-buffer operations and fallback keystrokes since no official API exists.
  • Not fully reliable: Requires focus on Copilot chat window; user interaction may disrupt injection.
  • One-way automation: Cannot read Copilot’s response or detect completion.
  • Includes temporary solution: Once Microsoft exposes native APIs, this approach will be replaced—but Shadow Pilot can adopt them seamlessly.

7. Future Outlook

When Microsoft introduces a full Copilot extensibility model for Visual Studio, Shadow Pilot will transition from a workaround to a native integration—preserving all workflows while gaining reliability and performance.


8. Closing Note

Copilot amplifies productivity only when tightly integrated into real workflows.
Shadow Pilot focuses on practical adoption, developer enablement, and continuous improvement—not just installing licenses.


9. Configuring Agents Path

Shadow Pilot uses agent instruction files stored on disk to dynamically generate menu actions in Visual Studio.
The location of these agent files can be configured using the Agents Path setting.

Steps to Configure

  1. Open Visual Studio
  2. Go to Tools → Options
  3. Navigate to ShadowPilot → General
  4. Set the AgentsPath to the folder containing your agent instruction files
  5. Click OK to save the configuration

Agents Path Requirements

  • The path must point to a valid directory
  • Each agent must be defined as a separate instruction file
  • File names are used to generate menu entries automatically
  • Changes take effect immediately or after reopening Visual Studio

Example Directory Structure Agents Repository

C:\ShadowPilot\Agents\
├── copilot-instructions.md
├── instructions\
│   ├── architecture.instructions.md
│   ├── coding-standards.instructions.md
│   ├── security.instructions.md
│   └── testing.instructions.md
├── CodeReview.md
├── Net Migration Agent.md
└── BDD Test Agent.md

Key Components:

  • copilot-instructions.md - Global instructions copied to [Solution]/.github/copilot-instructions.md
  • instructions/ - Subfolder containing *.instructions.* files copied to [Solution]/.github/instructions/
  • Agent files - Individual agent definition files (e.g., CodeReview.md) that appear as menu items

Example Workspace Directory Structure

When you click on any Agent from the Shadow Agents menu to execute it, ShadowPilot automatically creates the following directory structure in the workspace.

It then copies only the relevant instruction files required for that Agent’s execution.

D:\git\MyProject\.github\
├── copilot-instructions.md
├── instructions\
│   ├── architecture.instructions.md
│   ├── coding-standards.instructions.md
│   ├── security.instructions.md
│   └── testing.instructions.md

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft