Skip to main content
A common agent pattern: clone a repo into an isolated machine, inspect it, and run checks — without touching the host machine. This example uses a public repository; for private repos, inject credentials via envs at create time.

Setup

Python

workspace_example.py

Expected output

From here an agent typically reads files (machine.files.read), edits them (machine.files.write), re-runs tests, and forks the warm workspace to try multiple approaches in parallel. To run a coding agent itself inside the machine — Codex, Claude Code, Amp, or OpenCode — see Agent workspaces. Related: Commands · Filesystem