Tagged articles

BaseSandbox

1 articles · Page 1 of 1
Code Archaeology
Code Archaeology
Mar 9, 2026 · Artificial Intelligence

How Deep Agents Implements Shell Command Execution: Inside FilesystemMiddleware

This article dissects Deep Agents' shell command execution via the FilesystemMiddleware's execute tool, detailing its parameter validation, backend resolution through SandboxBackendProtocol, LocalShellBackend's subprocess-based implementation, BaseSandbox's abstract interface for isolated sandboxes, and a practical example using a local workspace.

AI engineeringBaseSandboxDeep Agents
0 likes · 10 min read
How Deep Agents Implements Shell Command Execution: Inside FilesystemMiddleware