feat: agent sandboxed to agentHome by default (allowedPaths)

This commit is contained in:
Markov 2026-02-24 13:37:14 +01:00
parent 4b3e4d6195
commit dea2bcaef6

View File

@ -103,7 +103,9 @@ export class EventRouter {
systemPrompt: this.config.prompt || undefined, systemPrompt: this.config.prompt || undefined,
skillsDir: this.config.agentHome, skillsDir: this.config.agentHome,
sessionDir: path.join(this.config.agentHome, 'sessions'), 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, customTools: this.trackerTools,
})) { })) {
if (msg.type === 'error') { if (msg.type === 'error') {