No description
  • Python 95.8%
  • PowerShell 2.7%
  • Shell 1.3%
  • Inno Setup 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Derek Demuro 244b873ebd
feat: add skills library of tested VM primitives and recipes
Adds skills/ with a Python package (apps, browser, core, facts, install,
linkedin) of repeatable operations, markdown blueprints for one-off
recipes, and unit and e2e tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 16:05:40 -05:00
.claude/skills chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
.github chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
config feat: client SDK, targets, CLI, FakeAgent, and the build pipeline 2026-09-08 13:06:19 -04:00
docker/qemu-windows chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
docs merge: Tier 1 lossy capture codec + Tier 2 input.sequence & zeroable pacing 2026-10-30 15:53:52 -04:00
packaging/windows chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
scenarios/examples chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
setup chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
skills feat: add skills library of tested VM primitives and recipes 2026-11-09 16:05:40 -05:00
tests feat: add skills library of tested VM primitives and recipes 2026-11-09 16:05:40 -05:00
tools chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
vmtester merge: Tier 1 lossy capture codec + Tier 2 input.sequence & zeroable pacing 2026-10-30 15:53:52 -04:00
.bandit.yml chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
.flake8 feat: M0 agent foundation - contract, auth, redaction, config, routes 2026-09-08 11:54:27 -04:00
.gitignore feat: opt-in vm-cache dir, architecture diagrams, per-job skills 2026-09-11 09:59:02 -04:00
.markdownlint.json feat: M0 agent foundation - contract, auth, redaction, config, routes 2026-09-08 11:54:27 -04:00
.pre-commit-config.yaml chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
agent.spec chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
AGENTS.md chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
build_windows_agent.sh chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
CHANGELOG.md chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
CLAUDE.md chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
cli.spec chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
CODEOWNERS test: M0 fix passes - vacuous guards, exit codes, coverage gate 2026-09-08 20:19:16 -04:00
conftest.py chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
create_new_version_v2.py chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
GEMINI.md chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
install-client.sh chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
pyproject.toml chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
README.md chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
sandbox.sh chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
setup.cfg chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
SUPPORT.md chore: rename WindowsTester to VMTester 2026-10-29 03:50:12 -04:00
version.txt feat: M0 agent foundation - contract, auth, redaction, config, routes 2026-09-08 11:54:27 -04:00

VMTester

VMTester drives a Windows machine remotely to install, exercise, and verify desktop applications. A small agent runs on the Windows box and exposes typed, deterministic primitives over an authenticated HTTP API; a client — a human at a terminal, a CI job, or an AI harness — runs anywhere and talks to it.

Security posture — read this before the quickstart

  • The agent binds 127.0.0.1 by default and refuses any other bind address unless you pass --allow-remote (or set WT_ALLOW_REMOTE=true), because the port is a level of remote control over the machine it runs on.
  • It refuses to start without a strong API_KEY_HASH — there is no default key and no anonymous access. Generate one with --keygen (below).
  • TLS is on by default; --insecure disables it and is meant for local development only, never for a bind address other than loopback.
  • This agent is built for disposable test machines — a VM you can snapshot and revert — not for a production endpoint. It is not a general-purpose remote administration tool, and nothing about its design assumes the box under test has anything on it worth protecting after the test run ends.

Quickstart

Every command below was run to produce the output shown, from the repository root with venv/ activated — that's not optional: ./sandbox.sh install only installs dependencies into venv/, never this project itself, so nothing below works from a plain shell with no venv active. If a command's output looks wrong once both of those are true, something is actually broken rather than just undocumented. One environment note: the paths the agent writes to (DATA_DIR, ARTIFACT_ROOT, AUDIT_LOG_PATH) are declared per platform, so running this quickstart on Linux puts them under ~/.local/share/vmtester/ rather than %PROGRAMDATA%\VmTester\. There is nothing extra to set, and nothing is written there until the first request arrives.

./sandbox.sh venv && ./sandbox.sh install
source venv/bin/activate

Generate an API key and its stored hash. The key itself goes to whichever client authenticates as this agent, and cannot be recovered from the hash later. Put the hash in WT_API_KEY_HASH — there is no default config-file path, so if you'd rather keep it in agent-base.json instead, every command that starts the agent needs --config agent-base.json to actually read it, or the hash is silently never seen:

python -m vmtester.main_agent --keygen
# key:  <a fresh key>
# hash: $argon2id$v=19$m=65536,t=3,p=4$...

Start the agent. --insecure disables TLS and is for local development only — a real deployment leaves TLS on (the default) and pins the certificate fingerprint the agent prints at startup on the client side instead:

WT_API_KEY_HASH='<hash from above>' python -m vmtester.main_agent --serve --insecure
# agent listening on http://127.0.0.1:8765

In another shell, point the client at it. Targets are named in a small inventory file rather than hardcoded, and a target's key comes from WT_KEY_<NAME> in the environment — never from the inventory file itself, so it is safe to commit:

cat > targets.json <<'EOF'
{"targets": [{"name": "local", "url": "http://127.0.0.1:8765"}]}
EOF
WT_KEY_LOCAL='<key from above>' python -m vmtester.main_cli --targets targets.json ping local
# {"pong":true,"server_time":"2026-09-08T18:38:08.428506Z"}
WT_KEY_LOCAL='<key from above>' python -m vmtester.main_cli --targets targets.json info local
# {"agent_version": "0.1.0", "protocol_version": 1, ..., "capabilities": [...]}

info returns the full list of operations this agent build actually implements (capabilities), which is the honest way to find out what is callable rather than guessing from documentation.

Drive it from any AI harness — the MCP server

Any tool that speaks MCP gets the whole client through one config block. Drop this into the harness's MCP configuration:

{
  "mcpServers": {
    "vmtester": {
      "command": "/abs/path/to/venv/bin/python",
      "args": ["-m", "vmtester.main_cli", "--targets", "/abs/path/to/targets.json",
               "mcp", "win11-test", "--stdio"],
      "env": { "WT_KEY_WIN11_TEST": "<that target's key>" }
    }
  }
}

What the harness gets: one tool per operation this build registers — named group_verb, with input and output schemas generated from that operation's own request and response models — plus the composed tools whose requirements this build meets. The listing is derived from the contract, so it is exactly what this build serves and nothing else; call tools/list first rather than assuming, branch on each failure's stable code, and note that no tool accepts or returns a screen coordinate. --http in place of --stdio serves streamable HTTP at http://127.0.0.1:8770/mcp for a harness that connects rather than spawns.

What works today

info (above) prints the operations this build actually implements; that list, not this README, is the honest answer. The full milestone plan (M1 through M8) is in §20 of the design spec.

Where to go next

  • docs/index.md — the documentation map across all four audiences (user, developer, AI-operating, reference); start here if the links below aren't what you need.
  • AGENTS.md — contributing to this codebase: commands, invariants, conventions. Read this before editing vmtester/.
  • docs/user/index.md — installing, configuring, and securing a deployed agent as an operator rather than a contributor (including installation.md and quickstart.md).
  • docs/ai/ — operating this tool against a Windows target as an AI harness, once an agent is already running.
  • docs/reference/ — the generated operation, config, and error-code tables, plus the hand-written wire protocol and file layout.