How Deep Agents Run Untrusted Code Without a Sandbox

Langchain··Submitted by Mads Kristian Nylund
Open Source AIAI ToolsAgent Technologies

Deep Agents introduces dynamic subagents that use WebAssembly (WASM) and QuickJS to execute untrusted code securely, ensuring isolation and preventing compromise of the host environment. The system enforces capability isolation, limiting agents to predefined actions and data access, while a harness manages execution and execution limits. Durable pauses allow agents to wait for human input without rebuilding the program, maintaining execution integrity. Two public, experimental packages—quickjs-rs and langchain-quickjs—enable secure execution of untrusted code, integrating with production systems.

Read Article

More from Langchain

Related Articles