← Agent 目录

VS Code(Copilot agent)

可用 VS Code 家族探针 / automationProfile Windows 难度 初

家族锚点:GitHub Copilot agent 经编辑器自动化终端跑命令,安装器布下的启动器默认命中家族共享探针,无需配置。

settings.json · 显式 automationProfile(探针默认已命中,此为精确控制)
{
  "terminal.integrated.automationProfile.windows": {
    "path": "C:\\Users\\<你>\\AppData\\Local\\Programs\\Niubash\\niu.exe",
    "args": []
  }
}

步骤

  1. 默认:安装器占位的 C:\Program Files\Git\bin\bash.exe 命中家族共享探针,无需配置
  2. 要精确控制:设置 automationProfile 指向 niu.exe,Copilot agent 经自动化终端跑的命令全部继承

验证

echo "SHELL=$SHELL"; uname -s ——期望 uname -s 以 MSYS_NT- 开头

回滚

删除 terminal.integrated.automationProfile.windows 配置项

注意事项

来源