Win-Agent: A SWE agent compatible on both Windows and Linux containers
June 2, 2026 ยท View on GitHub
Setup
pip install -r requirements.txt
To run on Windows container, download Docker Desktop, start it, and switch to Windows container mode.
Run
Prepare your config file. A template is config/default.yaml
model configs
openrouter model:
model: openrouter/deepseek/deepseek-v3.1-terminus
base_url: https://openrouter.ai/api/v1
Benchmark
Should have the following fields
- instance_id
- problem_statement
- docker_image
Rollout
For windows:
$env:PYTHONUTF8="1"
$env:PYTHONIOENCODING="utf-8"
python main.py --config_path config/default.yaml --api_key ...
Patch submissions will be saved to output/{run_id}/preds.json
If the rollout is interrupted, type the same command to restore. The code will auto-skip normally submitted instances.
To collect existing patches instead of proceeding to rollout, please use the following flag for dry run:
python main.py --config_path config/default.yaml --collect_patch
Customize tool set
Modify src/tools.py
The shared folder of host and sandbox container where a built repo lies is ./mnt