MCPcopy Create free account
hub / github.com/AI45Lab/Code / plan_permissions

Function plan_permissions

core/src/subagent.rs:1058–1064  ·  view source on GitHub ↗

Permission policy for plan agent (read-only)

()

Source from the content-addressed store, hash-verified

1056
1057/// Permission policy for plan agent (read-only)
1058fn plan_permissions() -> PermissionPolicy {
1059 let mut policy = PermissionPolicy::new()
1060 .allow_all(&["read", "grep", "glob", "ls"])
1061 .deny_all(&["write", "edit", "bash", "task", "parallel_task"]);
1062 policy.default_decision = PermissionDecision::Deny;
1063 policy
1064}
1065
1066/// Permission policy for verification agent (read-heavy with runtime checks)
1067fn verification_permissions() -> PermissionPolicy {

Callers 1

default_permissionsMethod · 0.85

Calls 2

deny_allMethod · 0.80
allow_allMethod · 0.80

Tested by

no test coverage detected