From fe56a40dbd65fa27c3a78a5e962bc5ac7fef1784 Mon Sep 17 00:00:00 2001 From: Jason Mulligan Date: Sun, 2 Aug 2026 12:44:29 -0400 Subject: [PATCH] fix: use LocalShellBackend for core backend to satisfy SandboxBackendProtocol Replace FilesystemBackend with LocalShellBackend in createCoreBackend() to provide execute() and id() required by SandboxBackendProtocolV2. Context backend remains FilesystemBackend (read-only, no execution needed). --- src/agent/backends/coreBackend.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/agent/backends/coreBackend.js b/src/agent/backends/coreBackend.js index fd0a3e9f..e6c16706 100644 --- a/src/agent/backends/coreBackend.js +++ b/src/agent/backends/coreBackend.js @@ -1,11 +1,11 @@ -import { FilesystemBackend } from "deepagents"; +import { LocalShellBackend } from "deepagents"; /** - * Create a FilesystemBackend sandboxed to the current working directory. - * @returns {FilesystemBackend} + * Create a LocalShellBackend sandboxed to the current working directory. + * @returns {LocalShellBackend} */ export function createCoreBackend() { - return new FilesystemBackend({ + return new LocalShellBackend({ rootDir: process.cwd(), virtualMode: false, });