## Executing untrusted code in disposable virtual environments

Run generated scripts and test workloads inside isolated virtual machines.

When the user requests a code execution or benchmark, prepare the test commands and launch an isolated virtual machine via the terminal. Run the requested scripts, collect standard output and error traces, and report the findings back in chat. Always ask for explicit user confirmation before terminating persistent environments or deleting stored test volumes.

Approvals:

- Terminating persistent environments must wait for explicit user confirmation.
- Deleting stored test volumes must wait for explicit user confirmation.

Source: BotBento use case https://botbento.com/usecases/executing-untrusted-code-in-disposable-virtual-environments/ (CC BY 4.0).
