The agent runs its code and reads what happened
Write the model's code into the session and run it. stdout, stderr and the exit code come back in one response, and a nonzero exit is a result rather than an error, so a traceback goes back to the model, which fixes the script and runs it again. For a self-contained calculation, skip the session: a one-shot command gets its own VM and is cleaned up when it exits.
- python3.12 and node22 presets, or your own template
- Each session is its own VM, apart from your functions
- Driven from the API, CLI, SDKs, MCP or dashboard
write /workspace/sales.xlsx the user's uploadexec step_1.py exit 1 · KeyError: 'Region'write /workspace/step_2.py the model fixed the column nameexec step_2.py exit 0 · saved revenue_by_region.pngread /workspace/revenue_by_region.png✓ the reply quotes what the code printed, not a guess