Add story 35: Agent security and sandboxing, add bypassPermissions to agent spawns

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dave
2026-02-19 15:56:05 +00:00
parent 3807f0e625
commit bf0fb5bcf6
2 changed files with 32 additions and 0 deletions

View File

@@ -180,6 +180,10 @@ fn run_agent_pty(
cmd.arg("stream-json");
cmd.arg("--verbose");
// Supervised agents don't need interactive permission prompts
cmd.arg("--permission-mode");
cmd.arg("bypassPermissions");
// Append role as system prompt context
cmd.arg("--append-system-prompt");
cmd.arg(format!(