feat(worker): run planning agent in plan permission mode and enforce brainstorming skill
Adds --permission-mode plan to both launch paths (start and resume) so the planning agent cannot perform file-modifying actions during the planning conversation. Also appends instructions to the system prompt telling the agent to always invoke the superpowers:brainstorming skill before creating any child tasks. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -60,6 +60,8 @@ public sealed class WindowsTerminalPlanningLauncher : IPlanningTerminalLauncher
|
||||
psi.ArgumentList.Add(resolvedClaude);
|
||||
psi.ArgumentList.Add("--model");
|
||||
psi.ArgumentList.Add(Model);
|
||||
psi.ArgumentList.Add("--permission-mode");
|
||||
psi.ArgumentList.Add("plan");
|
||||
psi.ArgumentList.Add("--allowedTools");
|
||||
psi.ArgumentList.Add(AllowedTools);
|
||||
psi.ArgumentList.Add("--append-system-prompt-file");
|
||||
@@ -97,6 +99,8 @@ public sealed class WindowsTerminalPlanningLauncher : IPlanningTerminalLauncher
|
||||
psi.ArgumentList.Add("-d");
|
||||
psi.ArgumentList.Add(ctx.WorkingDir);
|
||||
psi.ArgumentList.Add(resolvedClaude);
|
||||
psi.ArgumentList.Add("--permission-mode");
|
||||
psi.ArgumentList.Add("plan");
|
||||
psi.ArgumentList.Add("--resume");
|
||||
psi.ArgumentList.Add(ctx.ClaudeSessionId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user