Execute code safely using RLM Runtime with Docker isolation when you need to run tests, validate implementations, or execute complex computations. Use when the user asks to run code, test implementations, or when you need to verify code behavior.
When you need to execute code safely:
Check if RLM Runtime is installed:
which rlm or rlm --versionpip install rlm-runtime[all]For safe execution, use Docker environment:
rlm run --env docker "Your task here"For quick local execution (trusted code only):
rlm run "Your task here"Common patterns:
rlm run --env docker "Run pytest for the authentication module"rlm run --env docker "Check if the API endpoint returns valid JSON"rlm run --env docker "Parse logs and extract top 5 error messages"View execution logs:
rlm logs - See recent executionsrlm visualize - Launch interactive trajectory viewerWhen to use:
When NOT to use: