NullVoider commited on
Commit
858e0bb
Β·
verified Β·
1 Parent(s): 7ab93e1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2223 -3
README.md CHANGED
@@ -1,3 +1,2223 @@
1
- ---
2
- license: gpl-3.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gpl-3.0
3
+ tags:
4
+ - Machine learning & AI
5
+ - Operating systems
6
+ ---
7
+
8
+ # Windows 10
9
+
10
+ **AI Agent Training & Evaluation Environment**
11
+ **Version:** 1
12
+ **Base System:** Windows 10 Pro
13
+ **Architecture:** x86_64
14
+ **Last Updated:** May 2026
15
+ **Developer:** Kartik (NullVoider)
16
+
17
+ ---
18
+
19
+ ## Getting Started
20
+
21
+ ### Clone the Repository
22
+
23
+ The QCOW2 disk image is hosted on HuggingFace due to its size. The setup scripts handle downloading it alongside the repository files automatically. It is recommended to use the below command to clone the repository.
24
+
25
+ **Linux / macOS:**
26
+ ```bash
27
+ curl -fsSL https://raw.githubusercontent.com/nullvoider07/windows10-base/master/scripts/setup-win10.sh | bash
28
+ ```
29
+
30
+ **Windows (PowerShell):**
31
+ ```powershell
32
+ irm https://raw.githubusercontent.com/nullvoider07/windows10-base/master/scripts/setup.win10.ps1 | iex
33
+ ```
34
+
35
+ The scripts will clone the repository, download the QCOW2 image from HuggingFace, and place all files in the correct locations automatically. Once complete, proceed to [Installation & Deployment](#installation--deployment).
36
+
37
+ ---
38
+
39
+ ## Table of Contents
40
+
41
+ 1. [Overview](#overview)
42
+ 2. [Key Features](#key-features)
43
+ 3. [Container Capabilities](#container-capabilities)
44
+ - [Operating System](#operating-system)
45
+ - [Development Tools](#development-tools)
46
+ - [Remote Access](#remote-access)
47
+ 4. [Technical Specifications](#technical-specifications)
48
+ - [System Requirements](#system-requirements)
49
+ - [Container Resource Usage](#container-resource-usage)
50
+ - [Performance Metrics](#performance-metrics)
51
+ 5. [Installation & Deployment](#installation--deployment)
52
+ - [Prerequisites](#prerequisites)
53
+ - [Docker Compose Deployment](#docker-compose-deployment)
54
+ - [Testing the Container](#testing-the-container)
55
+ 6. [Customizing the Image](#customizing-the-image)
56
+ 7. [Installed Software](#installed-software)
57
+ 8. [Development Environments](#development-environments)
58
+ 9. [The-Eye Integration](#the-eye-integration)
59
+ 10. [Task Executor API](#task-executor-api)
60
+ 11. [Remote Access Methods](#remote-access-methods)
61
+ - [RDP (Recommended)](#rdp-recommended)
62
+ - [SSH Access](#ssh-access)
63
+ 12. [Troubleshooting](#troubleshooting)
64
+ 13. [CI/CD Integration](#cicd-integration)
65
+ 14. [Reporting Issues](#reporting-issues)
66
+ 15. [FAQ](#faq)
67
+ 16. [License](#license)
68
+ 17. [About This Project](#about-this-project)
69
+
70
+ ---
71
+
72
+ ## Overview
73
+
74
+ The **Windows 10 Container** is a complete Windows development environment designed for AI agent training, testing, evaluation, and deployment. It provides a full Windows desktop experience with pre-configured development tools, an integrated Task Executor REST API for coding agent evaluation, and screen capture monitoringβ€”all within a single self-contained Docker container.
75
+
76
+ ### Purpose
77
+
78
+ This container is designed for:
79
+
80
+ - **Computer Use Agent Development**: Pre-configured environment for building and testing CUA applications
81
+ - **Coding Agent Evaluation**: Integrated Task Executor REST API (port 9090) for programmatic task submission, multi-framework test scoring, lint analysis, diff capture, and ground-truth patch similarity scoring.
82
+ - **Windows Development**: Native Windows environment for developing Windows-specific applications
83
+ - **Automated Testing**: Consistent, reproducible Windows environment for CI/CD pipelines
84
+ - **Remote Development**: Full-featured Windows desktop accessible via RDP and VNC
85
+ - **Multi-Language Development**: Support for 10+ programming languages out of the box
86
+ - **Visual Monitoring**: Integrated Eye tool for screen capture and agent training data collection
87
+
88
+ ### What Makes This Unique
89
+
90
+ - **Single Container Design**: Complete Windows 10 system with no external file dependencies
91
+ - **Ephemeral State**: Everything is isolated inside the container, providing clean state management
92
+ - **Virtual Disk**: 2TB of massive storage capacity.
93
+ - **RAM**: Customizable memory allocation for smooth performance (minimum 4 GB for smooth experience).
94
+ - **Optimized Performance**: Significantly smoother than existing Windows container alternatives
95
+ - **Fully Customizable**: Configuration can be modified to improve performance based on hardware
96
+ - **Zero External Files**: Everything is self-contained
97
+ - **Developer-Ready**: Pre-installed IDEs, tools, and language runtimes
98
+ - **Task Executor API**: REST API for programmatic coding agent evaluation (port 9090)
99
+ - **Multi-Framework Scoring**: pytest, cargo, go test, jest, dotnet, JUnit β€” auto-detected and scored
100
+
101
+ ---
102
+
103
+ ## Key Features
104
+
105
+ ### Operating System
106
+ βœ… **Windows 10 Pro** - Latest releases
107
+ βœ… **Virtual Disk** - 2TB of massive storage capacity.
108
+ βœ… **RAM** - Customizable memory allocation for smooth performance (minimum 4 GB for smooth experience).
109
+ βœ… **Ephemeral State** - Clean isolation with no external dependencies
110
+
111
+ **Note**: The virtual storage does not mandate requirement of exactly 2TB of storage in the device running the container. The virtual disk is a growable disk, and 2TB is the cap on the virtual disk.
112
+
113
+ ### Development Tools
114
+ βœ… **10+ Languages** - Python, Go, Rust, Java, C#, C++, Node.js, TypeScript, Kotlin, Scala
115
+ βœ… **VS Code** - Pre-installed with essential extensions
116
+ βœ… **Visual Studio Build Tools** - Windows development tools
117
+ βœ… **Git & Git LFS** - Version control with large file support
118
+ βœ… **PowerShell & Terminal** - Modern shell utilities
119
+
120
+ ### Applications
121
+ βœ… **Edge Browser** - Default web browser
122
+ βœ… **VS Code** - Feature-rich code editor
123
+ βœ… **Windows Terminal** - Modern terminal experience
124
+
125
+ ### Remote Access
126
+ βœ… **RDP** - Native Windows Remote Desktop (3389/TCP) - **Recommended**
127
+ βœ… **SSH** - Secure shell access (2222/TCP)
128
+ βœ… **Eye Server** - Screen capture endpoint (8080/HTTP)
129
+ βœ… **Task Executor API** - Coding agent eval REST API (9090/HTTP)
130
+
131
+ ### Coding Agent Evaluation
132
+ βœ… **Task Executor REST API** - Submit tasks, run tests, retrieve structured results
133
+ βœ… **Multi-Framework Test Scoring** - pytest, cargo test, go test, jest, dotnet test, JUnit/Maven/Gradle/sbt
134
+ βœ… **Lint Integration** - Soft-score linting via ruff, mypy, flake8, clippy, eslint, and more
135
+ βœ… **Diff Capture** - Records agent-produced diffs after each task run
136
+ βœ… **Reference Patch Scoring** - Ground-truth patch similarity (0.0–1.0) for patch-apply evals
137
+ βœ… **API Authentication** - Optional bearer token auth via `API_TOKEN` env variable
138
+
139
+ ### Performance & Stability
140
+ βœ… **Fast Boot Time** - Container ready in ~25 seconds
141
+ βœ… **Low CPU Usage** - 10-20% under normal workload
142
+ βœ… **Smooth Performance** - Optimized for regular development tasks
143
+ βœ… **Single Container** - No external files or dependencies
144
+ βœ… **KVM Acceleration** - Hardware virtualization for optimal performance
145
+
146
+ ---
147
+
148
+ ## Container Capabilities
149
+
150
+ ### Operating System
151
+
152
+ **Windows 10 Pro**
153
+ - Complete Windows desktop experience
154
+ - Native Windows applications support
155
+ - Standard NTFS file system
156
+ - Windows security features
157
+ - Native Windows APIs and frameworks
158
+
159
+ **Storage Configuration**:
160
+ - **Virtual Disk**: 2TB capacity
161
+ - **Format**: NTFS
162
+ - **RAM**: Customizable as needed (minimum 4 GB for smooth experience).
163
+ - **CPU**: Host CPU
164
+
165
+ **Pre-installed Applications**:
166
+ - **Browser**: Brave
167
+ - **Editor**: Visual Studio Code
168
+ - **Terminal**: Windows Terminal with PowerShell
169
+ - **File Manager**: Windows Explorer
170
+ - **System Utilities**: Standard Windows utilities
171
+
172
+ ### Development Tools
173
+
174
+ #### Programming Languages & Runtimes
175
+
176
+ | Language | Version | Package Manager | Notes |
177
+ |----------|---------|----------------|-------|
178
+ | **Python** | 3.14.4 | pip 26.0.1 | Default `python` command |
179
+ | **Go** | 1.26.1 | go modules | Full Go development environment |
180
+ | **Rust** | stable | cargo | System-wide installation |
181
+ | **Node.js** | 24.14.0 | npm 11.9.0 | TypeScript & tsx included |
182
+ | **Java** | 25 (latest) | - | Oracle JDK |
183
+ | **C#/.NET** | 10.0 SDK | dotnet | LTS version |
184
+ | **C/C++** | MSVC/clang | - | Visual Studio Build Tools |
185
+ | **Kotlin** | 2.3.0 | - | Compiler installed |
186
+ | **Scala** | 3.8.2 | coursier | Latest stable |
187
+ | **PowerShell** | latest | - | Pre-installed |
188
+
189
+ #### IDEs & Editors
190
+
191
+ **Visual Studio Code** (latest)
192
+
193
+ Pre-installed extensions:
194
+ - C++ Tools Extension Pack
195
+ - Docker Extension
196
+ - Java Extension Pack
197
+ - Oracle Java Extension
198
+ - .NET Runtime & C# DevKit
199
+ - GitLab Workflow & GitLens
200
+ - Go Extension
201
+ - Python Extension Pack (Pylance, debugpy, environment manager)
202
+ - Rust Analyzer
203
+ - Scala Language Server
204
+
205
+ #### Build Tools & Utilities
206
+
207
+ - **Git** (latest) - Version control with LFS support
208
+ - **Visual Studio Build Tools** - Essential development tools
209
+ - **CMake** - Cross-platform build system
210
+ - **Windows Debugger** - Debugging tools
211
+
212
+ ### Remote Access
213
+
214
+ #### RDP (Port 3389) - **Recommended**
215
+
216
+ **Why RDP?**
217
+ - **Best Performance**: Native Windows protocol with hardware acceleration
218
+ - **Low Latency**: Minimal input lag for smooth development experience
219
+ - **High Quality**: Superior video quality with efficient compression
220
+ - **Full Features**: Clipboard sharing, file transfer, audio support
221
+ - **Native Integration**: Built into Windows, no client installation needed (Windows hosts)
222
+
223
+ **Configuration**:
224
+ - Port: 3389 (TCP)
225
+ - Default remote access method
226
+ - Pre-configured for optimal performance
227
+ - Audio support enabled
228
+
229
+ **Use Cases**:
230
+ - Primary development interface
231
+ - Extended coding sessions
232
+ - Full desktop interaction
233
+ - Multi-window workflows
234
+
235
+ #### SSH (Port 2222)
236
+
237
+ **Configuration**:
238
+ - Port: 2222 (TCP)
239
+ - Secure shell access via OpenSSH
240
+ - Terminal-based access to Windows
241
+
242
+ **Use Cases**:
243
+ - Command-line operations
244
+ - File transfers via SCP/SFTP
245
+ - Remote script execution
246
+ - System administration
247
+
248
+ ---
249
+
250
+ ## Technical Specifications
251
+
252
+ ### System Requirements
253
+
254
+ #### Minimum Requirements
255
+
256
+ | Component | Requirement | Notes |
257
+ |-----------|-------------|-------|
258
+ | **RAM** | 4 GB | Absolute minimum for container operation |
259
+ | **Disk Space** | 100 GB free | For container image and virtual disk |
260
+ | **CPU** | 4 cores | x86_64 architecture with KVM support |
261
+ | **Virtualization** | KVM enabled | Hardware virtualization must be enabled in BIOS |
262
+ | **Host OS** | Linux | Ubuntu 20.04+, Debian 11+, or similar |
263
+ | **Docker** | 24.0+ | Recent Docker version required |
264
+ | **Kernel** | 5.10+ | For proper KVM support |
265
+
266
+ #### Recommended Requirements
267
+
268
+ | Component | Recommendation | Benefit |
269
+ |-----------|---------------|---------|
270
+ | **RAM** | 8 GB | Better performance and headroom |
271
+ | **Disk Space** | 256 GB free | Ample space for projects and data |
272
+ | **CPU** | 4+ cores | Improved responsiveness |
273
+ | **Storage Type** | SSD/NVMe | Faster disk I/O operations |
274
+ | **Network** | 100 Mbps+ | Better remote access experience |
275
+
276
+ ### Container Resource Usage
277
+
278
+ **Runtime Allocations**:
279
+ - **Virtual RAM**: 8 GB (allocated to Windows)
280
+ - **Virtual Disk**: 2 TB (NTFS filesystem)
281
+ - **Virtual CPU**: Host CPU
282
+ - **Network**: Bridged networking with port forwarding
283
+
284
+ **Host Resource Impact**:
285
+ - **CPU Usage**: 10-20% under normal workload
286
+ - **Memory Overhead**: ~2-3 GB for container management
287
+ - **Disk I/O**: Moderate (depends on workload)
288
+ - **Network**: Minimal overhead
289
+
290
+ ### Performance Metrics
291
+
292
+ **Boot Performance**:
293
+ - **Windows Boot**: 25 seconds
294
+ - **Container Start**: Immediate
295
+ - **Desktop Ready**: Immediate after boot completion
296
+
297
+ **Runtime Performance**:
298
+ - **Idle CPU**: 5-10%
299
+ - **Normal Workload CPU**: 10-20%
300
+ - **Memory Usage**: Stable at allocated 4GB
301
+ - **Disk Performance**: Depends on host storage type
302
+
303
+ **Comparison to Alternatives**:
304
+ - **Better Performance**: 10-20% CPU usage vs higher overhead in alternatives
305
+ - **Smoother Operation**: Optimized for stability and responsiveness
306
+ - **External Files**: None required (vs. multiple external files in alternatives)
307
+ - **Customization**: Fully customizable configuration
308
+ - **State Management**: Clean ephemeral state
309
+
310
+ **Optimization Notes**:
311
+ - Current configuration is optimized for compatibility and stability
312
+ - Configuration is based on tested and confirmed safe settings
313
+ - Performance can be improved by adjusting CPU configuration to match host hardware
314
+ - Animations may cause slight performance impact
315
+ - Regular development workflows run smoothly without issues
316
+
317
+ ---
318
+
319
+ ## Installation & Deployment
320
+
321
+ ### Prerequisites
322
+
323
+ #### 1. Install Docker
324
+
325
+ **For Ubuntu/Debian**:
326
+ ```bash
327
+ # Update package index
328
+ sudo apt-get update
329
+
330
+ # Install dependencies
331
+ sudo apt-get install -y \
332
+ ca-certificates \
333
+ curl \
334
+ gnupg \
335
+ lsb-release
336
+
337
+ # Add Docker's official GPG key
338
+ sudo mkdir -p /etc/apt/keyrings
339
+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
340
+
341
+ # Set up the repository
342
+ echo \
343
+ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
344
+ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
345
+
346
+ # Install Docker Engine
347
+ sudo apt-get update
348
+ sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
349
+
350
+ # Verify installation
351
+ docker --version
352
+ docker compose version
353
+ ```
354
+
355
+ **For Other Linux Distributions**:
356
+ ```bash
357
+ # Fedora/RHEL/CentOS
358
+ sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
359
+
360
+ # Arch Linux
361
+ sudo pacman -S docker docker-compose
362
+ ```
363
+
364
+ **Post-Installation Steps**:
365
+ ```bash
366
+ # Add your user to docker group (to run docker without sudo)
367
+ sudo usermod -aG docker $USER
368
+
369
+ # Enable Docker service
370
+ sudo systemctl enable docker
371
+ sudo systemctl start docker
372
+
373
+ # Log out and log back in for group changes to take effect
374
+ ```
375
+
376
+ #### 2. Enable KVM
377
+
378
+ **Check KVM Support**:
379
+ ```bash
380
+ # Check if KVM is supported
381
+ lscpu | grep Virtualization
382
+
383
+ # Check if KVM modules are loaded
384
+ lsmod | grep kvm
385
+
386
+ # Expected output:
387
+ # kvm_intel (for Intel CPUs) or kvm_amd (for AMD CPUs)
388
+ # kvm
389
+ ```
390
+
391
+ **Enable KVM**:
392
+ ```bash
393
+ # Install KVM packages (Ubuntu/Debian)
394
+ sudo apt-get install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
395
+
396
+ # For Fedora/RHEL/CentOS
397
+ sudo dnf install -y qemu-kvm libvirt virt-install bridge-utils
398
+
399
+ # Verify KVM is working
400
+ sudo kvm-ok
401
+
402
+ # Expected output:
403
+ # INFO: /dev/kvm exists
404
+ # KVM acceleration can be used
405
+ ```
406
+
407
+ **Set KVM Permissions**:
408
+ ```bash
409
+ # Add user to kvm group
410
+ sudo usermod -aG kvm $USER
411
+
412
+ # Verify /dev/kvm permissions
413
+ ls -l /dev/kvm
414
+
415
+ # Should show: crw-rw---- 1 root kvm
416
+
417
+ # Log out and log back in for group changes to take effect
418
+ ```
419
+
420
+ **Verify KVM Access**:
421
+ ```bash
422
+ # After logging back in, verify you can access KVM
423
+ groups | grep kvm
424
+
425
+ # Test KVM device access
426
+ test -r /dev/kvm && test -w /dev/kvm && echo "KVM is accessible" || echo "KVM access denied"
427
+ ```
428
+
429
+ **If KVM is Not Enabled in BIOS**:
430
+ 1. Restart your computer
431
+ 2. Enter BIOS/UEFI settings (usually F2, F10, F12, or Del key during boot)
432
+ 3. Look for virtualization settings:
433
+ - Intel: "Intel VT-x" or "Intel Virtualization Technology"
434
+ - AMD: "AMD-V" or "SVM Mode"
435
+ 4. Enable the setting
436
+ 5. Save and exit BIOS
437
+ 6. Boot into Linux and verify with `kvm-ok`
438
+
439
+ ### Docker Compose Deployment
440
+
441
+ **Recommended Deployment Method**: The **ONLY** recommended way to run this container is using Docker Compose. This ensures proper configuration and port mappings.
442
+
443
+ #### 1. Create Docker Compose File
444
+
445
+ Create a file named `deploy-windows.yaml`:
446
+
447
+ ```yaml
448
+ services:
449
+ win-agent:
450
+ image: nullvoider/win10-base:v1
451
+ container_name: win_agent
452
+ restart: unless-stopped
453
+ tty: true
454
+ stdin_open: true
455
+ ports:
456
+ - 3389:3389 # RDP (recommended remote access)
457
+ - 4444:4445 # I/O
458
+ - 8080:8080 # Eye server
459
+ - 9090:9090 # Task Executor API
460
+ - 2222:2222 # SSH
461
+ environment:
462
+ - API_TOKEN=your-secret-token
463
+ - TASK_MAX_AGE=3600
464
+ devices:
465
+ - /dev/kvm:/dev/kvm
466
+ cap_add:
467
+ - NET_ADMIN
468
+ extra_hosts:
469
+ - "host.docker.internal:host-gateway"
470
+ ```
471
+
472
+ #### 2. Deploy the Container
473
+
474
+ ```bash
475
+ # Start the container
476
+ docker compose -f deploy-windows.yaml up -d
477
+
478
+ # View logs
479
+ docker compose -f deploy-windows.yaml logs -f
480
+
481
+ # Check container status
482
+ docker compose -f deploy-windows.yaml ps
483
+ ```
484
+
485
+ #### 3. Container Management
486
+
487
+ ```bash
488
+ # Stop the container
489
+ docker compose -f deploy-windows.yaml stop
490
+
491
+ # Start the container
492
+ docker compose -f deploy-windows.yaml start
493
+
494
+ # Restart the container
495
+ docker compose -f deploy-windows.yaml restart
496
+
497
+ # Remove the container
498
+ docker compose -f deploy-windows.yaml down
499
+
500
+ # Remove container and volumes
501
+ docker compose -f deploy-windows.yaml down -v
502
+ ```
503
+
504
+ ### Testing the Container
505
+
506
+ #### 1. Verify Container is Running
507
+
508
+ ```bash
509
+ # Check container status
510
+ docker ps | grep win_agent
511
+
512
+ # Expected output:
513
+ # CONTAINER ID IMAGE STATUS PORTS
514
+ # abc123def456 nullvoider/win10-base:v1 Up 2 minutes 0.0.0.0:3389->3389/tcp, ...
515
+ ```
516
+
517
+ #### 2. Check Boot Progress
518
+
519
+ ```bash
520
+ # Monitor container logs
521
+ docker logs -f win_agent
522
+
523
+ # Look for successful boot messages indicating:
524
+ # - Windows boot sequence completed
525
+ # - Services started
526
+ # - RDP server ready
527
+ ```
528
+
529
+ #### 3. Test Remote Access
530
+
531
+ **RDP (Recommended)**:
532
+ ```bash
533
+ # From Windows host:
534
+ # Press Win+R, type: mstsc
535
+ # Connect to: your-server-ip:3389
536
+
537
+ # From Linux host:
538
+ # Use Remmina, xfreerdp, or rdesktop
539
+ xfreerdp /v:your-server-ip:3389 /u:AgentUser
540
+ ```
541
+
542
+ **SSH**:
543
+ ```bash
544
+ # Test SSH connection
545
+ ssh -p 2222 AgentUser@your-server-ip
546
+ ```
547
+
548
+ #### 4. Verify Services
549
+
550
+ Once connected via RDP:
551
+ 1. Open PowerShell or Command Prompt
552
+ 2. Check system information: `systeminfo`
553
+ 3. Verify development tools: `python --version`, `node --version`, etc.
554
+ 4. Open VS Code to verify it's installed
555
+
556
+ #### 5. Health Check
557
+
558
+ ```bash
559
+ # Check container resource usage
560
+ docker stats win_agent
561
+
562
+ # Expected metrics:
563
+ # CPU: 10-20% (normal workload)
564
+ # MEM: ~4GB allocated
565
+ # NET I/O: Varies based on remote access usage
566
+ ```
567
+
568
+ ---
569
+
570
+ ## Customizing the Image
571
+
572
+ This section walks through the full process of modifying the Windows 10 environment and rebuilding a custom Docker image β€” useful for adding languages, tools, updated scripts, or any workflow-specific configurations and customizations.
573
+
574
+ ### Prerequisites
575
+
576
+ - Repository cloned with QCOW2 downloaded (see [Getting Started](#getting-started))
577
+ - Docker and QEMU utilities installed (`qemu-img` must be on PATH)
578
+ - At least 100 GB free disk space for the conversion steps
579
+
580
+ ---
581
+
582
+ ### Step 1 β€” Modify the YAML Configuration (Optional)
583
+
584
+ If you need to adjust the RAM or CPU core allocation before booting into Windows 10, edit the YAML file inside the `scripts/` directory of the cloned repo:
585
+
586
+ ```bash
587
+ # Example: open and edit the YAML before moving it
588
+ nano scripts/win10.yaml
589
+ ```
590
+
591
+ Then move it to a separate working directory of your choice β€” this directory will be your build workspace for all subsequent steps:
592
+
593
+ ```bash
594
+ mv scripts/win10.yaml /your/working/directory/
595
+ ```
596
+
597
+ > ⚠️ **WARNING**: Only change RAM and CPU core values in the YAML. **Do not change the disk size** β€” altering the disk size will corrupt `data.img` and make it unusable. If that happens, you will need to re-run Step 2 from the original QCOW2 file to start over.
598
+
599
+ ---
600
+
601
+ ### Step 2 β€” Convert the QCOW2 to a Raw Image
602
+
603
+ From the root of the cloned repository, convert the QCOW2 disk image to a raw format that QEMU can use as a mutable disk:
604
+
605
+ ```bash
606
+ qemu-img convert -p -f qcow2 -O raw win10-image/win10.qcow2 data.img
607
+ ```
608
+
609
+ This may take several minutes depending on your disk speed. The `-p` flag shows progress.
610
+
611
+ ---
612
+
613
+ ### Step 3 β€” Create the Windows 10 Directory Structure
614
+
615
+ Navigate to the working directory where you moved the YAML file and create the expected directory layout:
616
+
617
+ ```bash
618
+ cd /your/working/directory
619
+ mkdir windows10-storage
620
+ ```
621
+
622
+ ---
623
+
624
+ ### Step 4 β€” Place the Disk Images
625
+
626
+ Copy or move the `data.img` produced in Step 2 into the directory you just created:
627
+
628
+ ```bash
629
+ # Copy (safe β€” preserves originals)
630
+ cp /path/to/data.img windows10-storage/data.img
631
+
632
+ # Or move (saves disk space if originals are no longer needed)
633
+ mv /path/to/data.img windows10-storage/data.img
634
+ ```
635
+
636
+ ---
637
+
638
+ ### Step 5 β€” Boot and Customize
639
+
640
+ Start the container from your working directory:
641
+
642
+ ```bash
643
+ docker compose -f win10.yaml up -d
644
+ ```
645
+
646
+ Connect via NoMachine or VNC and perform your customizations inside the running Windows 10 environment β€” updating the Task Executor script, installing apps, adding programming languages, configuring tools, or anything else your workflow requires.
647
+
648
+ ---
649
+
650
+ ### Step 6 β€” Clean Up Before Capture
651
+
652
+ Before shutting down, ensure the Windows 10 environment is clean so no personal or session data ends up in your image:
653
+
654
+ - **Browser**: Close all tabs and clear all browsing history, cookies, and cached data in every browser installed
655
+ - **Terminal**: Wipe shell history β€” in the Powershell/Cmd terminal run `Remove-Item (Get-PSReadlineOption).HistorySavePath`
656
+ - **Recent items**: Clear recent files, recent apps, and recent servers from file explorer quick access and app search.
657
+ - **Trash**: Empty the Trash
658
+
659
+ ---
660
+
661
+ ### Step 7 β€” Shut Down and Stop the Container
662
+
663
+ Shut down Windows cleanly from within the OS (Win Key β†’ Power button β†’ Shut Down or Alt+F4 β†’ Shut Down) and wait for the guest to fully power off. Then, from the host terminal in your working directory:
664
+
665
+ ```bash
666
+ docker compose -f win10.yaml down
667
+ ```
668
+
669
+ ---
670
+
671
+ ### Step 8 β€” Convert Back to QCOW2
672
+
673
+ From the `windows10-storage/` directory, convert the modified raw image back to a compressed QCOW2:
674
+
675
+ ```bash
676
+ cd windows10-storage
677
+ qemu-img convert -p -O qcow2 -c data.img win10.qcow2
678
+ ```
679
+
680
+ The `-c` flag enables compression to keep the image size manageable. This step may take several minutes.
681
+
682
+ ---
683
+
684
+ ### Step 9 β€” Move the QCOW2 to the Build Directory
685
+
686
+ Move the new QCOW2 back into the `windows10-storage/` directory of the cloned repository. If a QCOW2 already exists there, remove it first:
687
+
688
+ ```bash
689
+ # Remove existing if present
690
+ rm /path/to/cloned-repo/win10-image/win10.qcow2
691
+
692
+ # Move new QCOW2 into place
693
+ mv windows10-storage/win10.qcow2 /path/to/cloned-repo/windows10-storage/win10.qcow2
694
+ ```
695
+
696
+ ---
697
+
698
+ ### Step 10 β€” Build Your Custom Image
699
+
700
+ From the root of the cloned repository, build the Docker image with your chosen tag:
701
+
702
+ ```bash
703
+ docker build -f win10-base.dockerfile -t <username>/<image-name>:<version-number> .
704
+ ```
705
+
706
+ Example:
707
+ ```bash
708
+ docker build -f win10-base.dockerfile -t myorg/win10-custom:v1 .
709
+ ```
710
+
711
+ Once the build completes, clear the Docker builder cache to avoid storage bloat:
712
+
713
+ ```bash
714
+ docker builder prune --all
715
+ ```
716
+
717
+ Your custom image is ready to use in your workflow.
718
+
719
+ ---
720
+
721
+ ## Installed Software
722
+
723
+ ### Pre-installed Applications
724
+
725
+ #### Productivity & Development
726
+ - **Brave** - Default web browser
727
+ - **Visual Studio Code** - Feature-rich code editor with extensions
728
+ - **Windows Terminal** - Modern terminal with PowerShell
729
+
730
+ #### System Utilities
731
+ - **Windows Explorer** - File manager
732
+ - **Settings** - Windows settings
733
+ - **Task Manager** - System resource monitoring
734
+ - **Event Viewer** - System log viewer
735
+
736
+ ### Command Line Tools
737
+
738
+ #### Package Managers
739
+ - **pip** - Python package manager
740
+ - **npm** - Node.js package manager
741
+ - **cargo** - Rust package manager
742
+ - **go modules** - Go dependency management
743
+
744
+ #### Development Utilities
745
+ - **git** - Version control (with Git LFS)
746
+ - **PowerShell** - Default shell
747
+ - **Windows Terminal** - Modern terminal experience
748
+
749
+ #### Build Tools
750
+ - **Visual Studio Build Tools** - Essential development tools
751
+ - **MSVC** - Microsoft C/C++ compiler
752
+ - **make** / **nmake** - Build automation
753
+ - **cmake** - Cross-platform build system
754
+
755
+ ---
756
+
757
+ ## Development Environments
758
+
759
+ ### Python Development
760
+ ```powershell
761
+ # Python 3.14.4 pre-installed
762
+ python --version
763
+
764
+ # Install packages
765
+ pip install numpy pandas tensorflow
766
+
767
+ # Virtual environments
768
+ python -m venv myenv
769
+ myenv\Scripts\activate
770
+ ```
771
+
772
+ ### Node.js Development
773
+ ```powershell
774
+ # Node.js 24.14.0 pre-installed
775
+ node --version
776
+ npm --version
777
+
778
+ # Install packages
779
+ npm install -g typescript tsx
780
+
781
+ # Project setup
782
+ npm init -y
783
+ npm install express
784
+ ```
785
+
786
+ ### Go Development
787
+ ```powershell
788
+ # Go 1.26.1 pre-installed
789
+ go version
790
+
791
+ # Initialize module
792
+ go mod init myproject
793
+
794
+ # Install dependencies
795
+ go get github.com/gin-gonic/gin
796
+ ```
797
+
798
+ ### Rust Development
799
+ ```powershell
800
+ # Rust stable pre-installed
801
+ rustc --version
802
+ cargo --version
803
+
804
+ # Create new project
805
+ cargo new myproject
806
+ cd myproject
807
+ cargo build
808
+ ```
809
+
810
+ ### Java Development
811
+ ```powershell
812
+ # Java 25 pre-installed
813
+ java --version
814
+ javac --version
815
+
816
+ # Compile and run
817
+ javac HelloWorld.java
818
+ java HelloWorld
819
+ ```
820
+
821
+ ### C#/.NET Development
822
+ ```powershell
823
+ # .NET 10.0 SDK pre-installed
824
+ dotnet --version
825
+
826
+ # Create new project
827
+ dotnet new console -n MyApp
828
+ cd MyApp
829
+ dotnet run
830
+ ```
831
+
832
+ ### Windows Development
833
+ ```powershell
834
+ # Visual Studio Build Tools available
835
+ msbuild -version
836
+
837
+ # Build tools
838
+ cl.exe # MSVC compiler
839
+ link.exe # Linker
840
+ ```
841
+
842
+ ---
843
+
844
+ ## The-Eye Integration
845
+
846
+ The Eye is an AI-native vision capture tool integrated into the Windows container, providing automated screen capture capabilities for Computer Use Agent training, monitoring, and debugging.
847
+
848
+ ### Overview
849
+
850
+ The Eye captures screen content at configurable intervals for:
851
+ - **Agent Training**: Collect visual data for training CUAs
852
+ - **Debugging**: Record agent interactions for troubleshooting
853
+ - **Monitoring**: Track agent behavior during execution
854
+ - **Dataset Creation**: Build machine learning datasets from screen captures
855
+
856
+ ### Configuration
857
+
858
+ **Eye Server Port**: 8080 (HTTP)
859
+ **Architecture**: Client-server model with RESTful API
860
+ **Storage**: In-memory circular buffer (configurable capacity)
861
+
862
+ ### Connection & Endpoints
863
+
864
+ **Eye Server Base URL**:
865
+ ```
866
+ http://your-server-ip:8080
867
+ ```
868
+
869
+ **Available Endpoints**:
870
+ - `GET /health` - Server health status and metrics
871
+ - `GET /snapshot.png` - Retrieve latest captured frame
872
+ - `POST /upload` - Upload captured frames (for external agents)
873
+ - `POST /admin/config` - Update capture configuration
874
+ - `GET /debug` - Server runtime statistics
875
+
876
+ ### Python SDK
877
+
878
+ The Eye includes a Python SDK for programmatic access:
879
+
880
+ **Installation** (if not using container's built-in Eye):
881
+ ```bash
882
+ pip install eye-capture
883
+ ```
884
+
885
+ **Basic Usage**:
886
+ ```python
887
+ from eye.core import EyeClient
888
+
889
+ # Connect to Eye server
890
+ client = EyeClient("http://localhost:8080", token="your-token")
891
+
892
+ # Health check
893
+ health = client.health_check()
894
+
895
+ # Get latest screenshot
896
+ image_data = client.get_snapshot()
897
+ with open("screenshot.png", "wb") as f:
898
+ f.write(image_data)
899
+
900
+ # Get frame metadata
901
+ metadata = client.get_snapshot_metadata()
902
+ print(f"Frame ID: {metadata['frame_id']}")
903
+
904
+ # Get debug info
905
+ debug = client.get_debug_info()
906
+ print(f"Uptime: {debug['uptime_sec']}s")
907
+ ```
908
+
909
+ **Advanced Features**:
910
+ ```python
911
+ from eye.core import EyeClient, SessionManager
912
+ from eye.integrations import DatasetExporter
913
+
914
+ # Initialize components
915
+ client = EyeClient("http://localhost:8080", token="TOKEN")
916
+ exporter = DatasetExporter()
917
+
918
+ # Capture session
919
+ for i in range(100):
920
+ frame = client.get_snapshot()
921
+ metadata = client.get_snapshot_metadata()
922
+ exporter.add_frame(frame, i, metadata)
923
+ time.sleep(1.5)
924
+
925
+ # Export dataset
926
+ exporter.export_json("training_data.json")
927
+ exporter.export_csv("training_data.csv")
928
+ ```
929
+
930
+ ### Key Features
931
+
932
+ **Capture Capabilities**:
933
+ - Multiple image formats (PNG, JPEG, WebP, BMP, TIFF)
934
+ - Configurable quality (1-100)
935
+ - Adjustable capture interval (0.1s minimum)
936
+ - Automatic retries with exponential backoff
937
+
938
+ **API Features**:
939
+ - RESTful HTTP endpoints
940
+ - Token authentication
941
+ - Dynamic configuration updates
942
+ - Health monitoring
943
+ - Debug statistics
944
+
945
+ **Integration Options**:
946
+ - Python SDK for programmatic access
947
+ - REST API for any language
948
+ - Dataset export (JSON, JSONL, CSV)
949
+ - Webhook support for event notifications
950
+ - Cloud storage integration patterns
951
+
952
+ ### Quick Usage Examples
953
+
954
+ **REST API (PowerShell)**:
955
+ ```powershell
956
+ # Get latest screenshot
957
+ Invoke-WebRequest -Uri http://localhost:8080/snapshot.png -OutFile screenshot.png
958
+
959
+ # Check health
960
+ Invoke-RestMethod -Uri http://localhost:8080/health
961
+
962
+ # Update configuration
963
+ $body = @{
964
+ interval = 2.0
965
+ format = "jpeg"
966
+ quality = 85
967
+ } | ConvertTo-Json
968
+
969
+ Invoke-RestMethod -Uri http://localhost:8080/admin/config `
970
+ -Method Post `
971
+ -Headers @{"Authorization"="Bearer your-token"} `
972
+ -Body $body `
973
+ -ContentType "application/json"
974
+ ```
975
+
976
+ **Python SDK**:
977
+ ```python
978
+ from eye.core import EyeClient
979
+
980
+ client = EyeClient("http://localhost:8080")
981
+
982
+ # Continuous monitoring
983
+ while True:
984
+ snapshot = client.get_snapshot()
985
+ # Process snapshot for agent training
986
+ process_for_training(snapshot)
987
+ time.sleep(1.5)
988
+ ```
989
+
990
+ ### Performance Impact
991
+
992
+ - **CPU Overhead**: <3% during capture
993
+ - **Memory Usage**: 50-150 MB (in-memory buffer)
994
+ - **Network Bandwidth**: 0.5-2 MB/s @ 1.5s interval
995
+ - **Capture Latency**: 10-50ms (platform dependent)
996
+ - **Display Performance**: No noticeable impact on Windows GUI
997
+
998
+ ### Configuration Options
999
+
1000
+ The Eye service runs automatically when the container starts. Configure via API:
1001
+
1002
+ ```python
1003
+ import requests
1004
+
1005
+ # Update capture settings
1006
+ response = requests.post(
1007
+ "http://localhost:8080/admin/config",
1008
+ headers={"Authorization": "Bearer your-token"},
1009
+ json={
1010
+ "interval": 2.0, # Capture every 2 seconds
1011
+ "format": "jpeg", # Use JPEG format
1012
+ "quality": 85 # 85% quality
1013
+ }
1014
+ )
1015
+ ```
1016
+
1017
+ **For more details**, Refer to The Eye documentation: https://github.com/nullvoider07/the-eyes
1018
+
1019
+ ---
1020
+
1021
+ ## Task Executor API
1022
+
1023
+ ### Overview
1024
+
1025
+ The Task Executor (`task_executor_windows.py`, port 9090) is the evaluation harness for frontier coding agents running on the Windows environment. It provides a REST API for submitting coding tasks, running test suites inside isolated workspaces, optionally linting the result, capturing the agent's diff, and returning structured scores β€” all without requiring a human operator.
1026
+
1027
+ Each task lifecycle: clone a repository, check out a base commit, apply the agent's patch, run the test command, lint (optional), capture the diff, score against a reference patch (optional), clean up. Results are retrievable at any time via task ID.
1028
+
1029
+ **Windows-specific implementation details:**
1030
+ - Task workspace root: `C:\Users\AgentUser\tasks\`
1031
+ - Process tree termination on timeout: `taskkill /F /T /PID` β€” terminates all child processes, the Windows equivalent of POSIX `SIGKILL` on a process group
1032
+ - All git operations use list-form args (no shell interpolation) to prevent command injection
1033
+ - `test_command` and `lint_command` run with `shell=True` inside the container, which is expected for Windows command strings
1034
+
1035
+ ---
1036
+
1037
+ ### Starting the Task Executor
1038
+
1039
+ Start the executor from PowerShell inside the container (via RDP or SSH):
1040
+
1041
+ ```powershell
1042
+ # With auth token and custom port
1043
+ $env:API_TOKEN = "your-secret-token"
1044
+ $env:API_PORT = "9090"
1045
+ python C:\Users\AgentUser\task_executor_windows.py
1046
+ ```
1047
+
1048
+ Verify from inside the container:
1049
+ ```powershell
1050
+ Invoke-RestMethod -Uri http://localhost:9090/task/submit `
1051
+ -Method Post `
1052
+ -Headers @{"Authorization"="Bearer your-secret-token"; "Content-Type"="application/json"} `
1053
+ -Body '{"repo_url":"invalid","test_command":"exit 0"}'
1054
+ ```
1055
+
1056
+ Verify from host or remote orchestrator:
1057
+ ```bash
1058
+ curl -X POST http://your-server-ip:9090/task/submit \
1059
+ -H "Authorization: Bearer your-secret-token" \
1060
+ -H "Content-Type: application/json" \
1061
+ -d '{"repo_url":"invalid","test_command":"exit 0"}'
1062
+ ```
1063
+
1064
+ ---
1065
+
1066
+ ### Environment Variables
1067
+
1068
+ | Variable | Default | Description |
1069
+ |----------|---------|-------------|
1070
+ | `TASK_BASE_DIR` | `C:\Users\AgentUser\tasks` | Root directory for task workspaces and the executor log |
1071
+ | `API_PORT` | `9090` | Port the Task Executor binds to |
1072
+ | `API_TOKEN` | *(unset)* | Bearer token for all requests; auth disabled when unset |
1073
+ | `TASK_MAX_AGE` | `3600` | Seconds after completion before task records are evicted from memory |
1074
+
1075
+ Set these in the Docker Compose file under `environment:` or export them in the shell before starting the executor.
1076
+
1077
+ ---
1078
+
1079
+ ### Authentication
1080
+
1081
+ When `API_TOKEN` is set, every request must include:
1082
+
1083
+ ```
1084
+ Authorization: Bearer <token>
1085
+ ```
1086
+
1087
+ Requests without a valid token return `401 Unauthorized`. For isolated k8s pods with network-level access control, leave `API_TOKEN` unset to disable auth.
1088
+
1089
+ ---
1090
+
1091
+ ### REST API Reference
1092
+
1093
+ #### POST /task/submit
1094
+
1095
+ | Field | Type | Required | Description |
1096
+ |-------|------|----------|-------------|
1097
+ | `repo_url` | string | Yes | Git-clonable URL |
1098
+ | `test_command` | string | Yes | Shell command run from repo root |
1099
+ | `base_commit` | string | No | Commit/tag/branch to check out (default: `HEAD`) |
1100
+ | `patch` | string | No | Unified diff applied via `git apply` |
1101
+ | `timeout` | int | No | Seconds before process tree is killed (default: `300`) |
1102
+ | `lint_command` | string | No | CLI lint command; result is a soft score only |
1103
+ | `capture_diff` | bool | No | Capture `git diff <base_commit>` after tests (default: `false`) |
1104
+ | `reference_patch` | string | No | Ground-truth diff for similarity scoring |
1105
+
1106
+ **Example β€” pytest with lint (PowerShell)**:
1107
+ ```powershell
1108
+ $body = @{
1109
+ repo_url = "https://github.com/psf/requests"
1110
+ base_commit = "v2.31.0"
1111
+ patch = "<agent unified diff>"
1112
+ test_command = "python -m pytest tests -x --tb=short"
1113
+ timeout = 300
1114
+ lint_command = "ruff check . --output-format json"
1115
+ capture_diff = $true
1116
+ } | ConvertTo-Json
1117
+
1118
+ Invoke-RestMethod -Uri http://your-server-ip:9090/task/submit `
1119
+ -Method Post `
1120
+ -Headers @{"Authorization"="Bearer your-secret-token"; "Content-Type"="application/json"} `
1121
+ -Body $body
1122
+ ```
1123
+
1124
+ **Example β€” SWE-bench style with reference patch (curl)**:
1125
+ ```bash
1126
+ curl -X POST http://your-server-ip:9090/task/submit \
1127
+ -H "Authorization: Bearer your-secret-token" \
1128
+ -H "Content-Type: application/json" \
1129
+ -d '{
1130
+ "repo_url": "https://github.com/example/repo",
1131
+ "base_commit": "abc123",
1132
+ "patch": "<agent patch>",
1133
+ "test_command": "python -m pytest tests\\test_feature.py",
1134
+ "reference_patch": "<ground truth patch>",
1135
+ "capture_diff": true
1136
+ }'
1137
+ ```
1138
+
1139
+ Returns `202 Accepted`: `{"task_id": "<uuid>", "status": "pending"}`
1140
+
1141
+ ---
1142
+
1143
+ #### GET /task/\<task_id\>
1144
+
1145
+ Lightweight status poll. Returns `task_id` and `status` only (`pending` β†’ `running` β†’ `completed` | `failed`).
1146
+
1147
+ ```bash
1148
+ curl http://your-server-ip:9090/task/<task_id> \
1149
+ -H "Authorization: Bearer your-secret-token"
1150
+ ```
1151
+
1152
+ ---
1153
+
1154
+ #### GET /task/\<task_id\>/result
1155
+
1156
+ Returns `202` while running. Returns `200` on completion with the full result record:
1157
+
1158
+ | Field | Type | Description |
1159
+ |-------|------|-------------|
1160
+ | `exit_code` | int | Exit code of the test command |
1161
+ | `stdout` | string | Combined stdout from all steps |
1162
+ | `stderr` | string | Combined stderr from all steps |
1163
+ | `tests_passed` | int | Passing test count |
1164
+ | `tests_failed` | int | Failing/errored test count |
1165
+ | `lint_errors` | int or null | Lint error count; `null` if no `lint_command` |
1166
+ | `lint_output` | string or null | Raw linter stdout+stderr |
1167
+ | `patch_diff` | string or null | `git diff <base_commit>` output; `null` if not requested |
1168
+ | `patch_similarity` | float or null | 0.0–1.0 vs `reference_patch`; `null` if no reference provided |
1169
+ | `execution_time` | float | Wall-clock seconds from start to finish |
1170
+
1171
+ ```bash
1172
+ curl http://your-server-ip:9090/task/<task_id>/result \
1173
+ -H "Authorization: Bearer your-secret-token" | jq .
1174
+ ```
1175
+
1176
+ ---
1177
+
1178
+ #### DELETE /task/\<task_id\>
1179
+
1180
+ Removes the task record from memory. Does not cancel a running task β€” submit with a short `timeout` value to cancel effectively.
1181
+
1182
+ ---
1183
+
1184
+ ### Supported Test Frameworks
1185
+
1186
+ | `test_command` contains | Framework |
1187
+ |------------------------|-----------|
1188
+ | `pytest`, `py.test` | pytest |
1189
+ | `cargo` | cargo test |
1190
+ | `go test` | go test |
1191
+ | `jest`, `npm test`, `yarn test`, `pnpm test` | Jest |
1192
+ | `dotnet` | dotnet test |
1193
+ | `mvn`, `gradle`, `sbt`, `junit` | JUnit/Surefire |
1194
+
1195
+ For unrecognised commands, all parsers are tried in order and the first non-zero result is used.
1196
+
1197
+ ---
1198
+
1199
+ ### Supported Linters (Soft Score)
1200
+
1201
+ | Linter | Language | Example `lint_command` |
1202
+ |--------|----------|------------------------|
1203
+ | `ruff` | Python | `ruff check . --output-format json` |
1204
+ | `flake8` | Python | `flake8 src` |
1205
+ | `mypy` | Python | `mypy src --ignore-missing-imports` |
1206
+ | `pylint` | Python | `pylint src` |
1207
+ | `cargo clippy` | Rust | `cargo clippy -- -D warnings` |
1208
+ | `eslint` | JS/TS | `eslint src --format json` |
1209
+ | `go vet` | Go | `go vet ./...` |
1210
+ | `dotnet build` | C# | `dotnet build --no-restore` |
1211
+
1212
+ Lint results are always soft β€” `lint_errors` is recorded but never changes `status` or `exit_code`. This is consistent with the convention used by SWE-bench, HumanEval, and LiveCodeBench.
1213
+
1214
+ ---
1215
+
1216
+ ### Remote Polling Pattern
1217
+
1218
+ ```python
1219
+ import time, requests
1220
+
1221
+ BASE = "http://your-server-ip:9090"
1222
+ HEADERS = {"Authorization": "Bearer your-secret-token"}
1223
+
1224
+ # Submit
1225
+ r = requests.post(f"{BASE}/task/submit", headers=HEADERS, json={
1226
+ "repo_url": "https://github.com/example/repo",
1227
+ "test_command": "python -m pytest tests -x",
1228
+ "lint_command": "ruff check .",
1229
+ "capture_diff": True,
1230
+ })
1231
+ task_id = r.json()["task_id"]
1232
+
1233
+ # Poll (5s interval is reasonable given Windows boot latency)
1234
+ while True:
1235
+ s = requests.get(f"{BASE}/task/{task_id}", headers=HEADERS).json()
1236
+ if s["status"] not in ("pending", "running"):
1237
+ break
1238
+ time.sleep(5)
1239
+
1240
+ # Retrieve full result
1241
+ result = requests.get(f"{BASE}/task/{task_id}/result", headers=HEADERS).json()
1242
+ print(f"Passed: {result['tests_passed']} Failed: {result['tests_failed']} "
1243
+ f"Lint: {result['lint_errors']} Similarity: {result['patch_similarity']}")
1244
+
1245
+ # Clean up
1246
+ requests.delete(f"{BASE}/task/{task_id}", headers=HEADERS)
1247
+ ```
1248
+
1249
+
1250
+ ---
1251
+
1252
+ ## Remote Access Methods
1253
+
1254
+ ### RDP (Recommended)
1255
+
1256
+ **Primary Remote Access Method**: RDP provides the best performance and native Windows integration.
1257
+
1258
+ #### Why RDP?
1259
+
1260
+ **Performance Benefits**:
1261
+ - Native Windows protocol
1262
+ - Hardware-accelerated rendering
1263
+ - Optimized for Windows GUI
1264
+ - Low latency input handling
1265
+ - Efficient bandwidth usage
1266
+ - Superior video quality
1267
+
1268
+ **Features**:
1269
+ - Full desktop experience
1270
+ - Audio support
1271
+ - Multi-session support
1272
+ - Printer redirection
1273
+ - Drive mapping
1274
+
1275
+ #### Connection Setup
1276
+
1277
+ **From Windows Host**:
1278
+ 1. Press `Win + R`
1279
+ 2. Type `mstsc`
1280
+ 3. Enter: `your-server-ip:3389`
1281
+ 4. Click Connect
1282
+
1283
+ **From Linux Host**:
1284
+ ```bash
1285
+ # Using xfreerdp
1286
+ xfreerdp /v:your-server-ip:3389 /u:AgentUser /smart-sizing
1287
+
1288
+ # Using Remmina (Recommended)
1289
+ remmina
1290
+
1291
+ # Using rdesktop
1292
+ rdesktop your-server-ip:3389
1293
+ ```
1294
+
1295
+ **From macOS Host**:
1296
+ - Download Microsoft Remote Desktop from App Store
1297
+ - Add PC: `your-server-ip:3389`
1298
+ - Connect
1299
+
1300
+ #### Best Practices
1301
+
1302
+ **For Best Performance**:
1303
+ - Use wired network connection when possible
1304
+ - Close unused applications in the container
1305
+ - Disable unnecessary visual effects in Windows settings
1306
+ - Use RemoteFX for enhanced graphics (if supported)
1307
+
1308
+ **Network Requirements**:
1309
+ - Minimum: 10 Mbps
1310
+ - Recommended: 100 Mbps+
1311
+ - Latency: <50ms for best experience
1312
+
1313
+ #### Use Cases
1314
+
1315
+ **Primary Development**:
1316
+ - Extended coding sessions
1317
+ - Full IDE usage (VS Code, Visual Studio)
1318
+ - Multi-window workflows
1319
+ - Windows application development
1320
+
1321
+ **Testing & Debugging**:
1322
+ - Interactive debugging
1323
+ - Visual testing
1324
+ - GUI automation development
1325
+ - Screen recording
1326
+
1327
+ ### SSH Access
1328
+
1329
+ **Port**: 2222
1330
+
1331
+ #### Connection
1332
+
1333
+ ```bash
1334
+ # Basic SSH connection
1335
+ ssh -p 2222 AgentUser@your-server-ip
1336
+
1337
+ # With key authentication
1338
+ ssh -i ~/.ssh/id_rsa -p 2222 AgentUser@your-server-ip
1339
+
1340
+ # Port forwarding example
1341
+ ssh -L 8080:localhost:8080 -p 2222 AgentUser@your-server-ip
1342
+ ```
1343
+
1344
+ #### Use Cases
1345
+
1346
+ **Command-Line Operations**:
1347
+ - PowerShell script execution
1348
+ - Package installation
1349
+ - System administration
1350
+ - Log viewing
1351
+
1352
+ **File Transfer**:
1353
+ ```bash
1354
+ # Copy files to container
1355
+ scp -P 2222 file.txt AgentUser@your-server-ip:C:\Users\AgentUser\
1356
+
1357
+ # Copy files from container
1358
+ scp -P 2222 AgentUser@your-server-ip:C:\file.txt ./
1359
+
1360
+ # Using rsync (with WSL or Cygwin)
1361
+ rsync -avz -e "ssh -p 2222" ./local-dir AgentUser@your-server-ip:/cygdrive/c/remote-dir
1362
+ ```
1363
+
1364
+ **Remote Script Execution**:
1365
+ ```bash
1366
+ # Execute single command
1367
+ ssh -p 2222 AgentUser@your-server-ip "python script.py"
1368
+
1369
+ # Execute PowerShell script
1370
+ ssh -p 2222 AgentUser@your-server-ip "powershell -File script.ps1"
1371
+ ```
1372
+
1373
+ ---
1374
+
1375
+ ## Troubleshooting
1376
+
1377
+ ### Common Issues
1378
+
1379
+ #### 1. Windows Update Interference
1380
+
1381
+ **Symptoms**:
1382
+ - Unexpected reboots
1383
+ - Performance degradation during updates
1384
+ - Services stopped after boot
1385
+
1386
+ **Solutions**:
1387
+
1388
+ **Disable Automatic Updates**:
1389
+ ```powershell
1390
+ # Open PowerShell as Administrator
1391
+ Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoUpdate" -Value 1
1392
+
1393
+ # Or use Services.msc
1394
+ # Disable "Windows Update" service
1395
+ ```
1396
+
1397
+ #### 2. Slow Performance
1398
+
1399
+ **Symptoms**:
1400
+ - Lag during window operations
1401
+ - Slow application response
1402
+ - High CPU usage
1403
+
1404
+ **Cause**:
1405
+ - Windows background services
1406
+
1407
+ **Solutions**:
1408
+
1409
+ **Option 1: Optimize Visual Effects**:
1410
+ 1. Open System Properties (Win + Pause)
1411
+ 2. Advanced system settings β†’ Performance Settings
1412
+ 3. Select "Adjust for best performance"
1413
+ 4. Or manually disable animations
1414
+
1415
+ **Option 2: Disable Background Services**:
1416
+ ```powershell
1417
+ # Disable Windows Search
1418
+ Stop-Service -Name "WSearch" -Force
1419
+ Set-Service -Name "WSearch" -StartupType Disabled
1420
+
1421
+ # Disable Superfetch
1422
+ Stop-Service -Name "SysMain" -Force
1423
+ Set-Service -Name "SysMain" -StartupType Disabled
1424
+ ```
1425
+
1426
+ **Note: Do not disable services and scheduled task for AutoHotKey and the-eyes tool. They are essential for actuation and capture for CUA.**
1427
+
1428
+ **Option 3: Configuration Adjustment** (Advanced):
1429
+ - Configuration can be customized for better performance
1430
+ - Requires understanding of system limits and testing
1431
+
1432
+ #### 3. Container Won't Start
1433
+
1434
+ **Symptoms**:
1435
+ - Container exits immediately after start
1436
+ - Error messages in logs
1437
+ - Container status shows "Exited"
1438
+
1439
+ **Diagnostic Steps**:
1440
+ ```bash
1441
+ # Check container logs
1442
+ docker logs win_agent
1443
+
1444
+ # Check container status
1445
+ docker ps -a | grep win_agent
1446
+
1447
+ # Inspect container
1448
+ docker inspect win_agent
1449
+ ```
1450
+
1451
+ **Common Solutions**:
1452
+
1453
+ **KVM Not Available**:
1454
+ ```bash
1455
+ # Verify KVM is accessible
1456
+ ls -l /dev/kvm
1457
+
1458
+ # Check if you're in kvm group
1459
+ groups | grep kvm
1460
+
1461
+ # Add user to kvm group if missing
1462
+ sudo usermod -aG kvm $USER
1463
+ # Log out and back in
1464
+ ```
1465
+
1466
+ **Insufficient Resources**:
1467
+ ```bash
1468
+ # Check available RAM
1469
+ free -h
1470
+
1471
+ # Check disk space
1472
+ df -h
1473
+
1474
+ # Verify at least 4GB RAM available
1475
+ ```
1476
+
1477
+ **Port Conflicts**:
1478
+ ```bash
1479
+ # Check if ports are already in use
1480
+ sudo netstat -tlnp | grep -E '3389|4000|8080|9090|2222'
1481
+
1482
+ # Stop conflicting services or change ports in docker-compose.yaml
1483
+ ```
1484
+
1485
+ #### 4. Remote Access Connection Issues
1486
+
1487
+ **RDP Won't Connect**:
1488
+ ```bash
1489
+ # Verify port is exposed
1490
+ docker port win_agent 3389
1491
+
1492
+ # Check if service is listening
1493
+ docker exec win_agent netstat -an | findstr 3389
1494
+
1495
+ # Test connectivity from host
1496
+ telnet localhost 3389
1497
+ ```
1498
+
1499
+ **SSH Connection Refused**:
1500
+ ```bash
1501
+ # Check SSH port mapping
1502
+ docker port win_agent 2222
1503
+
1504
+ # Verify SSH service
1505
+ docker exec win_agent powershell "Get-Service sshd"
1506
+ ```
1507
+
1508
+ #### 5. Windows-Specific Issues
1509
+
1510
+ **Standard Windows Troubleshooting Applies**:
1511
+
1512
+ Most Windows-related issues can be resolved using standard Windows troubleshooting methods:
1513
+
1514
+ 1. **System Settings Reset**:
1515
+ - Open Settings
1516
+ - Reset specific settings causing issues
1517
+ - Restart affected applications
1518
+
1519
+ 2. **Application Issues**:
1520
+ - Use Task Manager to end unresponsive programs
1521
+ - Clear application caches
1522
+
1523
+ 3. **Disk Issues**:
1524
+ - Run `chkdsk`
1525
+ - Check available storage space
1526
+ - Defragment if needed (though SSD doesn't need it)
1527
+
1528
+ 4. **Permission Issues**:
1529
+ - Run applications as Administrator
1530
+ - Check file/folder permissions
1531
+ - Use `icacls` to fix permissions
1532
+
1533
+ **These are standard Windows issues, not container-specific problems**.
1534
+
1535
+ ### Getting Help
1536
+
1537
+ If you encounter issues not covered here:
1538
+
1539
+ 1. **Check container logs**: `docker logs win_agent`
1540
+ 2. **Review system resources**: Ensure minimum requirements are met
1541
+ 3. **Verify KVM access**: Confirm `/dev/kvm` is accessible
1542
+ 4. **Test connectivity**: Check network and port accessibility
1543
+ 5. **See Reporting Issues section** for how to get support
1544
+
1545
+ ---
1546
+
1547
+ ## CI/CD Integration
1548
+
1549
+ The Windows container is designed for seamless integration into CI/CD pipelines, particularly for Computer Use Agent development and deployment.
1550
+
1551
+ ### Supported Platforms
1552
+
1553
+ **Container Orchestration**:
1554
+ - βœ… **Docker** - Native Docker deployment
1555
+ - βœ… **Kubernetes** - K8s pod deployment
1556
+ - βœ… **Docker Compose** - Multi-container orchestration
1557
+ - βœ… **Docker Swarm** - Swarm service deployment
1558
+
1559
+ **CI/CD Systems**:
1560
+ - GitHub Actions
1561
+ - GitLab CI/CD
1562
+ - Jenkins
1563
+ - CircleCI
1564
+ - Travis CI
1565
+ - Azure DevOps
1566
+ - Any system supporting Docker
1567
+
1568
+ ### Docker-Based CI/CD
1569
+
1570
+ #### GitHub Actions Example
1571
+
1572
+ ```yaml
1573
+ name: Windows Tests
1574
+
1575
+ on: [push, pull_request]
1576
+
1577
+ jobs:
1578
+ test:
1579
+ runs-on: ubuntu-latest
1580
+
1581
+ steps:
1582
+ - uses: actions/checkout@v3
1583
+
1584
+ - name: Set up KVM
1585
+ run: |
1586
+ sudo apt-get update
1587
+ sudo apt-get install -y qemu-kvm libvirt-daemon-system
1588
+ sudo usermod -aG kvm $USER
1589
+
1590
+ - name: Start Windows Container
1591
+ run: |
1592
+ docker compose -f deploy-windows.yaml up -d
1593
+ sleep 25 # Wait for boot
1594
+
1595
+ - name: Run Tests
1596
+ run: |
1597
+ docker exec win_agent powershell -File tests/test_agent.ps1
1598
+
1599
+ - name: Cleanup
1600
+ if: always()
1601
+ run: docker compose -f deploy-windows.yaml down
1602
+ ```
1603
+
1604
+ #### GitLab CI Example
1605
+
1606
+ ```yaml
1607
+ stages:
1608
+ - test
1609
+
1610
+ windows_tests:
1611
+ stage: test
1612
+ image: docker:latest
1613
+ services:
1614
+ - docker:dind
1615
+ variables:
1616
+ DOCKER_DRIVER: overlay2
1617
+ before_script:
1618
+ - docker info
1619
+ script:
1620
+ - docker compose -f deploy-windows.yaml up -d
1621
+ - sleep 25
1622
+ - docker exec win_agent powershell -File tests/test_agent.ps1
1623
+ after_script:
1624
+ - docker compose -f deploy-windows.yaml down
1625
+ tags:
1626
+ - kvm
1627
+ ```
1628
+
1629
+ ### Kubernetes Deployment
1630
+
1631
+ #### Pod Specification
1632
+
1633
+ ```yaml
1634
+ apiVersion: v1
1635
+ kind: Pod
1636
+ metadata:
1637
+ name: windows-agent
1638
+ labels:
1639
+ app: windows
1640
+ spec:
1641
+ containers:
1642
+ - name: win-agent
1643
+ image: nullvoider/win10-base:v1
1644
+ ports:
1645
+ - containerPort: 3389
1646
+ name: rdp
1647
+ - containerPort: 4444
1648
+ name: I/O
1649
+ - containerPort: 8080
1650
+ name: eye-server
1651
+ - containerPort: 9090
1652
+ name: task-executor
1653
+ - containerPort: 2222
1654
+ name: ssh
1655
+ securityContext:
1656
+ capabilities:
1657
+ add:
1658
+ - NET_ADMIN
1659
+ volumeMounts:
1660
+ - name: kvm
1661
+ mountPath: /dev/kvm
1662
+ volumes:
1663
+ - name: kvm
1664
+ hostPath:
1665
+ path: /dev/kvm
1666
+ type: CharDevice
1667
+ restartPolicy: Always
1668
+ ```
1669
+
1670
+ #### Deployment with Service
1671
+
1672
+ ```yaml
1673
+ apiVersion: apps/v1
1674
+ kind: Deployment
1675
+ metadata:
1676
+ name: windows-agent-deployment
1677
+ spec:
1678
+ replicas: 1
1679
+ selector:
1680
+ matchLabels:
1681
+ app: windows
1682
+ template:
1683
+ metadata:
1684
+ labels:
1685
+ app: windows
1686
+ spec:
1687
+ containers:
1688
+ - name: win-agent
1689
+ image: nullvoider/win10-base:v1
1690
+ ports:
1691
+ - containerPort: 3389
1692
+ - containerPort: 4444
1693
+ - containerPort: 8080
1694
+ - containerPort: 9090
1695
+ - containerPort: 2222
1696
+ ---
1697
+ apiVersion: v1
1698
+ kind: Service
1699
+ metadata:
1700
+ name: windows-agent-service
1701
+ spec:
1702
+ selector:
1703
+ app: windows
1704
+ ports:
1705
+ - name: rdp
1706
+ port: 3389
1707
+ targetPort: 3389
1708
+ - name: I/O
1709
+ port: 4444
1710
+ targetPort: 4445
1711
+ - name: eye
1712
+ port: 8080
1713
+ targetPort: 8080
1714
+ - name: task-executor
1715
+ port: 9090
1716
+ targetPort: 9090
1717
+ - name: ssh
1718
+ port: 2222
1719
+ targetPort: 2222
1720
+ type: LoadBalancer
1721
+ ```
1722
+
1723
+ ### Use Cases
1724
+
1725
+ **AI Agent Development**:
1726
+ - Automated testing of CUA implementations
1727
+ - Training data collection in reproducible environments
1728
+ - Performance benchmarking
1729
+ - Benchmarking of coding agent capabilities
1730
+ - Integration testing
1731
+
1732
+ **Windows Application Testing**:
1733
+ - Cross-platform application testing
1734
+ - Windows-specific feature validation
1735
+ - GUI automation testing
1736
+ - Compatibility verification
1737
+
1738
+ **Continuous Integration**:
1739
+ - Automated builds on Windows environment
1740
+ - Unit testing with Windows dependencies
1741
+ - Integration testing with Windows services
1742
+ - End-to-end testing workflows
1743
+
1744
+ ### Best Practices
1745
+
1746
+ **Resource Management**:
1747
+ ```yaml
1748
+ # Kubernetes resource limits
1749
+ resources:
1750
+ requests:
1751
+ memory: "4Gi"
1752
+ cpu: "4"
1753
+ limits:
1754
+ memory: "8Gi"
1755
+ cpu: "4"
1756
+ ```
1757
+
1758
+ **Health Checks**:
1759
+ ```yaml
1760
+ # Kubernetes liveness probe
1761
+ livenessProbe:
1762
+ tcpSocket:
1763
+ port: 3389
1764
+ initialDelaySeconds: 120
1765
+ periodSeconds: 30
1766
+ ```
1767
+
1768
+ **Cleanup Strategy**:
1769
+ - Always use `docker compose down` or equivalent cleanup
1770
+ - Implement timeout for long-running tests
1771
+ - Monitor resource usage during CI runs
1772
+ - Use ephemeral runners when possible
1773
+
1774
+ ---
1775
+
1776
+ ## Reporting Issues
1777
+
1778
+ When reporting issues, please provide comprehensive information to help diagnose and resolve problems quickly.
1779
+
1780
+ ### Bug Reports
1781
+
1782
+ **Required Information**:
1783
+
1784
+ 1. **Environment Details**:
1785
+ ```bash
1786
+ # Docker version
1787
+ docker --version
1788
+ docker compose version
1789
+
1790
+ # Host OS information
1791
+ cat /etc/os-release
1792
+ uname -a
1793
+
1794
+ # KVM information
1795
+ kvm-ok
1796
+ ls -l /dev/kvm
1797
+ ```
1798
+
1799
+ 2. **System Resources**:
1800
+ ```bash
1801
+ # Available RAM
1802
+ free -h
1803
+
1804
+ # Disk space
1805
+ df -h
1806
+
1807
+ # CPU information
1808
+ lscpu
1809
+ ```
1810
+
1811
+ 3. **Container Logs**:
1812
+ ```bash
1813
+ # Full container logs
1814
+ docker logs win_agent > container-logs.txt
1815
+
1816
+ # Last 200 lines
1817
+ docker logs --tail 200 win_agent
1818
+
1819
+ # Real-time logs
1820
+ docker logs -f win_agent
1821
+ ```
1822
+
1823
+ 4. **Container Status**:
1824
+ ```bash
1825
+ # Container details
1826
+ docker ps -a | grep win_agent
1827
+ docker inspect win_agent
1828
+
1829
+ # Resource usage
1830
+ docker stats win_agent --no-stream
1831
+ ```
1832
+
1833
+ 5. **Steps to Reproduce**:
1834
+ - Detailed steps to reproduce the issue
1835
+ - Expected behavior
1836
+ - Actual behavior
1837
+ - Screenshots or screen recordings if applicable
1838
+
1839
+ 6. **Configuration**:
1840
+ - Docker Compose file contents
1841
+ - Any custom modifications
1842
+ - Environment variables used
1843
+
1844
+ ### Feature Requests
1845
+
1846
+ **Required Information**:
1847
+
1848
+ 1. **Use Case Description**:
1849
+ - What problem does this feature solve?
1850
+ - Who would benefit from this feature?
1851
+ - How urgent is this feature?
1852
+
1853
+ 2. **Proposed Implementation**:
1854
+ - How should the feature work?
1855
+ - What configuration options should it have?
1856
+ - Any technical considerations?
1857
+
1858
+ 3. **Impact Assessment**:
1859
+ - How would this affect existing functionality?
1860
+ - Resource implications (CPU, RAM, disk)?
1861
+ - Compatibility considerations?
1862
+
1863
+ 4. **Alternatives Considered**:
1864
+ - What alternatives have you considered?
1865
+ - Why is this approach preferred?
1866
+
1867
+ ### Contact Information
1868
+
1869
+ **For Direct Support**:
1870
+ - **X (Formerly Twitter)**: [@nullvoider07](https://x.com/nullvoider07)
1871
+
1872
+ **When Reporting**:
1873
+ - Be specific and detailed
1874
+ - Include all requested information
1875
+ - Attach logs and screenshots
1876
+ - Describe impact and urgency
1877
+
1878
+ ---
1879
+
1880
+ ## Security Considerations
1881
+
1882
+ ### Default Configuration
1883
+
1884
+ - Runs with `NET_ADMIN` capability and KVM device access
1885
+ - Auto-login enabled for development convenience
1886
+ - Remote services (RDP, SSH) with configurable credentials
1887
+ - KVM passthrough requires direct device access
1888
+
1889
+ For production deployments, review the hardening notes below.
1890
+
1891
+ ### Task Executor API Security
1892
+
1893
+ - Set `API_TOKEN` for all non-isolated deployments
1894
+ - Bind port 9090 to localhost when the orchestrator is on the same host:
1895
+ ```yaml
1896
+ ports:
1897
+ - "127.0.0.1:9090:9090"
1898
+ ```
1899
+ - `test_command` and `lint_command` run with `shell=True` β€” ensure the submitting agent or orchestrator is trusted
1900
+ - Access the Task Executor from external networks via SSH tunnel:
1901
+ ```bash
1902
+ ssh -L 9090:localhost:9090 -p 2222 AgentUser@your-server-ip
1903
+ ```
1904
+ Then submit tasks to `http://localhost:9090`
1905
+ - Pass `API_TOKEN` as a k8s Secret β€” never hardcode in Compose files
1906
+
1907
+ ### General Hardening
1908
+
1909
+ 1. Use `NET_ADMIN` capability only
1910
+ 2. Create a dedicated Docker network for agent containers
1911
+ 3. Use environment files or k8s Secrets for all tokens
1912
+ 4. Rebuild the image periodically to incorporate Windows updates
1913
+ 5. Enable Docker json-file logging with rotation
1914
+ 6. Only grant necessary permissions
1915
+
1916
+
1917
+ ---
1918
+
1919
+ ## FAQ
1920
+
1921
+
1922
+ ### Coding Agent Evaluation Questions
1923
+
1924
+ **Q: What is the Task Executor API?**
1925
+ A: It is a REST API (`task_executor_windows.py`) running on port 9090 that provides programmatic task submission, multi-framework test scoring, lint analysis, diff capture, and ground-truth patch similarity scoring. It is the primary eval harness for coding agents running on Windows.
1926
+
1927
+ **Q: How do I start the Task Executor?**
1928
+ A: From PowerShell inside the container (via RDP or SSH): set `API_TOKEN` and `API_PORT` environment variables, then run `python C:\Users\AgentUser\task_executor_windows.py`. See the Task Executor API section for details.
1929
+
1930
+ **Q: Why is lint scoring soft β€” why does it not fail the task?**
1931
+ A: The majority of established coding benchmarks (SWE-bench, HumanEval, LiveCodeBench) use test pass/fail as the primary correctness signal. Lint errors reflect code quality but not functional correctness. Keeping lint soft lets you track quality trends without invalidating otherwise correct solutions.
1932
+
1933
+ **Q: What is patch_similarity and when is it useful?**
1934
+ A: It is a 0.0–1.0 similarity ratio between the agent's actual diff and a ground-truth reference patch, computed after stripping all unified diff metadata. Most useful for patch-apply evals where a canonical solution exists. Always interpret alongside `tests_passed` β€” a lower similarity score does not mean the solution is wrong.
1935
+
1936
+ **Q: Can the Task Executor run tasks in parallel?**
1937
+ A: Yes. Each submitted task runs in an independent background thread with its own isolated workspace under `TASK_BASE_DIR`. For large-scale parallelism, deploy multiple container replicas via k8s β€” each replica maintains its own in-memory task store.
1938
+
1939
+ **Q: What happens if a task times out?**
1940
+ A: The executor runs `taskkill /F /T /PID`, which forcefully terminates the entire process tree rooted at the test process. The task is marked `failed` with the timeout error recorded in `stderr`.
1941
+
1942
+ **Q: How do I access the Task Executor remotely?**
1943
+ A: The Task Executor binds to `0.0.0.0:9090`. In a k8s deployment, expose it via a `ClusterIP` service for internal orchestrator access, or `NodePort`/`LoadBalancer` for external access. Always set `API_TOKEN` when the port is reachable outside a trusted network boundary.
1944
+
1945
+ **Q: In a k8s deployment with many replicas, how does an orchestrator route tasks to a specific container?**
1946
+ A: Each replica runs its own Task Executor with its own in-memory task store. Track the pod IP (or headless service DNS entry) at submission time and send all status/result polls to the same pod. A load-balanced service may route requests to different replicas and return `404 Task not found`.
1947
+
1948
+ **Q: What happens to in-flight tasks if a pod is evicted or restarted?**
1949
+ A: In-flight tasks are lost β€” the in-memory store does not survive a restart. Implement retry logic in your orchestrator and treat `404 Task not found` as a signal to resubmit. The Windows container's ~25-second boot adds latency to recovery; account for this in orchestrator timeout settings.
1950
+
1951
+ **Q: How do I pass API_TOKEN securely across a k8s cluster?**
1952
+ A: Mount it as a k8s `Secret`:
1953
+ ```yaml
1954
+ env:
1955
+ - name: API_TOKEN
1956
+ valueFrom:
1957
+ secretKeyRef:
1958
+ name: task-executor-secret
1959
+ key: api-token
1960
+ ```
1961
+ Never hardcode tokens in the Compose file or Dockerfile.
1962
+
1963
+ ### General Questions
1964
+
1965
+ **Q: How is the entire Windows system running in a single container?**
1966
+ A: This container uses advanced virtualization techniques with KVM acceleration to run a complete Windows system. The implementation has everything self-contained within the container image. The result is a fully functional Windows 10 environment that's completely isolated and ephemeral.
1967
+
1968
+ **Q: Why doesn't this container need external files?**
1969
+ A: The container architecture was designed from the ground up to be self-contained. All necessary components, including the Windows system files, bootloader, and configuration, are embedded within the container image itself. This provides significant advantages: easier deployment, cleaner state management, no external file dependencies, and true ephemeral operation.
1970
+
1971
+ **Q: Can I run multiple instances of this container?**
1972
+ A: Yes, but each instance requires 4GB of RAM. Ensure your host has sufficient resources (e.g., 8GB+ RAM free for 2 instances).
1973
+
1974
+ **Q: How much disk space does it need?**
1975
+ A: The container image requires approximately 100GB of host disk space. The Windows system inside has a 2TB virtual disk.
1976
+
1977
+ **Q: Is this suitable for production use?**
1978
+ A: Yes, it's specifically designed for Computer Use Agent development, coding agents, and deployment in production environments. The container provides a stable, reproducible Windows environment ideal for CI/CD pipelines and automated testing.
1979
+
1980
+ ### Performance Questions
1981
+
1982
+ **Q: Why is the boot time 25 seconds?**
1983
+ A: This includes the complete Windows boot sequence, service initialization, and remote access server setup. This is normal for a full Windows system and is competitive with bare-metal Windows boot times.
1984
+
1985
+ **Q: Can I improve the performance?**
1986
+ A: Yes, the current host CPU configuration can be customized for better performance based on your hardware. The existing configuration prioritizes stability and compatibility. You can adjust the CPU configuration, though this requires testing on your specific hardware.
1987
+
1988
+ **Q: Why does RDP perform better on Windows?**
1989
+ A: RDP is the native Windows remote desktop protocol and is optimized specifically for Windows GUI rendering. It uses hardware acceleration and efficient protocols designed for Windows systems.
1990
+
1991
+ **Q: What's the CPU usage under heavy load?**
1992
+ A: Under normal development workloads (coding, browsing, terminal work), expect 20-30% CPU. Heavy compilation or resource-intensive applications may increase this to 40-50%.
1993
+
1994
+ ### Compatibility Questions
1995
+
1996
+ **Q: Does it work on Windows/macOS hosts?**
1997
+ A: It requires a Linux host with KVM support. Windows (WSL2 with nested virtualization) and macOS hosts are not officially supported due to KVM requirements.
1998
+
1999
+ **Q: What Linux distributions are supported?**
2000
+ A: Any modern Linux distribution with Docker 24.0+ and KVM support:
2001
+ - Ubuntu 20.04+
2002
+ - Debian 11+
2003
+ - Fedora 36+
2004
+ - CentOS 8+
2005
+ - Arch Linux
2006
+
2007
+ **Q: Can I use AMD CPUs?**
2008
+ A: Yes, as long as AMD-V (SVM) is enabled in BIOS and the KVM kernel modules are loaded.
2009
+
2010
+ **Q: What about ARM processors (Apple Silicon)?**
2011
+ A: Not supported. This is an x86_64 container designed for Intel/AMD processors only.
2012
+
2013
+ ### Configuration Questions
2014
+
2015
+ **Q: Can I change the RAM allocation?**
2016
+ A: Yes, but currently the container is configured for 8GB RAM. Changing this requires rebuilding the container image with modified configuration.
2017
+
2018
+ **Q: Can I use this for .NET development?**
2019
+ A: Yes, .NET SDK and Visual Studio Build Tools are pre-installed. The container is optimized for Computer Use Agent and Coding agent development but fully supports .NET workflows.
2020
+
2021
+ **Q: How do I persist data across container restarts?**
2022
+ A: Use Docker volumes to mount directories from the host:
2023
+ ```yaml
2024
+ volumes:
2025
+ - ./my-projects:C:\Users\AgentUser\projects
2026
+ ```
2027
+
2028
+ ### Remote Access Questions
2029
+
2030
+ **Q: Which remote access method should I use?**
2031
+ A: Use RDP for best performance β€” it is the native Windows protocol with hardware acceleration and full clipboard/audio support. Use SSH for headless command-line operations, script execution, and file transfers.
2032
+
2033
+ **Q: Can I use other remote desktop solutions?**
2034
+ A: The container is pre-configured with RDP and VNC. Adding other solutions would require custom configuration.
2035
+
2036
+ **Q: What's the bandwidth requirement for RDP?**
2037
+ A: Minimum 10 Mbps, recommended 100 Mbps+ for best experience. Less bandwidth will work but may impact video quality.
2038
+
2039
+ ### Troubleshooting Questions
2040
+
2041
+ **Q: Windows Updates are interfering. What should I do?**
2042
+ A: Disable automatic updates via Group Policy or Services. See Troubleshooting section for detailed steps.
2043
+
2044
+ **Q: Why is performance slow?**
2045
+ A: The host CPU configuration prioritizes stability. You can disable visual effects, unnecessary services, or customize the CPU configuration for better performance.
2046
+
2047
+ **Q: How do I access container logs?**
2048
+ A:
2049
+ ```bash
2050
+ docker logs win_agent
2051
+ docker logs -f win_agent # Follow mode
2052
+ ```
2053
+
2054
+ **Q: The container won't start. What's wrong?**
2055
+ A: Check:
2056
+ 1. KVM is accessible (`ls -l /dev/kvm`)
2057
+ 2. Sufficient RAM available (8GB free)
2058
+ 3. Ports aren't conflicting
2059
+ 4. Docker service is running
2060
+ 5. Container logs for specific errors
2061
+
2062
+ ### Security Questions
2063
+
2064
+ **Q: Is this container secure?**
2065
+ A: The container runs with NET_ADMIN capability and requires KVM access. It's designed for development environments. For production, review security considerations and implement appropriate network isolation.
2066
+
2067
+ **Q: Can I run this in a public cloud?**
2068
+ A: Only on infrastructure that exposes hardware virtualization extensions to the guest. Bare-metal instances work universally. Standard VM instances require the cloud provider to explicitly enable nested virtualization β€” AWS Nitro, Google Cloud, and Azure support it on select instance types, but it must be enabled per-instance and is not on by default. The limiting factor is the hypervisor configuration, not the host OS.
2069
+
2070
+ **Q: How do I secure remote access?**
2071
+ A: Use VPN or SSH tunneling to access the container:
2072
+ ```bash
2073
+ ssh -L 3389:localhost:3389 -p 2222 host-server
2074
+ ```
2075
+ Then connect RDP to `localhost:3389`.
2076
+
2077
+ ---
2078
+
2079
+ ## License
2080
+
2081
+ This project is licensed under the **GNU General Public License v3.0 (GPL-3.0)**.
2082
+
2083
+ ### What GPL-3.0 Covers
2084
+
2085
+ The GPL-3.0 license applies to:
2086
+ - Container configuration files and Docker Compose setup
2087
+ - Custom scripts and automation tools created by the developer
2088
+ - Integration code and custom components
2089
+ - Documentation and setup instructions
2090
+ - Any modifications you make to these components
2091
+
2092
+ ### GPL-3.0 License Summary
2093
+
2094
+ **Permissions**:
2095
+ - βœ… Commercial use
2096
+ - βœ… Modification
2097
+ - βœ… Distribution
2098
+ - βœ… Patent use
2099
+ - βœ… Private use
2100
+
2101
+ **Conditions**:
2102
+ - πŸ“‹ License and copyright notice
2103
+ - πŸ“‹ State changes
2104
+ - πŸ“‹ Disclose source
2105
+ - πŸ“‹ Same license (copyleft)
2106
+
2107
+ **Limitations**:
2108
+ - ❌ Liability
2109
+ - ❌ Warranty
2110
+
2111
+ ### What This Means
2112
+
2113
+ **For the Container Infrastructure** (GPL-3.0):
2114
+ - You can use, modify, and distribute the container configuration
2115
+ - You can create derivative works of the setup scripts
2116
+ - If you distribute modified versions, you must:
2117
+ - Include the GPL-3.0 license
2118
+ - Make your source code modifications available
2119
+ - License your modifications under GPL-3.0
2120
+ - Document any changes made
2121
+
2122
+ ### Full License
2123
+
2124
+ For the complete license text, see: https://www.gnu.org/licenses/gpl-3.0.en.html
2125
+
2126
+ ### Disclaimer
2127
+
2128
+ This container is provided "as is" without warranty of any kind.
2129
+
2130
+ ---
2131
+
2132
+ ## About This Project
2133
+
2134
+ The **Windows 10 Container** represents a significant advancement in containerized Windows environments. Built for Computer Use Agent development and frontier coding agent evaluation, this project addresses the key challenges faced by developers working with Windows-based automation and AI agents.
2135
+
2136
+ Version 1 extends the original CUA environment into a full coding agent evaluation platform. The Task Executor API β€” covering multi-framework test scoring, programmatic lint integration, diff capture, and ground-truth patch similarity scoring β€” was built to support rigorous coding agent benchmarking on a native Windows runtime, a capability absent from Linux-only eval frameworks.
2137
+
2138
+ ### Project Goals
2139
+
2140
+ **Primary Objectives**:
2141
+ - Provide a reproducible Windows environment for AI coding agents and CUA development
2142
+ - Eliminate external file dependencies for cleaner deployments
2143
+ - Optimize performance while maintaining stability
2144
+ - Enable seamless CI/CD integration for Windows workflows
2145
+ - Support scalable agent training and testing
2146
+
2147
+ **Design Philosophy**:
2148
+ - **Self-Contained**: Everything in one container, no external files
2149
+ - **Ephemeral**: Clean state management with proper isolation
2150
+ - **Performant**: Optimized for real-world development workflows
2151
+ - **Tested**: Based on confirmed safe and stable configurations
2152
+ - **Accessible**: Simple deployment with Docker Compose
2153
+
2154
+ ### Development Journey
2155
+
2156
+ This container was built from the ground up through:
2157
+ - Extensive testing on real hardware
2158
+ - Iterative performance optimization
2159
+ - Configuration tuning for stability
2160
+ - Integration of development tools
2161
+ - Refinement of remote access methods
2162
+
2163
+ Every configuration choice, from the host CPU setting to the 8GB RAM allocation, is based on tested and confirmed performance characteristics. The current configuration represents what can be safely delivered and has been verified to work reliably.
2164
+
2165
+ ### Why This Matters
2166
+
2167
+ **For Developers**:
2168
+ - Consistent Windows environment across team members
2169
+ - No "works on my machine" issues
2170
+ - Fast setup and deployment
2171
+ - Integrated development tools
2172
+ - Built-in monitoring capabilities
2173
+
2174
+ **For Organizations**:
2175
+ - Reproducible testing environments
2176
+ - CI/CD pipeline integration
2177
+ - Scalable agent deployment
2178
+ - Cost-effective Windows access
2179
+ - Clean resource management
2180
+
2181
+ ### Future Direction
2182
+
2183
+ While the current configuration is optimized for compatibility and stability, the container is designed to be customizable. As hardware capabilities evolve and use cases expand, configurations can be adjusted to leverage more powerful systems while maintaining the core benefits of containerization.
2184
+
2185
+ ### Acknowledgments
2186
+
2187
+ This project builds on the containerization ecosystem and the work of many in the Docker and virtualization communities. Special recognition to:
2188
+ - The Docker team for container technology
2189
+ - The KVM project for virtualization
2190
+ - The open-source community for tools and libraries
2191
+
2192
+ ### Get Involved
2193
+
2194
+ **Feedback & Contact**:
2195
+ - **X (Twitter)**: [@nullvoider07](https://x.com/nullvoider07)
2196
+ - Report issues with detailed information
2197
+ - Share your use cases and experiences
2198
+ - Suggest improvements and features
2199
+
2200
+ **Contributing**:
2201
+ The core implementation details is open-source, feedback on the mentioned topics and other topics not in the list:
2202
+ - Performance optimization suggestions
2203
+ - Use case requirements
2204
+ - Bug reports and fixes
2205
+ - Documentation improvements
2206
+
2207
+ **Key files:**
2208
+ - `task_executor_windows.py` β€” Task Executor REST API server
2209
+ - `deploy-windows.yaml` β€” Docker Compose deployment file
2210
+ - `README.md` β€” This documentation
2211
+
2212
+ ...is always welcome and appreciated.
2213
+
2214
+ ---
2215
+
2216
+ **Last Updated:** May 2026
2217
+ **Version:** 1
2218
+ **Developer:** Kartik (NullVoider)
2219
+ **License:** GPL-3.0
2220
+
2221
+ ---
2222
+
2223
+ **Windows 10** - Full Windows in one self-contained container. AI agent training and evaluation, no compromises, no external files. πŸš€