Skip to content

Windows acceptance checklist

devhub’s Windows support has so far been tested only with mocks on macOS and has not been verified on real Windows. Please follow the steps in order and report each one as “pass” or “fail plus the information to attach”.

Always attach with your report: the Windows version (winver), system language, Node version (node -v), Git version (git --version), the shell you used (cmd/PowerShell), and the devhub commit (git rev-parse --short HEAD). Do not paste tokens, the contents of cf.env or certificate private keys.

Items not yet verified on real Windows

Item Risk
Output of netstat -ano in each language Parsing relies on “remote address :0” rather than state wording, but the column format hasn’t been confirmed on real machines
tasklist /FI "PID eq n" /FO CSV /NH Process name parsing, what is returned for PID 4
taskkill /PID n /T (graceful) and /T /F (forced) on npm/dotnet process trees Whether the whole tree is cleared and whether grandchild processes are left behind
Actual effect of graceful stop Expected to have no effect on console programs without a window; confirm that the wait is skipped as expected
icacls restricting the config directory and token file The resulting permissions, user names of domain accounts
Binding 127.0.0.1:443/80 Behavior alongside HTTP.sys/IIS, whether the firewall prompts
Running a service’s cmd with cmd.exe /d /s /c Handling of quotes, && and set VAR=…
.cmd shims (orca, glab, devhub) Execution through a shell and the character rejection rules
podman machine (WSL backend) Start/stop, container log streaming
Path comparison Drive letter and path case (worktrees, --here)
server start breaking away from the agent’s Job Object with WMI (Invoke-CimMethod Win32_Process Create) Whether the server survives after the session closes; whether the environment variables are passed completely (see step 11)
Copying and cleaning up the runtime copy on long paths %APPDATA%\devhub\runtime\… exceeding 260 characters, renaming while antivirus locks files
C:/… paths from git worktree list --porcelain After conversion to C:\… they compare equal to other paths

Acceptance steps

1. Installation

終端機視窗
git clone <repo-url> devhub
cd devhub
npm ci
node --test test/platform.test.mjs test/gitworktrees.test.mjs
  • Expected: all tests in both files pass.
  • Note: the other tests in the full node --test test/ use /bin/sh and lsof and are expected to fail on Windows; no action is needed.
  • On failure report: the names of the failing tests and the full error output.

2. Start and config directory permissions

終端機視窗
node devhub.mjs

In another window:

終端機視窗
dir $env:APPDATA\devhub
icacls $env:APPDATA\devhub
  • Expected: the terminal prints http://127.0.0.1:4999; %APPDATA%\devhub\services.json has been created; the icacls output lists only your account (no Users, Everyone or inherited entries). Opening http://127.0.0.1:4999 in the browser shows the admin UI.
  • On failure report: the startup output (especially “Warning: unable to use icacls…”) and the full icacls output.

3. repos (getting worktrees without Orca)

Edit %APPDATA%\devhub\services.json and add the following (replace the path with your repo, which needs several worktrees; you can first run git worktree add ..\my-app-feat -b feat):

"repos": { "my-app": "C:\\Users\\me\\code\\my-app" }

Press “Refresh worktrees” in the header.

  • Expected: without Orca installed, the header’s “worktree source” pill shows a green “worktree: git”; the worktree switcher contains the main checkout and the branch names of the other worktrees; paths are written as C:\….
  • Variation: change the repos path to a folder that doesn’t exist; expect that repo’s error to be shown while other repos are unaffected.
  • On failure report: the full text of the header notice, the output of git worktree list --porcelain, and worktreeSource and repoErrors from curl http://127.0.0.1:4999/api/state (you may remove other sensitive fields first).

4. Start and stop a service

In the UI add a service: choose the project from the previous step as repo, set cwd to ., set cmd to a command that listens on a fixed port (for example npm run dev, or node -e "require('http').createServer((q,r)=>r.end('ok')).listen(3999)"), and set port to that port.

  1. Press “Start”: expect the port to show running and the log to have output.
  2. Press “Stop”: expect it to become stopped within a few seconds; confirm with netstat -ano | findstr :3999 that the port is released, and with Task Manager that no node/cmd processes remain. Note how long it took.
  3. Start it again, press Stop, and during the countdown press “Force stop”: expect it to end immediately.
  • Expected (graceful stop): a console program without a window doesn’t receive taskkill /T, so devhub should skip the stopTimeoutSec wait and end it by force, taking far less than 10 seconds.
  • On failure report: the time taken, whether processes remain (tasklist | findstr node), the devhub terminal output and the service log.

5. Switching worktrees

For the service from step 4, choose another worktree and press “Restart”.

  • Expected: it comes up from the new directory on the same port; cwd= at the start of the log is the new worktree path.
  • On failure report: the first 5 lines of the log and the selected path (mind case and slash direction).

6. Taking over an external holder

Manually run node -e "require('http').createServer((q,r)=>r.end('x')).listen(3998)" in another window, and add a service on port 3998.

  • Expected: the row shows “Occupied”; pressing Stop takes it over and releases the port.
  • On failure report: the output of netstat -ano | findstr :3998 and of tasklist /FI "PID eq <pid>" /FO CSV /NH.

7. 80/443 and HTTPS

Set proxy.host and a DNS provider in the config (see https-proxy.md) and restart devhub.

  • Expected: the Proxy pill shows “Running”; https://<host>/devhub/ opens in the browser; no Windows firewall prompt appears at any point (devhub binds only 127.0.0.1).
  • On failure report: the full text of the Proxy pill popover, the last 20 lines of .devhub\proxy.log (first make sure they hold no sensitive data), and whether a firewall prompt appeared.

8. IIS/HTTP.sys holding the ports (when the machine has IIS or HTTP.sys)

  • Expected: the Proxy pill shows “Held by a Windows system service”, its text includes net stop w3svc and netsh http show servicestate, and devhub did not stop IIS.
  • On failure report: the full pill text and the output of netstat -ano | findstr :443 and netsh http show servicestate.

9. Containers (when Podman Desktop and WSL2 are present)

Add one container service and one compose service (see containers.md).

  • Expected: the header’s Podman pill shows the machine state; when the machine is stopped, starting a container runs podman machine start automatically; container start/stop and log streaming work.
  • On failure report: podman machine list, a summary of podman info, the full text of the header pill popover and the devhub terminal output.

10. CLI

終端機視窗
npm link
devhub status
devhub worktrees
cd C:\Users\me\code\my-app\src # any subdirectory inside the project
devhub restart --here

Run each once in cmd and once in PowerShell; also try --here once with a path in a different case (for example cd c:\users\ME\code\MY-APP).

  • Expected: the devhub command runs (npm creates devhub.cmd); status and worktrees print normally; --here resolves the worktree it belongs to, regardless of path case and drive letter case.
  • On failure report: the commands with their full output, where devhub and npm prefix -g.

11. Server survives the agent session (Job Object breakaway)

On Windows, Claude Code may put the session’s processes in a Job Object (ended together when it closes). server start therefore creates the server process through WMI first (its parent is not in that Job) and only falls back to a detached spawn if that fails.

  1. First stop any other devhub: devhub server stop (or confirm nothing holds 4999: netstat -ano | findstr :4999).

  2. In a Claude Code session (with the devhub plugin installed) run /devhub:start, or ask the agent to run devhub server start --json.

  3. Check the start method and the copy:

    終端機視窗
    Get-Content $env:APPDATA\devhub\server.log -Tail 5
    devhub server status
    dir $env:APPDATA\devhub\runtime

    Expected: the last part of server.log does not contain WMI 脫離啟動失敗,改用 detached spawn (the log text is in Chinese: “WMI breakaway start failed, falling back to detached spawn”); status shows sourceRoot (the plugin directory) and runtimeRoot (%APPDATA%\devhub\runtime\<version>-<hash>), and runtime has only one or two version folders.

  4. Close Claude Code completely (end the whole window and process, not just start a new conversation), wait 10 seconds, then check in a fresh PowerShell:

    終端機視窗
    devhub server status
    curl.exe -s -H "X-Devhub: 1" http://127.0.0.1:4999/api/server
    tasklist /FI "IMAGENAME eq node.exe"

    Expected: the server is still running (status shows running with the same pid as before closing; /api/server returns JSON containing sourceRoot and runtimeRoot).

  5. Also try a service the server manages: start a service, repeat step 4, and expect the service to still be running (the service is started by devhub and has nothing to do with the session’s Job).

  6. Cleanup: devhub server stop.

  • Fallback path: if the log in step 3 shows WMI 脫離啟動失敗…, step 4 may fail (the server ends together with the session); report the reason on that log line.
  • On failure report: the last 20 lines of server.log, the output of devhub server status, the Claude Code version (claude --version), the tasklist output after step 4, and powershell -NoProfile -Command "Get-CimInstance Win32_Process -Filter \"Name='node.exe'\" | Select ProcessId,ParentProcessId,CommandLine" (to confirm node’s parent isn’t Claude Code).