在远程Windows虚拟机上运行代理构建和测试

Run agent builds and tests on remote Windows VMs

开发者将编码代理的ssh访问权限给予远程Windows虚拟机上的WSL实例,以运行构建和测试,而不是在他们的Mac笔记本电脑上。

软件与开发运维 Claude Code Claude Codex claude-in-chrome HN · 2026-10-18

做了什么

The developer's employer supplies a Mac laptop plus remote Windows VMs. The agents get ssh access to WSL instances on those VMs and run their builds and tests there. Setup is ad hoc: agents have to pull the latest code, or the developer keeps the main enlistment current on each machine.

效果如何

Builds no longer run on the Mac, so background agents stop causing video streams to drop during meetings. The developer is happy with it, though the setup is only good enough for now.

值得注意

Keeping code in sync on the VMs is manual; the developer is considering containers or GitHub Actions to make it cleaner.

试试这个 Prompt

I'm working in [project folder] on my [Mac/Linux] machine, but builds and tests must run on a remote Windows machine. You can reach it with ssh at [user@host] and use WSL there. Sync the code to [remote path], run [build command] and [test command] over ssh, and report which tests passed and failed with the relevant error output. Do not delete or overwrite anything on the remote machine outside [remote path], and show me any command that would do so before running it.

阅读原文 ↗

相关用例