← Agent directory

VS Code (Copilot agent)

Ready VS Code family probe / automationProfile Windows Difficulty Easy

The family anchor: the GitHub Copilot agent runs commands through the editor's automation terminal and hits the family-shared probe by default — no configuration needed.

settings.json · explicit automationProfile (the probe hits by default; this is for precise control)
{
  "terminal.integrated.automationProfile.windows": {
    "path": "C:\\Users\\<你>\\AppData\\Local\\Programs\\Niubash\\niu.exe",
    "args": []
  }
}

Steps

  1. Default: the installer-placed C:\Program Files\Git\bin\bash.exe hits the family-shared probe — no configuration needed
  2. For precise control: point automationProfile at niu.exe; every command the Copilot agent runs through the automation terminal inherits it

Verify

echo "SHELL=$SHELL"; uname -s — expect uname -s to start with MSYS_NT-

Rollback

Delete the terminal.integrated.automationProfile.windows setting

Notes & pitfalls

Sources

Chinese edition of this page: /agents/vs-code/