Every agent sub-task gets its own sandboxed runtime. Fan out in parallel, recurse to any depth, trace every LLM call back to its root — with cost allocation billing built in. No shared state. No credential leaks. Full audit trail.
Benchmarks
n=10, bare-metal Firecracker · KVM host
from sandy import SandyIsolatedREPL
env = SandyIsolatedREPL(api_url=SANDY_URL, api_key=KEY)
result = env.run(code="""
# each rlm_query() spawns a fresh isolated child sandbox
summary_a = rlm_query("Summarise: " + context["doc_a"])
summary_b = rlm_query("Summarise: " + context["doc_b"])
answer = {"summaries": [summary_a, summary_b], "ready": True}
""", context={"doc_a": DOC_A, "doc_b": DOC_B})
tree = env.recorder.get_call_tree() # full provenance, every call
rlm_query() inside any sandbox automatically orchestrates the next generation.run_id, call_id, depth. JSONL export for replay and audit.llm_query() calls and injects responses.customer_id, project, or any label. Query /v1/usage/breakdown to see exact costs per customer — ready to pass through to your own billing.Demo use cases
Each demo spawns multiple child sandboxes via rlm_query() and returns a full call-tree.