Python 3.10 or newer (standard library only)
The whole harness is written with Python's standard library: dataclasses for messages, urllib for talking to model APIs, subprocess and tempfile for the sandbox, and json for traces. There is nothing to pip install. You work in a project folder with its own virtual environment, in any editor, and run everything from a terminal.
Python 3.10 or newer (standard library only)
FreeThe whole harness is written with Python's standard library: dataclasses for messages, urllib for talking to model APIs, subprocess and tempfile for the sandbox, and json for traces. There is nothing to pip install. You work in a project folder with its own virtual environment, in any editor, and run everything from a terminal. Every lesson is readable text with copyable code, keyboard-friendly quizzes and step-throughs, and videos with YouTube captions.
- Check your version with python3 --version (macOS and Linux) or py --version (Windows); install Python 3.10 or newer from python.org if it is older or missing.
- Create a folder called harness-lab, then run python3 -m venv .venv (or py -m venv .venv on Windows) inside it.
- Activate the environment with source .venv/bin/activate (macOS and Linux) or .venv\Scripts\Activate.ps1 (Windows PowerShell).
- Create the harness, tests, workspace, traces, and evals folders, plus an empty harness/__init__.py and tests/__init__.py.
- Write harness/model.py and check_setup.py from Module 1, then run python check_setup.py.