tweak: adjust plan agent to ask when running bash, give it edit tooli… (#2150)

pull/2154/head
Aiden Cline 2025-08-21 17:25:31 -05:00 committed by GitHub
parent 6d056789c7
commit ba2e86c7ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 4 deletions

View File

@ -48,6 +48,15 @@ export namespace Agent {
}
const agentPermission = mergeAgentPermissions(defaultPermission, cfg.permission ?? {})
const planPermission = mergeAgentPermissions(
{
edit: "ask",
bash: "ask",
webfetch: "allow",
},
cfg.permission ?? {},
)
const result: Record<string, Info> = {
general: {
name: "general",
@ -74,11 +83,8 @@ export namespace Agent {
plan: {
name: "plan",
options: {},
permission: agentPermission,
permission: planPermission,
tools: {
write: false,
edit: false,
patch: false,
...defaultTools,
},
mode: "primary",