One workspace from the first command to the last
An agent can write a script, run it, and use the results in its next step. A session keeps files in /workspace and background processes alive between commands. A nonzero exit comes back as output for the agent to read, not as an error.
- Use one-shot execution for a single snippet
- Reuse files across commands in a session
- Retry with the same request ID without rerunning code
sandbox> python /workspace/analyze.py /workspace/sales.csvrevenue by region NA 4.2M · EMEA 3.1M · APAC 2.4Msaved /workspace/monthly.csv, /workspace/revenue.pngsandbox> python /workspace/growth.py --quarter 3fastest growth in Q3: APAC, up 18%✓ the second script read what the first one saved