From dea2bcaef6a92f35d5534f7146930606582c384d Mon Sep 17 00:00:00 2001 From: Markov Date: Tue, 24 Feb 2026 13:37:14 +0100 Subject: [PATCH] feat: agent sandboxed to agentHome by default (allowedPaths) --- src/router.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/router.ts b/src/router.ts index 6e2f84b..75f0a0a 100644 --- a/src/router.ts +++ b/src/router.ts @@ -103,7 +103,9 @@ export class EventRouter { systemPrompt: this.config.prompt || undefined, skillsDir: this.config.agentHome, sessionDir: path.join(this.config.agentHome, 'sessions'), - allowedPaths: this.config.allowedPaths, + allowedPaths: this.config.allowedPaths.length > 0 + ? this.config.allowedPaths + : [this.config.agentHome], customTools: this.trackerTools, })) { if (msg.type === 'error') {